/// <summary>
        /// List Definitions
        /// </summary>
        /// <exception cref="Thinkcode.RabbitMQ.OpenAPI.Client.ApiException">Thrown when fails to make API call</exception>
        /// <returns>Task of Definition</returns>
        public async System.Threading.Tasks.Task <Definition> ListDefinitionsAsync()
        {
            Thinkcode.RabbitMQ.OpenAPI.Client.ApiResponse <Definition> localVarResponse = await ListDefinitionsAsyncWithHttpInfo();

            return(localVarResponse.Data);
        }
        /// <summary>
        /// Get Overview
        /// </summary>
        /// <exception cref="Thinkcode.RabbitMQ.OpenAPI.Client.ApiException">Thrown when fails to make API call</exception>
        /// <returns>Task of Overview</returns>
        public async System.Threading.Tasks.Task <Overview> GetOverviewAsync()
        {
            Thinkcode.RabbitMQ.OpenAPI.Client.ApiResponse <Overview> localVarResponse = await GetOverviewAsyncWithHttpInfo();

            return(localVarResponse.Data);
        }
 /// <summary>
 /// List Definitions
 /// </summary>
 /// <exception cref="Thinkcode.RabbitMQ.OpenAPI.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>Definition</returns>
 public Definition ListDefinitions()
 {
     Thinkcode.RabbitMQ.OpenAPI.Client.ApiResponse <Definition> localVarResponse = ListDefinitionsWithHttpInfo();
     return(localVarResponse.Data);
 }
        /// <summary>
        /// Get Definitions for VHost
        /// </summary>
        /// <exception cref="Thinkcode.RabbitMQ.OpenAPI.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="vhost"></param>
        /// <returns>Task of Definition</returns>
        public async System.Threading.Tasks.Task <Definition> GetDefinitionsForVirtualHostAsync(string vhost)
        {
            Thinkcode.RabbitMQ.OpenAPI.Client.ApiResponse <Definition> localVarResponse = await GetDefinitionsForVirtualHostAsyncWithHttpInfo(vhost);

            return(localVarResponse.Data);
        }
 /// <summary>
 /// Get Overview
 /// </summary>
 /// <exception cref="Thinkcode.RabbitMQ.OpenAPI.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>Overview</returns>
 public Overview GetOverview()
 {
     Thinkcode.RabbitMQ.OpenAPI.Client.ApiResponse <Overview> localVarResponse = GetOverviewWithHttpInfo();
     return(localVarResponse.Data);
 }
        /// <summary>
        /// Read Cluster Name
        /// </summary>
        /// <exception cref="Thinkcode.RabbitMQ.OpenAPI.Client.ApiException">Thrown when fails to make API call</exception>
        /// <returns>Task of ClusterName</returns>
        public async System.Threading.Tasks.Task <ClusterName> GetClusterNameAsync()
        {
            Thinkcode.RabbitMQ.OpenAPI.Client.ApiResponse <ClusterName> localVarResponse = await GetClusterNameAsyncWithHttpInfo();

            return(localVarResponse.Data);
        }
 /// <summary>
 /// Get Definitions for VHost
 /// </summary>
 /// <exception cref="Thinkcode.RabbitMQ.OpenAPI.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="vhost"></param>
 /// <returns>Definition</returns>
 public Definition GetDefinitionsForVirtualHost(string vhost)
 {
     Thinkcode.RabbitMQ.OpenAPI.Client.ApiResponse <Definition> localVarResponse = GetDefinitionsForVirtualHostWithHttpInfo(vhost);
     return(localVarResponse.Data);
 }
        /// <summary>
        /// List Users without Permissions
        /// </summary>
        /// <exception cref="Thinkcode.RabbitMQ.OpenAPI.Client.ApiException">Thrown when fails to make API call</exception>
        /// <returns>Task of List&lt;User&gt;</returns>
        public async System.Threading.Tasks.Task <List <User> > ListUsersWithoutPermissionsAsync()
        {
            Thinkcode.RabbitMQ.OpenAPI.Client.ApiResponse <List <User> > localVarResponse = await ListUsersWithoutPermissionsAsyncWithHttpInfo();

            return(localVarResponse.Data);
        }
 /// <summary>
 /// Read Cluster Name
 /// </summary>
 /// <exception cref="Thinkcode.RabbitMQ.OpenAPI.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>ClusterName</returns>
 public ClusterName GetClusterName()
 {
     Thinkcode.RabbitMQ.OpenAPI.Client.ApiResponse <ClusterName> localVarResponse = GetClusterNameWithHttpInfo();
     return(localVarResponse.Data);
 }
        /// <summary>
        /// List Users Topic Permissions
        /// </summary>
        /// <exception cref="Thinkcode.RabbitMQ.OpenAPI.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="user"></param>
        /// <returns>Task of List&lt;PermissionTopic&gt;</returns>
        public async System.Threading.Tasks.Task <List <PermissionTopic> > ListUsersTopicPermissionsAsync(string user)
        {
            Thinkcode.RabbitMQ.OpenAPI.Client.ApiResponse <List <PermissionTopic> > localVarResponse = await ListUsersTopicPermissionsAsyncWithHttpInfo(user);

            return(localVarResponse.Data);
        }
 /// <summary>
 /// List Users without Permissions
 /// </summary>
 /// <exception cref="Thinkcode.RabbitMQ.OpenAPI.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>List&lt;User&gt;</returns>
 public List <User> ListUsersWithoutPermissions()
 {
     Thinkcode.RabbitMQ.OpenAPI.Client.ApiResponse <List <User> > localVarResponse = ListUsersWithoutPermissionsWithHttpInfo();
     return(localVarResponse.Data);
 }
 /// <summary>
 /// List Users Topic Permissions
 /// </summary>
 /// <exception cref="Thinkcode.RabbitMQ.OpenAPI.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="user"></param>
 /// <returns>List&lt;PermissionTopic&gt;</returns>
 public List <PermissionTopic> ListUsersTopicPermissions(string user)
 {
     Thinkcode.RabbitMQ.OpenAPI.Client.ApiResponse <List <PermissionTopic> > localVarResponse = ListUsersTopicPermissionsWithHttpInfo(user);
     return(localVarResponse.Data);
 }
Ejemplo n.º 13
0
        /// <summary>
        /// Publish Message
        /// </summary>
        /// <exception cref="Thinkcode.RabbitMQ.OpenAPI.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="vhost"></param>
        /// <param name="exchange"></param>
        /// <param name="body"> (optional)</param>
        /// <returns>Task of PublishResponse</returns>
        public async System.Threading.Tasks.Task <PublishResponse> PublishMessageAsync(string vhost, string exchange, PublishRequest body = null)
        {
            Thinkcode.RabbitMQ.OpenAPI.Client.ApiResponse <PublishResponse> localVarResponse = await PublishMessageAsyncWithHttpInfo(vhost, exchange, body);

            return(localVarResponse.Data);
        }
Ejemplo n.º 14
0
 /// <summary>
 /// Publish Message
 /// </summary>
 /// <exception cref="Thinkcode.RabbitMQ.OpenAPI.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="vhost"></param>
 /// <param name="exchange"></param>
 /// <param name="body"> (optional)</param>
 /// <returns>PublishResponse</returns>
 public PublishResponse PublishMessage(string vhost, string exchange, PublishRequest body = null)
 {
     Thinkcode.RabbitMQ.OpenAPI.Client.ApiResponse <PublishResponse> localVarResponse = PublishMessageWithHttpInfo(vhost, exchange, body);
     return(localVarResponse.Data);
 }
Ejemplo n.º 15
0
        /// <summary>
        /// Consume Message
        /// </summary>
        /// <exception cref="Thinkcode.RabbitMQ.OpenAPI.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="vhost"></param>
        /// <param name="queue"></param>
        /// <param name="body"> (optional)</param>
        /// <returns>Task of List&lt;ConsumeResponse&gt;</returns>
        public async System.Threading.Tasks.Task <List <ConsumeResponse> > ConsumeMessageAsync(string vhost, string queue, ConsumeRequest body = null)
        {
            Thinkcode.RabbitMQ.OpenAPI.Client.ApiResponse <List <ConsumeResponse> > localVarResponse = await ConsumeMessageAsyncWithHttpInfo(vhost, queue, body);

            return(localVarResponse.Data);
        }
Ejemplo n.º 16
0
 /// <summary>
 /// Consume Message
 /// </summary>
 /// <exception cref="Thinkcode.RabbitMQ.OpenAPI.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="vhost"></param>
 /// <param name="queue"></param>
 /// <param name="body"> (optional)</param>
 /// <returns>List&lt;ConsumeResponse&gt;</returns>
 public List <ConsumeResponse> ConsumeMessage(string vhost, string queue, ConsumeRequest body = null)
 {
     Thinkcode.RabbitMQ.OpenAPI.Client.ApiResponse <List <ConsumeResponse> > localVarResponse = ConsumeMessageWithHttpInfo(vhost, queue, body);
     return(localVarResponse.Data);
 }