diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 7def927..8950b6a 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -26,7 +26,6 @@ src/Tribufu/Model/CodeChallengeMethod.cs src/Tribufu/Model/CodeResponse.cs src/Tribufu/Model/CreateUser.cs src/Tribufu/Model/CryptoViewModel.cs -src/Tribufu/Model/File.cs src/Tribufu/Model/Game.cs src/Tribufu/Model/GameServer.cs src/Tribufu/Model/GameServerCluster.cs @@ -34,7 +33,7 @@ src/Tribufu/Model/GameServerQuery.cs src/Tribufu/Model/GameServerStatus.cs src/Tribufu/Model/GrantType.cs src/Tribufu/Model/Group.cs -src/Tribufu/Model/GroupGame.cs +src/Tribufu/Model/GroupApplication.cs src/Tribufu/Model/GroupMember.cs src/Tribufu/Model/GroupRank.cs src/Tribufu/Model/HashViewModel.cs @@ -47,6 +46,9 @@ src/Tribufu/Model/LoginProvider.cs src/Tribufu/Model/ModelClient.cs src/Tribufu/Model/Package.cs src/Tribufu/Model/PackageRelease.cs +src/Tribufu/Model/Product.cs +src/Tribufu/Model/ProductPrice.cs +src/Tribufu/Model/ProductType.cs src/Tribufu/Model/Profile.cs src/Tribufu/Model/ProfileGame.cs src/Tribufu/Model/ProfileGroup.cs @@ -55,8 +57,7 @@ src/Tribufu/Model/RevokeRequest.cs src/Tribufu/Model/Search.cs src/Tribufu/Model/SearchType.cs src/Tribufu/Model/ServerMetrics.cs -src/Tribufu/Model/Subscription.cs -src/Tribufu/Model/SubscriptionPrice.cs +src/Tribufu/Model/StorageFile.cs src/Tribufu/Model/TokenHintType.cs src/Tribufu/Model/TokenRequest.cs src/Tribufu/Model/TokenResponse.cs diff --git a/Directory.Build.props b/Directory.Build.props index 2f8cde9..33b9280 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -6,7 +6,7 @@ MIT git https://github.com/tribufu/tribufu-dotnet - 1.2.1 + 1.3.0 $(Version).0 $(NoWarn);0618;1591;1998;2002;8767 diff --git a/src/Tribufu/Api/TribufuGeneratedApi.cs b/src/Tribufu/Api/TribufuGeneratedApi.cs index 8edc678..ee083e2 100644 --- a/src/Tribufu/Api/TribufuGeneratedApi.cs +++ b/src/Tribufu/Api/TribufuGeneratedApi.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -318,37 +318,6 @@ namespace Tribufu.Api /// ApiResponse of Object(void) ApiResponse CreateGroupWithHttpInfo(Object body = default(Object), int operationIndex = 0); /// - /// Create a new package. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> - /// - /// Thrown when fails to make API call - /// - /// - /// - /// - /// (optional) - /// Index associated with the operation. - /// Package - Package CreatePackage(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0); - - /// - /// Create a new package. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> - /// - /// Thrown when fails to make API call - /// - /// - /// - /// - /// (optional) - /// Index associated with the operation. - /// ApiResponse of Package - ApiResponse CreatePackageWithHttpInfo(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0); - /// /// Create a new token with grant type. /// /// Thrown when fails to make API call @@ -655,7 +624,7 @@ namespace Tribufu.Api /// ApiResponse of List<Guid> ApiResponse> GenerateUuidWithHttpInfo(int? version = default(int?), int? amount = default(int?), int operationIndex = 0); /// - /// Get an oauth2 client by id. + /// Get a oauth2 client by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> @@ -667,7 +636,7 @@ namespace Tribufu.Api ModelClient GetClientById(string id, int operationIndex = 0); /// - /// Get an oauth2 client by id. + /// Get a oauth2 client by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> @@ -1390,8 +1359,8 @@ namespace Tribufu.Api /// Thrown when fails to make API call /// /// Index associated with the operation. - /// List<GroupGame> - List GetGroupGames(string id, int operationIndex = 0); + /// List<GroupApplication> + List GetGroupGames(string id, int operationIndex = 0); /// /// Get a list of games of a group. @@ -1402,8 +1371,8 @@ namespace Tribufu.Api /// Thrown when fails to make API call /// /// Index associated with the operation. - /// ApiResponse of List<GroupGame> - ApiResponse> GetGroupGamesWithHttpInfo(string id, int operationIndex = 0); + /// ApiResponse of List<GroupApplication> + ApiResponse> GetGroupGamesWithHttpInfo(string id, int operationIndex = 0); /// /// Get a list of members in a group. /// @@ -1571,6 +1540,54 @@ namespace Tribufu.Api /// ApiResponse of List<Package> ApiResponse> GetPackagesWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// + /// Get a product by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.store.product.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Product + Product GetProductById(string id, int operationIndex = 0); + + /// + /// Get a product by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.store.product.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Product + ApiResponse GetProductByIdWithHttpInfo(string id, int operationIndex = 0); + /// + /// Get a list of products. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.store.product.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<Product> + List GetProducts(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + + /// + /// Get a list of products. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.store.product.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<Product> + ApiResponse> GetProductsWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); + /// /// Get the public keys for the client. /// /// Thrown when fails to make API call @@ -1589,54 +1606,6 @@ namespace Tribufu.Api /// ApiResponse of Object(void) ApiResponse GetPublicKeysWithHttpInfo(int operationIndex = 0); /// - /// Get a subscription by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Subscription - Subscription GetSubscriptionById(string id, int operationIndex = 0); - - /// - /// Get a subscription by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of Subscription - ApiResponse GetSubscriptionByIdWithHttpInfo(string id, int operationIndex = 0); - /// - /// Get a list of subscriptions. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> - /// - /// Thrown when fails to make API call - /// The page number of the results to retrieve. Defaults to 1. (optional) - /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) - /// Index associated with the operation. - /// List<Subscription> - List GetSubscriptions(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); - - /// - /// Get a list of subscriptions. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> - /// - /// Thrown when fails to make API call - /// The page number of the results to retrieve. Defaults to 1. (optional) - /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) - /// Index associated with the operation. - /// ApiResponse of List<Subscription> - ApiResponse> GetSubscriptionsWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); - /// /// Get a list of connected accounts of the user. /// /// @@ -2834,39 +2803,6 @@ namespace Tribufu.Api /// Task of ApiResponse System.Threading.Tasks.Task> CreateGroupWithHttpInfoAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// - /// Create a new package. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> - /// - /// Thrown when fails to make API call - /// - /// - /// - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Package - System.Threading.Tasks.Task CreatePackageAsync(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Create a new package. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> - /// - /// Thrown when fails to make API call - /// - /// - /// - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Package) - System.Threading.Tasks.Task> CreatePackageWithHttpInfoAsync(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// /// Create a new token with grant type. /// /// @@ -3202,7 +3138,7 @@ namespace Tribufu.Api /// Task of ApiResponse (List<Guid>) System.Threading.Tasks.Task>> GenerateUuidWithHttpInfoAsync(int? version = default(int?), int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// - /// Get an oauth2 client by id. + /// Get a oauth2 client by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> @@ -3215,7 +3151,7 @@ namespace Tribufu.Api System.Threading.Tasks.Task GetClientByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// - /// Get an oauth2 client by id. + /// Get a oauth2 client by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> @@ -4002,8 +3938,8 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of List<GroupGame> - System.Threading.Tasks.Task> GetGroupGamesAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of List<GroupApplication> + System.Threading.Tasks.Task> GetGroupGamesAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of games of a group. @@ -4015,8 +3951,8 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<GroupGame>) - System.Threading.Tasks.Task>> GetGroupGamesWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (List<GroupApplication>) + System.Threading.Tasks.Task>> GetGroupGamesWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of members in a group. /// @@ -4201,6 +4137,58 @@ namespace Tribufu.Api /// Task of ApiResponse (List<Package>) System.Threading.Tasks.Task>> GetPackagesWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// + /// Get a product by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.store.product.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Product + System.Threading.Tasks.Task GetProductByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a product by id. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.store.product.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Product) + System.Threading.Tasks.Task> GetProductByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of products. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.store.product.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Product> + System.Threading.Tasks.Task> GetProductsAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of products. + /// + /// + /// <b>🔒 Required permissions:</b> <code>tribufu.store.product.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Product>) + System.Threading.Tasks.Task>> GetProductsWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// /// Get the public keys for the client. /// /// @@ -4224,58 +4212,6 @@ namespace Tribufu.Api /// Task of ApiResponse System.Threading.Tasks.Task> GetPublicKeysWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// - /// Get a subscription by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Subscription - System.Threading.Tasks.Task GetSubscriptionByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a subscription by id. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Subscription) - System.Threading.Tasks.Task> GetSubscriptionByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// - /// Get a list of subscriptions. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> - /// - /// Thrown when fails to make API call - /// The page number of the results to retrieve. Defaults to 1. (optional) - /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<Subscription> - System.Threading.Tasks.Task> GetSubscriptionsAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - - /// - /// Get a list of subscriptions. - /// - /// - /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> - /// - /// Thrown when fails to make API call - /// The page number of the results to retrieve. Defaults to 1. (optional) - /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Subscription>) - System.Threading.Tasks.Task>> GetSubscriptionsWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); - /// /// Get a list of connected accounts of the user. /// /// @@ -7143,235 +7079,6 @@ namespace Tribufu.Api return localVarResponse; } - /// - /// Create a new package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> - /// - /// Thrown when fails to make API call - /// - /// - /// - /// - /// (optional) - /// Index associated with the operation. - /// Package - public Package CreatePackage(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0) - { - Tribufu.Client.ApiResponse localVarResponse = CreatePackageWithHttpInfo(name, image, files, version, description); - return localVarResponse.Data; - } - - /// - /// Create a new package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> - /// - /// Thrown when fails to make API call - /// - /// - /// - /// - /// (optional) - /// Index associated with the operation. - /// ApiResponse of Package - public Tribufu.Client.ApiResponse CreatePackageWithHttpInfo(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0) - { - // verify the required parameter 'name' is set - if (name == null) - { - throw new Tribufu.Client.ApiException(400, "Missing required parameter 'name' when calling TribufuGeneratedApi->CreatePackage"); - } - - // verify the required parameter 'image' is set - if (image == null) - { - throw new Tribufu.Client.ApiException(400, "Missing required parameter 'image' when calling TribufuGeneratedApi->CreatePackage"); - } - - // verify the required parameter 'files' is set - if (files == null) - { - throw new Tribufu.Client.ApiException(400, "Missing required parameter 'files' when calling TribufuGeneratedApi->CreatePackage"); - } - - // verify the required parameter 'version' is set - if (version == null) - { - throw new Tribufu.Client.ApiException(400, "Missing required parameter 'version' when calling TribufuGeneratedApi->CreatePackage"); - } - - Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "multipart/form-data" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; - - var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.FormParameters.Add("name", Tribufu.Client.ClientUtils.ParameterToString(name)); // form parameter - if (description != null) - { - localVarRequestOptions.FormParameters.Add("description", Tribufu.Client.ClientUtils.ParameterToString(description)); // form parameter - } - localVarRequestOptions.FileParameters.Add("image", image); - foreach (var file in files) - { - localVarRequestOptions.FileParameters.Add("files", file); - } - localVarRequestOptions.FormParameters.Add("version", Tribufu.Client.ClientUtils.ParameterToString(version)); // form parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.CreatePackage"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Post("/v1/packages", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("CreatePackage", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Create a new package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> - /// - /// Thrown when fails to make API call - /// - /// - /// - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Package - public async System.Threading.Tasks.Task CreatePackageAsync(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Client.ApiResponse localVarResponse = await CreatePackageWithHttpInfoAsync(name, image, files, version, description, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Create a new package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> - /// - /// Thrown when fails to make API call - /// - /// - /// - /// - /// (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Package) - public async System.Threading.Tasks.Task> CreatePackageWithHttpInfoAsync(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'name' is set - if (name == null) - { - throw new Tribufu.Client.ApiException(400, "Missing required parameter 'name' when calling TribufuGeneratedApi->CreatePackage"); - } - - // verify the required parameter 'image' is set - if (image == null) - { - throw new Tribufu.Client.ApiException(400, "Missing required parameter 'image' when calling TribufuGeneratedApi->CreatePackage"); - } - - // verify the required parameter 'files' is set - if (files == null) - { - throw new Tribufu.Client.ApiException(400, "Missing required parameter 'files' when calling TribufuGeneratedApi->CreatePackage"); - } - - // verify the required parameter 'version' is set - if (version == null) - { - throw new Tribufu.Client.ApiException(400, "Missing required parameter 'version' when calling TribufuGeneratedApi->CreatePackage"); - } - - - Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "multipart/form-data" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; - - var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.FormParameters.Add("name", Tribufu.Client.ClientUtils.ParameterToString(name)); // form parameter - if (description != null) - { - localVarRequestOptions.FormParameters.Add("description", Tribufu.Client.ClientUtils.ParameterToString(description)); // form parameter - } - localVarRequestOptions.FileParameters.Add("image", image); - foreach (var file in files) - { - localVarRequestOptions.FileParameters.Add("files", file); - } - localVarRequestOptions.FormParameters.Add("version", Tribufu.Client.ClientUtils.ParameterToString(version)); // form parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.CreatePackage"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/packages", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("CreatePackage", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - /// /// Create a new token with grant type. /// @@ -9364,7 +9071,7 @@ namespace Tribufu.Api } /// - /// Get an oauth2 client by id. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> + /// Get a oauth2 client by id. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> /// /// Thrown when fails to make API call /// @@ -9377,7 +9084,7 @@ namespace Tribufu.Api } /// - /// Get an oauth2 client by id. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> + /// Get a oauth2 client by id. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> /// /// Thrown when fails to make API call /// @@ -9440,7 +9147,7 @@ namespace Tribufu.Api } /// - /// Get an oauth2 client by id. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> + /// Get a oauth2 client by id. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> /// /// Thrown when fails to make API call /// @@ -9454,7 +9161,7 @@ namespace Tribufu.Api } /// - /// Get an oauth2 client by id. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> + /// Get a oauth2 client by id. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> /// /// Thrown when fails to make API call /// @@ -14084,10 +13791,10 @@ namespace Tribufu.Api /// Thrown when fails to make API call /// /// Index associated with the operation. - /// List<GroupGame> - public List GetGroupGames(string id, int operationIndex = 0) + /// List<GroupApplication> + public List GetGroupGames(string id, int operationIndex = 0) { - Tribufu.Client.ApiResponse> localVarResponse = GetGroupGamesWithHttpInfo(id); + Tribufu.Client.ApiResponse> localVarResponse = GetGroupGamesWithHttpInfo(id); return localVarResponse.Data; } @@ -14097,8 +13804,8 @@ namespace Tribufu.Api /// Thrown when fails to make API call /// /// Index associated with the operation. - /// ApiResponse of List<GroupGame> - public Tribufu.Client.ApiResponse> GetGroupGamesWithHttpInfo(string id, int operationIndex = 0) + /// ApiResponse of List<GroupApplication> + public Tribufu.Client.ApiResponse> GetGroupGamesWithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) @@ -14141,7 +13848,7 @@ namespace Tribufu.Api } // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/groups/{id}/games", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get>("/v1/groups/{id}/games", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGroupGames", localVarResponse); @@ -14161,10 +13868,10 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of List<GroupGame> - public async System.Threading.Tasks.Task> GetGroupGamesAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of List<GroupApplication> + public async System.Threading.Tasks.Task> GetGroupGamesAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Tribufu.Client.ApiResponse> localVarResponse = await GetGroupGamesWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + Tribufu.Client.ApiResponse> localVarResponse = await GetGroupGamesWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -14175,8 +13882,8 @@ namespace Tribufu.Api /// /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<GroupGame>) - public async System.Threading.Tasks.Task>> GetGroupGamesWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (List<GroupApplication>) + public async System.Threading.Tasks.Task>> GetGroupGamesWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -14219,7 +13926,7 @@ namespace Tribufu.Api } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/groups/{id}/games", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/groups/{id}/games", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -15346,6 +15053,322 @@ namespace Tribufu.Api return localVarResponse; } + /// + /// Get a product by id. <b>🔒 Required permissions:</b> <code>tribufu.store.product.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Product + public Product GetProductById(string id, int operationIndex = 0) + { + Tribufu.Client.ApiResponse localVarResponse = GetProductByIdWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get a product by id. <b>🔒 Required permissions:</b> <code>tribufu.store.product.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// ApiResponse of Product + public Tribufu.Client.ApiResponse GetProductByIdWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetProductById"); + } + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetProductById"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/products/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetProductById", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a product by id. <b>🔒 Required permissions:</b> <code>tribufu.store.product.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Product + public async System.Threading.Tasks.Task GetProductByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse localVarResponse = await GetProductByIdWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a product by id. <b>🔒 Required permissions:</b> <code>tribufu.store.product.get</code> + /// + /// Thrown when fails to make API call + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Product) + public async System.Threading.Tasks.Task> GetProductByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetProductById"); + } + + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetProductById"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/products/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetProductById", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of products. <b>🔒 Required permissions:</b> <code>tribufu.store.product.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// List<Product> + public List GetProducts(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.ApiResponse> localVarResponse = GetProductsWithHttpInfo(page, limit); + return localVarResponse.Data; + } + + /// + /// Get a list of products. <b>🔒 Required permissions:</b> <code>tribufu.store.product.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// ApiResponse of List<Product> + public Tribufu.Client.ApiResponse> GetProductsWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) + { + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetProducts"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/v1/products", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetProducts", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Get a list of products. <b>🔒 Required permissions:</b> <code>tribufu.store.product.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Product> + public async System.Threading.Tasks.Task> GetProductsAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Tribufu.Client.ApiResponse> localVarResponse = await GetProductsWithHttpInfoAsync(page, limit, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a list of products. <b>🔒 Required permissions:</b> <code>tribufu.store.product.list</code> + /// + /// Thrown when fails to make API call + /// The page number of the results to retrieve. Defaults to 1. (optional) + /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Product>) + public async System.Threading.Tasks.Task>> GetProductsWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (page != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); + } + if (limit != null) + { + localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); + } + + localVarRequestOptions.Operation = "TribufuGeneratedApi.GetProducts"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (ApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/products", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetProducts", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + /// /// Get the public keys for the client. /// @@ -15479,322 +15502,6 @@ namespace Tribufu.Api return localVarResponse; } - /// - /// Get a subscription by id. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Subscription - public Subscription GetSubscriptionById(string id, int operationIndex = 0) - { - Tribufu.Client.ApiResponse localVarResponse = GetSubscriptionByIdWithHttpInfo(id); - return localVarResponse.Data; - } - - /// - /// Get a subscription by id. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// ApiResponse of Subscription - public Tribufu.Client.ApiResponse GetSubscriptionByIdWithHttpInfo(string id, int operationIndex = 0) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetSubscriptionById"); - } - - Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; - - var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetSubscriptionById"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get("/v1/subscriptions/{id}", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetSubscriptionById", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a subscription by id. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Subscription - public async System.Threading.Tasks.Task GetSubscriptionByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Client.ApiResponse localVarResponse = await GetSubscriptionByIdWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a subscription by id. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> - /// - /// Thrown when fails to make API call - /// - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Subscription) - public async System.Threading.Tasks.Task> GetSubscriptionByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - // verify the required parameter 'id' is set - if (id == null) - { - throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetSubscriptionById"); - } - - - Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; - - var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetSubscriptionById"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/subscriptions/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetSubscriptionById", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of subscriptions. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> - /// - /// Thrown when fails to make API call - /// The page number of the results to retrieve. Defaults to 1. (optional) - /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) - /// Index associated with the operation. - /// List<Subscription> - public List GetSubscriptions(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) - { - Tribufu.Client.ApiResponse> localVarResponse = GetSubscriptionsWithHttpInfo(page, limit); - return localVarResponse.Data; - } - - /// - /// Get a list of subscriptions. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> - /// - /// Thrown when fails to make API call - /// The page number of the results to retrieve. Defaults to 1. (optional) - /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) - /// Index associated with the operation. - /// ApiResponse of List<Subscription> - public Tribufu.Client.ApiResponse> GetSubscriptionsWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) - { - Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; - - var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - var localVarMultipartFormData = localVarContentType == "multipart/form-data"; - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - if (page != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); - } - if (limit != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetSubscriptions"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get>("/v1/subscriptions", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetSubscriptions", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get a list of subscriptions. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> - /// - /// Thrown when fails to make API call - /// The page number of the results to retrieve. Defaults to 1. (optional) - /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of List<Subscription> - public async System.Threading.Tasks.Task> GetSubscriptionsAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - Tribufu.Client.ApiResponse> localVarResponse = await GetSubscriptionsWithHttpInfoAsync(page, limit, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get a list of subscriptions. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> - /// - /// Thrown when fails to make API call - /// The page number of the results to retrieve. Defaults to 1. (optional) - /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Subscription>) - public async System.Threading.Tasks.Task>> GetSubscriptionsWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - - Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; - - var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - if (page != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); - } - if (limit != null) - { - localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); - } - - localVarRequestOptions.Operation = "TribufuGeneratedApi.GetSubscriptions"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKey) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/subscriptions", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetSubscriptions", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - /// /// Get a list of connected accounts of the user. <b>🔒 Required permissions:</b> <code>tribufu.identity.user.account.list</code> /// diff --git a/src/Tribufu/Client/ApiClient.cs b/src/Tribufu/Client/ApiClient.cs index 7b6d9f7..c259f8e 100644 --- a/src/Tribufu/Client/ApiClient.cs +++ b/src/Tribufu/Client/ApiClient.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/ApiException.cs b/src/Tribufu/Client/ApiException.cs index 6c05a2b..711d390 100644 --- a/src/Tribufu/Client/ApiException.cs +++ b/src/Tribufu/Client/ApiException.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/ApiResponse.cs b/src/Tribufu/Client/ApiResponse.cs index 8fbc838..cd8b08c 100644 --- a/src/Tribufu/Client/ApiResponse.cs +++ b/src/Tribufu/Client/ApiResponse.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/ClientUtils.cs b/src/Tribufu/Client/ClientUtils.cs index 804327e..1063213 100644 --- a/src/Tribufu/Client/ClientUtils.cs +++ b/src/Tribufu/Client/ClientUtils.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/Configuration.cs b/src/Tribufu/Client/Configuration.cs index 50014fc..c3c4843 100644 --- a/src/Tribufu/Client/Configuration.cs +++ b/src/Tribufu/Client/Configuration.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -540,7 +540,7 @@ namespace Tribufu.Client string report = "C# SDK (Tribufu) Debug Report:\n"; report += " OS: " + System.Environment.OSVersion + "\n"; report += " .NET Framework Version: " + System.Environment.Version + "\n"; - report += " Version of the API: 1.2.6\n"; + report += " Version of the API: 1.3.0\n"; report += " SDK Package Version: 1.0.0\n"; return report; diff --git a/src/Tribufu/Client/ExceptionFactory.cs b/src/Tribufu/Client/ExceptionFactory.cs index 8d28cc4..34364a1 100644 --- a/src/Tribufu/Client/ExceptionFactory.cs +++ b/src/Tribufu/Client/ExceptionFactory.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/GlobalConfiguration.cs b/src/Tribufu/Client/GlobalConfiguration.cs index 7641592..ff0141b 100644 --- a/src/Tribufu/Client/GlobalConfiguration.cs +++ b/src/Tribufu/Client/GlobalConfiguration.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/HttpMethod.cs b/src/Tribufu/Client/HttpMethod.cs index 4c35694..ba76475 100644 --- a/src/Tribufu/Client/HttpMethod.cs +++ b/src/Tribufu/Client/HttpMethod.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/IApiAccessor.cs b/src/Tribufu/Client/IApiAccessor.cs index 00989a5..33aa55a 100644 --- a/src/Tribufu/Client/IApiAccessor.cs +++ b/src/Tribufu/Client/IApiAccessor.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/IAsynchronousClient.cs b/src/Tribufu/Client/IAsynchronousClient.cs index 23d76de..da592c5 100644 --- a/src/Tribufu/Client/IAsynchronousClient.cs +++ b/src/Tribufu/Client/IAsynchronousClient.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/IReadableConfiguration.cs b/src/Tribufu/Client/IReadableConfiguration.cs index 892dbe4..7744557 100644 --- a/src/Tribufu/Client/IReadableConfiguration.cs +++ b/src/Tribufu/Client/IReadableConfiguration.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/ISynchronousClient.cs b/src/Tribufu/Client/ISynchronousClient.cs index d4618ad..c9445ae 100644 --- a/src/Tribufu/Client/ISynchronousClient.cs +++ b/src/Tribufu/Client/ISynchronousClient.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/Multimap.cs b/src/Tribufu/Client/Multimap.cs index d56da96..00a8a45 100644 --- a/src/Tribufu/Client/Multimap.cs +++ b/src/Tribufu/Client/Multimap.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/OpenAPIDateConverter.cs b/src/Tribufu/Client/OpenAPIDateConverter.cs index 8caf5d9..1391b28 100644 --- a/src/Tribufu/Client/OpenAPIDateConverter.cs +++ b/src/Tribufu/Client/OpenAPIDateConverter.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/RequestOptions.cs b/src/Tribufu/Client/RequestOptions.cs index 567d320..81d1f51 100644 --- a/src/Tribufu/Client/RequestOptions.cs +++ b/src/Tribufu/Client/RequestOptions.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Client/RetryConfiguration.cs b/src/Tribufu/Client/RetryConfiguration.cs index 151393a..7b711fe 100644 --- a/src/Tribufu/Client/RetryConfiguration.cs +++ b/src/Tribufu/Client/RetryConfiguration.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/AbstractOpenAPISchema.cs b/src/Tribufu/Model/AbstractOpenAPISchema.cs index a45aa18..a282223 100644 --- a/src/Tribufu/Model/AbstractOpenAPISchema.cs +++ b/src/Tribufu/Model/AbstractOpenAPISchema.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/Account.cs b/src/Tribufu/Model/Account.cs index 6ac1a13..91b4c34 100644 --- a/src/Tribufu/Model/Account.cs +++ b/src/Tribufu/Model/Account.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/Application.cs b/src/Tribufu/Model/Application.cs index d071767..1d79518 100644 --- a/src/Tribufu/Model/Application.cs +++ b/src/Tribufu/Model/Application.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/ApplicationType.cs b/src/Tribufu/Model/ApplicationType.cs index 6196ccd..2d2d38e 100644 --- a/src/Tribufu/Model/ApplicationType.cs +++ b/src/Tribufu/Model/ApplicationType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/AuthorizeRequest.cs b/src/Tribufu/Model/AuthorizeRequest.cs index c06ebf3..0b32301 100644 --- a/src/Tribufu/Model/AuthorizeRequest.cs +++ b/src/Tribufu/Model/AuthorizeRequest.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/ClientInfo.cs b/src/Tribufu/Model/ClientInfo.cs index edfd090..3072473 100644 --- a/src/Tribufu/Model/ClientInfo.cs +++ b/src/Tribufu/Model/ClientInfo.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/ClientType.cs b/src/Tribufu/Model/ClientType.cs index c6d9c41..ff5b51e 100644 --- a/src/Tribufu/Model/ClientType.cs +++ b/src/Tribufu/Model/ClientType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/CodeChallengeMethod.cs b/src/Tribufu/Model/CodeChallengeMethod.cs index d74091e..3d9d8f7 100644 --- a/src/Tribufu/Model/CodeChallengeMethod.cs +++ b/src/Tribufu/Model/CodeChallengeMethod.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/CodeResponse.cs b/src/Tribufu/Model/CodeResponse.cs index 3f1a4e3..04f8673 100644 --- a/src/Tribufu/Model/CodeResponse.cs +++ b/src/Tribufu/Model/CodeResponse.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/CreateUser.cs b/src/Tribufu/Model/CreateUser.cs index 5fc723a..f5ca14d 100644 --- a/src/Tribufu/Model/CreateUser.cs +++ b/src/Tribufu/Model/CreateUser.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/CryptoViewModel.cs b/src/Tribufu/Model/CryptoViewModel.cs index 72f9aaa..67a6248 100644 --- a/src/Tribufu/Model/CryptoViewModel.cs +++ b/src/Tribufu/Model/CryptoViewModel.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/Game.cs b/src/Tribufu/Model/Game.cs index dabb0a1..922373d 100644 --- a/src/Tribufu/Model/Game.cs +++ b/src/Tribufu/Model/Game.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/GameServer.cs b/src/Tribufu/Model/GameServer.cs index 03baf5f..a740f22 100644 --- a/src/Tribufu/Model/GameServer.cs +++ b/src/Tribufu/Model/GameServer.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/GameServerCluster.cs b/src/Tribufu/Model/GameServerCluster.cs index 917a14a..6f27de9 100644 --- a/src/Tribufu/Model/GameServerCluster.cs +++ b/src/Tribufu/Model/GameServerCluster.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/GameServerQuery.cs b/src/Tribufu/Model/GameServerQuery.cs index a283508..f15549d 100644 --- a/src/Tribufu/Model/GameServerQuery.cs +++ b/src/Tribufu/Model/GameServerQuery.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/GameServerStatus.cs b/src/Tribufu/Model/GameServerStatus.cs index a27950f..aa74bea 100644 --- a/src/Tribufu/Model/GameServerStatus.cs +++ b/src/Tribufu/Model/GameServerStatus.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/GrantType.cs b/src/Tribufu/Model/GrantType.cs index 45760bd..02ee64f 100644 --- a/src/Tribufu/Model/GrantType.cs +++ b/src/Tribufu/Model/GrantType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/Group.cs b/src/Tribufu/Model/Group.cs index 31935dd..fad9de6 100644 --- a/src/Tribufu/Model/Group.cs +++ b/src/Tribufu/Model/Group.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -221,6 +221,12 @@ namespace Tribufu.Model /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { + // Name (string) maxLength + if (this.Name != null && this.Name.Length > 75) + { + yield return new ValidationResult("Invalid value for Name, length must be less than 75.", new [] { "Name" }); + } + yield break; } } diff --git a/src/Tribufu/Model/GroupGame.cs b/src/Tribufu/Model/GroupApplication.cs similarity index 85% rename from src/Tribufu/Model/GroupGame.cs rename to src/Tribufu/Model/GroupApplication.cs index 49a026f..b3bb03e 100644 --- a/src/Tribufu/Model/GroupGame.cs +++ b/src/Tribufu/Model/GroupApplication.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,18 +27,18 @@ using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; namespace Tribufu.Model { /// - /// GroupGame + /// GroupApplication /// - [DataContract(Name = "GroupGame")] - public partial class GroupGame : IValidatableObject + [DataContract(Name = "GroupApplication")] + public partial class GroupApplication : IValidatableObject { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected GroupGame() { } + protected GroupApplication() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// groupId (required). /// group. @@ -47,12 +47,12 @@ namespace Tribufu.Model /// stats. /// acquired. /// lastUsed. - public GroupGame(string groupId = default(string), Group group = default(Group), string applicationId = default(string), Application application = default(Application), Object stats = default(Object), DateTime acquired = default(DateTime), DateTime? lastUsed = default(DateTime?)) + public GroupApplication(string groupId = default(string), Group group = default(Group), string applicationId = default(string), Application application = default(Application), Object stats = default(Object), DateTime acquired = default(DateTime), DateTime? lastUsed = default(DateTime?)) { // to ensure "groupId" is required (not null) if (groupId == null) { - throw new ArgumentNullException("groupId is a required property for GroupGame and cannot be null"); + throw new ArgumentNullException("groupId is a required property for GroupApplication and cannot be null"); } this.GroupId = groupId; this.Group = group; @@ -112,7 +112,7 @@ namespace Tribufu.Model public override string ToString() { StringBuilder sb = new StringBuilder(); - sb.Append("class GroupGame {\n"); + sb.Append("class GroupApplication {\n"); sb.Append(" GroupId: ").Append(GroupId).Append("\n"); sb.Append(" Group: ").Append(Group).Append("\n"); sb.Append(" ApplicationId: ").Append(ApplicationId).Append("\n"); diff --git a/src/Tribufu/Model/GroupMember.cs b/src/Tribufu/Model/GroupMember.cs index f65e65f..712d109 100644 --- a/src/Tribufu/Model/GroupMember.cs +++ b/src/Tribufu/Model/GroupMember.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/GroupRank.cs b/src/Tribufu/Model/GroupRank.cs index 804eadc..8df4b81 100644 --- a/src/Tribufu/Model/GroupRank.cs +++ b/src/Tribufu/Model/GroupRank.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/HashViewModel.cs b/src/Tribufu/Model/HashViewModel.cs index b041e8c..89cc955 100644 --- a/src/Tribufu/Model/HashViewModel.cs +++ b/src/Tribufu/Model/HashViewModel.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/IntrospectRequest.cs b/src/Tribufu/Model/IntrospectRequest.cs index 2104dcd..0b5b3ad 100644 --- a/src/Tribufu/Model/IntrospectRequest.cs +++ b/src/Tribufu/Model/IntrospectRequest.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/IntrospectResponse.cs b/src/Tribufu/Model/IntrospectResponse.cs index 989c10a..efc09af 100644 --- a/src/Tribufu/Model/IntrospectResponse.cs +++ b/src/Tribufu/Model/IntrospectResponse.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/IpAddress.cs b/src/Tribufu/Model/IpAddress.cs index f17ff5e..ae097f1 100644 --- a/src/Tribufu/Model/IpAddress.cs +++ b/src/Tribufu/Model/IpAddress.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -39,11 +39,12 @@ namespace Tribufu.Model /// varVersion. /// network. /// reserved. + /// banned. /// asn. /// isp. /// continent. /// country. - /// region. + /// province. /// city. /// postalCode. /// callingCode. @@ -53,17 +54,18 @@ namespace Tribufu.Model /// currency. /// latitude. /// longitude. - public IpAddress(string address = default(string), int varVersion = default(int), string network = default(string), bool reserved = default(bool), string asn = default(string), string isp = default(string), string continent = default(string), string country = default(string), string region = default(string), string city = default(string), string postalCode = default(string), string callingCode = default(string), string tld = default(string), string language = default(string), string timezone = default(string), string currency = default(string), float? latitude = default(float?), float? longitude = default(float?)) + public IpAddress(string address = default(string), int varVersion = default(int), string network = default(string), bool reserved = default(bool), bool banned = default(bool), string asn = default(string), string isp = default(string), string continent = default(string), string country = default(string), string province = default(string), string city = default(string), string postalCode = default(string), string callingCode = default(string), string tld = default(string), string language = default(string), string timezone = default(string), string currency = default(string), float? latitude = default(float?), float? longitude = default(float?)) { this.Address = address; this.VarVersion = varVersion; this.Network = network; this.Reserved = reserved; + this.Banned = banned; this.Asn = asn; this.Isp = isp; this.Continent = continent; this.Country = country; - this.Region = region; + this.Province = province; this.City = city; this.PostalCode = postalCode; this.CallingCode = callingCode; @@ -99,6 +101,12 @@ namespace Tribufu.Model [DataMember(Name = "reserved", EmitDefaultValue = true)] public bool Reserved { get; set; } + /// + /// Gets or Sets Banned + /// + [DataMember(Name = "banned", EmitDefaultValue = true)] + public bool Banned { get; set; } + /// /// Gets or Sets Asn /// @@ -124,10 +132,10 @@ namespace Tribufu.Model public string Country { get; set; } /// - /// Gets or Sets Region + /// Gets or Sets Province /// - [DataMember(Name = "region", EmitDefaultValue = true)] - public string Region { get; set; } + [DataMember(Name = "province", EmitDefaultValue = true)] + public string Province { get; set; } /// /// Gets or Sets City @@ -195,11 +203,12 @@ namespace Tribufu.Model sb.Append(" VarVersion: ").Append(VarVersion).Append("\n"); sb.Append(" Network: ").Append(Network).Append("\n"); sb.Append(" Reserved: ").Append(Reserved).Append("\n"); + sb.Append(" Banned: ").Append(Banned).Append("\n"); sb.Append(" Asn: ").Append(Asn).Append("\n"); sb.Append(" Isp: ").Append(Isp).Append("\n"); sb.Append(" Continent: ").Append(Continent).Append("\n"); sb.Append(" Country: ").Append(Country).Append("\n"); - sb.Append(" Region: ").Append(Region).Append("\n"); + sb.Append(" Province: ").Append(Province).Append("\n"); sb.Append(" City: ").Append(City).Append("\n"); sb.Append(" PostalCode: ").Append(PostalCode).Append("\n"); sb.Append(" CallingCode: ").Append(CallingCode).Append("\n"); @@ -265,10 +274,10 @@ namespace Tribufu.Model yield return new ValidationResult("Invalid value for Country, length must be less than 2.", new [] { "Country" }); } - // Region (string) maxLength - if (this.Region != null && this.Region.Length > 255) + // Province (string) maxLength + if (this.Province != null && this.Province.Length > 255) { - yield return new ValidationResult("Invalid value for Region, length must be less than 255.", new [] { "Region" }); + yield return new ValidationResult("Invalid value for Province, length must be less than 255.", new [] { "Province" }); } // City (string) maxLength diff --git a/src/Tribufu/Model/LeaderboardItem.cs b/src/Tribufu/Model/LeaderboardItem.cs index 81a5bb2..f57f8f9 100644 --- a/src/Tribufu/Model/LeaderboardItem.cs +++ b/src/Tribufu/Model/LeaderboardItem.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/LeaderboardOrder.cs b/src/Tribufu/Model/LeaderboardOrder.cs index 0b10b5d..db059a8 100644 --- a/src/Tribufu/Model/LeaderboardOrder.cs +++ b/src/Tribufu/Model/LeaderboardOrder.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/LoginProvider.cs b/src/Tribufu/Model/LoginProvider.cs index 98afd9c..1180247 100644 --- a/src/Tribufu/Model/LoginProvider.cs +++ b/src/Tribufu/Model/LoginProvider.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/ModelClient.cs b/src/Tribufu/Model/ModelClient.cs index df70048..1ea8a92 100644 --- a/src/Tribufu/Model/ModelClient.cs +++ b/src/Tribufu/Model/ModelClient.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/Package.cs b/src/Tribufu/Model/Package.cs index c4ae0c4..9170aa1 100644 --- a/src/Tribufu/Model/Package.cs +++ b/src/Tribufu/Model/Package.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/PackageRelease.cs b/src/Tribufu/Model/PackageRelease.cs index 14ff2a2..da09596 100644 --- a/src/Tribufu/Model/PackageRelease.cs +++ b/src/Tribufu/Model/PackageRelease.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -89,7 +89,7 @@ namespace Tribufu.Model /// Gets or Sets Files /// [DataMember(Name = "files", EmitDefaultValue = true)] - public List Files { get; private set; } + public List Files { get; private set; } /// /// Returns false as Files should not be serialized given that it's read-only. diff --git a/src/Tribufu/Model/Subscription.cs b/src/Tribufu/Model/Product.cs similarity index 69% rename from src/Tribufu/Model/Subscription.cs rename to src/Tribufu/Model/Product.cs index 3dafafe..15e373b 100644 --- a/src/Tribufu/Model/Subscription.cs +++ b/src/Tribufu/Model/Product.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,37 +27,49 @@ using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; namespace Tribufu.Model { /// - /// Subscription + /// Product /// - [DataContract(Name = "Subscription")] - public partial class Subscription : IValidatableObject + [DataContract(Name = "Product")] + public partial class Product : IValidatableObject { + /// - /// Initializes a new instance of the class. + /// Gets or Sets Type + /// + [DataMember(Name = "type", EmitDefaultValue = false)] + public ProductType? Type { get; set; } + /// + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected Subscription() { } + protected Product() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// id. /// name (required). /// description. + /// type. + /// slug. /// imageUrl. + /// isPhysical. /// prices. /// created. /// updated. - public Subscription(string id = default(string), string name = default(string), string description = default(string), string imageUrl = default(string), List prices = default(List), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) + public Product(string id = default(string), string name = default(string), string description = default(string), ProductType? type = default(ProductType?), string slug = default(string), string imageUrl = default(string), bool isPhysical = default(bool), List prices = default(List), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) { // to ensure "name" is required (not null) if (name == null) { - throw new ArgumentNullException("name is a required property for Subscription and cannot be null"); + throw new ArgumentNullException("name is a required property for Product and cannot be null"); } this.Name = name; this.Id = id; this.Description = description; + this.Type = type; + this.Slug = slug; this.ImageUrl = imageUrl; + this.IsPhysical = isPhysical; this.Prices = prices; this.Created = created; this.Updated = updated; @@ -81,17 +93,29 @@ namespace Tribufu.Model [DataMember(Name = "description", EmitDefaultValue = true)] public string Description { get; set; } + /// + /// Gets or Sets Slug + /// + [DataMember(Name = "slug", EmitDefaultValue = true)] + public string Slug { get; set; } + /// /// Gets or Sets ImageUrl /// [DataMember(Name = "image_url", EmitDefaultValue = true)] public string ImageUrl { get; set; } + /// + /// Gets or Sets IsPhysical + /// + [DataMember(Name = "is_physical", EmitDefaultValue = true)] + public bool IsPhysical { get; set; } + /// /// Gets or Sets Prices /// [DataMember(Name = "prices", EmitDefaultValue = true)] - public List Prices { get; set; } + public List Prices { get; set; } /// /// Gets or Sets Created @@ -112,11 +136,14 @@ namespace Tribufu.Model public override string ToString() { StringBuilder sb = new StringBuilder(); - sb.Append("class Subscription {\n"); + sb.Append("class Product {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Slug: ").Append(Slug).Append("\n"); sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); + sb.Append(" IsPhysical: ").Append(IsPhysical).Append("\n"); sb.Append(" Prices: ").Append(Prices).Append("\n"); sb.Append(" Created: ").Append(Created).Append("\n"); sb.Append(" Updated: ").Append(Updated).Append("\n"); @@ -146,6 +173,12 @@ namespace Tribufu.Model yield return new ValidationResult("Invalid value for Name, length must be less than 75.", new [] { "Name" }); } + // Slug (string) maxLength + if (this.Slug != null && this.Slug.Length > 75) + { + yield return new ValidationResult("Invalid value for Slug, length must be less than 75.", new [] { "Slug" }); + } + // ImageUrl (string) maxLength if (this.ImageUrl != null && this.ImageUrl.Length > 255) { diff --git a/src/Tribufu/Model/SubscriptionPrice.cs b/src/Tribufu/Model/ProductPrice.cs similarity index 80% rename from src/Tribufu/Model/SubscriptionPrice.cs rename to src/Tribufu/Model/ProductPrice.cs index c082ee5..8730a2f 100644 --- a/src/Tribufu/Model/SubscriptionPrice.cs +++ b/src/Tribufu/Model/ProductPrice.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,28 +27,28 @@ using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; namespace Tribufu.Model { /// - /// SubscriptionPrice + /// ProductPrice /// - [DataContract(Name = "SubscriptionPrice")] - public partial class SubscriptionPrice : IValidatableObject + [DataContract(Name = "ProductPrice")] + public partial class ProductPrice : IValidatableObject { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected SubscriptionPrice() { } + protected ProductPrice() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// currency (required). - /// amount (required). + /// amount. /// renewal. - public SubscriptionPrice(string currency = default(string), double amount = default(double), double? renewal = default(double?)) + public ProductPrice(string currency = default(string), double amount = default(double), double? renewal = default(double?)) { // to ensure "currency" is required (not null) if (currency == null) { - throw new ArgumentNullException("currency is a required property for SubscriptionPrice and cannot be null"); + throw new ArgumentNullException("currency is a required property for ProductPrice and cannot be null"); } this.Currency = currency; this.Amount = amount; @@ -64,7 +64,7 @@ namespace Tribufu.Model /// /// Gets or Sets Amount /// - [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + [DataMember(Name = "amount", EmitDefaultValue = false)] public double Amount { get; set; } /// @@ -80,7 +80,7 @@ namespace Tribufu.Model public override string ToString() { StringBuilder sb = new StringBuilder(); - sb.Append("class SubscriptionPrice {\n"); + sb.Append("class ProductPrice {\n"); sb.Append(" Currency: ").Append(Currency).Append("\n"); sb.Append(" Amount: ").Append(Amount).Append("\n"); sb.Append(" Renewal: ").Append(Renewal).Append("\n"); diff --git a/src/Tribufu/Model/ProductType.cs b/src/Tribufu/Model/ProductType.cs new file mode 100644 index 0000000..5a9f8e6 --- /dev/null +++ b/src/Tribufu/Model/ProductType.cs @@ -0,0 +1,48 @@ +/* + * Tribufu API + * + * API to access Tribufu services. + * + * The version of the OpenAPI document: 1.3.0 + * Contact: contact@tribufu.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; + +namespace Tribufu.Model +{ + /// + /// Defines ProductType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ProductType + { + /// + /// Enum Product for value: product + /// + [EnumMember(Value = "product")] + Product, + + /// + /// Enum Subscription for value: subscription + /// + [EnumMember(Value = "subscription")] + Subscription + } + +} diff --git a/src/Tribufu/Model/Profile.cs b/src/Tribufu/Model/Profile.cs index 67a6f51..9b5a469 100644 --- a/src/Tribufu/Model/Profile.cs +++ b/src/Tribufu/Model/Profile.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/ProfileGame.cs b/src/Tribufu/Model/ProfileGame.cs index 43ef46e..7bab8c4 100644 --- a/src/Tribufu/Model/ProfileGame.cs +++ b/src/Tribufu/Model/ProfileGame.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/ProfileGroup.cs b/src/Tribufu/Model/ProfileGroup.cs index f64691e..f4232ac 100644 --- a/src/Tribufu/Model/ProfileGroup.cs +++ b/src/Tribufu/Model/ProfileGroup.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/ResponseType.cs b/src/Tribufu/Model/ResponseType.cs index 946e975..5e7e6e5 100644 --- a/src/Tribufu/Model/ResponseType.cs +++ b/src/Tribufu/Model/ResponseType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/RevokeRequest.cs b/src/Tribufu/Model/RevokeRequest.cs index 78905ca..3c63768 100644 --- a/src/Tribufu/Model/RevokeRequest.cs +++ b/src/Tribufu/Model/RevokeRequest.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/Search.cs b/src/Tribufu/Model/Search.cs index f752b19..b891f60 100644 --- a/src/Tribufu/Model/Search.cs +++ b/src/Tribufu/Model/Search.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/SearchType.cs b/src/Tribufu/Model/SearchType.cs index b992591..2169c35 100644 --- a/src/Tribufu/Model/SearchType.cs +++ b/src/Tribufu/Model/SearchType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/ServerMetrics.cs b/src/Tribufu/Model/ServerMetrics.cs index 00a5230..fd44f10 100644 --- a/src/Tribufu/Model/ServerMetrics.cs +++ b/src/Tribufu/Model/ServerMetrics.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/File.cs b/src/Tribufu/Model/StorageFile.cs similarity index 88% rename from src/Tribufu/Model/File.cs rename to src/Tribufu/Model/StorageFile.cs index d63979e..2d9fac8 100644 --- a/src/Tribufu/Model/File.cs +++ b/src/Tribufu/Model/StorageFile.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,52 +27,52 @@ using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; namespace Tribufu.Model { /// - /// File + /// StorageFile /// - [DataContract(Name = "File")] - public partial class File : IValidatableObject + [DataContract(Name = "StorageFile")] + public partial class StorageFile : IValidatableObject { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected File() { } + protected StorageFile() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// id. /// name (required). /// contentType (required). /// url (required). + /// size. /// hash. /// etag. - /// size. /// created. /// updated. - public File(string id = default(string), string name = default(string), string contentType = default(string), string url = default(string), string hash = default(string), string etag = default(string), long size = default(long), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) + public StorageFile(string id = default(string), string name = default(string), string contentType = default(string), string url = default(string), long size = default(long), string hash = default(string), string etag = default(string), DateTime created = default(DateTime), DateTime? updated = default(DateTime?)) { // to ensure "name" is required (not null) if (name == null) { - throw new ArgumentNullException("name is a required property for File and cannot be null"); + throw new ArgumentNullException("name is a required property for StorageFile and cannot be null"); } this.Name = name; // to ensure "contentType" is required (not null) if (contentType == null) { - throw new ArgumentNullException("contentType is a required property for File and cannot be null"); + throw new ArgumentNullException("contentType is a required property for StorageFile and cannot be null"); } this.ContentType = contentType; // to ensure "url" is required (not null) if (url == null) { - throw new ArgumentNullException("url is a required property for File and cannot be null"); + throw new ArgumentNullException("url is a required property for StorageFile and cannot be null"); } this.Url = url; this.Id = id; + this.Size = size; this.Hash = hash; this.Etag = etag; - this.Size = size; this.Created = created; this.Updated = updated; } @@ -101,6 +101,12 @@ namespace Tribufu.Model [DataMember(Name = "url", IsRequired = true, EmitDefaultValue = true)] public string Url { get; set; } + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public long Size { get; set; } + /// /// Gets or Sets Hash /// @@ -113,12 +119,6 @@ namespace Tribufu.Model [DataMember(Name = "etag", EmitDefaultValue = true)] public string Etag { get; set; } - /// - /// Gets or Sets Size - /// - [DataMember(Name = "size", EmitDefaultValue = false)] - public long Size { get; set; } - /// /// Gets or Sets Created /// @@ -138,14 +138,14 @@ namespace Tribufu.Model public override string ToString() { StringBuilder sb = new StringBuilder(); - sb.Append("class File {\n"); + sb.Append("class StorageFile {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" ContentType: ").Append(ContentType).Append("\n"); sb.Append(" Url: ").Append(Url).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); sb.Append(" Hash: ").Append(Hash).Append("\n"); sb.Append(" Etag: ").Append(Etag).Append("\n"); - sb.Append(" Size: ").Append(Size).Append("\n"); sb.Append(" Created: ").Append(Created).Append("\n"); sb.Append(" Updated: ").Append(Updated).Append("\n"); sb.Append("}\n"); diff --git a/src/Tribufu/Model/TokenHintType.cs b/src/Tribufu/Model/TokenHintType.cs index 084e654..48ba1db 100644 --- a/src/Tribufu/Model/TokenHintType.cs +++ b/src/Tribufu/Model/TokenHintType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/TokenRequest.cs b/src/Tribufu/Model/TokenRequest.cs index b0f715c..641890c 100644 --- a/src/Tribufu/Model/TokenRequest.cs +++ b/src/Tribufu/Model/TokenRequest.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/TokenResponse.cs b/src/Tribufu/Model/TokenResponse.cs index ae3678a..de4bc31 100644 --- a/src/Tribufu/Model/TokenResponse.cs +++ b/src/Tribufu/Model/TokenResponse.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/TokenType.cs b/src/Tribufu/Model/TokenType.cs index de2a33c..47cc6ca 100644 --- a/src/Tribufu/Model/TokenType.cs +++ b/src/Tribufu/Model/TokenType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/UpdateProfile.cs b/src/Tribufu/Model/UpdateProfile.cs index e0e9aec..bd87068 100644 --- a/src/Tribufu/Model/UpdateProfile.cs +++ b/src/Tribufu/Model/UpdateProfile.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/UserInfo.cs b/src/Tribufu/Model/UserInfo.cs index 4617da3..8bd8932 100644 --- a/src/Tribufu/Model/UserInfo.cs +++ b/src/Tribufu/Model/UserInfo.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Tribufu/Model/UserType.cs b/src/Tribufu/Model/UserType.cs index 62b2126..eeafe58 100644 --- a/src/Tribufu/Model/UserType.cs +++ b/src/Tribufu/Model/UserType.cs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.6 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */