/* * Tribufu API * * API to access Tribufu services. * * The version of the OpenAPI document: 1.2.6 * Contact: contact@tribufu.com * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Net; using System.Net.Mime; using Tribufu.Client; using Tribufu.Model; namespace Tribufu.Api { /// /// Represents a collection of functions to interact with the API endpoints /// public interface ITribufuGeneratedApiSync : IApiAccessor { #region Synchronous Operations /// /// Authorize the client to access the user information. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.authorize</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// CodeResponse CodeResponse Authorize(AuthorizeRequest authorizeRequest = default(AuthorizeRequest), int operationIndex = 0); /// /// Authorize the client to access the user information. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.authorize</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of CodeResponse ApiResponse AuthorizeWithHttpInfo(AuthorizeRequest authorizeRequest = default(AuthorizeRequest), int operationIndex = 0); /// /// Change the email of a user. /// /// /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.email.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// void ChangeEmail(string id, Object body = default(Object), int operationIndex = 0); /// /// Change the email of a user. /// /// /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.email.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) ApiResponse ChangeEmailWithHttpInfo(string id, Object body = default(Object), int operationIndex = 0); /// /// Change the password of a user. /// /// /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.password.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// void ChangePassword(string id, Object body = default(Object), int operationIndex = 0); /// /// Change the password of a user. /// /// /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.password.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) ApiResponse ChangePasswordWithHttpInfo(string id, Object body = default(Object), int operationIndex = 0); /// /// Claim a game server. /// /// /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// void ClaimGameServer(string id, Object body = default(Object), int operationIndex = 0); /// /// Claim a game server. /// /// /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) ApiResponse ClaimGameServerWithHttpInfo(string id, Object body = default(Object), int operationIndex = 0); /// /// Claim a game server. /// /// /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// [Obsolete] void ClaimGameServerV1(string id, Object body = default(Object), int operationIndex = 0); /// /// Claim a game server. /// /// /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) [Obsolete] ApiResponse ClaimGameServerV1WithHttpInfo(string id, Object body = default(Object), int operationIndex = 0); /// /// Convert a string to base64 or vice versa. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.convert.base64</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// CryptoViewModel CryptoViewModel ConvertBase64(CryptoViewModel cryptoViewModel = default(CryptoViewModel), int operationIndex = 0); /// /// Convert a string to base64 or vice versa. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.convert.base64</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of CryptoViewModel ApiResponse ConvertBase64WithHttpInfo(CryptoViewModel cryptoViewModel = default(CryptoViewModel), int operationIndex = 0); /// /// Create an oauth2 client. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// void CreateClient(Object body = default(Object), int operationIndex = 0); /// /// Create an oauth2 client. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) ApiResponse CreateClientWithHttpInfo(Object body = default(Object), int operationIndex = 0); /// /// Create a new game server. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// void CreateGameServer(Object body = default(Object), int operationIndex = 0); /// /// Create a new game server. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) ApiResponse CreateGameServerWithHttpInfo(Object body = default(Object), int operationIndex = 0); /// /// Create a new game server cluster. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// void CreateGameServerCluster(Object body = default(Object), int operationIndex = 0); /// /// Create a new game server cluster. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) ApiResponse CreateGameServerClusterWithHttpInfo(Object body = default(Object), int operationIndex = 0); /// /// Create a new game server cluster. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// [Obsolete] void CreateGameServerClusterV1(Object body = default(Object), int operationIndex = 0); /// /// Create a new game server cluster. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) [Obsolete] ApiResponse CreateGameServerClusterV1WithHttpInfo(Object body = default(Object), int operationIndex = 0); /// /// Create a new game server. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// [Obsolete] void CreateGameServerV1(Object body = default(Object), int operationIndex = 0); /// /// Create a new game server. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) [Obsolete] ApiResponse CreateGameServerV1WithHttpInfo(Object body = default(Object), int operationIndex = 0); /// /// Create a new group. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// void CreateGroup(Object body = default(Object), int operationIndex = 0); /// /// Create a new group. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) ApiResponse CreateGroupWithHttpInfo(Object body = default(Object), int operationIndex = 0); /// /// Create a new package. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> /// /// Thrown when fails to make API call /// /// /// /// /// (optional) /// Index associated with the operation. /// Package Package CreatePackage(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0); /// /// Create a new package. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> /// /// Thrown when fails to make API call /// /// /// /// /// (optional) /// Index associated with the operation. /// ApiResponse of Package ApiResponse CreatePackageWithHttpInfo(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0); /// /// Create a new token with grant type. /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// TokenResponse TokenResponse CreateToken(TokenRequest tokenRequest = default(TokenRequest), int operationIndex = 0); /// /// Create a new token with grant type. /// /// /// /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of TokenResponse ApiResponse CreateTokenWithHttpInfo(TokenRequest tokenRequest = default(TokenRequest), int operationIndex = 0); /// /// Create an user. /// /// /// This endpoint is only available with client credentials. /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// void CreateUser(CreateUser createUser = default(CreateUser), int operationIndex = 0); /// /// Create an user. /// /// /// This endpoint is only available with client credentials. /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) ApiResponse CreateUserWithHttpInfo(CreateUser createUser = default(CreateUser), int operationIndex = 0); /// /// Delete an oauth2 client. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// void DeleteClient(string id, int operationIndex = 0); /// /// Delete an oauth2 client. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Object(void) ApiResponse DeleteClientWithHttpInfo(string id, int operationIndex = 0); /// /// Delete a game server. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// void DeleteGameServer(string id, int operationIndex = 0); /// /// Delete a game server. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Object(void) ApiResponse DeleteGameServerWithHttpInfo(string id, int operationIndex = 0); /// /// Delete a game server cluster. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// void DeleteGameServerCluster(string id, int operationIndex = 0); /// /// Delete a game server cluster. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Object(void) ApiResponse DeleteGameServerClusterWithHttpInfo(string id, int operationIndex = 0); /// /// Delete a game server cluster. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// [Obsolete] void DeleteGameServerClusterV1(string id, int operationIndex = 0); /// /// Delete a game server cluster. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Object(void) [Obsolete] ApiResponse DeleteGameServerClusterV1WithHttpInfo(string id, int operationIndex = 0); /// /// Delete a game server. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// [Obsolete] void DeleteGameServerV1(string id, int operationIndex = 0); /// /// Delete a game server. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Object(void) [Obsolete] ApiResponse DeleteGameServerV1WithHttpInfo(string id, int operationIndex = 0); /// /// Delete a group. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// void DeleteGroup(string id, int operationIndex = 0); /// /// Delete a group. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Object(void) ApiResponse DeleteGroupWithHttpInfo(string id, int operationIndex = 0); /// /// Delete an package. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// void DeletePackage(string id, int operationIndex = 0); /// /// Delete an package. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Object(void) ApiResponse DeletePackageWithHttpInfo(string id, int operationIndex = 0); /// /// Generate one or more flake ids. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// List<string> List GenerateFlakeId(int? amount = default(int?), int operationIndex = 0); /// /// Generate one or more flake ids. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of List<string> ApiResponse> GenerateFlakeIdWithHttpInfo(int? amount = default(int?), int operationIndex = 0); /// /// Generate one or more flake ids from a timestamp. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake.timestamp</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// List<string> List GenerateFlakeIdFromTimestamp(string timestamp, int? amount = default(int?), int operationIndex = 0); /// /// Generate one or more flake ids from a timestamp. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake.timestamp</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// ApiResponse of List<string> ApiResponse> GenerateFlakeIdFromTimestampWithHttpInfo(string timestamp, int? amount = default(int?), int operationIndex = 0); /// /// Generate a random password. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.password</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// Index associated with the operation. /// HashViewModel HashViewModel GeneratePassword(int? length = default(int?), bool? symbols = default(bool?), int operationIndex = 0); /// /// Generate a random password. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.password</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// Index associated with the operation. /// ApiResponse of HashViewModel ApiResponse GeneratePasswordWithHttpInfo(int? length = default(int?), bool? symbols = default(bool?), int operationIndex = 0); /// /// Generate one or more uuids with a specific version. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.uuid</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// Index associated with the operation. /// List<Guid> List GenerateUuid(int? version = default(int?), int? amount = default(int?), int operationIndex = 0); /// /// Generate one or more uuids with a specific version. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.uuid</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// Index associated with the operation. /// ApiResponse of List<Guid> ApiResponse> GenerateUuidWithHttpInfo(int? version = default(int?), int? amount = default(int?), int operationIndex = 0); /// /// Get an oauth2 client by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ModelClient ModelClient GetClientById(string id, int operationIndex = 0); /// /// Get an oauth2 client by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of ModelClient ApiResponse GetClientByIdWithHttpInfo(string id, int operationIndex = 0); /// /// Get current client information. /// /// Thrown when fails to make API call /// Index associated with the operation. /// ClientInfo ClientInfo GetClientInfo(int operationIndex = 0); /// /// Get current client information. /// /// /// /// /// Thrown when fails to make API call /// Index associated with the operation. /// ApiResponse of ClientInfo ApiResponse GetClientInfoWithHttpInfo(int operationIndex = 0); /// /// Get a list of oauth2 clients. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.list</code> /// /// Thrown when fails to make API call /// Filters results by organization, defaults to all organizations the user belongs to. (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<ModelClient> List GetClients(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of oauth2 clients. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.list</code> /// /// Thrown when fails to make API call /// Filters results by organization, defaults to all organizations the user belongs to. (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<ModelClient> ApiResponse> GetClientsWithHttpInfo(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get current ip address location. /// /// Thrown when fails to make API call /// Index associated with the operation. /// List<IpAddress> List GetCurrentIpAddress(int operationIndex = 0); /// /// Get current ip address location. /// /// /// /// /// Thrown when fails to make API call /// Index associated with the operation. /// ApiResponse of List<IpAddress> ApiResponse> GetCurrentIpAddressWithHttpInfo(int operationIndex = 0); /// /// Get a game by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Game Game GetGameById(string id, int operationIndex = 0); /// /// Get a game by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Game ApiResponse GetGameByIdWithHttpInfo(string id, int operationIndex = 0); /// /// Get a game server by address and query port. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> /// /// Thrown when fails to make API call /// /// /// Index associated with the operation. /// GameServer GameServer GetGameServerByAddressAndQueryPort(string address, int port, int operationIndex = 0); /// /// Get a game server by address and query port. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> /// /// Thrown when fails to make API call /// /// /// Index associated with the operation. /// ApiResponse of GameServer ApiResponse GetGameServerByAddressAndQueryPortWithHttpInfo(string address, int port, int operationIndex = 0); /// /// Get a game server by address and query port. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> /// /// Thrown when fails to make API call /// /// /// Index associated with the operation. /// GameServer [Obsolete] GameServer GetGameServerByAddressAndQueryPortV1(string address, int port, int operationIndex = 0); /// /// Get a game server by address and query port. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> /// /// Thrown when fails to make API call /// /// /// Index associated with the operation. /// ApiResponse of GameServer [Obsolete] ApiResponse GetGameServerByAddressAndQueryPortV1WithHttpInfo(string address, int port, int operationIndex = 0); /// /// Get a game server by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// GameServer GameServer GetGameServerById(string id, int operationIndex = 0); /// /// Get a game server by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of GameServer ApiResponse GetGameServerByIdWithHttpInfo(string id, int operationIndex = 0); /// /// Get a game server by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// GameServer [Obsolete] GameServer GetGameServerByIdV1(string id, int operationIndex = 0); /// /// Get a game server by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of GameServer [Obsolete] ApiResponse GetGameServerByIdV1WithHttpInfo(string id, int operationIndex = 0); /// /// Get a game server cluster by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// GameServerCluster GameServerCluster GetGameServerClusterById(string id, int operationIndex = 0); /// /// Get a game server cluster by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of GameServerCluster ApiResponse GetGameServerClusterByIdWithHttpInfo(string id, int operationIndex = 0); /// /// Get a game server cluster by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// GameServerCluster [Obsolete] GameServerCluster GetGameServerClusterByIdV1(string id, int operationIndex = 0); /// /// Get a game server cluster by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of GameServerCluster [Obsolete] ApiResponse GetGameServerClusterByIdV1WithHttpInfo(string id, int operationIndex = 0); /// /// Get a list of game server cluster servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<Object> List GetGameServerClusterServers(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of game server cluster servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<Object> ApiResponse> GetGameServerClusterServersWithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of game server cluster servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<Object> [Obsolete] List GetGameServerClusterServersV1(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of game server cluster servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<Object> [Obsolete] ApiResponse> GetGameServerClusterServersV1WithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of game server clusters. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<GameServerCluster> List GetGameServerClusters(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of game server clusters. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<GameServerCluster> ApiResponse> GetGameServerClustersWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of game server clusters. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<GameServerCluster> [Obsolete] List GetGameServerClustersV1(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of game server clusters. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<GameServerCluster> [Obsolete] ApiResponse> GetGameServerClustersV1WithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a game server query history. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<GameServerQuery> List GetGameServerQueries(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a game server query history. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<GameServerQuery> ApiResponse> GetGameServerQueriesWithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a game server query history. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<GameServerQuery> [Obsolete] List GetGameServerQueriesV1(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a game server query history. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<GameServerQuery> [Obsolete] ApiResponse> GetGameServerQueriesV1WithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of game servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// (optional) /// (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<GameServer> List GetGameServers(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of game servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// (optional) /// (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<GameServer> ApiResponse> GetGameServersWithHttpInfo(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of game servers from a country. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<GameServer> List GetGameServersByCountry(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of game servers from a country. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<GameServer> ApiResponse> GetGameServersByCountryWithHttpInfo(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of game servers from a country. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<GameServer> [Obsolete] List GetGameServersByCountryV1(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of game servers from a country. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<GameServer> [Obsolete] ApiResponse> GetGameServersByCountryV1WithHttpInfo(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of countries with the number of game servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// Dictionary<string, int> Dictionary GetGameServersCountries(int operationIndex = 0); /// /// Get a list of countries with the number of game servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// ApiResponse of Dictionary<string, int> ApiResponse> GetGameServersCountriesWithHttpInfo(int operationIndex = 0); /// /// Get a list of countries with the number of game servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// Dictionary<string, int> [Obsolete] Dictionary GetGameServersCountriesV1(int operationIndex = 0); /// /// Get a list of countries with the number of game servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// ApiResponse of Dictionary<string, int> [Obsolete] ApiResponse> GetGameServersCountriesV1WithHttpInfo(int operationIndex = 0); /// /// Get metrics about the tracked game servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// ServerMetrics ServerMetrics GetGameServersMetrics(int operationIndex = 0); /// /// Get metrics about the tracked game servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// ApiResponse of ServerMetrics ApiResponse GetGameServersMetricsWithHttpInfo(int operationIndex = 0); /// /// Get metrics about the tracked game servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// ServerMetrics [Obsolete] ServerMetrics GetGameServersMetricsV1(int operationIndex = 0); /// /// Get metrics about the tracked game servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// ApiResponse of ServerMetrics [Obsolete] ApiResponse GetGameServersMetricsV1WithHttpInfo(int operationIndex = 0); /// /// Get a list of game servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// (optional) /// (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<GameServer> [Obsolete] List GetGameServersV1(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of game servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// (optional) /// (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<GameServer> [Obsolete] ApiResponse> GetGameServersV1WithHttpInfo(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of games. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<Game> List GetGames(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of games. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<Game> ApiResponse> GetGamesWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a group by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Group Group GetGroupById(string id, int operationIndex = 0); /// /// Get a group by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Group ApiResponse GetGroupByIdWithHttpInfo(string id, int operationIndex = 0); /// /// Get a group by tag. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.tag</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Group Group GetGroupByTag(string tag, int operationIndex = 0); /// /// Get a group by tag. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.tag</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Group ApiResponse GetGroupByTagWithHttpInfo(string tag, int operationIndex = 0); /// /// Get a group by uuid. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.uuid</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Group Group GetGroupByUuid(Guid uuid, int operationIndex = 0); /// /// Get a group by uuid. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.uuid</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Group ApiResponse GetGroupByUuidWithHttpInfo(Guid uuid, int operationIndex = 0); /// /// Get a list of games of a group. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.game.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// List<GroupGame> List GetGroupGames(string id, int operationIndex = 0); /// /// Get a list of games of a group. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.game.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of List<GroupGame> ApiResponse> GetGroupGamesWithHttpInfo(string id, int operationIndex = 0); /// /// Get a list of members in a group. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.member.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// List<GroupMember> List GetGroupMembers(string id, int operationIndex = 0); /// /// Get a list of members in a group. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.member.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of List<GroupMember> ApiResponse> GetGroupMembersWithHttpInfo(string id, int operationIndex = 0); /// /// Get a list of groups. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<Group> List GetGroups(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of groups. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<Group> ApiResponse> GetGroupsWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a ip address location. /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// IpAddress IpAddress GetIpAddress(string address, int operationIndex = 0); /// /// Get a ip address location. /// /// /// /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of IpAddress ApiResponse GetIpAddressWithHttpInfo(string address, int operationIndex = 0); /// /// Get a list of ip addresses. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.list</code> /// /// Thrown when fails to make API call /// Filters results by organization, defaults to all organizations the user belongs to. (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<IpAddress> List GetIpAddresses(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of ip addresses. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.list</code> /// /// Thrown when fails to make API call /// Filters results by organization, defaults to all organizations the user belongs to. (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<IpAddress> ApiResponse> GetIpAddressesWithHttpInfo(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get the top 20 leaderboard users. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.leaderboard.get</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// List<LeaderboardItem> List GetLeaderboard(LeaderboardOrder? order = default(LeaderboardOrder?), int operationIndex = 0); /// /// Get the top 20 leaderboard users. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.leaderboard.get</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of List<LeaderboardItem> ApiResponse> GetLeaderboardWithHttpInfo(LeaderboardOrder? order = default(LeaderboardOrder?), int operationIndex = 0); /// /// Get a package by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Package Package GetPackageById(string id, int operationIndex = 0); /// /// Get a package by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Package ApiResponse GetPackageByIdWithHttpInfo(string id, int operationIndex = 0); /// /// Get a list of packages. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<Package> List GetPackages(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of packages. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<Package> ApiResponse> GetPackagesWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get the public keys for the client. /// /// Thrown when fails to make API call /// Index associated with the operation. /// void GetPublicKeys(int operationIndex = 0); /// /// Get the public keys for the client. /// /// /// /// /// Thrown when fails to make API call /// Index associated with the operation. /// ApiResponse of Object(void) ApiResponse GetPublicKeysWithHttpInfo(int operationIndex = 0); /// /// Get a subscription by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Subscription Subscription GetSubscriptionById(string id, int operationIndex = 0); /// /// Get a subscription by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Subscription ApiResponse GetSubscriptionByIdWithHttpInfo(string id, int operationIndex = 0); /// /// Get a list of subscriptions. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<Subscription> List GetSubscriptions(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of subscriptions. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<Subscription> ApiResponse> GetSubscriptionsWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of connected accounts of the user. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.user.account.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// List<Account> List GetUserAccounts(string id, int operationIndex = 0); /// /// Get a list of connected accounts of the user. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.user.account.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of List<Account> ApiResponse> GetUserAccountsWithHttpInfo(string id, int operationIndex = 0); /// /// Get a list of friends of the user. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// List<Object> List GetUserFriends(string id, int operationIndex = 0); /// /// Get a list of friends of the user. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of List<Object> ApiResponse> GetUserFriendsWithHttpInfo(string id, int operationIndex = 0); /// /// Get a list of friends of the user. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// List<Object> [Obsolete] List GetUserFriendsV1(string id, int operationIndex = 0); /// /// Get a list of friends of the user. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of List<Object> [Obsolete] ApiResponse> GetUserFriendsV1WithHttpInfo(string id, int operationIndex = 0); /// /// Get a list of games the user has played. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// List<ProfileGame> List GetUserGames(string id, int operationIndex = 0); /// /// Get a list of games the user has played. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of List<ProfileGame> ApiResponse> GetUserGamesWithHttpInfo(string id, int operationIndex = 0); /// /// Get a list of games the user has played. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// List<ProfileGame> [Obsolete] List GetUserGamesV1(string id, int operationIndex = 0); /// /// Get a list of games the user has played. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of List<ProfileGame> [Obsolete] ApiResponse> GetUserGamesV1WithHttpInfo(string id, int operationIndex = 0); /// /// Get a list of groups the user is a member of. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// List<ProfileGroup> List GetUserGroups(string id, int operationIndex = 0); /// /// Get a list of groups the user is a member of. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of List<ProfileGroup> ApiResponse> GetUserGroupsWithHttpInfo(string id, int operationIndex = 0); /// /// Get a list of groups the user is a member of. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// List<ProfileGroup> [Obsolete] List GetUserGroupsV1(string id, int operationIndex = 0); /// /// Get a list of groups the user is a member of. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of List<ProfileGroup> [Obsolete] ApiResponse> GetUserGroupsV1WithHttpInfo(string id, int operationIndex = 0); /// /// Get current user information. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.user.info</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// UserInfo UserInfo GetUserInfo(int operationIndex = 0); /// /// Get current user information. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.user.info</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// ApiResponse of UserInfo ApiResponse GetUserInfoWithHttpInfo(int operationIndex = 0); /// /// Get a user profile by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Profile Profile GetUserProfileById(string id, int operationIndex = 0); /// /// Get a user profile by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Profile ApiResponse GetUserProfileByIdWithHttpInfo(string id, int operationIndex = 0); /// /// Get a user profile by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Profile [Obsolete] Profile GetUserProfileByIdV1(string id, int operationIndex = 0); /// /// Get a user profile by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Profile [Obsolete] ApiResponse GetUserProfileByIdV1WithHttpInfo(string id, int operationIndex = 0); /// /// Get a user profile by name. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Profile Profile GetUserProfileByName(string name, int operationIndex = 0); /// /// Get a user profile by name. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Profile ApiResponse GetUserProfileByNameWithHttpInfo(string name, int operationIndex = 0); /// /// Get a user profile by name. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Profile [Obsolete] Profile GetUserProfileByNameV1(string name, int operationIndex = 0); /// /// Get a user profile by name. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Profile [Obsolete] ApiResponse GetUserProfileByNameV1WithHttpInfo(string name, int operationIndex = 0); /// /// Get a user profile by uuid. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Profile Profile GetUserProfileByUuid(Guid uuid, int operationIndex = 0); /// /// Get a user profile by uuid. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Profile ApiResponse GetUserProfileByUuidWithHttpInfo(Guid uuid, int operationIndex = 0); /// /// Get a user profile by uuid. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Profile [Obsolete] Profile GetUserProfileByUuidV1(Guid uuid, int operationIndex = 0); /// /// Get a user profile by uuid. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Profile [Obsolete] ApiResponse GetUserProfileByUuidV1WithHttpInfo(Guid uuid, int operationIndex = 0); /// /// Get a list of user profiles. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<Profile> List GetUserProfiles(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of user profiles. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<Profile> ApiResponse> GetUserProfilesWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of user profiles. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<Profile> [Obsolete] List GetUserProfilesV1(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of user profiles. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<Profile> [Obsolete] ApiResponse> GetUserProfilesV1WithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of sanctions the user has received. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// List<Object> List GetUserSanctions(string id, int operationIndex = 0); /// /// Get a list of sanctions the user has received. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of List<Object> ApiResponse> GetUserSanctionsWithHttpInfo(string id, int operationIndex = 0); /// /// Get a list of sanctions the user has received. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// List<Object> [Obsolete] List GetUserSanctionsV1(string id, int operationIndex = 0); /// /// Get a list of sanctions the user has received. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of List<Object> [Obsolete] ApiResponse> GetUserSanctionsV1WithHttpInfo(string id, int operationIndex = 0); /// /// Get a list of servers the user is owner of. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<GameServer> List GetUserServers(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of servers the user is owner of. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<GameServer> ApiResponse> GetUserServersWithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of servers the user is owner of. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<GameServer> [Obsolete] List GetUserServersV1(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Get a list of servers the user is owner of. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<GameServer> [Obsolete] ApiResponse> GetUserServersV1WithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0); /// /// Hash a string using argon2. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.argon2</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// HashViewModel HashViewModel HashArgon2(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0); /// /// Hash a string using argon2. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.argon2</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of HashViewModel ApiResponse HashArgon2WithHttpInfo(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0); /// /// Hash a string using bcrypt. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.bcrypt</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// HashViewModel HashViewModel HashBcrypt(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0); /// /// Hash a string using bcrypt. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.bcrypt</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of HashViewModel ApiResponse HashBcryptWithHttpInfo(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0); /// /// Hash a string using md5. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.md5</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// HashViewModel HashViewModel HashMd5(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0); /// /// Hash a string using md5. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.md5</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of HashViewModel ApiResponse HashMd5WithHttpInfo(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0); /// /// Hash a string using sha256. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.sha256</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// HashViewModel HashViewModel HashSha256(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0); /// /// Hash a string using sha256. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.sha256</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of HashViewModel ApiResponse HashSha256WithHttpInfo(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0); /// /// Introspect a token. /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// IntrospectResponse IntrospectResponse IntrospectToken(IntrospectRequest introspectRequest = default(IntrospectRequest), int operationIndex = 0); /// /// Introspect a token. /// /// /// /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of IntrospectResponse ApiResponse IntrospectTokenWithHttpInfo(IntrospectRequest introspectRequest = default(IntrospectRequest), int operationIndex = 0); /// /// Revoke a token. /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// void RevokeToken(RevokeRequest revokeRequest = default(RevokeRequest), int operationIndex = 0); /// /// Revoke a token. /// /// /// /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) ApiResponse RevokeTokenWithHttpInfo(RevokeRequest revokeRequest = default(RevokeRequest), int operationIndex = 0); /// /// Advanced search. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.search</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// List<Object> List Search(Search search = default(Search), int operationIndex = 0); /// /// Advanced search. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.search</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of List<Object> ApiResponse> SearchWithHttpInfo(Search search = default(Search), int operationIndex = 0); /// /// Update an oauth2 client. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// void UpdateClient(string id, Object body = default(Object), int operationIndex = 0); /// /// Update an oauth2 client. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) ApiResponse UpdateClientWithHttpInfo(string id, Object body = default(Object), int operationIndex = 0); /// /// Update a game server. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// void UpdateGameServer(string id, Object body = default(Object), int operationIndex = 0); /// /// Update a game server. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) ApiResponse UpdateGameServerWithHttpInfo(string id, Object body = default(Object), int operationIndex = 0); /// /// Update a game server cluster. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// void UpdateGameServerCluster(string id, Object body = default(Object), int operationIndex = 0); /// /// Update a game server cluster. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) ApiResponse UpdateGameServerClusterWithHttpInfo(string id, Object body = default(Object), int operationIndex = 0); /// /// Update a game server cluster. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// [Obsolete] void UpdateGameServerClusterV1(string id, Object body = default(Object), int operationIndex = 0); /// /// Update a game server cluster. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) [Obsolete] ApiResponse UpdateGameServerClusterV1WithHttpInfo(string id, Object body = default(Object), int operationIndex = 0); /// /// Update a game server. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// [Obsolete] void UpdateGameServerV1(string id, Object body = default(Object), int operationIndex = 0); /// /// Update a game server. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) [Obsolete] ApiResponse UpdateGameServerV1WithHttpInfo(string id, Object body = default(Object), int operationIndex = 0); /// /// Update a group. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// void UpdateGroup(string id, Object body = default(Object), int operationIndex = 0); /// /// Update a group. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) ApiResponse UpdateGroupWithHttpInfo(string id, Object body = default(Object), int operationIndex = 0); /// /// Update an package. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// void UpdatePackage(string id, Package package = default(Package), int operationIndex = 0); /// /// Update an package. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) ApiResponse UpdatePackageWithHttpInfo(string id, Package package = default(Package), int operationIndex = 0); /// /// Update a user profile. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Profile Profile UpdateUserProfile(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0); /// /// Update a user profile. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// ApiResponse of Profile ApiResponse UpdateUserProfileWithHttpInfo(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0); /// /// Update a user profile. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Profile [Obsolete] Profile UpdateUserProfileV1(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0); /// /// Update a user profile. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// ApiResponse of Profile [Obsolete] ApiResponse UpdateUserProfileV1WithHttpInfo(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0); #endregion Synchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// public interface ITribufuGeneratedApiAsync : IApiAccessor { #region Asynchronous Operations /// /// Authorize the client to access the user information. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.authorize</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of CodeResponse System.Threading.Tasks.Task AuthorizeAsync(AuthorizeRequest authorizeRequest = default(AuthorizeRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Authorize the client to access the user information. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.authorize</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (CodeResponse) System.Threading.Tasks.Task> AuthorizeWithHttpInfoAsync(AuthorizeRequest authorizeRequest = default(AuthorizeRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Change the email of a user. /// /// /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.email.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void System.Threading.Tasks.Task ChangeEmailAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Change the email of a user. /// /// /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.email.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse System.Threading.Tasks.Task> ChangeEmailWithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Change the password of a user. /// /// /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.password.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void System.Threading.Tasks.Task ChangePasswordAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Change the password of a user. /// /// /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.password.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse System.Threading.Tasks.Task> ChangePasswordWithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Claim a game server. /// /// /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void System.Threading.Tasks.Task ClaimGameServerAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Claim a game server. /// /// /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse System.Threading.Tasks.Task> ClaimGameServerWithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Claim a game server. /// /// /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void [Obsolete] System.Threading.Tasks.Task ClaimGameServerV1Async(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Claim a game server. /// /// /// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse [Obsolete] System.Threading.Tasks.Task> ClaimGameServerV1WithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Convert a string to base64 or vice versa. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.convert.base64</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of CryptoViewModel System.Threading.Tasks.Task ConvertBase64Async(CryptoViewModel cryptoViewModel = default(CryptoViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Convert a string to base64 or vice versa. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.convert.base64</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (CryptoViewModel) System.Threading.Tasks.Task> ConvertBase64WithHttpInfoAsync(CryptoViewModel cryptoViewModel = default(CryptoViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create an oauth2 client. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void System.Threading.Tasks.Task CreateClientAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create an oauth2 client. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse System.Threading.Tasks.Task> CreateClientWithHttpInfoAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create a new game server. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void System.Threading.Tasks.Task CreateGameServerAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create a new game server. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse System.Threading.Tasks.Task> CreateGameServerWithHttpInfoAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create a new game server cluster. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void System.Threading.Tasks.Task CreateGameServerClusterAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create a new game server cluster. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse System.Threading.Tasks.Task> CreateGameServerClusterWithHttpInfoAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create a new game server cluster. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void [Obsolete] System.Threading.Tasks.Task CreateGameServerClusterV1Async(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create a new game server cluster. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse [Obsolete] System.Threading.Tasks.Task> CreateGameServerClusterV1WithHttpInfoAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create a new game server. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void [Obsolete] System.Threading.Tasks.Task CreateGameServerV1Async(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create a new game server. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse [Obsolete] System.Threading.Tasks.Task> CreateGameServerV1WithHttpInfoAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create a new group. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void System.Threading.Tasks.Task CreateGroupAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create a new group. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse System.Threading.Tasks.Task> CreateGroupWithHttpInfoAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create a new package. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> /// /// Thrown when fails to make API call /// /// /// /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Package System.Threading.Tasks.Task CreatePackageAsync(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create a new package. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> /// /// Thrown when fails to make API call /// /// /// /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Package) System.Threading.Tasks.Task> CreatePackageWithHttpInfoAsync(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create a new token with grant type. /// /// /// /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TokenResponse System.Threading.Tasks.Task CreateTokenAsync(TokenRequest tokenRequest = default(TokenRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create a new token with grant type. /// /// /// /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TokenResponse) System.Threading.Tasks.Task> CreateTokenWithHttpInfoAsync(TokenRequest tokenRequest = default(TokenRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create an user. /// /// /// This endpoint is only available with client credentials. /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void System.Threading.Tasks.Task CreateUserAsync(CreateUser createUser = default(CreateUser), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Create an user. /// /// /// This endpoint is only available with client credentials. /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(CreateUser createUser = default(CreateUser), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete an oauth2 client. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void System.Threading.Tasks.Task DeleteClientAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete an oauth2 client. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse System.Threading.Tasks.Task> DeleteClientWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete a game server. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void System.Threading.Tasks.Task DeleteGameServerAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete a game server. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse System.Threading.Tasks.Task> DeleteGameServerWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete a game server cluster. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void System.Threading.Tasks.Task DeleteGameServerClusterAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete a game server cluster. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse System.Threading.Tasks.Task> DeleteGameServerClusterWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete a game server cluster. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void [Obsolete] System.Threading.Tasks.Task DeleteGameServerClusterV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete a game server cluster. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse [Obsolete] System.Threading.Tasks.Task> DeleteGameServerClusterV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete a game server. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void [Obsolete] System.Threading.Tasks.Task DeleteGameServerV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete a game server. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse [Obsolete] System.Threading.Tasks.Task> DeleteGameServerV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete a group. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void System.Threading.Tasks.Task DeleteGroupAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete a group. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse System.Threading.Tasks.Task> DeleteGroupWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete an package. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void System.Threading.Tasks.Task DeletePackageAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Delete an package. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse System.Threading.Tasks.Task> DeletePackageWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Generate one or more flake ids. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<string> System.Threading.Tasks.Task> GenerateFlakeIdAsync(int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Generate one or more flake ids. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<string>) System.Threading.Tasks.Task>> GenerateFlakeIdWithHttpInfoAsync(int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Generate one or more flake ids from a timestamp. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake.timestamp</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<string> System.Threading.Tasks.Task> GenerateFlakeIdFromTimestampAsync(string timestamp, int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Generate one or more flake ids from a timestamp. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake.timestamp</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<string>) System.Threading.Tasks.Task>> GenerateFlakeIdFromTimestampWithHttpInfoAsync(string timestamp, int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Generate a random password. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.password</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of HashViewModel System.Threading.Tasks.Task GeneratePasswordAsync(int? length = default(int?), bool? symbols = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Generate a random password. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.password</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (HashViewModel) System.Threading.Tasks.Task> GeneratePasswordWithHttpInfoAsync(int? length = default(int?), bool? symbols = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Generate one or more uuids with a specific version. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.uuid</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Guid> System.Threading.Tasks.Task> GenerateUuidAsync(int? version = default(int?), int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Generate one or more uuids with a specific version. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.uuid</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Guid>) System.Threading.Tasks.Task>> GenerateUuidWithHttpInfoAsync(int? version = default(int?), int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get an oauth2 client by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ModelClient System.Threading.Tasks.Task GetClientByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get an oauth2 client by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ModelClient) System.Threading.Tasks.Task> GetClientByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get current client information. /// /// /// /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ClientInfo System.Threading.Tasks.Task GetClientInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get current client information. /// /// /// /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ClientInfo) System.Threading.Tasks.Task> GetClientInfoWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of oauth2 clients. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.list</code> /// /// Thrown when fails to make API call /// Filters results by organization, defaults to all organizations the user belongs to. (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<ModelClient> System.Threading.Tasks.Task> GetClientsAsync(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of oauth2 clients. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.list</code> /// /// Thrown when fails to make API call /// Filters results by organization, defaults to all organizations the user belongs to. (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<ModelClient>) System.Threading.Tasks.Task>> GetClientsWithHttpInfoAsync(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get current ip address location. /// /// /// /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<IpAddress> System.Threading.Tasks.Task> GetCurrentIpAddressAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get current ip address location. /// /// /// /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<IpAddress>) System.Threading.Tasks.Task>> GetCurrentIpAddressWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a game by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Game System.Threading.Tasks.Task GetGameByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a game by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Game) System.Threading.Tasks.Task> GetGameByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a game server by address and query port. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> /// /// Thrown when fails to make API call /// /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of GameServer System.Threading.Tasks.Task GetGameServerByAddressAndQueryPortAsync(string address, int port, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a game server by address and query port. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> /// /// Thrown when fails to make API call /// /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (GameServer) System.Threading.Tasks.Task> GetGameServerByAddressAndQueryPortWithHttpInfoAsync(string address, int port, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a game server by address and query port. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> /// /// Thrown when fails to make API call /// /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of GameServer [Obsolete] System.Threading.Tasks.Task GetGameServerByAddressAndQueryPortV1Async(string address, int port, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a game server by address and query port. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> /// /// Thrown when fails to make API call /// /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (GameServer) [Obsolete] System.Threading.Tasks.Task> GetGameServerByAddressAndQueryPortV1WithHttpInfoAsync(string address, int port, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a game server by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of GameServer System.Threading.Tasks.Task GetGameServerByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a game server by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (GameServer) System.Threading.Tasks.Task> GetGameServerByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a game server by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of GameServer [Obsolete] System.Threading.Tasks.Task GetGameServerByIdV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a game server by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (GameServer) [Obsolete] System.Threading.Tasks.Task> GetGameServerByIdV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a game server cluster by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of GameServerCluster System.Threading.Tasks.Task GetGameServerClusterByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a game server cluster by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (GameServerCluster) System.Threading.Tasks.Task> GetGameServerClusterByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a game server cluster by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of GameServerCluster [Obsolete] System.Threading.Tasks.Task GetGameServerClusterByIdV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a game server cluster by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (GameServerCluster) [Obsolete] System.Threading.Tasks.Task> GetGameServerClusterByIdV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of game server cluster servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Object> System.Threading.Tasks.Task> GetGameServerClusterServersAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of game server cluster servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Object>) System.Threading.Tasks.Task>> GetGameServerClusterServersWithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of game server cluster servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Object> [Obsolete] System.Threading.Tasks.Task> GetGameServerClusterServersV1Async(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of game server cluster servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Object>) [Obsolete] System.Threading.Tasks.Task>> GetGameServerClusterServersV1WithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of game server clusters. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<GameServerCluster> System.Threading.Tasks.Task> GetGameServerClustersAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of game server clusters. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<GameServerCluster>) System.Threading.Tasks.Task>> GetGameServerClustersWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of game server clusters. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<GameServerCluster> [Obsolete] System.Threading.Tasks.Task> GetGameServerClustersV1Async(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of game server clusters. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<GameServerCluster>) [Obsolete] System.Threading.Tasks.Task>> GetGameServerClustersV1WithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a game server query history. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<GameServerQuery> System.Threading.Tasks.Task> GetGameServerQueriesAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a game server query history. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<GameServerQuery>) System.Threading.Tasks.Task>> GetGameServerQueriesWithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a game server query history. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<GameServerQuery> [Obsolete] System.Threading.Tasks.Task> GetGameServerQueriesV1Async(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a game server query history. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<GameServerQuery>) [Obsolete] System.Threading.Tasks.Task>> GetGameServerQueriesV1WithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of game servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// (optional) /// (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<GameServer> System.Threading.Tasks.Task> GetGameServersAsync(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of game servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// (optional) /// (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<GameServer>) System.Threading.Tasks.Task>> GetGameServersWithHttpInfoAsync(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of game servers from a country. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<GameServer> System.Threading.Tasks.Task> GetGameServersByCountryAsync(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of game servers from a country. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<GameServer>) System.Threading.Tasks.Task>> GetGameServersByCountryWithHttpInfoAsync(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of game servers from a country. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<GameServer> [Obsolete] System.Threading.Tasks.Task> GetGameServersByCountryV1Async(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of game servers from a country. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<GameServer>) [Obsolete] System.Threading.Tasks.Task>> GetGameServersByCountryV1WithHttpInfoAsync(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of countries with the number of game servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Dictionary<string, int> System.Threading.Tasks.Task> GetGameServersCountriesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of countries with the number of game servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Dictionary<string, int>) System.Threading.Tasks.Task>> GetGameServersCountriesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of countries with the number of game servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Dictionary<string, int> [Obsolete] System.Threading.Tasks.Task> GetGameServersCountriesV1Async(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of countries with the number of game servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Dictionary<string, int>) [Obsolete] System.Threading.Tasks.Task>> GetGameServersCountriesV1WithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get metrics about the tracked game servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ServerMetrics System.Threading.Tasks.Task GetGameServersMetricsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get metrics about the tracked game servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ServerMetrics) System.Threading.Tasks.Task> GetGameServersMetricsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get metrics about the tracked game servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ServerMetrics [Obsolete] System.Threading.Tasks.Task GetGameServersMetricsV1Async(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get metrics about the tracked game servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ServerMetrics) [Obsolete] System.Threading.Tasks.Task> GetGameServersMetricsV1WithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of game servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// (optional) /// (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<GameServer> [Obsolete] System.Threading.Tasks.Task> GetGameServersV1Async(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of game servers. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// (optional) /// (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<GameServer>) [Obsolete] System.Threading.Tasks.Task>> GetGameServersV1WithHttpInfoAsync(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of games. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Game> System.Threading.Tasks.Task> GetGamesAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of games. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Game>) System.Threading.Tasks.Task>> GetGamesWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a group by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Group System.Threading.Tasks.Task GetGroupByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a group by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Group) System.Threading.Tasks.Task> GetGroupByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a group by tag. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.tag</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Group System.Threading.Tasks.Task GetGroupByTagAsync(string tag, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a group by tag. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.tag</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Group) System.Threading.Tasks.Task> GetGroupByTagWithHttpInfoAsync(string tag, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a group by uuid. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.uuid</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Group System.Threading.Tasks.Task GetGroupByUuidAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a group by uuid. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.uuid</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Group) System.Threading.Tasks.Task> GetGroupByUuidWithHttpInfoAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of games of a group. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.game.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<GroupGame> System.Threading.Tasks.Task> GetGroupGamesAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of games of a group. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.game.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<GroupGame>) System.Threading.Tasks.Task>> GetGroupGamesWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of members in a group. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.member.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<GroupMember> System.Threading.Tasks.Task> GetGroupMembersAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of members in a group. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.member.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<GroupMember>) System.Threading.Tasks.Task>> GetGroupMembersWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of groups. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Group> System.Threading.Tasks.Task> GetGroupsAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of groups. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Group>) System.Threading.Tasks.Task>> GetGroupsWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a ip address location. /// /// /// /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of IpAddress System.Threading.Tasks.Task GetIpAddressAsync(string address, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a ip address location. /// /// /// /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (IpAddress) System.Threading.Tasks.Task> GetIpAddressWithHttpInfoAsync(string address, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of ip addresses. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.list</code> /// /// Thrown when fails to make API call /// Filters results by organization, defaults to all organizations the user belongs to. (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<IpAddress> System.Threading.Tasks.Task> GetIpAddressesAsync(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of ip addresses. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.list</code> /// /// Thrown when fails to make API call /// Filters results by organization, defaults to all organizations the user belongs to. (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<IpAddress>) System.Threading.Tasks.Task>> GetIpAddressesWithHttpInfoAsync(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get the top 20 leaderboard users. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.leaderboard.get</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<LeaderboardItem> System.Threading.Tasks.Task> GetLeaderboardAsync(LeaderboardOrder? order = default(LeaderboardOrder?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get the top 20 leaderboard users. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.leaderboard.get</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<LeaderboardItem>) System.Threading.Tasks.Task>> GetLeaderboardWithHttpInfoAsync(LeaderboardOrder? order = default(LeaderboardOrder?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a package by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Package System.Threading.Tasks.Task GetPackageByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a package by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Package) System.Threading.Tasks.Task> GetPackageByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of packages. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Package> System.Threading.Tasks.Task> GetPackagesAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of packages. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Package>) System.Threading.Tasks.Task>> GetPackagesWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get the public keys for the client. /// /// /// /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void System.Threading.Tasks.Task GetPublicKeysAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get the public keys for the client. /// /// /// /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse System.Threading.Tasks.Task> GetPublicKeysWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a subscription by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Subscription System.Threading.Tasks.Task GetSubscriptionByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a subscription by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Subscription) System.Threading.Tasks.Task> GetSubscriptionByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of subscriptions. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Subscription> System.Threading.Tasks.Task> GetSubscriptionsAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of subscriptions. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Subscription>) System.Threading.Tasks.Task>> GetSubscriptionsWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of connected accounts of the user. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.user.account.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Account> System.Threading.Tasks.Task> GetUserAccountsAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of connected accounts of the user. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.user.account.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Account>) System.Threading.Tasks.Task>> GetUserAccountsWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of friends of the user. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Object> System.Threading.Tasks.Task> GetUserFriendsAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of friends of the user. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Object>) System.Threading.Tasks.Task>> GetUserFriendsWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of friends of the user. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Object> [Obsolete] System.Threading.Tasks.Task> GetUserFriendsV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of friends of the user. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Object>) [Obsolete] System.Threading.Tasks.Task>> GetUserFriendsV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of games the user has played. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<ProfileGame> System.Threading.Tasks.Task> GetUserGamesAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of games the user has played. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<ProfileGame>) System.Threading.Tasks.Task>> GetUserGamesWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of games the user has played. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<ProfileGame> [Obsolete] System.Threading.Tasks.Task> GetUserGamesV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of games the user has played. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<ProfileGame>) [Obsolete] System.Threading.Tasks.Task>> GetUserGamesV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of groups the user is a member of. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<ProfileGroup> System.Threading.Tasks.Task> GetUserGroupsAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of groups the user is a member of. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<ProfileGroup>) System.Threading.Tasks.Task>> GetUserGroupsWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of groups the user is a member of. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<ProfileGroup> [Obsolete] System.Threading.Tasks.Task> GetUserGroupsV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of groups the user is a member of. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<ProfileGroup>) [Obsolete] System.Threading.Tasks.Task>> GetUserGroupsV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get current user information. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.user.info</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UserInfo System.Threading.Tasks.Task GetUserInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get current user information. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.user.info</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UserInfo) System.Threading.Tasks.Task> GetUserInfoWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a user profile by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Profile System.Threading.Tasks.Task GetUserProfileByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a user profile by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Profile) System.Threading.Tasks.Task> GetUserProfileByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a user profile by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Profile [Obsolete] System.Threading.Tasks.Task GetUserProfileByIdV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a user profile by id. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Profile) [Obsolete] System.Threading.Tasks.Task> GetUserProfileByIdV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a user profile by name. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Profile System.Threading.Tasks.Task GetUserProfileByNameAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a user profile by name. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Profile) System.Threading.Tasks.Task> GetUserProfileByNameWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a user profile by name. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Profile [Obsolete] System.Threading.Tasks.Task GetUserProfileByNameV1Async(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a user profile by name. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Profile) [Obsolete] System.Threading.Tasks.Task> GetUserProfileByNameV1WithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a user profile by uuid. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Profile System.Threading.Tasks.Task GetUserProfileByUuidAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a user profile by uuid. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Profile) System.Threading.Tasks.Task> GetUserProfileByUuidWithHttpInfoAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a user profile by uuid. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Profile [Obsolete] System.Threading.Tasks.Task GetUserProfileByUuidV1Async(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a user profile by uuid. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Profile) [Obsolete] System.Threading.Tasks.Task> GetUserProfileByUuidV1WithHttpInfoAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of user profiles. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Profile> System.Threading.Tasks.Task> GetUserProfilesAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of user profiles. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Profile>) System.Threading.Tasks.Task>> GetUserProfilesWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of user profiles. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Profile> [Obsolete] System.Threading.Tasks.Task> GetUserProfilesV1Async(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of user profiles. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Profile>) [Obsolete] System.Threading.Tasks.Task>> GetUserProfilesV1WithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of sanctions the user has received. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Object> System.Threading.Tasks.Task> GetUserSanctionsAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of sanctions the user has received. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Object>) System.Threading.Tasks.Task>> GetUserSanctionsWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of sanctions the user has received. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Object> [Obsolete] System.Threading.Tasks.Task> GetUserSanctionsV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of sanctions the user has received. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Object>) [Obsolete] System.Threading.Tasks.Task>> GetUserSanctionsV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of servers the user is owner of. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<GameServer> System.Threading.Tasks.Task> GetUserServersAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of servers the user is owner of. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<GameServer>) System.Threading.Tasks.Task>> GetUserServersWithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of servers the user is owner of. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<GameServer> [Obsolete] System.Threading.Tasks.Task> GetUserServersV1Async(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get a list of servers the user is owner of. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<GameServer>) [Obsolete] System.Threading.Tasks.Task>> GetUserServersV1WithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Hash a string using argon2. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.argon2</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of HashViewModel System.Threading.Tasks.Task HashArgon2Async(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Hash a string using argon2. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.argon2</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (HashViewModel) System.Threading.Tasks.Task> HashArgon2WithHttpInfoAsync(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Hash a string using bcrypt. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.bcrypt</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of HashViewModel System.Threading.Tasks.Task HashBcryptAsync(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Hash a string using bcrypt. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.bcrypt</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (HashViewModel) System.Threading.Tasks.Task> HashBcryptWithHttpInfoAsync(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Hash a string using md5. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.md5</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of HashViewModel System.Threading.Tasks.Task HashMd5Async(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Hash a string using md5. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.md5</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (HashViewModel) System.Threading.Tasks.Task> HashMd5WithHttpInfoAsync(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Hash a string using sha256. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.sha256</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of HashViewModel System.Threading.Tasks.Task HashSha256Async(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Hash a string using sha256. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.sha256</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (HashViewModel) System.Threading.Tasks.Task> HashSha256WithHttpInfoAsync(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Introspect a token. /// /// /// /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of IntrospectResponse System.Threading.Tasks.Task IntrospectTokenAsync(IntrospectRequest introspectRequest = default(IntrospectRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Introspect a token. /// /// /// /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (IntrospectResponse) System.Threading.Tasks.Task> IntrospectTokenWithHttpInfoAsync(IntrospectRequest introspectRequest = default(IntrospectRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Revoke a token. /// /// /// /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void System.Threading.Tasks.Task RevokeTokenAsync(RevokeRequest revokeRequest = default(RevokeRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Revoke a token. /// /// /// /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse System.Threading.Tasks.Task> RevokeTokenWithHttpInfoAsync(RevokeRequest revokeRequest = default(RevokeRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Advanced search. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.search</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Object> System.Threading.Tasks.Task> SearchAsync(Search search = default(Search), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Advanced search. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.search</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Object>) System.Threading.Tasks.Task>> SearchWithHttpInfoAsync(Search search = default(Search), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update an oauth2 client. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void System.Threading.Tasks.Task UpdateClientAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update an oauth2 client. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse System.Threading.Tasks.Task> UpdateClientWithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update a game server. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void System.Threading.Tasks.Task UpdateGameServerAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update a game server. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse System.Threading.Tasks.Task> UpdateGameServerWithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update a game server cluster. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void System.Threading.Tasks.Task UpdateGameServerClusterAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update a game server cluster. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse System.Threading.Tasks.Task> UpdateGameServerClusterWithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update a game server cluster. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void [Obsolete] System.Threading.Tasks.Task UpdateGameServerClusterV1Async(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update a game server cluster. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse [Obsolete] System.Threading.Tasks.Task> UpdateGameServerClusterV1WithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update a game server. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void [Obsolete] System.Threading.Tasks.Task UpdateGameServerV1Async(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update a game server. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse [Obsolete] System.Threading.Tasks.Task> UpdateGameServerV1WithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update a group. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void System.Threading.Tasks.Task UpdateGroupAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update a group. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.group.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse System.Threading.Tasks.Task> UpdateGroupWithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update an package. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void System.Threading.Tasks.Task UpdatePackageAsync(string id, Package package = default(Package), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update an package. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.package.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse System.Threading.Tasks.Task> UpdatePackageWithHttpInfoAsync(string id, Package package = default(Package), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update a user profile. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Profile System.Threading.Tasks.Task UpdateUserProfileAsync(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update a user profile. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Profile) System.Threading.Tasks.Task> UpdateUserProfileWithHttpInfoAsync(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update a user profile. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Profile [Obsolete] System.Threading.Tasks.Task UpdateUserProfileV1Async(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update a user profile. /// /// /// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Profile) [Obsolete] System.Threading.Tasks.Task> UpdateUserProfileV1WithHttpInfoAsync(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// public interface ITribufuGeneratedApi : ITribufuGeneratedApiSync, ITribufuGeneratedApiAsync { } /// /// Represents a collection of functions to interact with the API endpoints /// public partial class TribufuGeneratedApi : ITribufuGeneratedApi { private Tribufu.Client.ExceptionFactory _exceptionFactory = (name, response) => null; /// /// Initializes a new instance of the class. /// /// public TribufuGeneratedApi() : this((string)null) { } /// /// Initializes a new instance of the class. /// /// public TribufuGeneratedApi(string basePath) { this.Configuration = Tribufu.Client.Configuration.MergeConfigurations( Tribufu.Client.GlobalConfiguration.Instance, new Tribufu.Client.Configuration { BasePath = basePath } ); this.Client = new Tribufu.Client.ApiClient(this.Configuration.BasePath); this.AsynchronousClient = new Tribufu.Client.ApiClient(this.Configuration.BasePath); this.ExceptionFactory = Tribufu.Client.Configuration.DefaultExceptionFactory; } /// /// Initializes a new instance of the class /// using Configuration object /// /// An instance of Configuration /// public TribufuGeneratedApi(Tribufu.Client.Configuration configuration) { if (configuration == null) throw new ArgumentNullException("configuration"); this.Configuration = Tribufu.Client.Configuration.MergeConfigurations( Tribufu.Client.GlobalConfiguration.Instance, configuration ); this.Client = new Tribufu.Client.ApiClient(this.Configuration.BasePath); this.AsynchronousClient = new Tribufu.Client.ApiClient(this.Configuration.BasePath); ExceptionFactory = Tribufu.Client.Configuration.DefaultExceptionFactory; } /// /// Initializes a new instance of the class /// using a Configuration object and client instance. /// /// The client interface for synchronous API access. /// The client interface for asynchronous API access. /// The configuration object. public TribufuGeneratedApi(Tribufu.Client.ISynchronousClient client, Tribufu.Client.IAsynchronousClient asyncClient, Tribufu.Client.IReadableConfiguration configuration) { if (client == null) throw new ArgumentNullException("client"); if (asyncClient == null) throw new ArgumentNullException("asyncClient"); if (configuration == null) throw new ArgumentNullException("configuration"); this.Client = client; this.AsynchronousClient = asyncClient; this.Configuration = configuration; this.ExceptionFactory = Tribufu.Client.Configuration.DefaultExceptionFactory; } /// /// The client for accessing this underlying API asynchronously. /// public Tribufu.Client.IAsynchronousClient AsynchronousClient { get; set; } /// /// The client for accessing this underlying API synchronously. /// public Tribufu.Client.ISynchronousClient Client { get; set; } /// /// Gets the base path of the API client. /// /// The base path public string GetBasePath() { return this.Configuration.BasePath; } /// /// Gets or sets the configuration object /// /// An instance of the Configuration public Tribufu.Client.IReadableConfiguration Configuration { get; set; } /// /// Provides a factory method hook for the creation of exceptions. /// public Tribufu.Client.ExceptionFactory ExceptionFactory { get { if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) { throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); } return _exceptionFactory; } set { _exceptionFactory = value; } } /// /// Authorize the client to access the user information. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.authorize</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// CodeResponse public CodeResponse Authorize(AuthorizeRequest authorizeRequest = default(AuthorizeRequest), int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = AuthorizeWithHttpInfo(authorizeRequest); return localVarResponse.Data; } /// /// Authorize the client to access the user information. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.authorize</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of CodeResponse public Tribufu.Client.ApiResponse AuthorizeWithHttpInfo(AuthorizeRequest authorizeRequest = default(AuthorizeRequest), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = authorizeRequest; localVarRequestOptions.Operation = "TribufuGeneratedApi.Authorize"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Post("/v1/oauth2/authorize", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("Authorize", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Authorize the client to access the user information. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.authorize</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of CodeResponse public async System.Threading.Tasks.Task AuthorizeAsync(AuthorizeRequest authorizeRequest = default(AuthorizeRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await AuthorizeWithHttpInfoAsync(authorizeRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Authorize the client to access the user information. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.authorize</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (CodeResponse) public async System.Threading.Tasks.Task> AuthorizeWithHttpInfoAsync(AuthorizeRequest authorizeRequest = default(AuthorizeRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = authorizeRequest; localVarRequestOptions.Operation = "TribufuGeneratedApi.Authorize"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/oauth2/authorize", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("Authorize", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Change the email of a user. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.email.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// public void ChangeEmail(string id, Object body = default(Object), int operationIndex = 0) { ChangeEmailWithHttpInfo(id, body); } /// /// Change the email of a user. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.email.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) public Tribufu.Client.ApiResponse ChangeEmailWithHttpInfo(string id, Object body = default(Object), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->ChangeEmail"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json-patch+json", "application/json", "text/json", "application/*+json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.ChangeEmail"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Put("/v1/users/{id}/email", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("ChangeEmail", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Change the email of a user. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.email.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void public async System.Threading.Tasks.Task ChangeEmailAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ChangeEmailWithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); } /// /// Change the email of a user. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.email.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse public async System.Threading.Tasks.Task> ChangeEmailWithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->ChangeEmail"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json-patch+json", "application/json", "text/json", "application/*+json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.ChangeEmail"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/users/{id}/email", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("ChangeEmail", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Change the password of a user. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.password.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// public void ChangePassword(string id, Object body = default(Object), int operationIndex = 0) { ChangePasswordWithHttpInfo(id, body); } /// /// Change the password of a user. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.password.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) public Tribufu.Client.ApiResponse ChangePasswordWithHttpInfo(string id, Object body = default(Object), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->ChangePassword"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json-patch+json", "application/json", "text/json", "application/*+json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.ChangePassword"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Put("/v1/users/{id}/password", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("ChangePassword", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Change the password of a user. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.password.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void public async System.Threading.Tasks.Task ChangePasswordAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ChangePasswordWithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); } /// /// Change the password of a user. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.password.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse public async System.Threading.Tasks.Task> ChangePasswordWithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->ChangePassword"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json-patch+json", "application/json", "text/json", "application/*+json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.ChangePassword"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/users/{id}/password", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("ChangePassword", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Claim a game server. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// public void ClaimGameServer(string id, Object body = default(Object), int operationIndex = 0) { ClaimGameServerWithHttpInfo(id, body); } /// /// Claim a game server. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) public Tribufu.Client.ApiResponse ClaimGameServerWithHttpInfo(string id, Object body = default(Object), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->ClaimGameServer"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.ClaimGameServer"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Put("/v1/games/servers/{id}/claim", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("ClaimGameServer", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Claim a game server. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void public async System.Threading.Tasks.Task ClaimGameServerAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ClaimGameServerWithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); } /// /// Claim a game server. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse public async System.Threading.Tasks.Task> ClaimGameServerWithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->ClaimGameServer"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.ClaimGameServer"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/games/servers/{id}/claim", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("ClaimGameServer", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Claim a game server. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// [Obsolete] public void ClaimGameServerV1(string id, Object body = default(Object), int operationIndex = 0) { ClaimGameServerV1WithHttpInfo(id, body); } /// /// Claim a game server. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) [Obsolete] public Tribufu.Client.ApiResponse ClaimGameServerV1WithHttpInfo(string id, Object body = default(Object), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->ClaimGameServerV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.ClaimGameServerV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Put("/v1/servers/{id}/claim", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("ClaimGameServerV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Claim a game server. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void [Obsolete] public async System.Threading.Tasks.Task ClaimGameServerV1Async(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ClaimGameServerV1WithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); } /// /// Claim a game server. This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.game.server.claim</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse [Obsolete] public async System.Threading.Tasks.Task> ClaimGameServerV1WithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->ClaimGameServerV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.ClaimGameServerV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/servers/{id}/claim", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("ClaimGameServerV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Convert a string to base64 or vice versa. <b>🔒 Required permissions:</b> <code>tribufu.utils.convert.base64</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// CryptoViewModel public CryptoViewModel ConvertBase64(CryptoViewModel cryptoViewModel = default(CryptoViewModel), int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = ConvertBase64WithHttpInfo(cryptoViewModel); return localVarResponse.Data; } /// /// Convert a string to base64 or vice versa. <b>🔒 Required permissions:</b> <code>tribufu.utils.convert.base64</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of CryptoViewModel public Tribufu.Client.ApiResponse ConvertBase64WithHttpInfo(CryptoViewModel cryptoViewModel = default(CryptoViewModel), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = cryptoViewModel; localVarRequestOptions.Operation = "TribufuGeneratedApi.ConvertBase64"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Post("/v1/utils/base64", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("ConvertBase64", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Convert a string to base64 or vice versa. <b>🔒 Required permissions:</b> <code>tribufu.utils.convert.base64</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of CryptoViewModel public async System.Threading.Tasks.Task ConvertBase64Async(CryptoViewModel cryptoViewModel = default(CryptoViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await ConvertBase64WithHttpInfoAsync(cryptoViewModel, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Convert a string to base64 or vice versa. <b>🔒 Required permissions:</b> <code>tribufu.utils.convert.base64</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (CryptoViewModel) public async System.Threading.Tasks.Task> ConvertBase64WithHttpInfoAsync(CryptoViewModel cryptoViewModel = default(CryptoViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = cryptoViewModel; localVarRequestOptions.Operation = "TribufuGeneratedApi.ConvertBase64"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/utils/base64", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("ConvertBase64", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Create an oauth2 client. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// public void CreateClient(Object body = default(Object), int operationIndex = 0) { CreateClientWithHttpInfo(body); } /// /// Create an oauth2 client. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) public Tribufu.Client.ApiResponse CreateClientWithHttpInfo(Object body = default(Object), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateClient"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Post("/v1/oauth2/clients", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("CreateClient", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Create an oauth2 client. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void public async System.Threading.Tasks.Task CreateClientAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await CreateClientWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); } /// /// Create an oauth2 client. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse public async System.Threading.Tasks.Task> CreateClientWithHttpInfoAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateClient"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/oauth2/clients", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("CreateClient", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Create a new game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// public void CreateGameServer(Object body = default(Object), int operationIndex = 0) { CreateGameServerWithHttpInfo(body); } /// /// Create a new game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) public Tribufu.Client.ApiResponse CreateGameServerWithHttpInfo(Object body = default(Object), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGameServer"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Post("/v1/games/servers", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("CreateGameServer", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Create a new game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void public async System.Threading.Tasks.Task CreateGameServerAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await CreateGameServerWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); } /// /// Create a new game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse public async System.Threading.Tasks.Task> CreateGameServerWithHttpInfoAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGameServer"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/games/servers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("CreateGameServer", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Create a new game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// public void CreateGameServerCluster(Object body = default(Object), int operationIndex = 0) { CreateGameServerClusterWithHttpInfo(body); } /// /// Create a new game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) public Tribufu.Client.ApiResponse CreateGameServerClusterWithHttpInfo(Object body = default(Object), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGameServerCluster"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Post("/v1/games/servers/clusters", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("CreateGameServerCluster", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Create a new game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void public async System.Threading.Tasks.Task CreateGameServerClusterAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await CreateGameServerClusterWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); } /// /// Create a new game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse public async System.Threading.Tasks.Task> CreateGameServerClusterWithHttpInfoAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGameServerCluster"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/games/servers/clusters", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("CreateGameServerCluster", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Create a new game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// [Obsolete] public void CreateGameServerClusterV1(Object body = default(Object), int operationIndex = 0) { CreateGameServerClusterV1WithHttpInfo(body); } /// /// Create a new game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) [Obsolete] public Tribufu.Client.ApiResponse CreateGameServerClusterV1WithHttpInfo(Object body = default(Object), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGameServerClusterV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Post("/v1/clusters", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("CreateGameServerClusterV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Create a new game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void [Obsolete] public async System.Threading.Tasks.Task CreateGameServerClusterV1Async(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await CreateGameServerClusterV1WithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); } /// /// Create a new game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse [Obsolete] public async System.Threading.Tasks.Task> CreateGameServerClusterV1WithHttpInfoAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGameServerClusterV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/clusters", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("CreateGameServerClusterV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Create a new game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// [Obsolete] public void CreateGameServerV1(Object body = default(Object), int operationIndex = 0) { CreateGameServerV1WithHttpInfo(body); } /// /// Create a new game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) [Obsolete] public Tribufu.Client.ApiResponse CreateGameServerV1WithHttpInfo(Object body = default(Object), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGameServerV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Post("/v1/servers", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("CreateGameServerV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Create a new game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void [Obsolete] public async System.Threading.Tasks.Task CreateGameServerV1Async(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await CreateGameServerV1WithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); } /// /// Create a new game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse [Obsolete] public async System.Threading.Tasks.Task> CreateGameServerV1WithHttpInfoAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGameServerV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/servers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("CreateGameServerV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Create a new group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// public void CreateGroup(Object body = default(Object), int operationIndex = 0) { CreateGroupWithHttpInfo(body); } /// /// Create a new group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) public Tribufu.Client.ApiResponse CreateGroupWithHttpInfo(Object body = default(Object), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGroup"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Post("/v1/groups", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("CreateGroup", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Create a new group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void public async System.Threading.Tasks.Task CreateGroupAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await CreateGroupWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); } /// /// Create a new group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.create</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse public async System.Threading.Tasks.Task> CreateGroupWithHttpInfoAsync(Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateGroup"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/groups", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("CreateGroup", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Create a new package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> /// /// Thrown when fails to make API call /// /// /// /// /// (optional) /// Index associated with the operation. /// Package public Package CreatePackage(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = CreatePackageWithHttpInfo(name, image, files, version, description); return localVarResponse.Data; } /// /// Create a new package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> /// /// Thrown when fails to make API call /// /// /// /// /// (optional) /// Index associated with the operation. /// ApiResponse of Package public Tribufu.Client.ApiResponse CreatePackageWithHttpInfo(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0) { // verify the required parameter 'name' is set if (name == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'name' when calling TribufuGeneratedApi->CreatePackage"); } // verify the required parameter 'image' is set if (image == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'image' when calling TribufuGeneratedApi->CreatePackage"); } // verify the required parameter 'files' is set if (files == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'files' when calling TribufuGeneratedApi->CreatePackage"); } // verify the required parameter 'version' is set if (version == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'version' when calling TribufuGeneratedApi->CreatePackage"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "multipart/form-data" }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.FormParameters.Add("name", Tribufu.Client.ClientUtils.ParameterToString(name)); // form parameter if (description != null) { localVarRequestOptions.FormParameters.Add("description", Tribufu.Client.ClientUtils.ParameterToString(description)); // form parameter } localVarRequestOptions.FileParameters.Add("image", image); foreach (var file in files) { localVarRequestOptions.FileParameters.Add("files", file); } localVarRequestOptions.FormParameters.Add("version", Tribufu.Client.ClientUtils.ParameterToString(version)); // form parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.CreatePackage"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Post("/v1/packages", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("CreatePackage", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Create a new package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> /// /// Thrown when fails to make API call /// /// /// /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Package public async System.Threading.Tasks.Task CreatePackageAsync(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await CreatePackageWithHttpInfoAsync(name, image, files, version, description, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Create a new package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.create</code> /// /// Thrown when fails to make API call /// /// /// /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Package) public async System.Threading.Tasks.Task> CreatePackageWithHttpInfoAsync(string name, System.IO.Stream image, List files, string version, string description = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'name' is set if (name == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'name' when calling TribufuGeneratedApi->CreatePackage"); } // verify the required parameter 'image' is set if (image == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'image' when calling TribufuGeneratedApi->CreatePackage"); } // verify the required parameter 'files' is set if (files == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'files' when calling TribufuGeneratedApi->CreatePackage"); } // verify the required parameter 'version' is set if (version == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'version' when calling TribufuGeneratedApi->CreatePackage"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "multipart/form-data" }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.FormParameters.Add("name", Tribufu.Client.ClientUtils.ParameterToString(name)); // form parameter if (description != null) { localVarRequestOptions.FormParameters.Add("description", Tribufu.Client.ClientUtils.ParameterToString(description)); // form parameter } localVarRequestOptions.FileParameters.Add("image", image); foreach (var file in files) { localVarRequestOptions.FileParameters.Add("files", file); } localVarRequestOptions.FormParameters.Add("version", Tribufu.Client.ClientUtils.ParameterToString(version)); // form parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.CreatePackage"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/packages", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("CreatePackage", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Create a new token with grant type. /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// TokenResponse public TokenResponse CreateToken(TokenRequest tokenRequest = default(TokenRequest), int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = CreateTokenWithHttpInfo(tokenRequest); return localVarResponse.Data; } /// /// Create a new token with grant type. /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of TokenResponse public Tribufu.Client.ApiResponse CreateTokenWithHttpInfo(TokenRequest tokenRequest = default(TokenRequest), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json", "application/x-www-form-urlencoded" }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = tokenRequest; localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateToken"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Post("/v1/oauth2/token", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("CreateToken", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Create a new token with grant type. /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of TokenResponse public async System.Threading.Tasks.Task CreateTokenAsync(TokenRequest tokenRequest = default(TokenRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await CreateTokenWithHttpInfoAsync(tokenRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Create a new token with grant type. /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (TokenResponse) public async System.Threading.Tasks.Task> CreateTokenWithHttpInfoAsync(TokenRequest tokenRequest = default(TokenRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json", "application/x-www-form-urlencoded" }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = tokenRequest; localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateToken"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/oauth2/token", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("CreateToken", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Create an user. This endpoint is only available with client credentials. /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// public void CreateUser(CreateUser createUser = default(CreateUser), int operationIndex = 0) { CreateUserWithHttpInfo(createUser); } /// /// Create an user. This endpoint is only available with client credentials. /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) public Tribufu.Client.ApiResponse CreateUserWithHttpInfo(CreateUser createUser = default(CreateUser), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = createUser; localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateUser"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Post("/v1/users", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("CreateUser", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Create an user. This endpoint is only available with client credentials. /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void public async System.Threading.Tasks.Task CreateUserAsync(CreateUser createUser = default(CreateUser), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await CreateUserWithHttpInfoAsync(createUser, operationIndex, cancellationToken).ConfigureAwait(false); } /// /// Create an user. This endpoint is only available with client credentials. /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse public async System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(CreateUser createUser = default(CreateUser), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = createUser; localVarRequestOptions.Operation = "TribufuGeneratedApi.CreateUser"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/users", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("CreateUser", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Delete an oauth2 client. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// public void DeleteClient(string id, int operationIndex = 0) { DeleteClientWithHttpInfo(id); } /// /// Delete an oauth2 client. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Object(void) public Tribufu.Client.ApiResponse DeleteClientWithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeleteClient"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteClient"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Delete("/v1/oauth2/clients/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("DeleteClient", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Delete an oauth2 client. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void public async System.Threading.Tasks.Task DeleteClientAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await DeleteClientWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); } /// /// Delete an oauth2 client. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse public async System.Threading.Tasks.Task> DeleteClientWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeleteClient"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteClient"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.DeleteAsync("/v1/oauth2/clients/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("DeleteClient", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Delete a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// public void DeleteGameServer(string id, int operationIndex = 0) { DeleteGameServerWithHttpInfo(id); } /// /// Delete a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Object(void) public Tribufu.Client.ApiResponse DeleteGameServerWithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeleteGameServer"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGameServer"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Delete("/v1/games/servers/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("DeleteGameServer", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Delete a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void public async System.Threading.Tasks.Task DeleteGameServerAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await DeleteGameServerWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); } /// /// Delete a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse public async System.Threading.Tasks.Task> DeleteGameServerWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeleteGameServer"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGameServer"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.DeleteAsync("/v1/games/servers/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("DeleteGameServer", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Delete a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// public void DeleteGameServerCluster(string id, int operationIndex = 0) { DeleteGameServerClusterWithHttpInfo(id); } /// /// Delete a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Object(void) public Tribufu.Client.ApiResponse DeleteGameServerClusterWithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeleteGameServerCluster"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGameServerCluster"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Delete("/v1/games/servers/clusters/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("DeleteGameServerCluster", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Delete a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void public async System.Threading.Tasks.Task DeleteGameServerClusterAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await DeleteGameServerClusterWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); } /// /// Delete a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse public async System.Threading.Tasks.Task> DeleteGameServerClusterWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeleteGameServerCluster"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGameServerCluster"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.DeleteAsync("/v1/games/servers/clusters/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("DeleteGameServerCluster", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Delete a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// [Obsolete] public void DeleteGameServerClusterV1(string id, int operationIndex = 0) { DeleteGameServerClusterV1WithHttpInfo(id); } /// /// Delete a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Object(void) [Obsolete] public Tribufu.Client.ApiResponse DeleteGameServerClusterV1WithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeleteGameServerClusterV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGameServerClusterV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Delete("/v1/clusters/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("DeleteGameServerClusterV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Delete a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void [Obsolete] public async System.Threading.Tasks.Task DeleteGameServerClusterV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await DeleteGameServerClusterV1WithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); } /// /// Delete a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse [Obsolete] public async System.Threading.Tasks.Task> DeleteGameServerClusterV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeleteGameServerClusterV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGameServerClusterV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.DeleteAsync("/v1/clusters/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("DeleteGameServerClusterV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Delete a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// [Obsolete] public void DeleteGameServerV1(string id, int operationIndex = 0) { DeleteGameServerV1WithHttpInfo(id); } /// /// Delete a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Object(void) [Obsolete] public Tribufu.Client.ApiResponse DeleteGameServerV1WithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeleteGameServerV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGameServerV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Delete("/v1/servers/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("DeleteGameServerV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Delete a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void [Obsolete] public async System.Threading.Tasks.Task DeleteGameServerV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await DeleteGameServerV1WithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); } /// /// Delete a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse [Obsolete] public async System.Threading.Tasks.Task> DeleteGameServerV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeleteGameServerV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGameServerV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.DeleteAsync("/v1/servers/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("DeleteGameServerV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Delete a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// public void DeleteGroup(string id, int operationIndex = 0) { DeleteGroupWithHttpInfo(id); } /// /// Delete a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Object(void) public Tribufu.Client.ApiResponse DeleteGroupWithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeleteGroup"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGroup"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Delete("/v1/groups/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("DeleteGroup", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Delete a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void public async System.Threading.Tasks.Task DeleteGroupAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await DeleteGroupWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); } /// /// Delete a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse public async System.Threading.Tasks.Task> DeleteGroupWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeleteGroup"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.DeleteGroup"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.DeleteAsync("/v1/groups/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("DeleteGroup", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Delete an package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// public void DeletePackage(string id, int operationIndex = 0) { DeletePackageWithHttpInfo(id); } /// /// Delete an package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Object(void) public Tribufu.Client.ApiResponse DeletePackageWithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeletePackage"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.DeletePackage"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Delete("/v1/packages/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("DeletePackage", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Delete an package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void public async System.Threading.Tasks.Task DeletePackageAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await DeletePackageWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); } /// /// Delete an package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.delete</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse public async System.Threading.Tasks.Task> DeletePackageWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->DeletePackage"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.DeletePackage"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.DeleteAsync("/v1/packages/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("DeletePackage", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Generate one or more flake ids. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// List<string> public List GenerateFlakeId(int? amount = default(int?), int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GenerateFlakeIdWithHttpInfo(amount); return localVarResponse.Data; } /// /// Generate one or more flake ids. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of List<string> public Tribufu.Client.ApiResponse> GenerateFlakeIdWithHttpInfo(int? amount = default(int?), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (amount != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "amount", amount)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GenerateFlakeId"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/utils/flake", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GenerateFlakeId", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Generate one or more flake ids. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<string> public async System.Threading.Tasks.Task> GenerateFlakeIdAsync(int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GenerateFlakeIdWithHttpInfoAsync(amount, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Generate one or more flake ids. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<string>) public async System.Threading.Tasks.Task>> GenerateFlakeIdWithHttpInfoAsync(int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (amount != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "amount", amount)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GenerateFlakeId"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/utils/flake", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GenerateFlakeId", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Generate one or more flake ids from a timestamp. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake.timestamp</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// List<string> public List GenerateFlakeIdFromTimestamp(string timestamp, int? amount = default(int?), int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GenerateFlakeIdFromTimestampWithHttpInfo(timestamp, amount); return localVarResponse.Data; } /// /// Generate one or more flake ids from a timestamp. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake.timestamp</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// ApiResponse of List<string> public Tribufu.Client.ApiResponse> GenerateFlakeIdFromTimestampWithHttpInfo(string timestamp, int? amount = default(int?), int operationIndex = 0) { // verify the required parameter 'timestamp' is set if (timestamp == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'timestamp' when calling TribufuGeneratedApi->GenerateFlakeIdFromTimestamp"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("timestamp", Tribufu.Client.ClientUtils.ParameterToString(timestamp)); // path parameter if (amount != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "amount", amount)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GenerateFlakeIdFromTimestamp"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/utils/flake/{timestamp}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GenerateFlakeIdFromTimestamp", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Generate one or more flake ids from a timestamp. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake.timestamp</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<string> public async System.Threading.Tasks.Task> GenerateFlakeIdFromTimestampAsync(string timestamp, int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GenerateFlakeIdFromTimestampWithHttpInfoAsync(timestamp, amount, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Generate one or more flake ids from a timestamp. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake.timestamp</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<string>) public async System.Threading.Tasks.Task>> GenerateFlakeIdFromTimestampWithHttpInfoAsync(string timestamp, int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'timestamp' is set if (timestamp == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'timestamp' when calling TribufuGeneratedApi->GenerateFlakeIdFromTimestamp"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("timestamp", Tribufu.Client.ClientUtils.ParameterToString(timestamp)); // path parameter if (amount != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "amount", amount)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GenerateFlakeIdFromTimestamp"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/utils/flake/{timestamp}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GenerateFlakeIdFromTimestamp", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Generate a random password. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.password</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// Index associated with the operation. /// HashViewModel public HashViewModel GeneratePassword(int? length = default(int?), bool? symbols = default(bool?), int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = GeneratePasswordWithHttpInfo(length, symbols); return localVarResponse.Data; } /// /// Generate a random password. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.password</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// Index associated with the operation. /// ApiResponse of HashViewModel public Tribufu.Client.ApiResponse GeneratePasswordWithHttpInfo(int? length = default(int?), bool? symbols = default(bool?), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (length != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "length", length)); } if (symbols != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "symbols", symbols)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GeneratePassword"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get("/v1/utils/password", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GeneratePassword", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Generate a random password. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.password</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of HashViewModel public async System.Threading.Tasks.Task GeneratePasswordAsync(int? length = default(int?), bool? symbols = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await GeneratePasswordWithHttpInfoAsync(length, symbols, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Generate a random password. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.password</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (HashViewModel) public async System.Threading.Tasks.Task> GeneratePasswordWithHttpInfoAsync(int? length = default(int?), bool? symbols = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (length != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "length", length)); } if (symbols != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "symbols", symbols)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GeneratePassword"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/utils/password", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GeneratePassword", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Generate one or more uuids with a specific version. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.uuid</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// Index associated with the operation. /// List<Guid> public List GenerateUuid(int? version = default(int?), int? amount = default(int?), int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GenerateUuidWithHttpInfo(version, amount); return localVarResponse.Data; } /// /// Generate one or more uuids with a specific version. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.uuid</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// Index associated with the operation. /// ApiResponse of List<Guid> public Tribufu.Client.ApiResponse> GenerateUuidWithHttpInfo(int? version = default(int?), int? amount = default(int?), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (version != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "version", version)); } if (amount != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "amount", amount)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GenerateUuid"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/utils/uuid", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GenerateUuid", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Generate one or more uuids with a specific version. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.uuid</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Guid> public async System.Threading.Tasks.Task> GenerateUuidAsync(int? version = default(int?), int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GenerateUuidWithHttpInfoAsync(version, amount, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Generate one or more uuids with a specific version. <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.uuid</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Guid>) public async System.Threading.Tasks.Task>> GenerateUuidWithHttpInfoAsync(int? version = default(int?), int? amount = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (version != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "version", version)); } if (amount != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "amount", amount)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GenerateUuid"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/utils/uuid", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GenerateUuid", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get an oauth2 client by id. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ModelClient public ModelClient GetClientById(string id, int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = GetClientByIdWithHttpInfo(id); return localVarResponse.Data; } /// /// Get an oauth2 client by id. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of ModelClient public Tribufu.Client.ApiResponse GetClientByIdWithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetClientById"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetClientById"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get("/v1/oauth2/clients/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetClientById", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get an oauth2 client by id. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ModelClient public async System.Threading.Tasks.Task GetClientByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await GetClientByIdWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get an oauth2 client by id. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ModelClient) public async System.Threading.Tasks.Task> GetClientByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetClientById"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetClientById"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/oauth2/clients/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetClientById", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get current client information. /// /// Thrown when fails to make API call /// Index associated with the operation. /// ClientInfo public ClientInfo GetClientInfo(int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = GetClientInfoWithHttpInfo(); return localVarResponse.Data; } /// /// Get current client information. /// /// Thrown when fails to make API call /// Index associated with the operation. /// ApiResponse of ClientInfo public Tribufu.Client.ApiResponse GetClientInfoWithHttpInfo(int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetClientInfo"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get("/v1/oauth2/clientinfo", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetClientInfo", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get current client information. /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ClientInfo public async System.Threading.Tasks.Task GetClientInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await GetClientInfoWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get current client information. /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ClientInfo) public async System.Threading.Tasks.Task> GetClientInfoWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetClientInfo"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/oauth2/clientinfo", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetClientInfo", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of oauth2 clients. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.list</code> /// /// Thrown when fails to make API call /// Filters results by organization, defaults to all organizations the user belongs to. (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<ModelClient> public List GetClients(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetClientsWithHttpInfo(organizationId, page, limit); return localVarResponse.Data; } /// /// Get a list of oauth2 clients. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.list</code> /// /// Thrown when fails to make API call /// Filters results by organization, defaults to all organizations the user belongs to. (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<ModelClient> public Tribufu.Client.ApiResponse> GetClientsWithHttpInfo(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (organizationId != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "organization_id", organizationId)); } if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetClients"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/oauth2/clients", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetClients", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of oauth2 clients. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.list</code> /// /// Thrown when fails to make API call /// Filters results by organization, defaults to all organizations the user belongs to. (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<ModelClient> public async System.Threading.Tasks.Task> GetClientsAsync(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetClientsWithHttpInfoAsync(organizationId, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a list of oauth2 clients. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.list</code> /// /// Thrown when fails to make API call /// Filters results by organization, defaults to all organizations the user belongs to. (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<ModelClient>) public async System.Threading.Tasks.Task>> GetClientsWithHttpInfoAsync(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (organizationId != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "organization_id", organizationId)); } if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetClients"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/oauth2/clients", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetClients", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get current ip address location. /// /// Thrown when fails to make API call /// Index associated with the operation. /// List<IpAddress> public List GetCurrentIpAddress(int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetCurrentIpAddressWithHttpInfo(); return localVarResponse.Data; } /// /// Get current ip address location. /// /// Thrown when fails to make API call /// Index associated with the operation. /// ApiResponse of List<IpAddress> public Tribufu.Client.ApiResponse> GetCurrentIpAddressWithHttpInfo(int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetCurrentIpAddress"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/geoip", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetCurrentIpAddress", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get current ip address location. /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<IpAddress> public async System.Threading.Tasks.Task> GetCurrentIpAddressAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetCurrentIpAddressWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get current ip address location. /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<IpAddress>) public async System.Threading.Tasks.Task>> GetCurrentIpAddressWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetCurrentIpAddress"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/geoip", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetCurrentIpAddress", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a game by id. <b>🔒 Required permissions:</b> <code>tribufu.game.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Game public Game GetGameById(string id, int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = GetGameByIdWithHttpInfo(id); return localVarResponse.Data; } /// /// Get a game by id. <b>🔒 Required permissions:</b> <code>tribufu.game.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Game public Tribufu.Client.ApiResponse GetGameByIdWithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameById"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameById"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get("/v1/games/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameById", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a game by id. <b>🔒 Required permissions:</b> <code>tribufu.game.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Game public async System.Threading.Tasks.Task GetGameByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await GetGameByIdWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a game by id. <b>🔒 Required permissions:</b> <code>tribufu.game.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Game) public async System.Threading.Tasks.Task> GetGameByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameById"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameById"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/games/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameById", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a game server by address and query port. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> /// /// Thrown when fails to make API call /// /// /// Index associated with the operation. /// GameServer public GameServer GetGameServerByAddressAndQueryPort(string address, int port, int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = GetGameServerByAddressAndQueryPortWithHttpInfo(address, port); return localVarResponse.Data; } /// /// Get a game server by address and query port. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> /// /// Thrown when fails to make API call /// /// /// Index associated with the operation. /// ApiResponse of GameServer public Tribufu.Client.ApiResponse GetGameServerByAddressAndQueryPortWithHttpInfo(string address, int port, int operationIndex = 0) { // verify the required parameter 'address' is set if (address == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'address' when calling TribufuGeneratedApi->GetGameServerByAddressAndQueryPort"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("address", Tribufu.Client.ClientUtils.ParameterToString(address)); // path parameter localVarRequestOptions.PathParameters.Add("port", Tribufu.Client.ClientUtils.ParameterToString(port)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerByAddressAndQueryPort"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get("/v1/games/servers/address/{address}:{port}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServerByAddressAndQueryPort", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a game server by address and query port. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> /// /// Thrown when fails to make API call /// /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of GameServer public async System.Threading.Tasks.Task GetGameServerByAddressAndQueryPortAsync(string address, int port, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await GetGameServerByAddressAndQueryPortWithHttpInfoAsync(address, port, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a game server by address and query port. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> /// /// Thrown when fails to make API call /// /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (GameServer) public async System.Threading.Tasks.Task> GetGameServerByAddressAndQueryPortWithHttpInfoAsync(string address, int port, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'address' is set if (address == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'address' when calling TribufuGeneratedApi->GetGameServerByAddressAndQueryPort"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("address", Tribufu.Client.ClientUtils.ParameterToString(address)); // path parameter localVarRequestOptions.PathParameters.Add("port", Tribufu.Client.ClientUtils.ParameterToString(port)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerByAddressAndQueryPort"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/games/servers/address/{address}:{port}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServerByAddressAndQueryPort", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a game server by address and query port. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> /// /// Thrown when fails to make API call /// /// /// Index associated with the operation. /// GameServer [Obsolete] public GameServer GetGameServerByAddressAndQueryPortV1(string address, int port, int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = GetGameServerByAddressAndQueryPortV1WithHttpInfo(address, port); return localVarResponse.Data; } /// /// Get a game server by address and query port. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> /// /// Thrown when fails to make API call /// /// /// Index associated with the operation. /// ApiResponse of GameServer [Obsolete] public Tribufu.Client.ApiResponse GetGameServerByAddressAndQueryPortV1WithHttpInfo(string address, int port, int operationIndex = 0) { // verify the required parameter 'address' is set if (address == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'address' when calling TribufuGeneratedApi->GetGameServerByAddressAndQueryPortV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("address", Tribufu.Client.ClientUtils.ParameterToString(address)); // path parameter localVarRequestOptions.PathParameters.Add("port", Tribufu.Client.ClientUtils.ParameterToString(port)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerByAddressAndQueryPortV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get("/v1/servers/address/{address}:{port}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServerByAddressAndQueryPortV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a game server by address and query port. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> /// /// Thrown when fails to make API call /// /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of GameServer [Obsolete] public async System.Threading.Tasks.Task GetGameServerByAddressAndQueryPortV1Async(string address, int port, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await GetGameServerByAddressAndQueryPortV1WithHttpInfoAsync(address, port, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a game server by address and query port. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get.address</code> /// /// Thrown when fails to make API call /// /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (GameServer) [Obsolete] public async System.Threading.Tasks.Task> GetGameServerByAddressAndQueryPortV1WithHttpInfoAsync(string address, int port, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'address' is set if (address == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'address' when calling TribufuGeneratedApi->GetGameServerByAddressAndQueryPortV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("address", Tribufu.Client.ClientUtils.ParameterToString(address)); // path parameter localVarRequestOptions.PathParameters.Add("port", Tribufu.Client.ClientUtils.ParameterToString(port)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerByAddressAndQueryPortV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/servers/address/{address}:{port}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServerByAddressAndQueryPortV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a game server by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// GameServer public GameServer GetGameServerById(string id, int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = GetGameServerByIdWithHttpInfo(id); return localVarResponse.Data; } /// /// Get a game server by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of GameServer public Tribufu.Client.ApiResponse GetGameServerByIdWithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerById"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerById"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get("/v1/games/servers/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServerById", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a game server by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of GameServer public async System.Threading.Tasks.Task GetGameServerByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await GetGameServerByIdWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a game server by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (GameServer) public async System.Threading.Tasks.Task> GetGameServerByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerById"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerById"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/games/servers/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServerById", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a game server by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// GameServer [Obsolete] public GameServer GetGameServerByIdV1(string id, int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = GetGameServerByIdV1WithHttpInfo(id); return localVarResponse.Data; } /// /// Get a game server by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of GameServer [Obsolete] public Tribufu.Client.ApiResponse GetGameServerByIdV1WithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerByIdV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerByIdV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get("/v1/servers/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServerByIdV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a game server by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of GameServer [Obsolete] public async System.Threading.Tasks.Task GetGameServerByIdV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await GetGameServerByIdV1WithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a game server by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (GameServer) [Obsolete] public async System.Threading.Tasks.Task> GetGameServerByIdV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerByIdV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerByIdV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/servers/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServerByIdV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a game server cluster by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// GameServerCluster public GameServerCluster GetGameServerClusterById(string id, int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = GetGameServerClusterByIdWithHttpInfo(id); return localVarResponse.Data; } /// /// Get a game server cluster by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of GameServerCluster public Tribufu.Client.ApiResponse GetGameServerClusterByIdWithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerClusterById"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusterById"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get("/v1/games/servers/clusters/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServerClusterById", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a game server cluster by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of GameServerCluster public async System.Threading.Tasks.Task GetGameServerClusterByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await GetGameServerClusterByIdWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a game server cluster by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (GameServerCluster) public async System.Threading.Tasks.Task> GetGameServerClusterByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerClusterById"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusterById"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/games/servers/clusters/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServerClusterById", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a game server cluster by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// GameServerCluster [Obsolete] public GameServerCluster GetGameServerClusterByIdV1(string id, int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = GetGameServerClusterByIdV1WithHttpInfo(id); return localVarResponse.Data; } /// /// Get a game server cluster by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of GameServerCluster [Obsolete] public Tribufu.Client.ApiResponse GetGameServerClusterByIdV1WithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerClusterByIdV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusterByIdV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get("/v1/clusters/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServerClusterByIdV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a game server cluster by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of GameServerCluster [Obsolete] public async System.Threading.Tasks.Task GetGameServerClusterByIdV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await GetGameServerClusterByIdV1WithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a game server cluster by id. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (GameServerCluster) [Obsolete] public async System.Threading.Tasks.Task> GetGameServerClusterByIdV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerClusterByIdV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusterByIdV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/clusters/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServerClusterByIdV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of game server cluster servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<Object> public List GetGameServerClusterServers(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetGameServerClusterServersWithHttpInfo(id, page, limit); return localVarResponse.Data; } /// /// Get a list of game server cluster servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<Object> public Tribufu.Client.ApiResponse> GetGameServerClusterServersWithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerClusterServers"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusterServers"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/games/servers/clusters/{id}/servers", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServerClusterServers", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of game server cluster servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Object> public async System.Threading.Tasks.Task> GetGameServerClusterServersAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetGameServerClusterServersWithHttpInfoAsync(id, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a list of game server cluster servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Object>) public async System.Threading.Tasks.Task>> GetGameServerClusterServersWithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerClusterServers"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusterServers"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/games/servers/clusters/{id}/servers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServerClusterServers", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of game server cluster servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<Object> [Obsolete] public List GetGameServerClusterServersV1(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetGameServerClusterServersV1WithHttpInfo(id, page, limit); return localVarResponse.Data; } /// /// Get a list of game server cluster servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<Object> [Obsolete] public Tribufu.Client.ApiResponse> GetGameServerClusterServersV1WithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerClusterServersV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusterServersV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/clusters/{id}/servers", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServerClusterServersV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of game server cluster servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Object> [Obsolete] public async System.Threading.Tasks.Task> GetGameServerClusterServersV1Async(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetGameServerClusterServersV1WithHttpInfoAsync(id, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a list of game server cluster servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Object>) [Obsolete] public async System.Threading.Tasks.Task>> GetGameServerClusterServersV1WithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerClusterServersV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusterServersV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/clusters/{id}/servers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServerClusterServersV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of game server clusters. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<GameServerCluster> public List GetGameServerClusters(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetGameServerClustersWithHttpInfo(page, limit); return localVarResponse.Data; } /// /// Get a list of game server clusters. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<GameServerCluster> public Tribufu.Client.ApiResponse> GetGameServerClustersWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusters"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/games/servers/clusters", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServerClusters", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of game server clusters. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<GameServerCluster> public async System.Threading.Tasks.Task> GetGameServerClustersAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetGameServerClustersWithHttpInfoAsync(page, limit, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a list of game server clusters. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<GameServerCluster>) public async System.Threading.Tasks.Task>> GetGameServerClustersWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClusters"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/games/servers/clusters", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServerClusters", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of game server clusters. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<GameServerCluster> [Obsolete] public List GetGameServerClustersV1(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetGameServerClustersV1WithHttpInfo(page, limit); return localVarResponse.Data; } /// /// Get a list of game server clusters. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<GameServerCluster> [Obsolete] public Tribufu.Client.ApiResponse> GetGameServerClustersV1WithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClustersV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/clusters", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServerClustersV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of game server clusters. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<GameServerCluster> [Obsolete] public async System.Threading.Tasks.Task> GetGameServerClustersV1Async(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetGameServerClustersV1WithHttpInfoAsync(page, limit, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a list of game server clusters. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<GameServerCluster>) [Obsolete] public async System.Threading.Tasks.Task>> GetGameServerClustersV1WithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerClustersV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/clusters", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServerClustersV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a game server query history. <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<GameServerQuery> public List GetGameServerQueries(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetGameServerQueriesWithHttpInfo(id, page, limit); return localVarResponse.Data; } /// /// Get a game server query history. <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<GameServerQuery> public Tribufu.Client.ApiResponse> GetGameServerQueriesWithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerQueries"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerQueries"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/games/servers/{id}/queries", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServerQueries", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a game server query history. <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<GameServerQuery> public async System.Threading.Tasks.Task> GetGameServerQueriesAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetGameServerQueriesWithHttpInfoAsync(id, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a game server query history. <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<GameServerQuery>) public async System.Threading.Tasks.Task>> GetGameServerQueriesWithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerQueries"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerQueries"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/games/servers/{id}/queries", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServerQueries", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a game server query history. <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<GameServerQuery> [Obsolete] public List GetGameServerQueriesV1(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetGameServerQueriesV1WithHttpInfo(id, page, limit); return localVarResponse.Data; } /// /// Get a game server query history. <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<GameServerQuery> [Obsolete] public Tribufu.Client.ApiResponse> GetGameServerQueriesV1WithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerQueriesV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerQueriesV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/servers/{id}/queries", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServerQueriesV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a game server query history. <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<GameServerQuery> [Obsolete] public async System.Threading.Tasks.Task> GetGameServerQueriesV1Async(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetGameServerQueriesV1WithHttpInfoAsync(id, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a game server query history. <b>🔒 Required permissions:</b> <code>tribufu.game.server.queries</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<GameServerQuery>) [Obsolete] public async System.Threading.Tasks.Task>> GetGameServerQueriesV1WithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGameServerQueriesV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServerQueriesV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/servers/{id}/queries", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServerQueriesV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// (optional) /// (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<GameServer> public List GetGameServers(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetGameServersWithHttpInfo(address, queryPort, country, gameId, page, limit); return localVarResponse.Data; } /// /// Get a list of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// (optional) /// (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<GameServer> public Tribufu.Client.ApiResponse> GetGameServersWithHttpInfo(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (address != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "address", address)); } if (queryPort != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "query_port", queryPort)); } if (country != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "country", country)); } if (gameId != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "game_id", gameId)); } if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServers"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/games/servers", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServers", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// (optional) /// (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<GameServer> public async System.Threading.Tasks.Task> GetGameServersAsync(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetGameServersWithHttpInfoAsync(address, queryPort, country, gameId, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a list of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// (optional) /// (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<GameServer>) public async System.Threading.Tasks.Task>> GetGameServersWithHttpInfoAsync(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (address != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "address", address)); } if (queryPort != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "query_port", queryPort)); } if (country != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "country", country)); } if (gameId != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "game_id", gameId)); } if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServers"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/games/servers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServers", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of game servers from a country. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<GameServer> public List GetGameServersByCountry(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetGameServersByCountryWithHttpInfo(country, page, limit); return localVarResponse.Data; } /// /// Get a list of game servers from a country. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<GameServer> public Tribufu.Client.ApiResponse> GetGameServersByCountryWithHttpInfo(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { // verify the required parameter 'country' is set if (country == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'country' when calling TribufuGeneratedApi->GetGameServersByCountry"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("country", Tribufu.Client.ClientUtils.ParameterToString(country)); // path parameter if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersByCountry"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/games/servers/country/{country}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServersByCountry", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of game servers from a country. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<GameServer> public async System.Threading.Tasks.Task> GetGameServersByCountryAsync(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetGameServersByCountryWithHttpInfoAsync(country, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a list of game servers from a country. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<GameServer>) public async System.Threading.Tasks.Task>> GetGameServersByCountryWithHttpInfoAsync(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'country' is set if (country == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'country' when calling TribufuGeneratedApi->GetGameServersByCountry"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("country", Tribufu.Client.ClientUtils.ParameterToString(country)); // path parameter if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersByCountry"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/games/servers/country/{country}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServersByCountry", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of game servers from a country. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<GameServer> [Obsolete] public List GetGameServersByCountryV1(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetGameServersByCountryV1WithHttpInfo(country, page, limit); return localVarResponse.Data; } /// /// Get a list of game servers from a country. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<GameServer> [Obsolete] public Tribufu.Client.ApiResponse> GetGameServersByCountryV1WithHttpInfo(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { // verify the required parameter 'country' is set if (country == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'country' when calling TribufuGeneratedApi->GetGameServersByCountryV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("country", Tribufu.Client.ClientUtils.ParameterToString(country)); // path parameter if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersByCountryV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/servers/country/{country}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServersByCountryV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of game servers from a country. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<GameServer> [Obsolete] public async System.Threading.Tasks.Task> GetGameServersByCountryV1Async(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetGameServersByCountryV1WithHttpInfoAsync(country, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a list of game servers from a country. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list.country</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<GameServer>) [Obsolete] public async System.Threading.Tasks.Task>> GetGameServersByCountryV1WithHttpInfoAsync(string country, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'country' is set if (country == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'country' when calling TribufuGeneratedApi->GetGameServersByCountryV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("country", Tribufu.Client.ClientUtils.ParameterToString(country)); // path parameter if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersByCountryV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/servers/country/{country}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServersByCountryV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of countries with the number of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// Dictionary<string, int> public Dictionary GetGameServersCountries(int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetGameServersCountriesWithHttpInfo(); return localVarResponse.Data; } /// /// Get a list of countries with the number of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// ApiResponse of Dictionary<string, int> public Tribufu.Client.ApiResponse> GetGameServersCountriesWithHttpInfo(int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersCountries"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/games/servers/countries", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServersCountries", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of countries with the number of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Dictionary<string, int> public async System.Threading.Tasks.Task> GetGameServersCountriesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetGameServersCountriesWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a list of countries with the number of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Dictionary<string, int>) public async System.Threading.Tasks.Task>> GetGameServersCountriesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersCountries"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/games/servers/countries", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServersCountries", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of countries with the number of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// Dictionary<string, int> [Obsolete] public Dictionary GetGameServersCountriesV1(int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetGameServersCountriesV1WithHttpInfo(); return localVarResponse.Data; } /// /// Get a list of countries with the number of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// ApiResponse of Dictionary<string, int> [Obsolete] public Tribufu.Client.ApiResponse> GetGameServersCountriesV1WithHttpInfo(int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersCountriesV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/servers/countries", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServersCountriesV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of countries with the number of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Dictionary<string, int> [Obsolete] public async System.Threading.Tasks.Task> GetGameServersCountriesV1Async(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetGameServersCountriesV1WithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a list of countries with the number of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.country.list</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Dictionary<string, int>) [Obsolete] public async System.Threading.Tasks.Task>> GetGameServersCountriesV1WithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersCountriesV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/servers/countries", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServersCountriesV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get metrics about the tracked game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// ServerMetrics public ServerMetrics GetGameServersMetrics(int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = GetGameServersMetricsWithHttpInfo(); return localVarResponse.Data; } /// /// Get metrics about the tracked game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// ApiResponse of ServerMetrics public Tribufu.Client.ApiResponse GetGameServersMetricsWithHttpInfo(int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersMetrics"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get("/v1/games/servers/metrics", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServersMetrics", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get metrics about the tracked game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ServerMetrics public async System.Threading.Tasks.Task GetGameServersMetricsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await GetGameServersMetricsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get metrics about the tracked game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ServerMetrics) public async System.Threading.Tasks.Task> GetGameServersMetricsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersMetrics"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/games/servers/metrics", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServersMetrics", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get metrics about the tracked game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// ServerMetrics [Obsolete] public ServerMetrics GetGameServersMetricsV1(int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = GetGameServersMetricsV1WithHttpInfo(); return localVarResponse.Data; } /// /// Get metrics about the tracked game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// ApiResponse of ServerMetrics [Obsolete] public Tribufu.Client.ApiResponse GetGameServersMetricsV1WithHttpInfo(int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersMetricsV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get("/v1/servers/metrics", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServersMetricsV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get metrics about the tracked game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ServerMetrics [Obsolete] public async System.Threading.Tasks.Task GetGameServersMetricsV1Async(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await GetGameServersMetricsV1WithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get metrics about the tracked game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.metric.get</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ServerMetrics) [Obsolete] public async System.Threading.Tasks.Task> GetGameServersMetricsV1WithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersMetricsV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/servers/metrics", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServersMetricsV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// (optional) /// (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<GameServer> [Obsolete] public List GetGameServersV1(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetGameServersV1WithHttpInfo(address, queryPort, country, gameId, page, limit); return localVarResponse.Data; } /// /// Get a list of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// (optional) /// (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<GameServer> [Obsolete] public Tribufu.Client.ApiResponse> GetGameServersV1WithHttpInfo(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (address != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "address", address)); } if (queryPort != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "query_port", queryPort)); } if (country != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "country", country)); } if (gameId != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "game_id", gameId)); } if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/servers", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServersV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// (optional) /// (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<GameServer> [Obsolete] public async System.Threading.Tasks.Task> GetGameServersV1Async(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetGameServersV1WithHttpInfoAsync(address, queryPort, country, gameId, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a list of game servers. <b>🔒 Required permissions:</b> <code>tribufu.game.server.list</code> /// /// Thrown when fails to make API call /// (optional) /// (optional) /// (optional) /// (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<GameServer>) [Obsolete] public async System.Threading.Tasks.Task>> GetGameServersV1WithHttpInfoAsync(string address = default(string), int? queryPort = default(int?), string country = default(string), string gameId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (address != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "address", address)); } if (queryPort != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "query_port", queryPort)); } if (country != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "country", country)); } if (gameId != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "game_id", gameId)); } if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGameServersV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/servers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGameServersV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of games. <b>🔒 Required permissions:</b> <code>tribufu.game.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<Game> public List GetGames(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetGamesWithHttpInfo(page, limit); return localVarResponse.Data; } /// /// Get a list of games. <b>🔒 Required permissions:</b> <code>tribufu.game.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<Game> public Tribufu.Client.ApiResponse> GetGamesWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGames"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/games", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGames", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of games. <b>🔒 Required permissions:</b> <code>tribufu.game.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Game> public async System.Threading.Tasks.Task> GetGamesAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetGamesWithHttpInfoAsync(page, limit, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a list of games. <b>🔒 Required permissions:</b> <code>tribufu.game.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Game>) public async System.Threading.Tasks.Task>> GetGamesWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGames"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/games", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGames", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a group by id. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Group public Group GetGroupById(string id, int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = GetGroupByIdWithHttpInfo(id); return localVarResponse.Data; } /// /// Get a group by id. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Group public Tribufu.Client.ApiResponse GetGroupByIdWithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGroupById"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupById"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get("/v1/groups/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGroupById", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a group by id. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Group public async System.Threading.Tasks.Task GetGroupByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await GetGroupByIdWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a group by id. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Group) public async System.Threading.Tasks.Task> GetGroupByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGroupById"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupById"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/groups/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGroupById", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a group by tag. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.tag</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Group public Group GetGroupByTag(string tag, int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = GetGroupByTagWithHttpInfo(tag); return localVarResponse.Data; } /// /// Get a group by tag. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.tag</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Group public Tribufu.Client.ApiResponse GetGroupByTagWithHttpInfo(string tag, int operationIndex = 0) { // verify the required parameter 'tag' is set if (tag == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'tag' when calling TribufuGeneratedApi->GetGroupByTag"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("tag", Tribufu.Client.ClientUtils.ParameterToString(tag)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupByTag"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get("/v1/groups/tag/{tag}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGroupByTag", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a group by tag. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.tag</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Group public async System.Threading.Tasks.Task GetGroupByTagAsync(string tag, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await GetGroupByTagWithHttpInfoAsync(tag, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a group by tag. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.tag</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Group) public async System.Threading.Tasks.Task> GetGroupByTagWithHttpInfoAsync(string tag, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'tag' is set if (tag == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'tag' when calling TribufuGeneratedApi->GetGroupByTag"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("tag", Tribufu.Client.ClientUtils.ParameterToString(tag)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupByTag"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/groups/tag/{tag}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGroupByTag", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a group by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.uuid</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Group public Group GetGroupByUuid(Guid uuid, int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = GetGroupByUuidWithHttpInfo(uuid); return localVarResponse.Data; } /// /// Get a group by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.uuid</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Group public Tribufu.Client.ApiResponse GetGroupByUuidWithHttpInfo(Guid uuid, int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("uuid", Tribufu.Client.ClientUtils.ParameterToString(uuid)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupByUuid"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get("/v1/groups/uuid/{uuid}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGroupByUuid", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a group by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.uuid</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Group public async System.Threading.Tasks.Task GetGroupByUuidAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await GetGroupByUuidWithHttpInfoAsync(uuid, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a group by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.uuid</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Group) public async System.Threading.Tasks.Task> GetGroupByUuidWithHttpInfoAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("uuid", Tribufu.Client.ClientUtils.ParameterToString(uuid)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupByUuid"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/groups/uuid/{uuid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGroupByUuid", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of games of a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.game.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// List<GroupGame> public List GetGroupGames(string id, int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetGroupGamesWithHttpInfo(id); return localVarResponse.Data; } /// /// Get a list of games of a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.game.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of List<GroupGame> public Tribufu.Client.ApiResponse> GetGroupGamesWithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGroupGames"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupGames"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/groups/{id}/games", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGroupGames", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of games of a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.game.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<GroupGame> public async System.Threading.Tasks.Task> GetGroupGamesAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetGroupGamesWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a list of games of a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.game.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<GroupGame>) public async System.Threading.Tasks.Task>> GetGroupGamesWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGroupGames"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupGames"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/groups/{id}/games", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGroupGames", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of members in a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.member.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// List<GroupMember> public List GetGroupMembers(string id, int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetGroupMembersWithHttpInfo(id); return localVarResponse.Data; } /// /// Get a list of members in a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.member.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of List<GroupMember> public Tribufu.Client.ApiResponse> GetGroupMembersWithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGroupMembers"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "text/plain", "application/json", "text/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupMembers"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/groups/{id}/members", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGroupMembers", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of members in a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.member.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<GroupMember> public async System.Threading.Tasks.Task> GetGroupMembersAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetGroupMembersWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a list of members in a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.member.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<GroupMember>) public async System.Threading.Tasks.Task>> GetGroupMembersWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetGroupMembers"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "text/plain", "application/json", "text/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroupMembers"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/groups/{id}/members", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGroupMembers", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of groups. <b>🔒 Required permissions:</b> <code>tribufu.community.group.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<Group> public List GetGroups(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetGroupsWithHttpInfo(page, limit); return localVarResponse.Data; } /// /// Get a list of groups. <b>🔒 Required permissions:</b> <code>tribufu.community.group.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<Group> public Tribufu.Client.ApiResponse> GetGroupsWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroups"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/groups", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGroups", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of groups. <b>🔒 Required permissions:</b> <code>tribufu.community.group.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Group> public async System.Threading.Tasks.Task> GetGroupsAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetGroupsWithHttpInfoAsync(page, limit, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a list of groups. <b>🔒 Required permissions:</b> <code>tribufu.community.group.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Group>) public async System.Threading.Tasks.Task>> GetGroupsWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetGroups"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/groups", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetGroups", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a ip address location. /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// IpAddress public IpAddress GetIpAddress(string address, int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = GetIpAddressWithHttpInfo(address); return localVarResponse.Data; } /// /// Get a ip address location. /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of IpAddress public Tribufu.Client.ApiResponse GetIpAddressWithHttpInfo(string address, int operationIndex = 0) { // verify the required parameter 'address' is set if (address == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'address' when calling TribufuGeneratedApi->GetIpAddress"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("address", Tribufu.Client.ClientUtils.ParameterToString(address)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetIpAddress"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get("/v1/geoip/addresses/{address}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetIpAddress", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a ip address location. /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of IpAddress public async System.Threading.Tasks.Task GetIpAddressAsync(string address, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await GetIpAddressWithHttpInfoAsync(address, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a ip address location. /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (IpAddress) public async System.Threading.Tasks.Task> GetIpAddressWithHttpInfoAsync(string address, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'address' is set if (address == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'address' when calling TribufuGeneratedApi->GetIpAddress"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("address", Tribufu.Client.ClientUtils.ParameterToString(address)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetIpAddress"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/geoip/addresses/{address}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetIpAddress", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of ip addresses. <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.list</code> /// /// Thrown when fails to make API call /// Filters results by organization, defaults to all organizations the user belongs to. (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<IpAddress> public List GetIpAddresses(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetIpAddressesWithHttpInfo(organizationId, page, limit); return localVarResponse.Data; } /// /// Get a list of ip addresses. <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.list</code> /// /// Thrown when fails to make API call /// Filters results by organization, defaults to all organizations the user belongs to. (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<IpAddress> public Tribufu.Client.ApiResponse> GetIpAddressesWithHttpInfo(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (organizationId != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "organization_id", organizationId)); } if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetIpAddresses"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/geoip/addresses", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetIpAddresses", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of ip addresses. <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.list</code> /// /// Thrown when fails to make API call /// Filters results by organization, defaults to all organizations the user belongs to. (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<IpAddress> public async System.Threading.Tasks.Task> GetIpAddressesAsync(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetIpAddressesWithHttpInfoAsync(organizationId, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a list of ip addresses. <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.list</code> /// /// Thrown when fails to make API call /// Filters results by organization, defaults to all organizations the user belongs to. (optional) /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<IpAddress>) public async System.Threading.Tasks.Task>> GetIpAddressesWithHttpInfoAsync(string organizationId = default(string), int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (organizationId != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "organization_id", organizationId)); } if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetIpAddresses"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/geoip/addresses", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetIpAddresses", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get the top 20 leaderboard users. <b>🔒 Required permissions:</b> <code>tribufu.community.leaderboard.get</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// List<LeaderboardItem> public List GetLeaderboard(LeaderboardOrder? order = default(LeaderboardOrder?), int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetLeaderboardWithHttpInfo(order); return localVarResponse.Data; } /// /// Get the top 20 leaderboard users. <b>🔒 Required permissions:</b> <code>tribufu.community.leaderboard.get</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of List<LeaderboardItem> public Tribufu.Client.ApiResponse> GetLeaderboardWithHttpInfo(LeaderboardOrder? order = default(LeaderboardOrder?), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (order != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "Order", order)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetLeaderboard"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/leaderboard", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetLeaderboard", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get the top 20 leaderboard users. <b>🔒 Required permissions:</b> <code>tribufu.community.leaderboard.get</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<LeaderboardItem> public async System.Threading.Tasks.Task> GetLeaderboardAsync(LeaderboardOrder? order = default(LeaderboardOrder?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetLeaderboardWithHttpInfoAsync(order, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get the top 20 leaderboard users. <b>🔒 Required permissions:</b> <code>tribufu.community.leaderboard.get</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<LeaderboardItem>) public async System.Threading.Tasks.Task>> GetLeaderboardWithHttpInfoAsync(LeaderboardOrder? order = default(LeaderboardOrder?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (order != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "Order", order)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetLeaderboard"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/leaderboard", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetLeaderboard", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a package by id. <b>🔒 Required permissions:</b> <code>tribufu.community.package.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Package public Package GetPackageById(string id, int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = GetPackageByIdWithHttpInfo(id); return localVarResponse.Data; } /// /// Get a package by id. <b>🔒 Required permissions:</b> <code>tribufu.community.package.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Package public Tribufu.Client.ApiResponse GetPackageByIdWithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetPackageById"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetPackageById"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get("/v1/packages/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetPackageById", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a package by id. <b>🔒 Required permissions:</b> <code>tribufu.community.package.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Package public async System.Threading.Tasks.Task GetPackageByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await GetPackageByIdWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a package by id. <b>🔒 Required permissions:</b> <code>tribufu.community.package.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Package) public async System.Threading.Tasks.Task> GetPackageByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetPackageById"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetPackageById"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/packages/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetPackageById", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of packages. <b>🔒 Required permissions:</b> <code>tribufu.community.package.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<Package> public List GetPackages(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetPackagesWithHttpInfo(page, limit); return localVarResponse.Data; } /// /// Get a list of packages. <b>🔒 Required permissions:</b> <code>tribufu.community.package.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<Package> public Tribufu.Client.ApiResponse> GetPackagesWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetPackages"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/packages", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetPackages", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of packages. <b>🔒 Required permissions:</b> <code>tribufu.community.package.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Package> public async System.Threading.Tasks.Task> GetPackagesAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetPackagesWithHttpInfoAsync(page, limit, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a list of packages. <b>🔒 Required permissions:</b> <code>tribufu.community.package.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Package>) public async System.Threading.Tasks.Task>> GetPackagesWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetPackages"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/packages", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetPackages", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get the public keys for the client. /// /// Thrown when fails to make API call /// Index associated with the operation. /// public void GetPublicKeys(int operationIndex = 0) { GetPublicKeysWithHttpInfo(); } /// /// Get the public keys for the client. /// /// Thrown when fails to make API call /// Index associated with the operation. /// ApiResponse of Object(void) public Tribufu.Client.ApiResponse GetPublicKeysWithHttpInfo(int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetPublicKeys"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get("/v1/oauth2/jwks", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetPublicKeys", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get the public keys for the client. /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void public async System.Threading.Tasks.Task GetPublicKeysAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await GetPublicKeysWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); } /// /// Get the public keys for the client. /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse public async System.Threading.Tasks.Task> GetPublicKeysWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetPublicKeys"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/oauth2/jwks", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetPublicKeys", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a subscription by id. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Subscription public Subscription GetSubscriptionById(string id, int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = GetSubscriptionByIdWithHttpInfo(id); return localVarResponse.Data; } /// /// Get a subscription by id. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Subscription public Tribufu.Client.ApiResponse GetSubscriptionByIdWithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetSubscriptionById"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetSubscriptionById"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get("/v1/subscriptions/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetSubscriptionById", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a subscription by id. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Subscription public async System.Threading.Tasks.Task GetSubscriptionByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await GetSubscriptionByIdWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a subscription by id. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Subscription) public async System.Threading.Tasks.Task> GetSubscriptionByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetSubscriptionById"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetSubscriptionById"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/subscriptions/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetSubscriptionById", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of subscriptions. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<Subscription> public List GetSubscriptions(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetSubscriptionsWithHttpInfo(page, limit); return localVarResponse.Data; } /// /// Get a list of subscriptions. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<Subscription> public Tribufu.Client.ApiResponse> GetSubscriptionsWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetSubscriptions"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/subscriptions", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetSubscriptions", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of subscriptions. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Subscription> public async System.Threading.Tasks.Task> GetSubscriptionsAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetSubscriptionsWithHttpInfoAsync(page, limit, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a list of subscriptions. <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Subscription>) public async System.Threading.Tasks.Task>> GetSubscriptionsWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetSubscriptions"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/subscriptions", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetSubscriptions", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of connected accounts of the user. <b>🔒 Required permissions:</b> <code>tribufu.identity.user.account.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// List<Account> public List GetUserAccounts(string id, int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetUserAccountsWithHttpInfo(id); return localVarResponse.Data; } /// /// Get a list of connected accounts of the user. <b>🔒 Required permissions:</b> <code>tribufu.identity.user.account.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of List<Account> public Tribufu.Client.ApiResponse> GetUserAccountsWithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserAccounts"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserAccounts"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/users/{id}/accounts", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserAccounts", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of connected accounts of the user. <b>🔒 Required permissions:</b> <code>tribufu.identity.user.account.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Account> public async System.Threading.Tasks.Task> GetUserAccountsAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetUserAccountsWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a list of connected accounts of the user. <b>🔒 Required permissions:</b> <code>tribufu.identity.user.account.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Account>) public async System.Threading.Tasks.Task>> GetUserAccountsWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserAccounts"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserAccounts"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/users/{id}/accounts", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserAccounts", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of friends of the user. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// List<Object> public List GetUserFriends(string id, int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetUserFriendsWithHttpInfo(id); return localVarResponse.Data; } /// /// Get a list of friends of the user. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of List<Object> public Tribufu.Client.ApiResponse> GetUserFriendsWithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserFriends"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserFriends"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/profiles/{id}/friends", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserFriends", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of friends of the user. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Object> public async System.Threading.Tasks.Task> GetUserFriendsAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetUserFriendsWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a list of friends of the user. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Object>) public async System.Threading.Tasks.Task>> GetUserFriendsWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserFriends"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserFriends"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/profiles/{id}/friends", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserFriends", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of friends of the user. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// List<Object> [Obsolete] public List GetUserFriendsV1(string id, int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetUserFriendsV1WithHttpInfo(id); return localVarResponse.Data; } /// /// Get a list of friends of the user. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of List<Object> [Obsolete] public Tribufu.Client.ApiResponse> GetUserFriendsV1WithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserFriendsV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserFriendsV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/users/{id}/friends", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserFriendsV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of friends of the user. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Object> [Obsolete] public async System.Threading.Tasks.Task> GetUserFriendsV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetUserFriendsV1WithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a list of friends of the user. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Object>) [Obsolete] public async System.Threading.Tasks.Task>> GetUserFriendsV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserFriendsV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserFriendsV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/users/{id}/friends", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserFriendsV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of games the user has played. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// List<ProfileGame> public List GetUserGames(string id, int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetUserGamesWithHttpInfo(id); return localVarResponse.Data; } /// /// Get a list of games the user has played. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of List<ProfileGame> public Tribufu.Client.ApiResponse> GetUserGamesWithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserGames"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserGames"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/profiles/{id}/games", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserGames", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of games the user has played. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<ProfileGame> public async System.Threading.Tasks.Task> GetUserGamesAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetUserGamesWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a list of games the user has played. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<ProfileGame>) public async System.Threading.Tasks.Task>> GetUserGamesWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserGames"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserGames"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/profiles/{id}/games", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserGames", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of games the user has played. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// List<ProfileGame> [Obsolete] public List GetUserGamesV1(string id, int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetUserGamesV1WithHttpInfo(id); return localVarResponse.Data; } /// /// Get a list of games the user has played. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of List<ProfileGame> [Obsolete] public Tribufu.Client.ApiResponse> GetUserGamesV1WithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserGamesV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserGamesV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/users/{id}/games", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserGamesV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of games the user has played. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<ProfileGame> [Obsolete] public async System.Threading.Tasks.Task> GetUserGamesV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetUserGamesV1WithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a list of games the user has played. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<ProfileGame>) [Obsolete] public async System.Threading.Tasks.Task>> GetUserGamesV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserGamesV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserGamesV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/users/{id}/games", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserGamesV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of groups the user is a member of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// List<ProfileGroup> public List GetUserGroups(string id, int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetUserGroupsWithHttpInfo(id); return localVarResponse.Data; } /// /// Get a list of groups the user is a member of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of List<ProfileGroup> public Tribufu.Client.ApiResponse> GetUserGroupsWithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserGroups"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserGroups"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/profiles/{id}/groups", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserGroups", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of groups the user is a member of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<ProfileGroup> public async System.Threading.Tasks.Task> GetUserGroupsAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetUserGroupsWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a list of groups the user is a member of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<ProfileGroup>) public async System.Threading.Tasks.Task>> GetUserGroupsWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserGroups"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserGroups"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/profiles/{id}/groups", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserGroups", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of groups the user is a member of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// List<ProfileGroup> [Obsolete] public List GetUserGroupsV1(string id, int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetUserGroupsV1WithHttpInfo(id); return localVarResponse.Data; } /// /// Get a list of groups the user is a member of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of List<ProfileGroup> [Obsolete] public Tribufu.Client.ApiResponse> GetUserGroupsV1WithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserGroupsV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserGroupsV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/users/{id}/groups", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserGroupsV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of groups the user is a member of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<ProfileGroup> [Obsolete] public async System.Threading.Tasks.Task> GetUserGroupsV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetUserGroupsV1WithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a list of groups the user is a member of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<ProfileGroup>) [Obsolete] public async System.Threading.Tasks.Task>> GetUserGroupsV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserGroupsV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserGroupsV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/users/{id}/groups", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserGroupsV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get current user information. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.user.info</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// UserInfo public UserInfo GetUserInfo(int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = GetUserInfoWithHttpInfo(); return localVarResponse.Data; } /// /// Get current user information. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.user.info</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// ApiResponse of UserInfo public Tribufu.Client.ApiResponse GetUserInfoWithHttpInfo(int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserInfo"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get("/v1/oauth2/userinfo", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserInfo", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get current user information. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.user.info</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of UserInfo public async System.Threading.Tasks.Task GetUserInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await GetUserInfoWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get current user information. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.user.info</code> /// /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (UserInfo) public async System.Threading.Tasks.Task> GetUserInfoWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserInfo"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/oauth2/userinfo", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserInfo", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a user profile by id. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Profile public Profile GetUserProfileById(string id, int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = GetUserProfileByIdWithHttpInfo(id); return localVarResponse.Data; } /// /// Get a user profile by id. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Profile public Tribufu.Client.ApiResponse GetUserProfileByIdWithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserProfileById"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileById"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get("/v1/profiles/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserProfileById", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a user profile by id. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Profile public async System.Threading.Tasks.Task GetUserProfileByIdAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await GetUserProfileByIdWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a user profile by id. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Profile) public async System.Threading.Tasks.Task> GetUserProfileByIdWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserProfileById"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileById"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/profiles/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserProfileById", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a user profile by id. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Profile [Obsolete] public Profile GetUserProfileByIdV1(string id, int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = GetUserProfileByIdV1WithHttpInfo(id); return localVarResponse.Data; } /// /// Get a user profile by id. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Profile [Obsolete] public Tribufu.Client.ApiResponse GetUserProfileByIdV1WithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserProfileByIdV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileByIdV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get("/v1/users/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserProfileByIdV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a user profile by id. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Profile [Obsolete] public async System.Threading.Tasks.Task GetUserProfileByIdV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await GetUserProfileByIdV1WithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a user profile by id. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Profile) [Obsolete] public async System.Threading.Tasks.Task> GetUserProfileByIdV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserProfileByIdV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileByIdV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/users/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserProfileByIdV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a user profile by name. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Profile public Profile GetUserProfileByName(string name, int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = GetUserProfileByNameWithHttpInfo(name); return localVarResponse.Data; } /// /// Get a user profile by name. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Profile public Tribufu.Client.ApiResponse GetUserProfileByNameWithHttpInfo(string name, int operationIndex = 0) { // verify the required parameter 'name' is set if (name == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'name' when calling TribufuGeneratedApi->GetUserProfileByName"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("name", Tribufu.Client.ClientUtils.ParameterToString(name)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileByName"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get("/v1/profiles/name/{name}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserProfileByName", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a user profile by name. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Profile public async System.Threading.Tasks.Task GetUserProfileByNameAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await GetUserProfileByNameWithHttpInfoAsync(name, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a user profile by name. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Profile) public async System.Threading.Tasks.Task> GetUserProfileByNameWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'name' is set if (name == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'name' when calling TribufuGeneratedApi->GetUserProfileByName"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("name", Tribufu.Client.ClientUtils.ParameterToString(name)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileByName"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/profiles/name/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserProfileByName", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a user profile by name. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Profile [Obsolete] public Profile GetUserProfileByNameV1(string name, int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = GetUserProfileByNameV1WithHttpInfo(name); return localVarResponse.Data; } /// /// Get a user profile by name. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Profile [Obsolete] public Tribufu.Client.ApiResponse GetUserProfileByNameV1WithHttpInfo(string name, int operationIndex = 0) { // verify the required parameter 'name' is set if (name == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'name' when calling TribufuGeneratedApi->GetUserProfileByNameV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("name", Tribufu.Client.ClientUtils.ParameterToString(name)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileByNameV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get("/v1/users/name/{name}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserProfileByNameV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a user profile by name. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Profile [Obsolete] public async System.Threading.Tasks.Task GetUserProfileByNameV1Async(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await GetUserProfileByNameV1WithHttpInfoAsync(name, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a user profile by name. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Profile) [Obsolete] public async System.Threading.Tasks.Task> GetUserProfileByNameV1WithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'name' is set if (name == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'name' when calling TribufuGeneratedApi->GetUserProfileByNameV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("name", Tribufu.Client.ClientUtils.ParameterToString(name)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileByNameV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/users/name/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserProfileByNameV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a user profile by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Profile public Profile GetUserProfileByUuid(Guid uuid, int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = GetUserProfileByUuidWithHttpInfo(uuid); return localVarResponse.Data; } /// /// Get a user profile by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Profile public Tribufu.Client.ApiResponse GetUserProfileByUuidWithHttpInfo(Guid uuid, int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("uuid", Tribufu.Client.ClientUtils.ParameterToString(uuid)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileByUuid"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get("/v1/profiles/uuid/{uuid}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserProfileByUuid", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a user profile by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Profile public async System.Threading.Tasks.Task GetUserProfileByUuidAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await GetUserProfileByUuidWithHttpInfoAsync(uuid, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a user profile by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Profile) public async System.Threading.Tasks.Task> GetUserProfileByUuidWithHttpInfoAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("uuid", Tribufu.Client.ClientUtils.ParameterToString(uuid)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileByUuid"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/profiles/uuid/{uuid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserProfileByUuid", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a user profile by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Profile [Obsolete] public Profile GetUserProfileByUuidV1(Guid uuid, int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = GetUserProfileByUuidV1WithHttpInfo(uuid); return localVarResponse.Data; } /// /// Get a user profile by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Profile [Obsolete] public Tribufu.Client.ApiResponse GetUserProfileByUuidV1WithHttpInfo(Guid uuid, int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("uuid", Tribufu.Client.ClientUtils.ParameterToString(uuid)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileByUuidV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get("/v1/users/uuid/{uuid}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserProfileByUuidV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a user profile by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Profile [Obsolete] public async System.Threading.Tasks.Task GetUserProfileByUuidV1Async(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await GetUserProfileByUuidV1WithHttpInfoAsync(uuid, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a user profile by uuid. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Profile) [Obsolete] public async System.Threading.Tasks.Task> GetUserProfileByUuidV1WithHttpInfoAsync(Guid uuid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("uuid", Tribufu.Client.ClientUtils.ParameterToString(uuid)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfileByUuidV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync("/v1/users/uuid/{uuid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserProfileByUuidV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of user profiles. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<Profile> public List GetUserProfiles(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetUserProfilesWithHttpInfo(page, limit); return localVarResponse.Data; } /// /// Get a list of user profiles. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<Profile> public Tribufu.Client.ApiResponse> GetUserProfilesWithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfiles"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/profiles", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserProfiles", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of user profiles. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Profile> public async System.Threading.Tasks.Task> GetUserProfilesAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetUserProfilesWithHttpInfoAsync(page, limit, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a list of user profiles. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Profile>) public async System.Threading.Tasks.Task>> GetUserProfilesWithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfiles"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/profiles", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserProfiles", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of user profiles. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<Profile> [Obsolete] public List GetUserProfilesV1(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetUserProfilesV1WithHttpInfo(page, limit); return localVarResponse.Data; } /// /// Get a list of user profiles. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<Profile> [Obsolete] public Tribufu.Client.ApiResponse> GetUserProfilesV1WithHttpInfo(int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfilesV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/users", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserProfilesV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of user profiles. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Profile> [Obsolete] public async System.Threading.Tasks.Task> GetUserProfilesV1Async(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetUserProfilesV1WithHttpInfoAsync(page, limit, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a list of user profiles. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code> /// /// Thrown when fails to make API call /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Profile>) [Obsolete] public async System.Threading.Tasks.Task>> GetUserProfilesV1WithHttpInfoAsync(int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserProfilesV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/users", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserProfilesV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of sanctions the user has received. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// List<Object> public List GetUserSanctions(string id, int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetUserSanctionsWithHttpInfo(id); return localVarResponse.Data; } /// /// Get a list of sanctions the user has received. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of List<Object> public Tribufu.Client.ApiResponse> GetUserSanctionsWithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserSanctions"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserSanctions"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/profiles/{id}/sanctions", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserSanctions", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of sanctions the user has received. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Object> public async System.Threading.Tasks.Task> GetUserSanctionsAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetUserSanctionsWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a list of sanctions the user has received. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Object>) public async System.Threading.Tasks.Task>> GetUserSanctionsWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserSanctions"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserSanctions"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/profiles/{id}/sanctions", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserSanctions", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of sanctions the user has received. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// List<Object> [Obsolete] public List GetUserSanctionsV1(string id, int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetUserSanctionsV1WithHttpInfo(id); return localVarResponse.Data; } /// /// Get a list of sanctions the user has received. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of List<Object> [Obsolete] public Tribufu.Client.ApiResponse> GetUserSanctionsV1WithHttpInfo(string id, int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserSanctionsV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserSanctionsV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/users/{id}/sanctions", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserSanctionsV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of sanctions the user has received. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Object> [Obsolete] public async System.Threading.Tasks.Task> GetUserSanctionsV1Async(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetUserSanctionsV1WithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a list of sanctions the user has received. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.sanction.list</code> /// /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Object>) [Obsolete] public async System.Threading.Tasks.Task>> GetUserSanctionsV1WithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserSanctionsV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserSanctionsV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/users/{id}/sanctions", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserSanctionsV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of servers the user is owner of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<GameServer> public List GetUserServers(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetUserServersWithHttpInfo(id, page, limit); return localVarResponse.Data; } /// /// Get a list of servers the user is owner of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<GameServer> public Tribufu.Client.ApiResponse> GetUserServersWithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserServers"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserServers"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/profiles/{id}/servers", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserServers", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of servers the user is owner of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<GameServer> public async System.Threading.Tasks.Task> GetUserServersAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetUserServersWithHttpInfoAsync(id, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a list of servers the user is owner of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<GameServer>) public async System.Threading.Tasks.Task>> GetUserServersWithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserServers"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserServers"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/profiles/{id}/servers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserServers", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of servers the user is owner of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// List<GameServer> [Obsolete] public List GetUserServersV1(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = GetUserServersV1WithHttpInfo(id, page, limit); return localVarResponse.Data; } /// /// Get a list of servers the user is owner of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// ApiResponse of List<GameServer> [Obsolete] public Tribufu.Client.ApiResponse> GetUserServersV1WithHttpInfo(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserServersV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserServersV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Get>("/v1/users/{id}/servers", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserServersV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Get a list of servers the user is owner of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<GameServer> [Obsolete] public async System.Threading.Tasks.Task> GetUserServersV1Async(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await GetUserServersV1WithHttpInfoAsync(id, page, limit, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get a list of servers the user is owner of. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code> /// /// Thrown when fails to make API call /// /// The page number of the results to retrieve. Defaults to 1. (optional) /// The maximum number of items to return per page. Defaults to the defined pagination limit. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<GameServer>) [Obsolete] public async System.Threading.Tasks.Task>> GetUserServersV1WithHttpInfoAsync(string id, int? page = default(int?), int? limit = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->GetUserServersV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter if (page != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Tribufu.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } localVarRequestOptions.Operation = "TribufuGeneratedApi.GetUserServersV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync>("/v1/users/{id}/servers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUserServersV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Hash a string using argon2. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.argon2</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// HashViewModel public HashViewModel HashArgon2(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = HashArgon2WithHttpInfo(hashViewModel); return localVarResponse.Data; } /// /// Hash a string using argon2. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.argon2</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of HashViewModel public Tribufu.Client.ApiResponse HashArgon2WithHttpInfo(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = hashViewModel; localVarRequestOptions.Operation = "TribufuGeneratedApi.HashArgon2"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Post("/v1/utils/argon2", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("HashArgon2", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Hash a string using argon2. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.argon2</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of HashViewModel public async System.Threading.Tasks.Task HashArgon2Async(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await HashArgon2WithHttpInfoAsync(hashViewModel, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Hash a string using argon2. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.argon2</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (HashViewModel) public async System.Threading.Tasks.Task> HashArgon2WithHttpInfoAsync(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = hashViewModel; localVarRequestOptions.Operation = "TribufuGeneratedApi.HashArgon2"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/utils/argon2", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("HashArgon2", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Hash a string using bcrypt. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.bcrypt</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// HashViewModel public HashViewModel HashBcrypt(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = HashBcryptWithHttpInfo(hashViewModel); return localVarResponse.Data; } /// /// Hash a string using bcrypt. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.bcrypt</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of HashViewModel public Tribufu.Client.ApiResponse HashBcryptWithHttpInfo(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = hashViewModel; localVarRequestOptions.Operation = "TribufuGeneratedApi.HashBcrypt"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Post("/v1/utils/bcrypt", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("HashBcrypt", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Hash a string using bcrypt. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.bcrypt</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of HashViewModel public async System.Threading.Tasks.Task HashBcryptAsync(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await HashBcryptWithHttpInfoAsync(hashViewModel, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Hash a string using bcrypt. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.bcrypt</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (HashViewModel) public async System.Threading.Tasks.Task> HashBcryptWithHttpInfoAsync(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = hashViewModel; localVarRequestOptions.Operation = "TribufuGeneratedApi.HashBcrypt"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/utils/bcrypt", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("HashBcrypt", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Hash a string using md5. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.md5</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// HashViewModel public HashViewModel HashMd5(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = HashMd5WithHttpInfo(hashViewModel); return localVarResponse.Data; } /// /// Hash a string using md5. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.md5</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of HashViewModel public Tribufu.Client.ApiResponse HashMd5WithHttpInfo(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = hashViewModel; localVarRequestOptions.Operation = "TribufuGeneratedApi.HashMd5"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Post("/v1/utils/md5", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("HashMd5", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Hash a string using md5. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.md5</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of HashViewModel public async System.Threading.Tasks.Task HashMd5Async(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await HashMd5WithHttpInfoAsync(hashViewModel, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Hash a string using md5. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.md5</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (HashViewModel) public async System.Threading.Tasks.Task> HashMd5WithHttpInfoAsync(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = hashViewModel; localVarRequestOptions.Operation = "TribufuGeneratedApi.HashMd5"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/utils/md5", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("HashMd5", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Hash a string using sha256. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.sha256</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// HashViewModel public HashViewModel HashSha256(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = HashSha256WithHttpInfo(hashViewModel); return localVarResponse.Data; } /// /// Hash a string using sha256. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.sha256</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of HashViewModel public Tribufu.Client.ApiResponse HashSha256WithHttpInfo(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = hashViewModel; localVarRequestOptions.Operation = "TribufuGeneratedApi.HashSha256"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Post("/v1/utils/sha256", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("HashSha256", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Hash a string using sha256. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.sha256</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of HashViewModel public async System.Threading.Tasks.Task HashSha256Async(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await HashSha256WithHttpInfoAsync(hashViewModel, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Hash a string using sha256. <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.sha256</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (HashViewModel) public async System.Threading.Tasks.Task> HashSha256WithHttpInfoAsync(HashViewModel hashViewModel = default(HashViewModel), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = hashViewModel; localVarRequestOptions.Operation = "TribufuGeneratedApi.HashSha256"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/utils/sha256", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("HashSha256", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Introspect a token. /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// IntrospectResponse public IntrospectResponse IntrospectToken(IntrospectRequest introspectRequest = default(IntrospectRequest), int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = IntrospectTokenWithHttpInfo(introspectRequest); return localVarResponse.Data; } /// /// Introspect a token. /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of IntrospectResponse public Tribufu.Client.ApiResponse IntrospectTokenWithHttpInfo(IntrospectRequest introspectRequest = default(IntrospectRequest), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json", "application/x-www-form-urlencoded" }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = introspectRequest; localVarRequestOptions.Operation = "TribufuGeneratedApi.IntrospectToken"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Post("/v1/oauth2/introspect", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("IntrospectToken", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Introspect a token. /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of IntrospectResponse public async System.Threading.Tasks.Task IntrospectTokenAsync(IntrospectRequest introspectRequest = default(IntrospectRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await IntrospectTokenWithHttpInfoAsync(introspectRequest, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Introspect a token. /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (IntrospectResponse) public async System.Threading.Tasks.Task> IntrospectTokenWithHttpInfoAsync(IntrospectRequest introspectRequest = default(IntrospectRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json", "application/x-www-form-urlencoded" }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = introspectRequest; localVarRequestOptions.Operation = "TribufuGeneratedApi.IntrospectToken"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/oauth2/introspect", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("IntrospectToken", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Revoke a token. /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// public void RevokeToken(RevokeRequest revokeRequest = default(RevokeRequest), int operationIndex = 0) { RevokeTokenWithHttpInfo(revokeRequest); } /// /// Revoke a token. /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) public Tribufu.Client.ApiResponse RevokeTokenWithHttpInfo(RevokeRequest revokeRequest = default(RevokeRequest), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json", "application/x-www-form-urlencoded" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = revokeRequest; localVarRequestOptions.Operation = "TribufuGeneratedApi.RevokeToken"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Post("/v1/oauth2/revoke", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("RevokeToken", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Revoke a token. /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void public async System.Threading.Tasks.Task RevokeTokenAsync(RevokeRequest revokeRequest = default(RevokeRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await RevokeTokenWithHttpInfoAsync(revokeRequest, operationIndex, cancellationToken).ConfigureAwait(false); } /// /// Revoke a token. /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse public async System.Threading.Tasks.Task> RevokeTokenWithHttpInfoAsync(RevokeRequest revokeRequest = default(RevokeRequest), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json", "application/x-www-form-urlencoded" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = revokeRequest; localVarRequestOptions.Operation = "TribufuGeneratedApi.RevokeToken"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync("/v1/oauth2/revoke", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("RevokeToken", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Advanced search. <b>🔒 Required permissions:</b> <code>tribufu.community.search</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// List<Object> public List Search(Search search = default(Search), int operationIndex = 0) { Tribufu.Client.ApiResponse> localVarResponse = SearchWithHttpInfo(search); return localVarResponse.Data; } /// /// Advanced search. <b>🔒 Required permissions:</b> <code>tribufu.community.search</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// ApiResponse of List<Object> public Tribufu.Client.ApiResponse> SearchWithHttpInfo(Search search = default(Search), int operationIndex = 0) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = search; localVarRequestOptions.Operation = "TribufuGeneratedApi.Search"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Post>("/v1/search", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("Search", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Advanced search. <b>🔒 Required permissions:</b> <code>tribufu.community.search</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Object> public async System.Threading.Tasks.Task> SearchAsync(Search search = default(Search), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse> localVarResponse = await SearchWithHttpInfoAsync(search, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Advanced search. <b>🔒 Required permissions:</b> <code>tribufu.community.search</code> /// /// Thrown when fails to make API call /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Object>) public async System.Threading.Tasks.Task>> SearchWithHttpInfoAsync(Search search = default(Search), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = search; localVarRequestOptions.Operation = "TribufuGeneratedApi.Search"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync>("/v1/search", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("Search", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Update an oauth2 client. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// public void UpdateClient(string id, Object body = default(Object), int operationIndex = 0) { UpdateClientWithHttpInfo(id, body); } /// /// Update an oauth2 client. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) public Tribufu.Client.ApiResponse UpdateClientWithHttpInfo(string id, Object body = default(Object), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateClient"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateClient"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Put("/v1/oauth2/clients/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("UpdateClient", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Update an oauth2 client. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void public async System.Threading.Tasks.Task UpdateClientAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdateClientWithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); } /// /// Update an oauth2 client. <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse public async System.Threading.Tasks.Task> UpdateClientWithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateClient"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateClient"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/oauth2/clients/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("UpdateClient", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Update a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// public void UpdateGameServer(string id, Object body = default(Object), int operationIndex = 0) { UpdateGameServerWithHttpInfo(id, body); } /// /// Update a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) public Tribufu.Client.ApiResponse UpdateGameServerWithHttpInfo(string id, Object body = default(Object), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateGameServer"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGameServer"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Put("/v1/games/servers/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("UpdateGameServer", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Update a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void public async System.Threading.Tasks.Task UpdateGameServerAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdateGameServerWithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); } /// /// Update a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse public async System.Threading.Tasks.Task> UpdateGameServerWithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateGameServer"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGameServer"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/games/servers/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("UpdateGameServer", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Update a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// public void UpdateGameServerCluster(string id, Object body = default(Object), int operationIndex = 0) { UpdateGameServerClusterWithHttpInfo(id, body); } /// /// Update a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) public Tribufu.Client.ApiResponse UpdateGameServerClusterWithHttpInfo(string id, Object body = default(Object), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateGameServerCluster"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGameServerCluster"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Put("/v1/games/servers/clusters/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("UpdateGameServerCluster", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Update a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void public async System.Threading.Tasks.Task UpdateGameServerClusterAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdateGameServerClusterWithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); } /// /// Update a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse public async System.Threading.Tasks.Task> UpdateGameServerClusterWithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateGameServerCluster"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGameServerCluster"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/games/servers/clusters/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("UpdateGameServerCluster", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Update a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// [Obsolete] public void UpdateGameServerClusterV1(string id, Object body = default(Object), int operationIndex = 0) { UpdateGameServerClusterV1WithHttpInfo(id, body); } /// /// Update a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) [Obsolete] public Tribufu.Client.ApiResponse UpdateGameServerClusterV1WithHttpInfo(string id, Object body = default(Object), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateGameServerClusterV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGameServerClusterV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Put("/v1/clusters/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("UpdateGameServerClusterV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Update a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void [Obsolete] public async System.Threading.Tasks.Task UpdateGameServerClusterV1Async(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdateGameServerClusterV1WithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); } /// /// Update a game server cluster. <b>🔒 Required permissions:</b> <code>tribufu.game.server.cluster.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse [Obsolete] public async System.Threading.Tasks.Task> UpdateGameServerClusterV1WithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateGameServerClusterV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGameServerClusterV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/clusters/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("UpdateGameServerClusterV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Update a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// [Obsolete] public void UpdateGameServerV1(string id, Object body = default(Object), int operationIndex = 0) { UpdateGameServerV1WithHttpInfo(id, body); } /// /// Update a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) [Obsolete] public Tribufu.Client.ApiResponse UpdateGameServerV1WithHttpInfo(string id, Object body = default(Object), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateGameServerV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGameServerV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Put("/v1/servers/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("UpdateGameServerV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Update a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void [Obsolete] public async System.Threading.Tasks.Task UpdateGameServerV1Async(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdateGameServerV1WithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); } /// /// Update a game server. <b>🔒 Required permissions:</b> <code>tribufu.game.server.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse [Obsolete] public async System.Threading.Tasks.Task> UpdateGameServerV1WithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateGameServerV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGameServerV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/servers/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("UpdateGameServerV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Update a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// public void UpdateGroup(string id, Object body = default(Object), int operationIndex = 0) { UpdateGroupWithHttpInfo(id, body); } /// /// Update a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) public Tribufu.Client.ApiResponse UpdateGroupWithHttpInfo(string id, Object body = default(Object), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateGroup"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGroup"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Put("/v1/groups/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("UpdateGroup", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Update a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void public async System.Threading.Tasks.Task UpdateGroupAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdateGroupWithHttpInfoAsync(id, body, operationIndex, cancellationToken).ConfigureAwait(false); } /// /// Update a group. <b>🔒 Required permissions:</b> <code>tribufu.community.group.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse public async System.Threading.Tasks.Task> UpdateGroupWithHttpInfoAsync(string id, Object body = default(Object), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateGroup"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Data = body; localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateGroup"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/groups/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("UpdateGroup", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Update an package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// public void UpdatePackage(string id, Package package = default(Package), int operationIndex = 0) { UpdatePackageWithHttpInfo(id, package); } /// /// Update an package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) public Tribufu.Client.ApiResponse UpdatePackageWithHttpInfo(string id, Package package = default(Package), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdatePackage"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Data = package; localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdatePackage"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Put("/v1/packages/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("UpdatePackage", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Update an package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void public async System.Threading.Tasks.Task UpdatePackageAsync(string id, Package package = default(Package), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdatePackageWithHttpInfoAsync(id, package, operationIndex, cancellationToken).ConfigureAwait(false); } /// /// Update an package. <b>🔒 Required permissions:</b> <code>tribufu.community.package.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse public async System.Threading.Tasks.Task> UpdatePackageWithHttpInfoAsync(string id, Package package = default(Package), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdatePackage"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Data = package; localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdatePackage"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/packages/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("UpdatePackage", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Update a user profile. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Profile public Profile UpdateUserProfile(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = UpdateUserProfileWithHttpInfo(id, updateProfile); return localVarResponse.Data; } /// /// Update a user profile. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// ApiResponse of Profile public Tribufu.Client.ApiResponse UpdateUserProfileWithHttpInfo(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateUserProfile"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Data = updateProfile; localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateUserProfile"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Put("/v1/profiles/{id}/profile", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("UpdateUserProfile", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Update a user profile. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Profile public async System.Threading.Tasks.Task UpdateUserProfileAsync(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await UpdateUserProfileWithHttpInfoAsync(id, updateProfile, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Update a user profile. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Profile) public async System.Threading.Tasks.Task> UpdateUserProfileWithHttpInfoAsync(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateUserProfile"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Data = updateProfile; localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateUserProfile"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/profiles/{id}/profile", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("UpdateUserProfile", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Update a user profile. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Profile [Obsolete] public Profile UpdateUserProfileV1(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0) { Tribufu.Client.ApiResponse localVarResponse = UpdateUserProfileV1WithHttpInfo(id, updateProfile); return localVarResponse.Data; } /// /// Update a user profile. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// ApiResponse of Profile [Obsolete] public Tribufu.Client.ApiResponse UpdateUserProfileV1WithHttpInfo(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateUserProfileV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Data = updateProfile; localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateUserProfileV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = this.Client.Put("/v1/users/{id}/profile", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("UpdateUserProfileV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } /// /// Update a user profile. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Profile [Obsolete] public async System.Threading.Tasks.Task UpdateUserProfileV1Async(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Tribufu.Client.ApiResponse localVarResponse = await UpdateUserProfileV1WithHttpInfoAsync(id, updateProfile, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Update a user profile. <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code> /// /// Thrown when fails to make API call /// /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Profile) [Obsolete] public async System.Threading.Tasks.Task> UpdateUserProfileV1WithHttpInfoAsync(string id, UpdateProfile updateProfile = default(UpdateProfile), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) { throw new Tribufu.Client.ApiException(400, "Missing required parameter 'id' when calling TribufuGeneratedApi->UpdateUserProfileV1"); } Tribufu.Client.RequestOptions localVarRequestOptions = new Tribufu.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = Tribufu.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Tribufu.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Tribufu.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.Data = updateProfile; localVarRequestOptions.Operation = "TribufuGeneratedApi.UpdateUserProfileV1"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PutAsync("/v1/users/{id}/profile", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("UpdateUserProfileV1", localVarResponse); if (_exception != null) { throw _exception; } } return localVarResponse; } } }