diff --git a/.gitignore b/.gitignore index 114d915..c7ac18e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,14 +1,11 @@ -.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 7cb3a8d..8950b6a 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -16,6 +16,7 @@ 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 @@ -25,7 +26,6 @@ src/Tribufu/Model/CodeChallengeMethod.cs src/Tribufu/Model/CodeResponse.cs src/Tribufu/Model/CreateUser.cs src/Tribufu/Model/CryptoViewModel.cs -src/Tribufu/Model/ExternalAccount.cs src/Tribufu/Model/Game.cs src/Tribufu/Model/GameServer.cs src/Tribufu/Model/GameServerCluster.cs @@ -37,12 +37,12 @@ src/Tribufu/Model/GroupApplication.cs src/Tribufu/Model/GroupMember.cs src/Tribufu/Model/GroupRank.cs src/Tribufu/Model/HashViewModel.cs -src/Tribufu/Model/IdentityProviderType.cs src/Tribufu/Model/IntrospectRequest.cs src/Tribufu/Model/IntrospectResponse.cs src/Tribufu/Model/IpAddress.cs src/Tribufu/Model/LeaderboardItem.cs src/Tribufu/Model/LeaderboardOrder.cs +src/Tribufu/Model/LoginProvider.cs src/Tribufu/Model/ModelClient.cs src/Tribufu/Model/Package.cs src/Tribufu/Model/PackageRelease.cs diff --git a/Directory.Build.props b/Directory.Build.props index 5e893d6..33b9280 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -5,17 +5,9 @@ Copyright (c) Tribufu. All Rights Reserved. MIT git - https://github.com/Tribufu/TribufuDotNet + https://github.com/tribufu/tribufu-dotnet 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 a5bf230..e2bc920 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ [nuget-badge]: https://img.shields.io/nuget/v/Tribufu.svg [nuget-url]: https://www.nuget.org/packages/Tribufu [mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg -[mit-url]: https://github.com/Tribufu/TribufuDotNet/blob/main/LICENSE.txt +[mit-url]: https://github.com/tribufu/tribufu-dotnet/blob/main/LICENSE.txt [discord-badge]: https://img.shields.io/discord/276504514616623104.svg?logo=discord&style=flat-square [discord-url]: https://www.tribufu.com/discord @@ -20,4 +20,4 @@ This project is licensed under the [MIT License]. -[MIT License]: https://github.com/Tribufu/TribufuDotNet/blob/main/LICENSE.txt +[MIT License]: https://github.com/tribufu/tribufu-dotnet/blob/main/LICENSE.txt diff --git a/Scripts/Package.ps1 b/Scripts/Package.ps1 deleted file mode 100644 index 658179e..0000000 --- a/Scripts/Package.ps1 +++ /dev/null @@ -1,7 +0,0 @@ -#!/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/Source/Tribufu/Model/Profile.cs b/Source/Tribufu/Model/Profile.cs deleted file mode 100644 index 02724d5..0000000 --- a/Source/Tribufu/Model/Profile.cs +++ /dev/null @@ -1,283 +0,0 @@ -/* - * 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/Tribufu.sln b/Tribufu.sln new file mode 100644 index 0000000..0f722d9 --- /dev/null +++ b/Tribufu.sln @@ -0,0 +1,144 @@ + +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 deleted file mode 100644 index cb7cb6c..0000000 --- a/TribufuDotNet.slnx +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - diff --git a/releases/.gitkeep b/releases/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Scripts/Generate.ps1 b/scripts/generate.ps1 similarity index 63% rename from Scripts/Generate.ps1 rename to scripts/generate.ps1 index abb11fc..408e2e0 100644 --- a/Scripts/Generate.ps1 +++ b/scripts/generate.ps1 @@ -1,7 +1,5 @@ #!/usr/bin/env pwsh -$ErrorActionPreference = "Stop" - $env:CSHARP_POST_PROCESS_FILE = "" java -jar ./vendor/openapi-generator/openapi-generator-cli.jar generate ` @@ -12,12 +10,3 @@ java -jar ./vendor/openapi-generator/openapi-generator-cli.jar generate ` --additional-properties=packageName=Tribufu,library=restsharp,targetFramework=net47,zeroBasedEnums=true ` --openapi-normalizer SET_TAGS_FOR_ALL_OPERATIONS=TribufuGenerated ` --skip-validate-spec - -$srcDir = "./src" -$sourceDir = "./Source" - -if (Test-Path $srcDir) { - New-Item -ItemType Directory -Force -Path $sourceDir | Out-Null - Copy-Item -Path (Join-Path $srcDir "*") -Destination $sourceDir -Recurse -Force - Remove-Item $srcDir -Recurse -Force -} diff --git a/scripts/package.ps1 b/scripts/package.ps1 new file mode 100644 index 0000000..b496845 --- /dev/null +++ b/scripts/package.ps1 @@ -0,0 +1,7 @@ +#!/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/Source/Tribufu.AspNetCore/Extensions/HttpContextExtensions.cs b/src/Tribufu.AspNetCore/Extensions/HttpContextExtensions.cs similarity index 100% rename from Source/Tribufu.AspNetCore/Extensions/HttpContextExtensions.cs rename to src/Tribufu.AspNetCore/Extensions/HttpContextExtensions.cs diff --git a/Source/Tribufu.AspNetCore/README.md b/src/Tribufu.AspNetCore/README.md similarity index 100% rename from Source/Tribufu.AspNetCore/README.md rename to src/Tribufu.AspNetCore/README.md diff --git a/Source/Tribufu.AspNetCore/Tribufu.AspNetCore.csproj b/src/Tribufu.AspNetCore/Tribufu.AspNetCore.csproj similarity index 100% rename from Source/Tribufu.AspNetCore/Tribufu.AspNetCore.csproj rename to src/Tribufu.AspNetCore/Tribufu.AspNetCore.csproj diff --git a/Source/Tribufu.ComponentModel/EnumMemberConverter.cs b/src/Tribufu.ComponentModel/EnumMemberConverter.cs similarity index 100% rename from Source/Tribufu.ComponentModel/EnumMemberConverter.cs rename to src/Tribufu.ComponentModel/EnumMemberConverter.cs diff --git a/Source/Tribufu.ComponentModel/README.md b/src/Tribufu.ComponentModel/README.md similarity index 100% rename from Source/Tribufu.ComponentModel/README.md rename to src/Tribufu.ComponentModel/README.md diff --git a/Source/Tribufu.ComponentModel/Tribufu.ComponentModel.csproj b/src/Tribufu.ComponentModel/Tribufu.ComponentModel.csproj similarity index 100% rename from Source/Tribufu.ComponentModel/Tribufu.ComponentModel.csproj rename to src/Tribufu.ComponentModel/Tribufu.ComponentModel.csproj diff --git a/Source/Tribufu.Configuration/ConfigurationLoader.cs b/src/Tribufu.Configuration/ConfigurationLoader.cs similarity index 100% rename from Source/Tribufu.Configuration/ConfigurationLoader.cs rename to src/Tribufu.Configuration/ConfigurationLoader.cs diff --git a/Source/Tribufu.Configuration/Extensions/IConfigurationExtensions.cs b/src/Tribufu.Configuration/Extensions/IConfigurationExtensions.cs similarity index 100% rename from Source/Tribufu.Configuration/Extensions/IConfigurationExtensions.cs rename to src/Tribufu.Configuration/Extensions/IConfigurationExtensions.cs diff --git a/Source/Tribufu.Configuration/README.md b/src/Tribufu.Configuration/README.md similarity index 100% rename from Source/Tribufu.Configuration/README.md rename to src/Tribufu.Configuration/README.md diff --git a/Source/Tribufu.Configuration/Tribufu.Configuration.csproj b/src/Tribufu.Configuration/Tribufu.Configuration.csproj similarity index 100% rename from Source/Tribufu.Configuration/Tribufu.Configuration.csproj rename to src/Tribufu.Configuration/Tribufu.Configuration.csproj diff --git a/src/Tribufu.EntityFrameworkCore/DatabaseConfiguration.cs b/src/Tribufu.EntityFrameworkCore/DatabaseConfiguration.cs new file mode 100644 index 0000000..7619c8a --- /dev/null +++ b/src/Tribufu.EntityFrameworkCore/DatabaseConfiguration.cs @@ -0,0 +1,105 @@ +// 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 new file mode 100644 index 0000000..8b51fc4 --- /dev/null +++ b/src/Tribufu.EntityFrameworkCore/DatabaseConstants.cs @@ -0,0 +1,12 @@ +// 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 new file mode 100644 index 0000000..d904e83 --- /dev/null +++ b/src/Tribufu.EntityFrameworkCore/DatabaseDriver.cs @@ -0,0 +1,22 @@ +// 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/Source/Tribufu.EntityFrameworkCore/README.md b/src/Tribufu.EntityFrameworkCore/README.md similarity index 100% rename from Source/Tribufu.EntityFrameworkCore/README.md rename to src/Tribufu.EntityFrameworkCore/README.md diff --git a/Source/Tribufu.EntityFrameworkCore/IRepository.cs b/src/Tribufu.EntityFrameworkCore/Repositories/IRepository.cs similarity index 64% rename from Source/Tribufu.EntityFrameworkCore/IRepository.cs rename to src/Tribufu.EntityFrameworkCore/Repositories/IRepository.cs index 0e00b08..dbb4b19 100644 --- a/Source/Tribufu.EntityFrameworkCore/IRepository.cs +++ b/src/Tribufu.EntityFrameworkCore/Repositories/IRepository.cs @@ -4,25 +4,23 @@ using System.Collections.Generic; using System.Threading.Tasks; -namespace Tribufu.EntityFrameworkCore +namespace Tribufu.EntityFrameworkCore.Repositories { public interface IRepository where T : class { - void Seed(); - Task SeedAsync(); - IList List(); + IList GetAll(); - Task> ListAsync(); + Task> GetAllAsync(); - IList List(uint page, uint limit); + IList GetPage(uint page, uint limit); - Task> ListAsync(uint page, uint limit); + Task> GetPageAsync(uint page, uint limit); - T? Find(K key); + T? GetOne(K key); - Task FindAsync(K key); + Task GetOneAsync(K key); T? Create(T entity); diff --git a/Source/Tribufu.EntityFrameworkCore/Repository.cs b/src/Tribufu.EntityFrameworkCore/Repositories/Repository.cs similarity index 70% rename from Source/Tribufu.EntityFrameworkCore/Repository.cs rename to src/Tribufu.EntityFrameworkCore/Repositories/Repository.cs index 6851858..c70a3c5 100644 --- a/Source/Tribufu.EntityFrameworkCore/Repository.cs +++ b/src/Tribufu.EntityFrameworkCore/Repositories/Repository.cs @@ -7,54 +7,50 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; -namespace Tribufu.EntityFrameworkCore +namespace Tribufu.EntityFrameworkCore.Repositories { public class Repository : IRepository where C : DbContext where T : class { - protected readonly C _dbContext; + protected readonly C _context; protected readonly DbSet _dbSet; - public Repository(C dbContext) - { - _dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext)); - _dbSet = dbContext.Set(); - } - - public virtual void Seed() + public Repository(C context) { + _context = context ?? throw new ArgumentNullException(nameof(context)); + _dbSet = context.Set(); } public virtual async Task SeedAsync() { } - public virtual IList List() + public virtual IList GetAll() { return [.. _dbSet]; } - public virtual async Task> ListAsync() + public virtual async Task> GetAllAsync() { return await _dbSet.ToListAsync(); } - public virtual IList List(uint page, uint limit) + public virtual IList GetPage(uint page, uint limit) { return _dbSet.Skip((int)((page < 1 ? 0 : page - 1) * limit)).Take((int)limit).ToList(); } - public virtual async Task> ListAsync(uint page, uint limit) + public virtual async Task> GetPageAsync(uint page, uint limit) { return await _dbSet.Skip((int)((page < 1 ? 0 : page - 1) * limit)).Take((int)limit).ToListAsync(); } - public virtual T? Find(K key) + public virtual T? GetOne(K key) { return _dbSet.Find(key); } - public virtual async Task FindAsync(K key) + public virtual async Task GetOneAsync(K key) { return await _dbSet.FindAsync(key); } @@ -62,28 +58,29 @@ namespace Tribufu.EntityFrameworkCore public virtual T? Create(T entity) { _dbSet.Add(entity); - var result = _dbContext.SaveChanges(); + + var result = _context.SaveChanges(); return result > 0 ? entity : null; } public virtual async Task CreateAsync(T entity) { await _dbSet.AddAsync(entity); - var result = await _dbContext.SaveChangesAsync(); + var result = await _context.SaveChangesAsync(); return result > 0 ? entity : null; } public virtual T? Update(T entity) { _dbSet.Update(entity); - var result = _dbContext.SaveChanges(); + var result = _context.SaveChanges(); return result > 0 ? entity : null; } public virtual async Task UpdateAsync(T entity) { _dbSet.Update(entity); - var result = await _dbContext.SaveChangesAsync(); + var result = await _context.SaveChangesAsync(); return result > 0 ? entity : null; } @@ -108,13 +105,13 @@ namespace Tribufu.EntityFrameworkCore public virtual void Delete(T entity) { _dbSet.Remove(entity); - _dbContext.SaveChanges(); + _context.SaveChanges(); } public virtual async Task DeleteAsync(T entity) { _dbSet.Remove(entity); - await _dbContext.SaveChangesAsync(); + await _context.SaveChangesAsync(); } } } diff --git a/Source/Tribufu.EntityFrameworkCore/Tribufu.EntityFrameworkCore.csproj b/src/Tribufu.EntityFrameworkCore/Tribufu.EntityFrameworkCore.csproj similarity index 100% rename from Source/Tribufu.EntityFrameworkCore/Tribufu.EntityFrameworkCore.csproj rename to src/Tribufu.EntityFrameworkCore/Tribufu.EntityFrameworkCore.csproj diff --git a/Source/Tribufu.Example/Program.cs b/src/Tribufu.Example/Program.cs similarity index 100% rename from Source/Tribufu.Example/Program.cs rename to src/Tribufu.Example/Program.cs diff --git a/Source/Tribufu.Example/Tribufu.Example.csproj b/src/Tribufu.Example/Tribufu.Example.csproj similarity index 100% rename from Source/Tribufu.Example/Tribufu.Example.csproj rename to src/Tribufu.Example/Tribufu.Example.csproj diff --git a/Source/Tribufu.Logging/LogLevel.cs b/src/Tribufu.Logging/LogLevel.cs similarity index 100% rename from Source/Tribufu.Logging/LogLevel.cs rename to src/Tribufu.Logging/LogLevel.cs diff --git a/Source/Tribufu.Logging/Logger.cs b/src/Tribufu.Logging/Logger.cs similarity index 100% rename from Source/Tribufu.Logging/Logger.cs rename to src/Tribufu.Logging/Logger.cs diff --git a/Source/Tribufu.Logging/README.md b/src/Tribufu.Logging/README.md similarity index 100% rename from Source/Tribufu.Logging/README.md rename to src/Tribufu.Logging/README.md diff --git a/Source/Tribufu.Logging/Tribufu.Logging.csproj b/src/Tribufu.Logging/Tribufu.Logging.csproj similarity index 100% rename from Source/Tribufu.Logging/Tribufu.Logging.csproj rename to src/Tribufu.Logging/Tribufu.Logging.csproj diff --git a/Source/Tribufu.Platform/FlakeGenerator.cs b/src/Tribufu.Platform/FlakeGenerator.cs similarity index 100% rename from Source/Tribufu.Platform/FlakeGenerator.cs rename to src/Tribufu.Platform/FlakeGenerator.cs diff --git a/Source/Tribufu.Platform/Paths.cs b/src/Tribufu.Platform/Paths.cs similarity index 100% rename from Source/Tribufu.Platform/Paths.cs rename to src/Tribufu.Platform/Paths.cs diff --git a/Source/Tribufu.Platform/README.md b/src/Tribufu.Platform/README.md similarity index 100% rename from Source/Tribufu.Platform/README.md rename to src/Tribufu.Platform/README.md diff --git a/Source/Tribufu.Platform/Tribufu.Platform.csproj b/src/Tribufu.Platform/Tribufu.Platform.csproj similarity index 100% rename from Source/Tribufu.Platform/Tribufu.Platform.csproj rename to src/Tribufu.Platform/Tribufu.Platform.csproj diff --git a/Source/Tribufu.Serialization/BaseClassFirstContractResolver.cs b/src/Tribufu.Serialization/BaseClassFirstContractResolver.cs similarity index 100% rename from Source/Tribufu.Serialization/BaseClassFirstContractResolver.cs rename to src/Tribufu.Serialization/BaseClassFirstContractResolver.cs diff --git a/Source/Tribufu.Serialization/CustomSerializerSettings.cs b/src/Tribufu.Serialization/CustomSerializerSettings.cs similarity index 100% rename from Source/Tribufu.Serialization/CustomSerializerSettings.cs rename to src/Tribufu.Serialization/CustomSerializerSettings.cs diff --git a/Source/Tribufu.Serialization/DecimalNullableStringConverter.cs b/src/Tribufu.Serialization/DecimalNullableStringConverter.cs similarity index 100% rename from Source/Tribufu.Serialization/DecimalNullableStringConverter.cs rename to src/Tribufu.Serialization/DecimalNullableStringConverter.cs diff --git a/Source/Tribufu.Serialization/DecimalStringConverter.cs b/src/Tribufu.Serialization/DecimalStringConverter.cs similarity index 100% rename from Source/Tribufu.Serialization/DecimalStringConverter.cs rename to src/Tribufu.Serialization/DecimalStringConverter.cs diff --git a/Source/Tribufu.Serialization/NetworkAwareSnakeCaseNamingStrategy.cs b/src/Tribufu.Serialization/NetworkAwareSnakeCaseNamingStrategy.cs similarity index 100% rename from Source/Tribufu.Serialization/NetworkAwareSnakeCaseNamingStrategy.cs rename to src/Tribufu.Serialization/NetworkAwareSnakeCaseNamingStrategy.cs diff --git a/Source/Tribufu.Serialization/README.md b/src/Tribufu.Serialization/README.md similarity index 100% rename from Source/Tribufu.Serialization/README.md rename to src/Tribufu.Serialization/README.md diff --git a/Source/Tribufu.Serialization/Tribufu.Serialization.csproj b/src/Tribufu.Serialization/Tribufu.Serialization.csproj similarity index 100% rename from Source/Tribufu.Serialization/Tribufu.Serialization.csproj rename to src/Tribufu.Serialization/Tribufu.Serialization.csproj diff --git a/Source/Tribufu.Serialization/ULongNullableStringConverter.cs b/src/Tribufu.Serialization/ULongNullableStringConverter.cs similarity index 100% rename from Source/Tribufu.Serialization/ULongNullableStringConverter.cs rename to src/Tribufu.Serialization/ULongNullableStringConverter.cs diff --git a/Source/Tribufu.Serialization/ULongStringConverter.cs b/src/Tribufu.Serialization/ULongStringConverter.cs similarity index 100% rename from Source/Tribufu.Serialization/ULongStringConverter.cs rename to src/Tribufu.Serialization/ULongStringConverter.cs diff --git a/Source/Tribufu/Api/TribufuGeneratedApi.cs b/src/Tribufu/Api/TribufuGeneratedApi.cs similarity index 93% rename from Source/Tribufu/Api/TribufuGeneratedApi.cs rename to src/Tribufu/Api/TribufuGeneratedApi.cs index 096ce48..ee083e2 100644 --- a/Source/Tribufu/Api/TribufuGeneratedApi.cs +++ b/src/Tribufu/Api/TribufuGeneratedApi.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -534,8 +534,8 @@ namespace Tribufu.Api /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. - /// List<long> - List GenerateFlakeId(int? amount = default(int?), int operationIndex = 0); + /// List<string> + List GenerateFlakeId(int? amount = default(int?), int operationIndex = 0); /// /// Generate one or more flake ids. @@ -546,8 +546,8 @@ namespace Tribufu.Api /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. - /// ApiResponse of List<long> - ApiResponse> GenerateFlakeIdWithHttpInfo(int? amount = default(int?), int operationIndex = 0); + /// ApiResponse of List<string> + ApiResponse> GenerateFlakeIdWithHttpInfo(int? amount = default(int?), int operationIndex = 0); /// /// Generate one or more flake ids from a timestamp. /// @@ -558,8 +558,8 @@ namespace Tribufu.Api /// /// (optional) /// Index associated with the operation. - /// List<long> - List GenerateFlakeIdFromTimestamp(long timestamp, int? amount = default(int?), int operationIndex = 0); + /// List<string> + List GenerateFlakeIdFromTimestamp(string timestamp, int? amount = default(int?), int operationIndex = 0); /// /// Generate one or more flake ids from a timestamp. @@ -571,8 +571,8 @@ namespace Tribufu.Api /// /// (optional) /// Index associated with the operation. - /// ApiResponse of List<long> - ApiResponse> GenerateFlakeIdFromTimestampWithHttpInfo(long timestamp, int? amount = default(int?), int operationIndex = 0); + /// ApiResponse of List<string> + ApiResponse> GenerateFlakeIdFromTimestampWithHttpInfo(string timestamp, int? amount = default(int?), int operationIndex = 0); /// /// Generate a random password. /// @@ -608,8 +608,8 @@ namespace Tribufu.Api /// (optional) /// (optional) /// Index associated with the operation. - /// List<string> - List GenerateUuid(int? version = default(int?), int? amount = default(int?), int operationIndex = 0); + /// List<Guid> + List GenerateUuid(int? version = default(int?), int? amount = default(int?), int operationIndex = 0); /// /// Generate one or more uuids with a specific version. @@ -621,8 +621,8 @@ namespace Tribufu.Api /// (optional) /// (optional) /// Index associated with the operation. - /// ApiResponse of List<string> - ApiResponse> GenerateUuidWithHttpInfo(int? version = default(int?), int? amount = default(int?), int operationIndex = 0); + /// ApiResponse of List<Guid> + ApiResponse> GenerateUuidWithHttpInfo(int? version = default(int?), int? amount = default(int?), int operationIndex = 0); /// /// Get a oauth2 client by id. /// @@ -1337,7 +1337,7 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// Group - Group GetGroupByUuid(string uuid, int operationIndex = 0); + Group GetGroupByUuid(Guid uuid, int operationIndex = 0); /// /// Get a group by uuid. @@ -1349,7 +1349,7 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// ApiResponse of Group - ApiResponse GetGroupByUuidWithHttpInfo(string uuid, int operationIndex = 0); + ApiResponse GetGroupByUuidWithHttpInfo(Guid uuid, int operationIndex = 0); /// /// Get a list of games of a group. /// @@ -1614,8 +1614,8 @@ namespace Tribufu.Api /// Thrown when fails to make API call /// /// Index associated with the operation. - /// List<ExternalAccount> - List GetUserAccounts(string id, int operationIndex = 0); + /// List<Account> + List GetUserAccounts(string id, int operationIndex = 0); /// /// Get a list of connected accounts of the user. @@ -1626,8 +1626,8 @@ namespace Tribufu.Api /// Thrown when fails to make API call /// /// Index associated with the operation. - /// ApiResponse of List<ExternalAccount> - ApiResponse> GetUserAccountsWithHttpInfo(string id, int operationIndex = 0); + /// ApiResponse of List<Account> + ApiResponse> GetUserAccountsWithHttpInfo(string id, int operationIndex = 0); /// /// Get a list of friends of the user. /// @@ -1899,7 +1899,7 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// Profile - Profile GetUserProfileByUuid(string uuid, int operationIndex = 0); + Profile GetUserProfileByUuid(Guid uuid, int operationIndex = 0); /// /// Get a user profile by uuid. @@ -1911,7 +1911,7 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// ApiResponse of Profile - ApiResponse GetUserProfileByUuidWithHttpInfo(string uuid, int operationIndex = 0); + ApiResponse GetUserProfileByUuidWithHttpInfo(Guid uuid, int operationIndex = 0); /// /// Get a user profile by uuid. /// @@ -1923,7 +1923,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Profile [Obsolete] - Profile GetUserProfileByUuidV1(string uuid, int operationIndex = 0); + Profile GetUserProfileByUuidV1(Guid uuid, int operationIndex = 0); /// /// Get a user profile by uuid. @@ -1936,7 +1936,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// ApiResponse of Profile [Obsolete] - ApiResponse GetUserProfileByUuidV1WithHttpInfo(string uuid, int operationIndex = 0); + ApiResponse GetUserProfileByUuidV1WithHttpInfo(Guid uuid, int operationIndex = 0); /// /// Get a list of user profiles. /// @@ -3041,8 +3041,8 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of List<long> - System.Threading.Tasks.Task> GenerateFlakeIdAsync(int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of List<string> + System.Threading.Tasks.Task> GenerateFlakeIdAsync(int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Generate one or more flake ids. @@ -3054,8 +3054,8 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// 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)); + /// Task of ApiResponse (List<string>) + System.Threading.Tasks.Task>> GenerateFlakeIdWithHttpInfoAsync(int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Generate one or more flake ids from a timestamp. /// @@ -3067,8 +3067,8 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// 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)); + /// Task of List<string> + System.Threading.Tasks.Task> GenerateFlakeIdFromTimestampAsync(string timestamp, int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Generate one or more flake ids from a timestamp. @@ -3081,8 +3081,8 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// 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)); + /// Task of ApiResponse (List<string>) + System.Threading.Tasks.Task>> GenerateFlakeIdFromTimestampWithHttpInfoAsync(string timestamp, int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Generate a random password. /// @@ -3121,8 +3121,8 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// 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)); + /// Task of List<Guid> + System.Threading.Tasks.Task> GenerateUuidAsync(int? version = default(int?), int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Generate one or more uuids with a specific version. @@ -3135,8 +3135,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>> 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<Guid>) + System.Threading.Tasks.Task>> GenerateUuidWithHttpInfoAsync(int? version = default(int?), int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a oauth2 client by id. /// @@ -3914,7 +3914,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Group - System.Threading.Tasks.Task GetGroupByUuidAsync(string uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetGroupByUuidAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a group by uuid. @@ -3927,7 +3927,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Group) - System.Threading.Tasks.Task> GetGroupByUuidWithHttpInfoAsync(string uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetGroupByUuidWithHttpInfoAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of games of a group. /// @@ -4221,8 +4221,8 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of List<ExternalAccount> - System.Threading.Tasks.Task> GetUserAccountsAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of List<Account> + System.Threading.Tasks.Task> GetUserAccountsAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of connected accounts of the user. @@ -4234,8 +4234,8 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<ExternalAccount>) - System.Threading.Tasks.Task>> GetUserAccountsWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (List<Account>) + System.Threading.Tasks.Task>> GetUserAccountsWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of friends of the user. /// @@ -4530,7 +4530,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Profile - System.Threading.Tasks.Task GetUserProfileByUuidAsync(string uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetUserProfileByUuidAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a user profile by uuid. @@ -4543,7 +4543,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Profile) - System.Threading.Tasks.Task> GetUserProfileByUuidWithHttpInfoAsync(string uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetUserProfileByUuidWithHttpInfoAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a user profile by uuid. /// @@ -4556,7 +4556,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of Profile [Obsolete] - System.Threading.Tasks.Task GetUserProfileByUuidV1Async(string uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetUserProfileByUuidV1Async(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a user profile by uuid. @@ -4570,7 +4570,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of ApiResponse (Profile) [Obsolete] - System.Threading.Tasks.Task> GetUserProfileByUuidV1WithHttpInfoAsync(string uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetUserProfileByUuidV1WithHttpInfoAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of user profiles. /// @@ -5334,6 +5334,11 @@ 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); @@ -5402,6 +5407,11 @@ 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); @@ -5479,6 +5489,11 @@ 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); @@ -5557,6 +5572,11 @@ 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); @@ -5634,6 +5654,11 @@ 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); @@ -5712,6 +5737,11 @@ 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); @@ -5786,6 +5816,11 @@ 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); @@ -5861,6 +5896,11 @@ 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); @@ -5937,6 +5977,11 @@ 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); @@ -6014,6 +6059,11 @@ 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); @@ -6081,6 +6131,11 @@ 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); @@ -6149,6 +6204,11 @@ 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); @@ -6214,6 +6274,11 @@ 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); @@ -6280,6 +6345,11 @@ 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); @@ -6345,6 +6415,11 @@ 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); @@ -6411,6 +6486,11 @@ 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); @@ -6476,6 +6556,11 @@ 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); @@ -6542,6 +6627,11 @@ 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); @@ -6609,6 +6699,11 @@ 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); @@ -6677,6 +6772,11 @@ 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); @@ -6744,6 +6844,11 @@ 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); @@ -6812,6 +6917,11 @@ 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); @@ -6877,6 +6987,11 @@ 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); @@ -6943,6 +7058,11 @@ 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); @@ -7011,6 +7131,11 @@ 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); @@ -7080,6 +7205,11 @@ 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); @@ -7145,6 +7275,11 @@ 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); @@ -7211,6 +7346,11 @@ 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); @@ -7281,6 +7421,11 @@ 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); @@ -7352,6 +7497,11 @@ 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); @@ -7422,6 +7572,11 @@ 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); @@ -7493,6 +7648,11 @@ 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); @@ -7563,6 +7723,11 @@ 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); @@ -7634,6 +7799,11 @@ 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); @@ -7706,6 +7876,11 @@ 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); @@ -7779,6 +7954,11 @@ 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); @@ -7851,6 +8031,11 @@ 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); @@ -7924,6 +8109,11 @@ 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); @@ -7994,6 +8184,11 @@ 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); @@ -8065,6 +8260,11 @@ 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); @@ -8135,6 +8335,11 @@ 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); @@ -8206,6 +8411,11 @@ 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); @@ -8228,10 +8438,10 @@ namespace Tribufu.Api /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. - /// List<long> - public List GenerateFlakeId(int? amount = default(int?), int operationIndex = 0) + /// List<string> + 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; } @@ -8241,8 +8451,8 @@ namespace Tribufu.Api /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. - /// ApiResponse of List<long> - public Tribufu.Client.ApiResponse> GenerateFlakeIdWithHttpInfo(int? amount = default(int?), int operationIndex = 0) + /// ApiResponse of List<string> + public Tribufu.Client.ApiResponse> GenerateFlakeIdWithHttpInfo(int? amount = default(int?), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -8275,9 +8485,14 @@ 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); @@ -8297,10 +8512,10 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// 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)) + /// Task of List<string> + public async System.Threading.Tasks.Task> GenerateFlakeIdAsync(int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Tribufu.Client.ApiResponse> localVarResponse = await GenerateFlakeIdWithHttpInfoAsync(amount, operationIndex, cancellationToken).ConfigureAwait(false); + Tribufu.Client.ApiResponse> localVarResponse = await GenerateFlakeIdWithHttpInfoAsync(amount, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -8311,8 +8526,8 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// 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)) + /// Task of ApiResponse (List<string>) + public async System.Threading.Tasks.Task>> GenerateFlakeIdWithHttpInfoAsync(int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -8345,9 +8560,14 @@ 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) { @@ -8368,10 +8588,10 @@ namespace Tribufu.Api /// /// (optional) /// Index associated with the operation. - /// List<long> - public List GenerateFlakeIdFromTimestamp(long timestamp, int? amount = default(int?), int operationIndex = 0) + /// List<string> + public List GenerateFlakeIdFromTimestamp(string 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; } @@ -8382,9 +8602,15 @@ namespace Tribufu.Api /// /// (optional) /// Index associated with the operation. - /// ApiResponse of List<long> - public Tribufu.Client.ApiResponse> GenerateFlakeIdFromTimestampWithHttpInfo(long timestamp, int? amount = default(int?), int operationIndex = 0) + /// ApiResponse of List<string> + public Tribufu.Client.ApiResponse> GenerateFlakeIdFromTimestampWithHttpInfo(string timestamp, int? amount = default(int?), int operationIndex = 0) { + // verify the required parameter 'timestamp' is set + if (timestamp == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'timestamp' when calling TribufuGeneratedApi->GenerateFlakeIdFromTimestamp"); + } + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -8417,9 +8643,14 @@ 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); @@ -8440,10 +8671,10 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// 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)) + /// Task of List<string> + public async System.Threading.Tasks.Task> GenerateFlakeIdFromTimestampAsync(string timestamp, int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Tribufu.Client.ApiResponse> localVarResponse = await GenerateFlakeIdFromTimestampWithHttpInfoAsync(timestamp, amount, operationIndex, cancellationToken).ConfigureAwait(false); + Tribufu.Client.ApiResponse> localVarResponse = await GenerateFlakeIdFromTimestampWithHttpInfoAsync(timestamp, amount, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -8455,9 +8686,15 @@ namespace Tribufu.Api /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// 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)) + /// Task of ApiResponse (List<string>) + public async System.Threading.Tasks.Task>> GenerateFlakeIdFromTimestampWithHttpInfoAsync(string timestamp, int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'timestamp' is set + if (timestamp == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'timestamp' when calling TribufuGeneratedApi->GenerateFlakeIdFromTimestamp"); + } + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -8490,9 +8727,14 @@ 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) { @@ -8565,6 +8807,11 @@ 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); @@ -8641,6 +8888,11 @@ 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); @@ -8664,10 +8916,10 @@ namespace Tribufu.Api /// (optional) /// (optional) /// Index associated with the operation. - /// List<string> - public List GenerateUuid(int? version = default(int?), int? amount = default(int?), int operationIndex = 0) + /// List<Guid> + 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; } @@ -8678,8 +8930,8 @@ namespace Tribufu.Api /// (optional) /// (optional) /// Index associated with the operation. - /// ApiResponse of List<string> - public Tribufu.Client.ApiResponse> GenerateUuidWithHttpInfo(int? version = default(int?), int? amount = default(int?), int operationIndex = 0) + /// ApiResponse of List<Guid> + public Tribufu.Client.ApiResponse> GenerateUuidWithHttpInfo(int? version = default(int?), int? amount = default(int?), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -8716,9 +8968,14 @@ 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); @@ -8739,10 +8996,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> GenerateUuidAsync(int? version = default(int?), int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of List<Guid> + public async System.Threading.Tasks.Task> GenerateUuidAsync(int? version = default(int?), int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Tribufu.Client.ApiResponse> localVarResponse = await GenerateUuidWithHttpInfoAsync(version, amount, operationIndex, cancellationToken).ConfigureAwait(false); + Tribufu.Client.ApiResponse> localVarResponse = await GenerateUuidWithHttpInfoAsync(version, amount, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -8754,8 +9011,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>> 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<Guid>) + public async System.Threading.Tasks.Task>> GenerateUuidWithHttpInfoAsync(int? version = default(int?), int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); @@ -8792,9 +9049,14 @@ 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) { @@ -8864,6 +9126,11 @@ 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); @@ -8937,6 +9204,11 @@ 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); @@ -9000,6 +9272,11 @@ 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); @@ -9064,6 +9341,11 @@ 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); @@ -9145,6 +9427,11 @@ 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); @@ -9227,6 +9514,11 @@ 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); @@ -9290,6 +9582,11 @@ 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); @@ -9354,6 +9651,11 @@ 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); @@ -9426,6 +9728,11 @@ 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); @@ -9499,6 +9806,11 @@ 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); @@ -9574,6 +9886,11 @@ 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); @@ -9650,6 +9967,11 @@ 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); @@ -9727,6 +10049,11 @@ 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); @@ -9805,6 +10132,11 @@ 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); @@ -9877,6 +10209,11 @@ 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); @@ -9950,6 +10287,11 @@ 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); @@ -10024,6 +10366,11 @@ 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); @@ -10099,6 +10446,11 @@ 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); @@ -10171,6 +10523,11 @@ 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); @@ -10244,6 +10601,11 @@ 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); @@ -10318,6 +10680,11 @@ 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); @@ -10393,6 +10760,11 @@ 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); @@ -10477,6 +10849,11 @@ 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); @@ -10562,6 +10939,11 @@ 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); @@ -10648,6 +11030,11 @@ 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); @@ -10735,6 +11122,11 @@ 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); @@ -10810,6 +11202,11 @@ 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); @@ -10886,6 +11283,11 @@ 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); @@ -10963,6 +11365,11 @@ 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); @@ -11041,6 +11448,11 @@ 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); @@ -11125,6 +11537,11 @@ 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); @@ -11210,6 +11627,11 @@ 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); @@ -11296,6 +11718,11 @@ 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); @@ -11383,6 +11810,11 @@ 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); @@ -11482,6 +11914,11 @@ 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); @@ -11582,6 +12019,11 @@ 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); @@ -11666,6 +12108,11 @@ 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); @@ -11751,6 +12198,11 @@ 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); @@ -11837,6 +12289,11 @@ 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); @@ -11924,6 +12381,11 @@ 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); @@ -11987,6 +12449,11 @@ 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); @@ -12051,6 +12518,11 @@ 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); @@ -12116,6 +12588,11 @@ 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); @@ -12182,6 +12659,11 @@ 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); @@ -12245,6 +12727,11 @@ 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); @@ -12309,6 +12796,11 @@ 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); @@ -12374,6 +12866,11 @@ 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); @@ -12440,6 +12937,11 @@ 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); @@ -12541,6 +13043,11 @@ 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); @@ -12643,6 +13150,11 @@ 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); @@ -12718,6 +13230,11 @@ 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); @@ -12794,6 +13311,11 @@ 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); @@ -12866,6 +13388,11 @@ 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); @@ -12939,6 +13466,11 @@ 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); @@ -13011,6 +13543,11 @@ 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); @@ -13084,6 +13621,11 @@ 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); @@ -13107,7 +13649,7 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// Group - public Group GetGroupByUuid(string uuid, int operationIndex = 0) + public Group GetGroupByUuid(Guid uuid, int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = GetGroupByUuidWithHttpInfo(uuid); return localVarResponse.Data; @@ -13120,14 +13662,8 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// ApiResponse of Group - public Tribufu.Client.ApiResponse GetGroupByUuidWithHttpInfo(string uuid, int operationIndex = 0) + public Tribufu.Client.ApiResponse GetGroupByUuidWithHttpInfo(Guid 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[] { @@ -13156,6 +13692,11 @@ 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); @@ -13179,7 +13720,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(string uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetGroupByUuidAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await GetGroupByUuidWithHttpInfoAsync(uuid, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -13193,14 +13734,8 @@ 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(string uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetGroupByUuidWithHttpInfoAsync(Guid 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(); @@ -13229,6 +13764,11 @@ 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); @@ -13301,6 +13841,11 @@ 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); @@ -13374,6 +13919,11 @@ 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); @@ -13448,6 +13998,11 @@ 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); @@ -13523,6 +14078,11 @@ 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); @@ -13598,6 +14158,11 @@ 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); @@ -13674,6 +14239,11 @@ 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); @@ -13746,6 +14316,11 @@ 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); @@ -13819,6 +14394,11 @@ 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); @@ -13900,6 +14480,11 @@ 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); @@ -13982,6 +14567,11 @@ 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); @@ -14051,6 +14641,11 @@ 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); @@ -14121,6 +14716,11 @@ 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); @@ -14193,6 +14793,11 @@ 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); @@ -14266,6 +14871,11 @@ 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); @@ -14341,6 +14951,11 @@ 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); @@ -14417,6 +15032,11 @@ 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); @@ -14489,6 +15109,11 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetProductById"; localVarRequestOptions.OperationIndex = operationIndex; + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } // make the HTTP request var localVarResponse = this.Client.Get("/v1/products/{id}", localVarRequestOptions, this.Configuration); @@ -14562,6 +15187,11 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetProductById"; localVarRequestOptions.OperationIndex = operationIndex; + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/products/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -14637,6 +15267,11 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetProducts"; localVarRequestOptions.OperationIndex = operationIndex; + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/products", localVarRequestOptions, this.Configuration); @@ -14713,6 +15348,11 @@ namespace Tribufu.Api localVarRequestOptions.Operation = "TribufuGeneratedApi.GetProducts"; localVarRequestOptions.OperationIndex = operationIndex; + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/products", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); @@ -14774,6 +15414,11 @@ 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); @@ -14836,6 +15481,11 @@ 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); @@ -14858,10 +15508,10 @@ namespace Tribufu.Api /// Thrown when fails to make API call /// /// Index associated with the operation. - /// List<ExternalAccount> - public List GetUserAccounts(string id, int operationIndex = 0) + /// List<Account> + public List GetUserAccounts(string id, int operationIndex = 0) { - Tribufu.Client.ApiResponse> localVarResponse = GetUserAccountsWithHttpInfo(id); + Tribufu.Client.ApiResponse> localVarResponse = GetUserAccountsWithHttpInfo(id); return localVarResponse.Data; } @@ -14871,8 +15521,8 @@ namespace Tribufu.Api /// Thrown when fails to make API call /// /// Index associated with the operation. - /// ApiResponse of List<ExternalAccount> - public Tribufu.Client.ApiResponse> GetUserAccountsWithHttpInfo(string id, int operationIndex = 0) + /// ApiResponse of List<Account> + public Tribufu.Client.ApiResponse> GetUserAccountsWithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) @@ -14908,9 +15558,14 @@ 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); @@ -14930,10 +15585,10 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// 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)) + /// Task of List<Account> + public async System.Threading.Tasks.Task> GetUserAccountsAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Tribufu.Client.ApiResponse> localVarResponse = await GetUserAccountsWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + Tribufu.Client.ApiResponse> localVarResponse = await GetUserAccountsWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -14944,8 +15599,8 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// 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)) + /// Task of ApiResponse (List<Account>) + public async System.Threading.Tasks.Task>> GetUserAccountsWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -14981,9 +15636,14 @@ 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) { @@ -15053,6 +15713,11 @@ 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); @@ -15126,6 +15791,11 @@ 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); @@ -15200,6 +15870,11 @@ 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); @@ -15275,6 +15950,11 @@ 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); @@ -15347,6 +16027,11 @@ 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); @@ -15420,6 +16105,11 @@ 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); @@ -15494,6 +16184,11 @@ 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); @@ -15569,6 +16264,11 @@ 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); @@ -15641,6 +16341,11 @@ 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); @@ -15714,6 +16419,11 @@ 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); @@ -15788,6 +16498,11 @@ 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); @@ -15863,6 +16578,11 @@ 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); @@ -15926,6 +16646,11 @@ 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); @@ -15990,6 +16715,11 @@ 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); @@ -16062,6 +16792,11 @@ 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); @@ -16135,6 +16870,11 @@ 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); @@ -16209,6 +16949,11 @@ 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); @@ -16284,6 +17029,11 @@ 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); @@ -16356,6 +17106,11 @@ 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); @@ -16429,6 +17184,11 @@ 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); @@ -16503,6 +17263,11 @@ 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); @@ -16578,6 +17343,11 @@ 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); @@ -16601,7 +17371,7 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// Profile - public Profile GetUserProfileByUuid(string uuid, int operationIndex = 0) + public Profile GetUserProfileByUuid(Guid uuid, int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = GetUserProfileByUuidWithHttpInfo(uuid); return localVarResponse.Data; @@ -16614,14 +17384,8 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// ApiResponse of Profile - public Tribufu.Client.ApiResponse GetUserProfileByUuidWithHttpInfo(string uuid, int operationIndex = 0) + public Tribufu.Client.ApiResponse GetUserProfileByUuidWithHttpInfo(Guid 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[] { @@ -16650,6 +17414,11 @@ 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); @@ -16673,7 +17442,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(string uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetUserProfileByUuidAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await GetUserProfileByUuidWithHttpInfoAsync(uuid, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -16687,14 +17456,8 @@ 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(string uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetUserProfileByUuidWithHttpInfoAsync(Guid 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(); @@ -16723,6 +17486,11 @@ 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); @@ -16747,7 +17515,7 @@ namespace Tribufu.Api /// Index associated with the operation. /// Profile [Obsolete] - public Profile GetUserProfileByUuidV1(string uuid, int operationIndex = 0) + public Profile GetUserProfileByUuidV1(Guid uuid, int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = GetUserProfileByUuidV1WithHttpInfo(uuid); return localVarResponse.Data; @@ -16761,14 +17529,8 @@ namespace Tribufu.Api /// Index associated with the operation. /// ApiResponse of Profile [Obsolete] - public Tribufu.Client.ApiResponse GetUserProfileByUuidV1WithHttpInfo(string uuid, int operationIndex = 0) + public Tribufu.Client.ApiResponse GetUserProfileByUuidV1WithHttpInfo(Guid 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[] { @@ -16797,6 +17559,11 @@ 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); @@ -16821,7 +17588,7 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of Profile [Obsolete] - public async System.Threading.Tasks.Task GetUserProfileByUuidV1Async(string uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetUserProfileByUuidV1Async(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await GetUserProfileByUuidV1WithHttpInfoAsync(uuid, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -16836,14 +17603,8 @@ namespace Tribufu.Api /// Cancellation Token to cancel the request. /// Task of ApiResponse (Profile) [Obsolete] - public async System.Threading.Tasks.Task> GetUserProfileByUuidV1WithHttpInfoAsync(string uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetUserProfileByUuidV1WithHttpInfoAsync(Guid 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(); @@ -16872,6 +17633,11 @@ 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); @@ -16947,6 +17713,11 @@ 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); @@ -17023,6 +17794,11 @@ 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); @@ -17100,6 +17876,11 @@ 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); @@ -17178,6 +17959,11 @@ 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); @@ -17250,6 +18036,11 @@ 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); @@ -17323,6 +18114,11 @@ 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); @@ -17397,6 +18193,11 @@ 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); @@ -17472,6 +18273,11 @@ 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); @@ -17556,6 +18362,11 @@ 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); @@ -17641,6 +18452,11 @@ 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); @@ -17727,6 +18543,11 @@ 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); @@ -17814,6 +18635,11 @@ 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); @@ -17881,6 +18707,11 @@ 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); @@ -17949,6 +18780,11 @@ 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); @@ -18016,6 +18852,11 @@ 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); @@ -18084,6 +18925,11 @@ 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); @@ -18151,6 +18997,11 @@ 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); @@ -18219,6 +19070,11 @@ 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); @@ -18286,6 +19142,11 @@ 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); @@ -18354,6 +19215,11 @@ 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); @@ -18422,6 +19288,11 @@ 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); @@ -18491,6 +19362,11 @@ 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); @@ -18557,6 +19433,11 @@ 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); @@ -18624,6 +19505,11 @@ 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); @@ -18691,6 +19577,11 @@ 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); @@ -18759,6 +19650,11 @@ 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); @@ -18833,6 +19729,11 @@ 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); @@ -18908,6 +19809,11 @@ 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); @@ -18982,6 +19888,11 @@ 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); @@ -19057,6 +19968,11 @@ 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); @@ -19131,6 +20047,11 @@ 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); @@ -19206,6 +20127,11 @@ 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); @@ -19282,6 +20208,11 @@ 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); @@ -19359,6 +20290,11 @@ 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); @@ -19435,6 +20371,11 @@ 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); @@ -19512,6 +20453,11 @@ 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); @@ -19586,6 +20532,11 @@ 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); @@ -19661,6 +20612,11 @@ 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); @@ -19735,6 +20691,11 @@ 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); @@ -19810,6 +20771,11 @@ 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); @@ -19886,6 +20852,11 @@ 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); @@ -19963,6 +20934,11 @@ 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); @@ -20041,6 +21017,11 @@ 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); @@ -20120,6 +21101,11 @@ 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/Source/Tribufu/Client/ApiClient.cs b/src/Tribufu/Client/ApiClient.cs similarity index 99% rename from Source/Tribufu/Client/ApiClient.cs rename to src/Tribufu/Client/ApiClient.cs index 6e8b67c..c259f8e 100644 --- a/Source/Tribufu/Client/ApiClient.cs +++ b/src/Tribufu/Client/ApiClient.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Client/ApiException.cs b/src/Tribufu/Client/ApiException.cs similarity index 97% rename from Source/Tribufu/Client/ApiException.cs rename to src/Tribufu/Client/ApiException.cs index 496d053..711d390 100644 --- a/Source/Tribufu/Client/ApiException.cs +++ b/src/Tribufu/Client/ApiException.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Client/ApiResponse.cs b/src/Tribufu/Client/ApiResponse.cs similarity index 99% rename from Source/Tribufu/Client/ApiResponse.cs rename to src/Tribufu/Client/ApiResponse.cs index b335d0a..cd8b08c 100644 --- a/Source/Tribufu/Client/ApiResponse.cs +++ b/src/Tribufu/Client/ApiResponse.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Client/ClientUtils.cs b/src/Tribufu/Client/ClientUtils.cs similarity index 99% rename from Source/Tribufu/Client/ClientUtils.cs rename to src/Tribufu/Client/ClientUtils.cs index a4a40ac..1063213 100644 --- a/Source/Tribufu/Client/ClientUtils.cs +++ b/src/Tribufu/Client/ClientUtils.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Client/Configuration.cs b/src/Tribufu/Client/Configuration.cs similarity index 99% rename from Source/Tribufu/Client/Configuration.cs rename to src/Tribufu/Client/Configuration.cs index bea1d2d..c3c4843 100644 --- a/Source/Tribufu/Client/Configuration.cs +++ b/src/Tribufu/Client/Configuration.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -540,7 +540,7 @@ namespace Tribufu.Client string report = "C# SDK (Tribufu) Debug Report:\n"; report += " OS: " + System.Environment.OSVersion + "\n"; report += " .NET Framework Version: " + System.Environment.Version + "\n"; - report += " Version of the API: 1.4.3\n"; + report += " Version of the API: 1.3.0\n"; report += " SDK Package Version: 1.0.0\n"; return report; diff --git a/Source/Tribufu/Client/ExceptionFactory.cs b/src/Tribufu/Client/ExceptionFactory.cs similarity index 91% rename from Source/Tribufu/Client/ExceptionFactory.cs rename to src/Tribufu/Client/ExceptionFactory.cs index 64d31e7..34364a1 100644 --- a/Source/Tribufu/Client/ExceptionFactory.cs +++ b/src/Tribufu/Client/ExceptionFactory.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Client/GlobalConfiguration.cs b/src/Tribufu/Client/GlobalConfiguration.cs similarity index 97% rename from Source/Tribufu/Client/GlobalConfiguration.cs rename to src/Tribufu/Client/GlobalConfiguration.cs index 21a4195..ff0141b 100644 --- a/Source/Tribufu/Client/GlobalConfiguration.cs +++ b/src/Tribufu/Client/GlobalConfiguration.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Client/HttpMethod.cs b/src/Tribufu/Client/HttpMethod.cs similarity index 94% rename from Source/Tribufu/Client/HttpMethod.cs rename to src/Tribufu/Client/HttpMethod.cs index 7df4f3a..ba76475 100644 --- a/Source/Tribufu/Client/HttpMethod.cs +++ b/src/Tribufu/Client/HttpMethod.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Client/IApiAccessor.cs b/src/Tribufu/Client/IApiAccessor.cs similarity index 95% rename from Source/Tribufu/Client/IApiAccessor.cs rename to src/Tribufu/Client/IApiAccessor.cs index 7447d6a..33aa55a 100644 --- a/Source/Tribufu/Client/IApiAccessor.cs +++ b/src/Tribufu/Client/IApiAccessor.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Client/IAsynchronousClient.cs b/src/Tribufu/Client/IAsynchronousClient.cs similarity index 99% rename from Source/Tribufu/Client/IAsynchronousClient.cs rename to src/Tribufu/Client/IAsynchronousClient.cs index 429cbaa..da592c5 100644 --- a/Source/Tribufu/Client/IAsynchronousClient.cs +++ b/src/Tribufu/Client/IAsynchronousClient.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Client/IReadableConfiguration.cs b/src/Tribufu/Client/IReadableConfiguration.cs similarity index 98% rename from Source/Tribufu/Client/IReadableConfiguration.cs rename to src/Tribufu/Client/IReadableConfiguration.cs index fba571c..7744557 100644 --- a/Source/Tribufu/Client/IReadableConfiguration.cs +++ b/src/Tribufu/Client/IReadableConfiguration.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Client/ISynchronousClient.cs b/src/Tribufu/Client/ISynchronousClient.cs similarity index 99% rename from Source/Tribufu/Client/ISynchronousClient.cs rename to src/Tribufu/Client/ISynchronousClient.cs index a1cfb4f..c9445ae 100644 --- a/Source/Tribufu/Client/ISynchronousClient.cs +++ b/src/Tribufu/Client/ISynchronousClient.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Client/Multimap.cs b/src/Tribufu/Client/Multimap.cs similarity index 99% rename from Source/Tribufu/Client/Multimap.cs rename to src/Tribufu/Client/Multimap.cs index a83d159..00a8a45 100644 --- a/Source/Tribufu/Client/Multimap.cs +++ b/src/Tribufu/Client/Multimap.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Client/OpenAPIDateConverter.cs b/src/Tribufu/Client/OpenAPIDateConverter.cs similarity index 94% rename from Source/Tribufu/Client/OpenAPIDateConverter.cs rename to src/Tribufu/Client/OpenAPIDateConverter.cs index 4452f49..1391b28 100644 --- a/Source/Tribufu/Client/OpenAPIDateConverter.cs +++ b/src/Tribufu/Client/OpenAPIDateConverter.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Client/RequestOptions.cs b/src/Tribufu/Client/RequestOptions.cs similarity index 98% rename from Source/Tribufu/Client/RequestOptions.cs rename to src/Tribufu/Client/RequestOptions.cs index 2a7cc7a..81d1f51 100644 --- a/Source/Tribufu/Client/RequestOptions.cs +++ b/src/Tribufu/Client/RequestOptions.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Client/RetryConfiguration.cs b/src/Tribufu/Client/RetryConfiguration.cs similarity index 93% rename from Source/Tribufu/Client/RetryConfiguration.cs rename to src/Tribufu/Client/RetryConfiguration.cs index c7604ca..7b711fe 100644 --- a/Source/Tribufu/Client/RetryConfiguration.cs +++ b/src/Tribufu/Client/RetryConfiguration.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Model/AbstractOpenAPISchema.cs b/src/Tribufu/Model/AbstractOpenAPISchema.cs similarity index 98% rename from Source/Tribufu/Model/AbstractOpenAPISchema.cs rename to src/Tribufu/Model/AbstractOpenAPISchema.cs index 0a5ee40..a282223 100644 --- a/Source/Tribufu/Model/AbstractOpenAPISchema.cs +++ b/src/Tribufu/Model/AbstractOpenAPISchema.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Model/ExternalAccount.cs b/src/Tribufu/Model/Account.cs similarity index 54% rename from Source/Tribufu/Model/ExternalAccount.cs rename to src/Tribufu/Model/Account.cs index f24245b..91b4c34 100644 --- a/Source/Tribufu/Model/ExternalAccount.cs +++ b/src/Tribufu/Model/Account.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,63 +27,55 @@ using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; namespace Tribufu.Model { /// - /// ExternalAccount + /// Account /// - [DataContract(Name = "ExternalAccount")] - public partial class ExternalAccount : IValidatableObject + [DataContract(Name = "Account")] + public partial class Account : IValidatableObject { /// /// Gets or Sets Provider /// [DataMember(Name = "provider", IsRequired = true, EmitDefaultValue = true)] - public IdentityProviderType Provider { get; set; } + public LoginProvider Provider { get; set; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected ExternalAccount() { } + protected Account() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// userId. - /// provider (required). - /// externalId (required). + /// id (required). /// name. + /// provider (required). + /// userId. /// authorized. /// fields. - /// createdAt. - /// updatedAt. - /// deletedAt. - public ExternalAccount(string userId = default(string), IdentityProviderType provider = default(IdentityProviderType), string externalId = default(string), string name = default(string), bool authorized = default(bool), Dictionary fields = default(Dictionary), DateTime createdAt = default(DateTime), DateTime? updatedAt = default(DateTime?), DateTime? deletedAt = default(DateTime?)) + /// 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?)) { - this.Provider = provider; - // to ensure "externalId" is required (not null) - if (externalId == null) + // to ensure "id" is required (not null) + if (id == null) { - throw new ArgumentNullException("externalId is a required property for ExternalAccount and cannot be null"); + throw new ArgumentNullException("id is a required property for Account and cannot be null"); } - this.ExternalId = externalId; - this.UserId = userId; + this.Id = id; + this.Provider = provider; this.Name = name; + this.UserId = userId; this.Authorized = authorized; this.Fields = fields; - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - this.DeletedAt = deletedAt; + this.Created = created; + this.Updated = updated; } /// - /// Gets or Sets UserId + /// Gets or Sets Id /// - [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; } + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public string Id { get; set; } /// /// Gets or Sets Name @@ -91,6 +83,12 @@ namespace Tribufu.Model [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } + /// + /// Gets or Sets UserId + /// + [DataMember(Name = "user_id", EmitDefaultValue = false)] + public string UserId { get; set; } + /// /// Gets or Sets Authorized /// @@ -101,25 +99,19 @@ namespace Tribufu.Model /// Gets or Sets Fields /// [DataMember(Name = "fields", EmitDefaultValue = true)] - public Dictionary Fields { get; set; } + public Object Fields { get; set; } /// - /// Gets or Sets CreatedAt + /// Gets or Sets Created /// - [DataMember(Name = "created_at", EmitDefaultValue = false)] - public DateTime CreatedAt { get; set; } + [DataMember(Name = "created", EmitDefaultValue = false)] + public DateTime Created { get; set; } /// - /// Gets or Sets UpdatedAt + /// Gets or Sets Updated /// - [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; } + [DataMember(Name = "updated", EmitDefaultValue = true)] + public DateTime? Updated { get; set; } /// /// Returns the string presentation of the object @@ -128,16 +120,15 @@ namespace Tribufu.Model public override string ToString() { StringBuilder sb = new StringBuilder(); - sb.Append("class ExternalAccount {\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" Provider: ").Append(Provider).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); + sb.Append("class Account {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Provider: ").Append(Provider).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); sb.Append(" Authorized: ").Append(Authorized).Append("\n"); sb.Append(" Fields: ").Append(Fields).Append("\n"); - sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); - sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n"); + sb.Append(" Created: ").Append(Created).Append("\n"); + sb.Append(" Updated: ").Append(Updated).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -158,18 +149,6 @@ 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/Source/Tribufu/Model/Application.cs b/src/Tribufu/Model/Application.cs similarity index 87% rename from Source/Tribufu/Model/Application.cs rename to src/Tribufu/Model/Application.cs index ec6e6b8..1d79518 100644 --- a/Source/Tribufu/Model/Application.cs +++ b/src/Tribufu/Model/Application.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -56,10 +56,9 @@ namespace Tribufu.Model /// capsuleImageUrl. /// libraryImageUrl. /// slug. - /// 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?)) + /// 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?)) { // to ensure "name" is required (not null) if (name == null) @@ -76,9 +75,8 @@ namespace Tribufu.Model this.CapsuleImageUrl = capsuleImageUrl; this.LibraryImageUrl = libraryImageUrl; this.Slug = slug; - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - this.DeletedAt = deletedAt; + this.Created = created; + this.Updated = updated; } /// @@ -102,7 +100,7 @@ namespace Tribufu.Model /// /// Gets or Sets OrganizationId /// - [DataMember(Name = "organization_id", EmitDefaultValue = false)] + [DataMember(Name = "organization_id", EmitDefaultValue = true)] public string OrganizationId { get; set; } /// @@ -136,22 +134,16 @@ namespace Tribufu.Model public string Slug { get; set; } /// - /// Gets or Sets CreatedAt + /// Gets or Sets Created /// - [DataMember(Name = "created_at", EmitDefaultValue = false)] - public DateTime CreatedAt { get; set; } + [DataMember(Name = "created", EmitDefaultValue = false)] + public DateTime Created { get; set; } /// - /// Gets or Sets UpdatedAt + /// Gets or Sets Updated /// - [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; } + [DataMember(Name = "updated", EmitDefaultValue = true)] + public DateTime? Updated { get; set; } /// /// Returns the string presentation of the object @@ -171,9 +163,8 @@ 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(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); - sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n"); + sb.Append(" Created: ").Append(Created).Append("\n"); + sb.Append(" Updated: ").Append(Updated).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/Source/Tribufu/Model/ApplicationType.cs b/src/Tribufu/Model/ApplicationType.cs similarity index 85% rename from Source/Tribufu/Model/ApplicationType.cs rename to src/Tribufu/Model/ApplicationType.cs index d3cd21f..2d2d38e 100644 --- a/Source/Tribufu/Model/ApplicationType.cs +++ b/src/Tribufu/Model/ApplicationType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,10 +33,10 @@ namespace Tribufu.Model public enum ApplicationType { /// - /// Enum Software for value: software + /// Enum Application for value: application /// - [EnumMember(Value = "software")] - Software, + [EnumMember(Value = "application")] + Application, /// /// Enum Game for value: game diff --git a/Source/Tribufu/Model/AuthorizeRequest.cs b/src/Tribufu/Model/AuthorizeRequest.cs similarity index 99% rename from Source/Tribufu/Model/AuthorizeRequest.cs rename to src/Tribufu/Model/AuthorizeRequest.cs index 6f9a8a3..0b32301 100644 --- a/Source/Tribufu/Model/AuthorizeRequest.cs +++ b/src/Tribufu/Model/AuthorizeRequest.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Model/ClientInfo.cs b/src/Tribufu/Model/ClientInfo.cs similarity index 98% rename from Source/Tribufu/Model/ClientInfo.cs rename to src/Tribufu/Model/ClientInfo.cs index 51a15f2..3072473 100644 --- a/Source/Tribufu/Model/ClientInfo.cs +++ b/src/Tribufu/Model/ClientInfo.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Model/ClientType.cs b/src/Tribufu/Model/ClientType.cs similarity index 96% rename from Source/Tribufu/Model/ClientType.cs rename to src/Tribufu/Model/ClientType.cs index b2acac7..ff5b51e 100644 --- a/Source/Tribufu/Model/ClientType.cs +++ b/src/Tribufu/Model/ClientType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Model/CodeChallengeMethod.cs b/src/Tribufu/Model/CodeChallengeMethod.cs similarity index 95% rename from Source/Tribufu/Model/CodeChallengeMethod.cs rename to src/Tribufu/Model/CodeChallengeMethod.cs index 6025fd8..3d9d8f7 100644 --- a/Source/Tribufu/Model/CodeChallengeMethod.cs +++ b/src/Tribufu/Model/CodeChallengeMethod.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Model/CodeResponse.cs b/src/Tribufu/Model/CodeResponse.cs similarity index 98% rename from Source/Tribufu/Model/CodeResponse.cs rename to src/Tribufu/Model/CodeResponse.cs index 4619640..04f8673 100644 --- a/Source/Tribufu/Model/CodeResponse.cs +++ b/src/Tribufu/Model/CodeResponse.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Model/CreateUser.cs b/src/Tribufu/Model/CreateUser.cs similarity index 94% rename from Source/Tribufu/Model/CreateUser.cs rename to src/Tribufu/Model/CreateUser.cs index c8acf12..f5ca14d 100644 --- a/Source/Tribufu/Model/CreateUser.cs +++ b/src/Tribufu/Model/CreateUser.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * 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(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)) + public CreateUser(Guid? uuid = default(Guid?), string name = default(string), string displayName = default(string), string email = default(string), string password = default(string), string language = default(string), string timezone = default(string), string currency = default(string), string ipAddress = default(string)) { // to ensure "name" is required (not null) if (name == null) @@ -70,8 +70,8 @@ namespace Tribufu.Model /// /// Gets or Sets Uuid /// - [DataMember(Name = "uuid", EmitDefaultValue = false)] - public string Uuid { get; set; } + [DataMember(Name = "uuid", EmitDefaultValue = true)] + public Guid? Uuid { get; set; } /// /// Gets or Sets Name diff --git a/Source/Tribufu/Model/CryptoViewModel.cs b/src/Tribufu/Model/CryptoViewModel.cs similarity index 98% rename from Source/Tribufu/Model/CryptoViewModel.cs rename to src/Tribufu/Model/CryptoViewModel.cs index 5b563a2..67a6248 100644 --- a/Source/Tribufu/Model/CryptoViewModel.cs +++ b/src/Tribufu/Model/CryptoViewModel.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Model/Game.cs b/src/Tribufu/Model/Game.cs similarity index 88% rename from Source/Tribufu/Model/Game.cs rename to src/Tribufu/Model/Game.cs index 638a09e..922373d 100644 --- a/Source/Tribufu/Model/Game.cs +++ b/src/Tribufu/Model/Game.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -56,9 +56,8 @@ namespace Tribufu.Model /// capsuleImageUrl. /// libraryImageUrl. /// slug. - /// createdAt. - /// updatedAt. - /// deletedAt. + /// created. + /// updated. /// enableServers. /// gamePort. /// queryPort. @@ -66,7 +65,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 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?)) + 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?)) { // to ensure "name" is required (not null) if (name == null) @@ -83,9 +82,8 @@ namespace Tribufu.Model this.CapsuleImageUrl = capsuleImageUrl; this.LibraryImageUrl = libraryImageUrl; this.Slug = slug; - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - this.DeletedAt = deletedAt; + this.Created = created; + this.Updated = updated; this.EnableServers = enableServers; this.GamePort = gamePort; this.QueryPort = queryPort; @@ -116,7 +114,7 @@ namespace Tribufu.Model /// /// Gets or Sets OrganizationId /// - [DataMember(Name = "organization_id", EmitDefaultValue = false)] + [DataMember(Name = "organization_id", EmitDefaultValue = true)] public string OrganizationId { get; set; } /// @@ -150,22 +148,16 @@ namespace Tribufu.Model public string Slug { get; set; } /// - /// Gets or Sets CreatedAt + /// Gets or Sets Created /// - [DataMember(Name = "created_at", EmitDefaultValue = false)] - public DateTime CreatedAt { get; set; } + [DataMember(Name = "created", EmitDefaultValue = false)] + public DateTime Created { get; set; } /// - /// Gets or Sets UpdatedAt + /// Gets or Sets Updated /// - [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; } + [DataMember(Name = "updated", EmitDefaultValue = true)] + public DateTime? Updated { get; set; } /// /// Gets or Sets EnableServers @@ -227,9 +219,8 @@ 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(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); - sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n"); + sb.Append(" Created: ").Append(Created).Append("\n"); + sb.Append(" Updated: ").Append(Updated).Append("\n"); sb.Append(" EnableServers: ").Append(EnableServers).Append("\n"); sb.Append(" GamePort: ").Append(GamePort).Append("\n"); sb.Append(" QueryPort: ").Append(QueryPort).Append("\n"); diff --git a/Source/Tribufu/Model/GameServer.cs b/src/Tribufu/Model/GameServer.cs similarity index 89% rename from Source/Tribufu/Model/GameServer.cs rename to src/Tribufu/Model/GameServer.cs index 283a689..a740f22 100644 --- a/Source/Tribufu/Model/GameServer.cs +++ b/src/Tribufu/Model/GameServer.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -59,10 +59,9 @@ namespace Tribufu.Model /// steam. /// discordServerId. /// youtubeVideoUrl. - /// 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?)) + /// 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?)) { // to ensure "name" is required (not null) if (name == null) @@ -93,9 +92,8 @@ namespace Tribufu.Model this.Steam = steam; this.DiscordServerId = discordServerId; this.YoutubeVideoUrl = youtubeVideoUrl; - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - this.DeletedAt = deletedAt; + this.Created = created; + this.Updated = updated; } /// @@ -119,7 +117,7 @@ namespace Tribufu.Model /// /// Gets or Sets OwnerId /// - [DataMember(Name = "owner_id", EmitDefaultValue = false)] + [DataMember(Name = "owner_id", EmitDefaultValue = true)] public string OwnerId { get; set; } /// @@ -167,7 +165,7 @@ namespace Tribufu.Model /// /// Gets or Sets ClusterId /// - [DataMember(Name = "cluster_id", EmitDefaultValue = false)] + [DataMember(Name = "cluster_id", EmitDefaultValue = true)] public string ClusterId { get; set; } /// @@ -204,7 +202,7 @@ namespace Tribufu.Model /// Gets or Sets DiscordServerId /// [DataMember(Name = "discord_server_id", EmitDefaultValue = true)] - public long? DiscordServerId { get; set; } + public string DiscordServerId { get; set; } /// /// Gets or Sets YoutubeVideoUrl @@ -213,22 +211,16 @@ namespace Tribufu.Model public string YoutubeVideoUrl { get; set; } /// - /// Gets or Sets CreatedAt + /// Gets or Sets Created /// - [DataMember(Name = "created_at", EmitDefaultValue = false)] - public DateTime CreatedAt { get; set; } + [DataMember(Name = "created", EmitDefaultValue = false)] + public DateTime Created { get; set; } /// - /// Gets or Sets UpdatedAt + /// Gets or Sets Updated /// - [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; } + [DataMember(Name = "updated", EmitDefaultValue = true)] + public DateTime? Updated { get; set; } /// /// Returns the string presentation of the object @@ -257,9 +249,8 @@ 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(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); - sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n"); + sb.Append(" Created: ").Append(Created).Append("\n"); + sb.Append(" Updated: ").Append(Updated).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/Source/Tribufu/Model/GameServerCluster.cs b/src/Tribufu/Model/GameServerCluster.cs similarity index 85% rename from Source/Tribufu/Model/GameServerCluster.cs rename to src/Tribufu/Model/GameServerCluster.cs index 8c93d83..6f27de9 100644 --- a/Source/Tribufu/Model/GameServerCluster.cs +++ b/src/Tribufu/Model/GameServerCluster.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -52,10 +52,9 @@ namespace Tribufu.Model /// tags. /// commentCount. /// serverCount. - /// 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?)) + /// 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?)) { // to ensure "name" is required (not null) if (name == null) @@ -74,9 +73,8 @@ namespace Tribufu.Model this.Tags = tags; this.CommentCount = commentCount; this.ServerCount = serverCount; - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - this.DeletedAt = deletedAt; + this.Created = created; + this.Updated = updated; } /// @@ -125,7 +123,7 @@ namespace Tribufu.Model /// Gets or Sets DiscordServerId /// [DataMember(Name = "discord_server_id", EmitDefaultValue = true)] - public long? DiscordServerId { get; set; } + public string DiscordServerId { get; set; } /// /// Gets or Sets YoutubeVideoUrl @@ -152,22 +150,16 @@ namespace Tribufu.Model public int ServerCount { get; set; } /// - /// Gets or Sets CreatedAt + /// Gets or Sets Created /// - [DataMember(Name = "created_at", EmitDefaultValue = false)] - public DateTime CreatedAt { get; set; } + [DataMember(Name = "created", EmitDefaultValue = false)] + public DateTime Created { get; set; } /// - /// Gets or Sets UpdatedAt + /// Gets or Sets Updated /// - [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; } + [DataMember(Name = "updated", EmitDefaultValue = true)] + public DateTime? Updated { get; set; } /// /// Returns the string presentation of the object @@ -189,9 +181,8 @@ 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(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); - sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n"); + sb.Append(" Created: ").Append(Created).Append("\n"); + sb.Append(" Updated: ").Append(Updated).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/Source/Tribufu/Model/GameServerQuery.cs b/src/Tribufu/Model/GameServerQuery.cs similarity index 92% rename from Source/Tribufu/Model/GameServerQuery.cs rename to src/Tribufu/Model/GameServerQuery.cs index 1b31d4d..f15549d 100644 --- a/Source/Tribufu/Model/GameServerQuery.cs +++ b/src/Tribufu/Model/GameServerQuery.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -48,8 +48,8 @@ namespace Tribufu.Model /// currentPlayers. /// maxPlayers. /// motd. - /// 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)) + /// created. + public GameServerQuery(string id = default(string), string serverId = default(string), GameServerStatus? status = default(GameServerStatus?), int ping = default(int), int currentPlayers = default(int), int maxPlayers = default(int), string motd = default(string), DateTime created = default(DateTime)) { this.Id = id; this.ServerId = serverId; @@ -58,7 +58,7 @@ namespace Tribufu.Model this.CurrentPlayers = currentPlayers; this.MaxPlayers = maxPlayers; this.Motd = motd; - this.CreatedAt = createdAt; + this.Created = created; } /// @@ -98,10 +98,10 @@ namespace Tribufu.Model public string Motd { get; set; } /// - /// Gets or Sets CreatedAt + /// Gets or Sets Created /// - [DataMember(Name = "created_at", EmitDefaultValue = false)] - public DateTime CreatedAt { get; set; } + [DataMember(Name = "created", EmitDefaultValue = false)] + public DateTime Created { 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(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Created: ").Append(Created).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/Source/Tribufu/Model/GameServerStatus.cs b/src/Tribufu/Model/GameServerStatus.cs similarity index 96% rename from Source/Tribufu/Model/GameServerStatus.cs rename to src/Tribufu/Model/GameServerStatus.cs index 35648e5..aa74bea 100644 --- a/Source/Tribufu/Model/GameServerStatus.cs +++ b/src/Tribufu/Model/GameServerStatus.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Model/GrantType.cs b/src/Tribufu/Model/GrantType.cs similarity index 96% rename from Source/Tribufu/Model/GrantType.cs rename to src/Tribufu/Model/GrantType.cs index d371edc..02ee64f 100644 --- a/Source/Tribufu/Model/GrantType.cs +++ b/src/Tribufu/Model/GrantType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Model/Group.cs b/src/Tribufu/Model/Group.cs similarity index 81% rename from Source/Tribufu/Model/Group.cs rename to src/Tribufu/Model/Group.cs index 474f9ad..fad9de6 100644 --- a/Source/Tribufu/Model/Group.cs +++ b/src/Tribufu/Model/Group.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -54,10 +54,9 @@ namespace Tribufu.Model /// memberCount. /// followerCount. /// viewCount. - /// 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?)) + /// 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?)) { // to ensure "name" is required (not null) if (name == null) @@ -78,9 +77,8 @@ namespace Tribufu.Model this.MemberCount = memberCount; this.FollowerCount = followerCount; this.ViewCount = viewCount; - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - this.DeletedAt = deletedAt; + this.Created = created; + this.Updated = updated; } /// @@ -93,7 +91,7 @@ namespace Tribufu.Model /// Gets or Sets Uuid /// [DataMember(Name = "uuid", EmitDefaultValue = false)] - public string Uuid { get; set; } + public Guid Uuid { get; set; } /// /// Gets or Sets Name @@ -168,22 +166,16 @@ namespace Tribufu.Model public int ViewCount { get; set; } /// - /// Gets or Sets CreatedAt + /// Gets or Sets Created /// - [DataMember(Name = "created_at", EmitDefaultValue = false)] - public DateTime CreatedAt { get; set; } + [DataMember(Name = "created", EmitDefaultValue = false)] + public DateTime Created { get; set; } /// - /// Gets or Sets UpdatedAt + /// Gets or Sets Updated /// - [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; } + [DataMember(Name = "updated", EmitDefaultValue = true)] + public DateTime? Updated { get; set; } /// /// Returns the string presentation of the object @@ -207,9 +199,8 @@ 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(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); - sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n"); + sb.Append(" Created: ").Append(Created).Append("\n"); + sb.Append(" Updated: ").Append(Updated).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/Source/Tribufu/Model/GroupApplication.cs b/src/Tribufu/Model/GroupApplication.cs similarity index 99% rename from Source/Tribufu/Model/GroupApplication.cs rename to src/Tribufu/Model/GroupApplication.cs index 50011a4..b3bb03e 100644 --- a/Source/Tribufu/Model/GroupApplication.cs +++ b/src/Tribufu/Model/GroupApplication.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Model/GroupMember.cs b/src/Tribufu/Model/GroupMember.cs similarity index 74% rename from Source/Tribufu/Model/GroupMember.cs rename to src/Tribufu/Model/GroupMember.cs index dc7c3e0..712d109 100644 --- a/Source/Tribufu/Model/GroupMember.cs +++ b/src/Tribufu/Model/GroupMember.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -42,17 +42,23 @@ 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), string name = default(string), string displayName = default(string), string photoUrl = default(string), GroupRank? rank = default(GroupRank?), DateTime since = default(DateTime)) + 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)) { 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; } @@ -63,6 +69,12 @@ 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 /// @@ -75,12 +87,24 @@ 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 /// @@ -96,9 +120,12 @@ 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/Source/Tribufu/Model/GroupRank.cs b/src/Tribufu/Model/GroupRank.cs similarity index 96% rename from Source/Tribufu/Model/GroupRank.cs rename to src/Tribufu/Model/GroupRank.cs index fd13361..8df4b81 100644 --- a/Source/Tribufu/Model/GroupRank.cs +++ b/src/Tribufu/Model/GroupRank.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Model/HashViewModel.cs b/src/Tribufu/Model/HashViewModel.cs similarity index 98% rename from Source/Tribufu/Model/HashViewModel.cs rename to src/Tribufu/Model/HashViewModel.cs index 3879813..89cc955 100644 --- a/Source/Tribufu/Model/HashViewModel.cs +++ b/src/Tribufu/Model/HashViewModel.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Model/IntrospectRequest.cs b/src/Tribufu/Model/IntrospectRequest.cs similarity index 98% rename from Source/Tribufu/Model/IntrospectRequest.cs rename to src/Tribufu/Model/IntrospectRequest.cs index b5dc838..0b5b3ad 100644 --- a/Source/Tribufu/Model/IntrospectRequest.cs +++ b/src/Tribufu/Model/IntrospectRequest.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Model/IntrospectResponse.cs b/src/Tribufu/Model/IntrospectResponse.cs similarity index 99% rename from Source/Tribufu/Model/IntrospectResponse.cs rename to src/Tribufu/Model/IntrospectResponse.cs index 27e0482..efc09af 100644 --- a/Source/Tribufu/Model/IntrospectResponse.cs +++ b/src/Tribufu/Model/IntrospectResponse.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Model/IpAddress.cs b/src/Tribufu/Model/IpAddress.cs similarity index 99% rename from Source/Tribufu/Model/IpAddress.cs rename to src/Tribufu/Model/IpAddress.cs index 1aaafa4..ae097f1 100644 --- a/Source/Tribufu/Model/IpAddress.cs +++ b/src/Tribufu/Model/IpAddress.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Model/LeaderboardItem.cs b/src/Tribufu/Model/LeaderboardItem.cs similarity index 98% rename from Source/Tribufu/Model/LeaderboardItem.cs rename to src/Tribufu/Model/LeaderboardItem.cs index 0222cb9..f57f8f9 100644 --- a/Source/Tribufu/Model/LeaderboardItem.cs +++ b/src/Tribufu/Model/LeaderboardItem.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Model/LeaderboardOrder.cs b/src/Tribufu/Model/LeaderboardOrder.cs similarity index 95% rename from Source/Tribufu/Model/LeaderboardOrder.cs rename to src/Tribufu/Model/LeaderboardOrder.cs index b0ec474..db059a8 100644 --- a/Source/Tribufu/Model/LeaderboardOrder.cs +++ b/src/Tribufu/Model/LeaderboardOrder.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Model/IdentityProviderType.cs b/src/Tribufu/Model/LoginProvider.cs similarity index 93% rename from Source/Tribufu/Model/IdentityProviderType.cs rename to src/Tribufu/Model/LoginProvider.cs index 9c8de06..1180247 100644 --- a/Source/Tribufu/Model/IdentityProviderType.cs +++ b/src/Tribufu/Model/LoginProvider.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * 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 IdentityProviderType + /// Defines LoginProvider /// [JsonConverter(typeof(StringEnumConverter))] - public enum IdentityProviderType + public enum LoginProvider { /// /// Enum Steam for value: steam diff --git a/Source/Tribufu/Model/ModelClient.cs b/src/Tribufu/Model/ModelClient.cs similarity index 87% rename from Source/Tribufu/Model/ModelClient.cs rename to src/Tribufu/Model/ModelClient.cs index 5ca9c5a..1ea8a92 100644 --- a/Source/Tribufu/Model/ModelClient.cs +++ b/src/Tribufu/Model/ModelClient.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -56,10 +56,9 @@ namespace Tribufu.Model /// backgroundUrl. /// redirects. /// scopes. - /// 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?)) + /// created. + /// updated. + public ModelClient(string id = default(string), string name = default(string), ClientType? type = default(ClientType?), string organizationId = default(string), bool trusted = default(bool), string websiteUrl = default(string), string photoUrl = default(string), string backgroundUrl = default(string), string redirects = default(string), string scopes = default(string), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) { // to ensure "name" is required (not null) if (name == null) @@ -76,9 +75,8 @@ namespace Tribufu.Model this.BackgroundUrl = backgroundUrl; this.Redirects = redirects; this.Scopes = scopes; - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - this.DeletedAt = deletedAt; + this.Created = created; + this.Updated = updated; } /// @@ -150,22 +148,16 @@ namespace Tribufu.Model return false; } /// - /// Gets or Sets CreatedAt + /// Gets or Sets Created /// - [DataMember(Name = "created_at", EmitDefaultValue = false)] - public DateTime CreatedAt { get; set; } + [DataMember(Name = "created", EmitDefaultValue = false)] + public DateTime Created { get; set; } /// - /// Gets or Sets UpdatedAt + /// Gets or Sets Updated /// - [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; } + [DataMember(Name = "updated", EmitDefaultValue = true)] + public DateTime? Updated { get; set; } /// /// Returns the string presentation of the object @@ -186,9 +178,8 @@ 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(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); - sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n"); + sb.Append(" Created: ").Append(Created).Append("\n"); + sb.Append(" Updated: ").Append(Updated).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/Source/Tribufu/Model/Package.cs b/src/Tribufu/Model/Package.cs similarity index 84% rename from Source/Tribufu/Model/Package.cs rename to src/Tribufu/Model/Package.cs index d48442a..9170aa1 100644 --- a/Source/Tribufu/Model/Package.cs +++ b/src/Tribufu/Model/Package.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -50,10 +50,9 @@ namespace Tribufu.Model /// downloadCount. /// lastDownload. /// releases. - /// 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?)) + /// 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?)) { // to ensure "name" is required (not null) if (name == null) @@ -75,9 +74,8 @@ namespace Tribufu.Model this.DownloadCount = downloadCount; this.LastDownload = lastDownload; this.Releases = releases; - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - this.DeletedAt = deletedAt; + this.Created = created; + this.Updated = updated; } /// @@ -113,13 +111,13 @@ namespace Tribufu.Model /// /// Gets or Sets ApplicationId /// - [DataMember(Name = "application_id", EmitDefaultValue = false)] + [DataMember(Name = "application_id", EmitDefaultValue = true)] public string ApplicationId { get; set; } /// /// Gets or Sets CategoryId /// - [DataMember(Name = "category_id", EmitDefaultValue = false)] + [DataMember(Name = "category_id", EmitDefaultValue = true)] public string CategoryId { get; set; } /// @@ -141,22 +139,16 @@ namespace Tribufu.Model public List Releases { get; set; } /// - /// Gets or Sets CreatedAt + /// Gets or Sets Created /// - [DataMember(Name = "created_at", EmitDefaultValue = false)] - public DateTime CreatedAt { get; set; } + [DataMember(Name = "created", EmitDefaultValue = false)] + public DateTime Created { get; set; } /// - /// Gets or Sets UpdatedAt + /// Gets or Sets Updated /// - [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; } + [DataMember(Name = "updated", EmitDefaultValue = true)] + public DateTime? Updated { get; set; } /// /// Returns the string presentation of the object @@ -176,9 +168,8 @@ 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(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); - sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n"); + sb.Append(" Created: ").Append(Created).Append("\n"); + sb.Append(" Updated: ").Append(Updated).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/Source/Tribufu/Model/PackageRelease.cs b/src/Tribufu/Model/PackageRelease.cs similarity index 80% rename from Source/Tribufu/Model/PackageRelease.cs rename to src/Tribufu/Model/PackageRelease.cs index 4052067..da09596 100644 --- a/Source/Tribufu/Model/PackageRelease.cs +++ b/src/Tribufu/Model/PackageRelease.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -44,10 +44,9 @@ namespace Tribufu.Model /// varVersion (required). /// packageId. /// notes. - /// 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?)) + /// created. + /// updated. + public PackageRelease(string id = default(string), string varVersion = default(string), string packageId = default(string), string notes = default(string), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) { // to ensure "varVersion" is required (not null) if (varVersion == null) @@ -58,9 +57,8 @@ namespace Tribufu.Model this.Id = id; this.PackageId = packageId; this.Notes = notes; - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - this.DeletedAt = deletedAt; + this.Created = created; + this.Updated = updated; } /// @@ -102,22 +100,16 @@ namespace Tribufu.Model return false; } /// - /// Gets or Sets CreatedAt + /// Gets or Sets Created /// - [DataMember(Name = "created_at", EmitDefaultValue = false)] - public DateTime CreatedAt { get; set; } + [DataMember(Name = "created", EmitDefaultValue = false)] + public DateTime Created { get; set; } /// - /// Gets or Sets UpdatedAt + /// Gets or Sets Updated /// - [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; } + [DataMember(Name = "updated", EmitDefaultValue = true)] + public DateTime? Updated { get; set; } /// /// Returns the string presentation of the object @@ -132,9 +124,8 @@ 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(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); - sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n"); + sb.Append(" Created: ").Append(Created).Append("\n"); + sb.Append(" Updated: ").Append(Updated).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/Source/Tribufu/Model/Product.cs b/src/Tribufu/Model/Product.cs similarity index 75% rename from Source/Tribufu/Model/Product.cs rename to src/Tribufu/Model/Product.cs index e8ca8b0..15e373b 100644 --- a/Source/Tribufu/Model/Product.cs +++ b/src/Tribufu/Model/Product.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -48,16 +48,15 @@ namespace Tribufu.Model /// /// id. /// name (required). - /// sku. /// description. /// type. /// slug. /// imageUrl. + /// isPhysical. /// prices. - /// 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?)) + /// created. + /// updated. + public Product(string id = default(string), string name = default(string), string description = default(string), ProductType? type = default(ProductType?), string slug = default(string), string imageUrl = default(string), bool isPhysical = default(bool), List prices = default(List), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) { // to ensure "name" is required (not null) if (name == null) @@ -66,15 +65,14 @@ namespace Tribufu.Model } this.Name = name; this.Id = id; - this.Sku = sku; this.Description = description; this.Type = type; this.Slug = slug; this.ImageUrl = imageUrl; + this.IsPhysical = isPhysical; this.Prices = prices; - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - this.DeletedAt = deletedAt; + this.Created = created; + this.Updated = updated; } /// @@ -89,12 +87,6 @@ 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 /// @@ -113,6 +105,12 @@ namespace Tribufu.Model [DataMember(Name = "image_url", EmitDefaultValue = true)] public string ImageUrl { get; set; } + /// + /// Gets or Sets IsPhysical + /// + [DataMember(Name = "is_physical", EmitDefaultValue = true)] + public bool IsPhysical { get; set; } + /// /// Gets or Sets Prices /// @@ -120,22 +118,16 @@ namespace Tribufu.Model public List Prices { get; set; } /// - /// Gets or Sets CreatedAt + /// Gets or Sets Created /// - [DataMember(Name = "created_at", EmitDefaultValue = false)] - public DateTime CreatedAt { get; set; } + [DataMember(Name = "created", EmitDefaultValue = false)] + public DateTime Created { get; set; } /// - /// Gets or Sets UpdatedAt + /// Gets or Sets Updated /// - [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; } + [DataMember(Name = "updated", EmitDefaultValue = true)] + public DateTime? Updated { get; set; } /// /// Returns the string presentation of the object @@ -147,15 +139,14 @@ namespace Tribufu.Model sb.Append("class Product {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Sku: ").Append(Sku).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" Slug: ").Append(Slug).Append("\n"); sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); + sb.Append(" IsPhysical: ").Append(IsPhysical).Append("\n"); sb.Append(" Prices: ").Append(Prices).Append("\n"); - sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); - sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n"); + sb.Append(" Created: ").Append(Created).Append("\n"); + sb.Append(" Updated: ").Append(Updated).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -182,12 +173,6 @@ namespace Tribufu.Model yield return new ValidationResult("Invalid value for Name, length must be less than 75.", new [] { "Name" }); } - // Sku (string) maxLength - if (this.Sku != null && this.Sku.Length > 75) - { - yield return new ValidationResult("Invalid value for Sku, length must be less than 75.", new [] { "Sku" }); - } - // Slug (string) maxLength if (this.Slug != null && this.Slug.Length > 75) { diff --git a/Source/Tribufu/Model/ProductPrice.cs b/src/Tribufu/Model/ProductPrice.cs similarity index 89% rename from Source/Tribufu/Model/ProductPrice.cs rename to src/Tribufu/Model/ProductPrice.cs index a01ebea..8730a2f 100644 --- a/Source/Tribufu/Model/ProductPrice.cs +++ b/src/Tribufu/Model/ProductPrice.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -41,9 +41,9 @@ namespace Tribufu.Model /// Initializes a new instance of the class. /// /// currency (required). - /// price. + /// amount. /// renewal. - public ProductPrice(string currency = default(string), double price = default(double), double? renewal = default(double?)) + public ProductPrice(string currency = default(string), double amount = default(double), double? renewal = default(double?)) { // to ensure "currency" is required (not null) if (currency == null) @@ -51,7 +51,7 @@ namespace Tribufu.Model throw new ArgumentNullException("currency is a required property for ProductPrice and cannot be null"); } this.Currency = currency; - this.Price = price; + this.Amount = amount; this.Renewal = renewal; } @@ -62,10 +62,10 @@ namespace Tribufu.Model public string Currency { get; set; } /// - /// Gets or Sets Price + /// Gets or Sets Amount /// - [DataMember(Name = "price", EmitDefaultValue = false)] - public double Price { get; set; } + [DataMember(Name = "amount", EmitDefaultValue = false)] + public double Amount { get; set; } /// /// Gets or Sets Renewal @@ -82,7 +82,7 @@ namespace Tribufu.Model StringBuilder sb = new StringBuilder(); sb.Append("class ProductPrice {\n"); sb.Append(" Currency: ").Append(Currency).Append("\n"); - sb.Append(" Price: ").Append(Price).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); sb.Append(" Renewal: ").Append(Renewal).Append("\n"); sb.Append("}\n"); return sb.ToString(); diff --git a/Source/Tribufu/Model/ProductType.cs b/src/Tribufu/Model/ProductType.cs similarity index 95% rename from Source/Tribufu/Model/ProductType.cs rename to src/Tribufu/Model/ProductType.cs index a75e466..5a9f8e6 100644 --- a/Source/Tribufu/Model/ProductType.cs +++ b/src/Tribufu/Model/ProductType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/Profile.cs b/src/Tribufu/Model/Profile.cs new file mode 100644 index 0000000..9b5a469 --- /dev/null +++ b/src/Tribufu/Model/Profile.cs @@ -0,0 +1,237 @@ +/* + * Tribufu API + * + * API to access Tribufu services. + * + * The version of the OpenAPI document: 1.3.0 + * Contact: contact@tribufu.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; + +namespace Tribufu.Model +{ + /// + /// 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), DateTime? birthday = default(DateTime?), double points = default(double), string location = default(string), string photoUrl = default(string), string bannerUrl = default(string), DateTime? lastOnline = default(DateTime?), string biography = default(string), int viewCount = default(int), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) + { + this.Id = id; + this.Uuid = uuid; + 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)] + [JsonConverter(typeof(OpenAPIDateConverter))] + public DateTime? 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/Source/Tribufu/Model/ProfileGame.cs b/src/Tribufu/Model/ProfileGame.cs similarity index 99% rename from Source/Tribufu/Model/ProfileGame.cs rename to src/Tribufu/Model/ProfileGame.cs index 4451c1b..7bab8c4 100644 --- a/Source/Tribufu/Model/ProfileGame.cs +++ b/src/Tribufu/Model/ProfileGame.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Model/ProfileGroup.cs b/src/Tribufu/Model/ProfileGroup.cs similarity index 92% rename from Source/Tribufu/Model/ProfileGroup.cs rename to src/Tribufu/Model/ProfileGroup.cs index 711c9ec..f4232ac 100644 --- a/Source/Tribufu/Model/ProfileGroup.cs +++ b/src/Tribufu/Model/ProfileGroup.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * 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), 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)) + 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)) { this.Id = id; this.Uuid = uuid; @@ -75,7 +75,7 @@ namespace Tribufu.Model /// Gets or Sets Uuid /// [DataMember(Name = "uuid", EmitDefaultValue = false)] - public string Uuid { get; set; } + public Guid Uuid { get; set; } /// /// Gets or Sets Name diff --git a/Source/Tribufu/Model/ResponseType.cs b/src/Tribufu/Model/ResponseType.cs similarity index 95% rename from Source/Tribufu/Model/ResponseType.cs rename to src/Tribufu/Model/ResponseType.cs index 7e0403b..5e7e6e5 100644 --- a/Source/Tribufu/Model/ResponseType.cs +++ b/src/Tribufu/Model/ResponseType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Model/RevokeRequest.cs b/src/Tribufu/Model/RevokeRequest.cs similarity index 98% rename from Source/Tribufu/Model/RevokeRequest.cs rename to src/Tribufu/Model/RevokeRequest.cs index 20c4209..3c63768 100644 --- a/Source/Tribufu/Model/RevokeRequest.cs +++ b/src/Tribufu/Model/RevokeRequest.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Model/Search.cs b/src/Tribufu/Model/Search.cs similarity index 97% rename from Source/Tribufu/Model/Search.cs rename to src/Tribufu/Model/Search.cs index b6a3dc0..b891f60 100644 --- a/Source/Tribufu/Model/Search.cs +++ b/src/Tribufu/Model/Search.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * 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 = false)] + [DataMember(Name = "game_id", EmitDefaultValue = true)] public string GameId { get; set; } /// diff --git a/Source/Tribufu/Model/SearchType.cs b/src/Tribufu/Model/SearchType.cs similarity index 96% rename from Source/Tribufu/Model/SearchType.cs rename to src/Tribufu/Model/SearchType.cs index 0253ad1..2169c35 100644 --- a/Source/Tribufu/Model/SearchType.cs +++ b/src/Tribufu/Model/SearchType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Model/ServerMetrics.cs b/src/Tribufu/Model/ServerMetrics.cs similarity index 98% rename from Source/Tribufu/Model/ServerMetrics.cs rename to src/Tribufu/Model/ServerMetrics.cs index 2f6359e..fd44f10 100644 --- a/Source/Tribufu/Model/ServerMetrics.cs +++ b/src/Tribufu/Model/ServerMetrics.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Model/StorageFile.cs b/src/Tribufu/Model/StorageFile.cs similarity index 85% rename from Source/Tribufu/Model/StorageFile.cs rename to src/Tribufu/Model/StorageFile.cs index 56025ef..2d9fac8 100644 --- a/Source/Tribufu/Model/StorageFile.cs +++ b/src/Tribufu/Model/StorageFile.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -47,10 +47,9 @@ namespace Tribufu.Model /// size. /// hash. /// etag. - /// 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?)) + /// created. + /// updated. + public StorageFile(string id = default(string), string name = default(string), string contentType = default(string), string url = default(string), long size = default(long), string hash = default(string), string etag = default(string), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) { // to ensure "name" is required (not null) if (name == null) @@ -74,9 +73,8 @@ namespace Tribufu.Model this.Size = size; this.Hash = hash; this.Etag = etag; - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - this.DeletedAt = deletedAt; + this.Created = created; + this.Updated = updated; } /// @@ -122,22 +120,16 @@ namespace Tribufu.Model public string Etag { get; set; } /// - /// Gets or Sets CreatedAt + /// Gets or Sets Created /// - [DataMember(Name = "created_at", EmitDefaultValue = false)] - public DateTime CreatedAt { get; set; } + [DataMember(Name = "created", EmitDefaultValue = false)] + public DateTime Created { get; set; } /// - /// Gets or Sets UpdatedAt + /// Gets or Sets Updated /// - [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; } + [DataMember(Name = "updated", EmitDefaultValue = true)] + public DateTime? Updated { get; set; } /// /// Returns the string presentation of the object @@ -154,9 +146,8 @@ namespace Tribufu.Model sb.Append(" Size: ").Append(Size).Append("\n"); sb.Append(" Hash: ").Append(Hash).Append("\n"); sb.Append(" Etag: ").Append(Etag).Append("\n"); - sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); - sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n"); + sb.Append(" Created: ").Append(Created).Append("\n"); + sb.Append(" Updated: ").Append(Updated).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/Source/Tribufu/Model/TokenHintType.cs b/src/Tribufu/Model/TokenHintType.cs similarity index 96% rename from Source/Tribufu/Model/TokenHintType.cs rename to src/Tribufu/Model/TokenHintType.cs index 099dc37..48ba1db 100644 --- a/Source/Tribufu/Model/TokenHintType.cs +++ b/src/Tribufu/Model/TokenHintType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Model/TokenRequest.cs b/src/Tribufu/Model/TokenRequest.cs similarity index 99% rename from Source/Tribufu/Model/TokenRequest.cs rename to src/Tribufu/Model/TokenRequest.cs index bcbc3e3..641890c 100644 --- a/Source/Tribufu/Model/TokenRequest.cs +++ b/src/Tribufu/Model/TokenRequest.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Model/TokenResponse.cs b/src/Tribufu/Model/TokenResponse.cs similarity index 99% rename from Source/Tribufu/Model/TokenResponse.cs rename to src/Tribufu/Model/TokenResponse.cs index d410c4d..de4bc31 100644 --- a/Source/Tribufu/Model/TokenResponse.cs +++ b/src/Tribufu/Model/TokenResponse.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Model/TokenType.cs b/src/Tribufu/Model/TokenType.cs similarity index 95% rename from Source/Tribufu/Model/TokenType.cs rename to src/Tribufu/Model/TokenType.cs index 058d4b4..47cc6ca 100644 --- a/Source/Tribufu/Model/TokenType.cs +++ b/src/Tribufu/Model/TokenType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Model/UpdateProfile.cs b/src/Tribufu/Model/UpdateProfile.cs similarity index 98% rename from Source/Tribufu/Model/UpdateProfile.cs rename to src/Tribufu/Model/UpdateProfile.cs index 0de3f9d..bd87068 100644 --- a/Source/Tribufu/Model/UpdateProfile.cs +++ b/src/Tribufu/Model/UpdateProfile.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Model/UserInfo.cs b/src/Tribufu/Model/UserInfo.cs similarity index 77% rename from Source/Tribufu/Model/UserInfo.cs rename to src/Tribufu/Model/UserInfo.cs index 8be80ce..8bd8932 100644 --- a/Source/Tribufu/Model/UserInfo.cs +++ b/src/Tribufu/Model/UserInfo.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -47,9 +47,10 @@ namespace Tribufu.Model /// Initializes a new instance of the class. /// /// id. + /// uuid. /// name (required). /// displayName. - /// emailAddress. + /// email. /// emailVerified. /// type. /// language. @@ -57,9 +58,9 @@ namespace Tribufu.Model /// currency. /// photoUrl. /// permissions. - /// 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?)) + /// 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?)) { // to ensure "name" is required (not null) if (name == null) @@ -68,8 +69,9 @@ namespace Tribufu.Model } this.Name = name; this.Id = id; + this.Uuid = uuid; this.DisplayName = displayName; - this.EmailAddress = emailAddress; + this.Email = email; this.EmailVerified = emailVerified; this.Type = type; this.Language = language; @@ -77,8 +79,8 @@ namespace Tribufu.Model this.Currency = currency; this.PhotoUrl = photoUrl; this.Permissions = permissions; - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; + this.Created = created; + this.Updated = updated; } /// @@ -87,6 +89,12 @@ 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 /// @@ -100,10 +108,10 @@ namespace Tribufu.Model public string DisplayName { get; set; } /// - /// Gets or Sets EmailAddress + /// Gets or Sets Email /// - [DataMember(Name = "email_address", EmitDefaultValue = true)] - public string EmailAddress { get; set; } + [DataMember(Name = "email", EmitDefaultValue = true)] + public string Email { get; set; } /// /// Gets or Sets EmailVerified @@ -142,16 +150,16 @@ namespace Tribufu.Model public List Permissions { get; set; } /// - /// Gets or Sets CreatedAt + /// Gets or Sets Created /// - [DataMember(Name = "created_at", EmitDefaultValue = false)] - public DateTime CreatedAt { get; set; } + [DataMember(Name = "created", EmitDefaultValue = false)] + public DateTime Created { get; set; } /// - /// Gets or Sets UpdatedAt + /// Gets or Sets Updated /// - [DataMember(Name = "updated_at", EmitDefaultValue = true)] - public DateTime? UpdatedAt { get; set; } + [DataMember(Name = "updated", EmitDefaultValue = true)] + public DateTime? Updated { get; set; } /// /// Returns the string presentation of the object @@ -162,9 +170,10 @@ 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(" EmailAddress: ").Append(EmailAddress).Append("\n"); + sb.Append(" Email: ").Append(Email).Append("\n"); sb.Append(" EmailVerified: ").Append(EmailVerified).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" Language: ").Append(Language).Append("\n"); @@ -172,8 +181,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(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" Created: ").Append(Created).Append("\n"); + sb.Append(" Updated: ").Append(Updated).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/Source/Tribufu/Model/UserType.cs b/src/Tribufu/Model/UserType.cs similarity index 95% rename from Source/Tribufu/Model/UserType.cs rename to src/Tribufu/Model/UserType.cs index 4df6b64..eeafe58 100644 --- a/Source/Tribufu/Model/UserType.cs +++ b/src/Tribufu/Model/UserType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Source/Tribufu/Tribufu.csproj b/src/Tribufu/Tribufu.csproj similarity index 100% rename from Source/Tribufu/Tribufu.csproj rename to src/Tribufu/Tribufu.csproj diff --git a/Source/Tribufu/TribufuApi.cs b/src/Tribufu/TribufuApi.cs similarity index 100% rename from Source/Tribufu/TribufuApi.cs rename to src/Tribufu/TribufuApi.cs diff --git a/Source/Tribufu/TribufuApiSingleton.cs b/src/Tribufu/TribufuApiSingleton.cs similarity index 100% rename from Source/Tribufu/TribufuApiSingleton.cs rename to src/Tribufu/TribufuApiSingleton.cs 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