Skip to content

Commit

Permalink
Merge pull request #8 from StackPointCloud/TypoFixes
Browse files Browse the repository at this point in the history
Typo fixes
  • Loading branch information
edevenport authored Jun 20, 2016
2 parents 672f1fb + f5ffc20 commit a28aeb0
Show file tree
Hide file tree
Showing 91 changed files with 176 additions and 178 deletions.
8 changes: 4 additions & 4 deletions OneAndOne.Client/Endpoints/DVDs/DVDs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public DVDs(object _apiUrl = null, object _apiKey = null)
/// <param name="query">Allows to search one string in the response and return the elements that contain it. In order to specify the string use parameter q: q=My server</param>
/// <param name="fields">Returns only the parameters requested: fields=id,name,description,hardware.ram</param>

public List<OneAndOne.POCO.Respones.DVDS.DVDResponse> Get(int? page = null, int? perPage = null, string sort = null, string query = null, string fields = null)
public List<OneAndOne.POCO.Response.DVDS.DVDResponse> Get(int? page = null, int? perPage = null, string sort = null, string query = null, string fields = null)
{
try
{
Expand All @@ -47,7 +47,7 @@ public DVDs(object _apiUrl = null, object _apiKey = null)
requestUrl += string.Format("&fields={0}", fields);
}
var request = new RestRequest(requestUrl, Method.GET);
var result = restclient.Execute<List<OneAndOne.POCO.Respones.DVDS.DVDResponse>>(request);
var result = restclient.Execute<List<OneAndOne.POCO.Response.DVDS.DVDResponse>>(request);
if (result.StatusCode != HttpStatusCode.OK)
{
throw new Exception(result.Content);
Expand All @@ -66,14 +66,14 @@ public DVDs(object _apiUrl = null, object _apiKey = null)
/// </summary>
/// <param name="id">Iso's ID</param>
///
public OneAndOne.POCO.Respones.DVDS.DVDResponse Show(string id)
public OneAndOne.POCO.Response.DVDS.DVDResponse Show(string id)
{
try
{
var request = new RestRequest("/dvd_isos/{id}", Method.GET);
request.AddUrlSegment("id", id);

var result = restclient.Execute<OneAndOne.POCO.Respones.DVDS.DVDResponse>(request);
var result = restclient.Execute<OneAndOne.POCO.Response.DVDS.DVDResponse>(request);
if (result.StatusCode != HttpStatusCode.OK)
{
throw new Exception(result.Content);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using OneAndOne.Client.RESTHelpers;
using OneAndOne.POCO.Requests.FirewallPolicies;
using OneAndOne.POCO.Respones;
using OneAndOne.POCO.Response;
using RestSharp;
using System;
using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using OneAndOne.Client.RESTHelpers;
using OneAndOne.POCO.Requests.FirewallPolicies;
using OneAndOne.POCO.Respones;
using OneAndOne.POCO.Response;
using RestSharp;
using System;
using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using OneAndOne.Client.RESTHelpers;
using OneAndOne.POCO.Requests.FirewallPolicies;
using OneAndOne.POCO.Respones;
using OneAndOne.POCO.Respones.FirewallPolicies;
using OneAndOne.POCO.Response;
using OneAndOne.POCO.Response.FirewallPolicies;
using RestSharp;
using System;
using System.Collections.Generic;
Expand Down
2 changes: 1 addition & 1 deletion OneAndOne.Client/Endpoints/Images/Images.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Newtonsoft.Json;
using OneAndOne.Client.RESTHelpers;
using OneAndOne.POCO.Requests.Images;
using OneAndOne.POCO.Respones.Images;
using OneAndOne.POCO.Response.Images;
using RestSharp;
using System;
using System.Collections.Generic;
Expand Down
20 changes: 10 additions & 10 deletions OneAndOne.Client/Endpoints/LoadBalancers/LoadBalancer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public LoadBalancer(object _apiUrl = null, object _apiKey = null)
/// <param name="query">Allows to search one string in the response and return the elements that contain it. In order to specify the string use parameter q: q=My server</param>
/// <param name="fields">Returns only the parameters requested: fields=id,name,description,hardware.ram</param>

public List<OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse> Get(int? page = null, int? perPage = null, string sort = null, string query = null, string fields = null)
public List<OneAndOne.POCO.Response.LoadBalancers.LoadBalancerResponse> Get(int? page = null, int? perPage = null, string sort = null, string query = null, string fields = null)
{
try
{
Expand All @@ -53,7 +53,7 @@ public LoadBalancer(object _apiUrl = null, object _apiKey = null)
}
var request = new RestRequest(requestUrl, Method.GET);

var result = restclient.Execute<List<OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse>>(request);
var result = restclient.Execute<List<OneAndOne.POCO.Response.LoadBalancers.LoadBalancerResponse>>(request);
if (result.StatusCode != HttpStatusCode.OK)
{
throw new Exception(result.Content);
Expand All @@ -69,7 +69,7 @@ public LoadBalancer(object _apiUrl = null, object _apiKey = null)
///<summary>
//Creates a new load balancer.
//</summary>
public OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse Create(CreateLoadBalancerRequest loadBalancer)
public OneAndOne.POCO.Response.LoadBalancers.LoadBalancerResponse Create(CreateLoadBalancerRequest loadBalancer)
{
try
{
Expand All @@ -80,7 +80,7 @@ public OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse Create(CreateL
};
request.AddBody(loadBalancer);

var result = restclient.Execute<OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse>(request);
var result = restclient.Execute<OneAndOne.POCO.Response.LoadBalancers.LoadBalancerResponse>(request);
if (result.StatusCode != HttpStatusCode.Accepted)
{
throw new Exception(result.Content);
Expand All @@ -98,14 +98,14 @@ public OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse Create(CreateL
/// </summary>
/// <param name="load_balancer_id">Returns information about a load balancer.</param>
///
public OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse Show(string load_balancer_id)
public OneAndOne.POCO.Response.LoadBalancers.LoadBalancerResponse Show(string load_balancer_id)
{
try
{
var request = new RestRequest("/load_balancers/{load_balancer_id}", Method.GET);
request.AddUrlSegment("load_balancer_id", load_balancer_id);

var result = restclient.Execute<OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse>(request);
var result = restclient.Execute<OneAndOne.POCO.Response.LoadBalancers.LoadBalancerResponse>(request);
if (result.StatusCode != HttpStatusCode.OK)
{
throw new Exception(result.Content);
Expand All @@ -122,7 +122,7 @@ public OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse Show(string lo
/// Modifies a load balancer.
/// </summary>
/// <param name="load_balancer_id">Unique load balancer's identifier.</param>
public OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse Update(UpdateLoadBalancerRequest loadBalancer, string load_balancer_id)
public OneAndOne.POCO.Response.LoadBalancers.LoadBalancerResponse Update(UpdateLoadBalancerRequest loadBalancer, string load_balancer_id)
{
try
{
Expand All @@ -134,7 +134,7 @@ public OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse Update(UpdateL
request.AddUrlSegment("load_balancer_id", load_balancer_id);
request.AddBody(loadBalancer);

var result = restclient.Execute<OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse>(request);
var result = restclient.Execute<OneAndOne.POCO.Response.LoadBalancers.LoadBalancerResponse>(request);
if (result.StatusCode != HttpStatusCode.Accepted)
{
throw new Exception(result.Content);
Expand All @@ -152,7 +152,7 @@ public OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse Update(UpdateL
/// </summary>
/// <param name="load_balancer_id">Unique load balancer's identifier.</param>
///
public OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse Delete(string load_balancer_id)
public OneAndOne.POCO.Response.LoadBalancers.LoadBalancerResponse Delete(string load_balancer_id)
{
try
{
Expand All @@ -164,7 +164,7 @@ public OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse Delete(string
request.AddUrlSegment("load_balancer_id", load_balancer_id);
request.AddHeader("Content-Type", "application/json");

var result = restclient.Execute<OneAndOne.POCO.Respones.LoadBalancers.LoadBalancerResponse>(request);
var result = restclient.Execute<OneAndOne.POCO.Response.LoadBalancers.LoadBalancerResponse>(request);
if (result.StatusCode != HttpStatusCode.Accepted)
{
throw new Exception(result.Content);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using OneAndOne.Client.RESTHelpers;
using OneAndOne.POCO.Requests.LoadBalancer;
using OneAndOne.POCO.Respones.LoadBalancers;
using OneAndOne.POCO.Response.LoadBalancers;
using RestSharp;
using System;
using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using OneAndOne.Client.RESTHelpers;
using OneAndOne.POCO.Requests.LoadBalancer;
using OneAndOne.POCO.Respones.LoadBalancers;
using OneAndOne.POCO.Response.LoadBalancers;
using RestSharp;
using System;
using System.Collections.Generic;
Expand Down
4 changes: 2 additions & 2 deletions OneAndOne.Client/Endpoints/Logs/Logs.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using OneAndOne.POCO;
using OneAndOne.POCO.Respones.Logs;
using OneAndOne.POCO.Respones.MonitoringCenter;
using OneAndOne.POCO.Response.Logs;
using OneAndOne.POCO.Response.MonitoringCenter;
using RestSharp;
using System;
using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using OneAndOne.POCO;
using OneAndOne.POCO.Respones.MonitoringCenter;
using OneAndOne.POCO.Response.MonitoringCenter;
using RestSharp;
using System;
using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using OneAndOne.Client.RESTHelpers;
using OneAndOne.POCO.Respones.MonitoringPolicies;
using OneAndOne.POCO.Response.MonitoringPolicies;
using RestSharp;
using System;
using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using OneAndOne.Client.RESTHelpers;
using OneAndOne.POCO.Requests.MonitoringPolicies;
using OneAndOne.POCO.Respones.MonitoringPolicies;
using OneAndOne.POCO.Response.MonitoringPolicies;
using RestSharp;
using System;
using System.Collections.Generic;
Expand Down Expand Up @@ -68,7 +68,7 @@ public List<MonitoringPoliciesResponse> Get(int? page = null, int? perPage = nul
///<summary>
///Creates a new monitoring policy.
///</summary>
public MonitoringPoliciesResponse Create(CreateMonitoringPolictRequest monitoringPolicy)
public MonitoringPoliciesResponse Create(CreateMonitoringPolicyRequest monitoringPolicy)
{
try
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using OneAndOne.Client.RESTHelpers;
using OneAndOne.POCO.Respones.MonitoringPolicies;
using OneAndOne.POCO.Response.MonitoringPolicies;
using RestSharp;
using System;
using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using OneAndOne.Client.RESTHelpers;
using OneAndOne.POCO.Respones.MonitoringPolicies;
using OneAndOne.POCO.Response.MonitoringPolicies;
using RestSharp;
using System;
using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using OneAndOne.Client.RESTHelpers;
using OneAndOne.POCO.Requests.PrivateNetworks;
using OneAndOne.POCO.Respones.PrivateNetworks;
using OneAndOne.POCO.Response.PrivateNetworks;
using RestSharp;
using System;
using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using OneAndOne.Client.RESTHelpers;
using OneAndOne.POCO.Requests.PrivateNetworks;
using OneAndOne.POCO.Respones.PrivateNetworks;
using OneAndOne.POCO.Response.PrivateNetworks;
using RestSharp;
using System;
using System.Collections.Generic;
Expand Down
2 changes: 1 addition & 1 deletion OneAndOne.Client/Endpoints/PublicIPs/PublicIPs.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using OneAndOne.Client.RESTHelpers;
using OneAndOne.POCO.Requests.PublicIPs;
using OneAndOne.POCO.Respones.PublicIPs;
using OneAndOne.POCO.Response.PublicIPs;
using RestSharp;
using System;
using System.Collections.Generic;
Expand Down
2 changes: 1 addition & 1 deletion OneAndOne.Client/Endpoints/ResourceBase .cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using OneAndOne.Client.RESTAuth;
using OneAndOne.POCO.Respones;
using OneAndOne.POCO.Response;
using RestSharp;
using System;
using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Newtonsoft.Json;
using OneAndOne.POCO.Respones.ServerAppliances;
using OneAndOne.POCO.Response.ServerAppliances;
using RestSharp;
using System;
using System.Collections.Generic;
Expand Down
2 changes: 1 addition & 1 deletion OneAndOne.Client/Endpoints/Servers/HardDiskDrives.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using OneAndOne.Client.RESTHelpers;
using OneAndOne.POCO.Requests.Servers;
using OneAndOne.POCO.Respones.Servers;
using OneAndOne.POCO.Response.Servers;
using RestSharp;
using System;
using System.Collections.Generic;
Expand Down
16 changes: 8 additions & 8 deletions OneAndOne.Client/Endpoints/Servers/IPs.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Newtonsoft.Json;
using OneAndOne.Client.RESTHelpers;
using OneAndOne.POCO.Requests.Servers;
using OneAndOne.POCO.Respones;
using OneAndOne.POCO.Respones.Servers;
using OneAndOne.POCO.Response;
using OneAndOne.POCO.Response.Servers;
using RestSharp;
using System;
using System.Collections.Generic;
Expand All @@ -23,14 +23,14 @@ public ServerIps(object _apiUrl = null, object _apiKey = null)
/// Returns a list of the server's IPs.
/// </summary>
/// <param name="server_id">Unique server's identifier.</param>
public List<OneAndOne.POCO.Respones.Servers.IpAddress> Get(string server_id)
public List<OneAndOne.POCO.Response.Servers.IpAddress> Get(string server_id)
{
try
{
var request = new RestRequest("/servers/{server_id}/ips", Method.GET);
request.AddUrlSegment("server_id", server_id);

var result = restclient.Execute<List<OneAndOne.POCO.Respones.Servers.IpAddress>>(request);
var result = restclient.Execute<List<OneAndOne.POCO.Response.Servers.IpAddress>>(request);
if (result.StatusCode != HttpStatusCode.OK)
{
throw new Exception(result.Content);
Expand Down Expand Up @@ -148,15 +148,15 @@ public ServerResponse Delete(string server_id, string ip_id, bool Keep)
/// </summary>
/// <param name="server_id">Unique server's identifier.</param>
/// <param name="ip_id">Unique server's identifier.</param>
public List<OneAndOne.POCO.Respones.Servers.FirewallPolicyResponse> GetFirewallPolicies(string server_id, string ip_id)
public List<OneAndOne.POCO.Response.Servers.FirewallPolicyResponse> GetFirewallPolicies(string server_id, string ip_id)
{
try
{
var request = new RestRequest("/servers/{server_id}/ips/{ip_id}/firewall_policy", Method.GET);
request.AddUrlSegment("server_id", server_id);
request.AddUrlSegment("ip_id", ip_id);

var result = restclient.Execute<List<OneAndOne.POCO.Respones.Servers.FirewallPolicyResponse>>(request);
var result = restclient.Execute<List<OneAndOne.POCO.Response.Servers.FirewallPolicyResponse>>(request);
if (result.StatusCode == HttpStatusCode.NotFound)
{
throw new Exception(result.Content);
Expand Down Expand Up @@ -248,15 +248,15 @@ public ServerResponse DeleteFirewallPolicy(string server_id, string ip_id)
/// </summary>
/// <param name="server_id">Unique server's identifier.</param>
/// <param name="ip_id">Unique server's identifier.</param>
public List<OneAndOne.POCO.Respones.Servers.LoadBalancers> GetLoadBalancer(string server_id, string ip_id)
public List<OneAndOne.POCO.Response.Servers.LoadBalancers> GetLoadBalancer(string server_id, string ip_id)
{
try
{
var request = new RestRequest("/servers/{server_id}/ips/{ip_id}/load_balancers", Method.GET);
request.AddUrlSegment("server_id", server_id);
request.AddUrlSegment("ip_id", ip_id);

var result = restclient.Execute<List<OneAndOne.POCO.Respones.Servers.LoadBalancers>>(request);
var result = restclient.Execute<List<OneAndOne.POCO.Response.Servers.LoadBalancers>>(request);
if (result.StatusCode != HttpStatusCode.OK)
{
throw new Exception(result.Content);
Expand Down
6 changes: 3 additions & 3 deletions OneAndOne.Client/Endpoints/Servers/Image.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using OneAndOne.Client.RESTHelpers;
using OneAndOne.POCO.Requests.Servers;
using OneAndOne.POCO.Respones.Servers;
using OneAndOne.POCO.Response.Servers;
using RestSharp;
using System;
using System.Collections.Generic;
Expand All @@ -20,14 +20,14 @@ public ServerImage(object _apiUrl = null, object _apiKey = null)
/// Returns information about a server's image.
/// </summary>
/// <param name="server_id">Unique server's identifier.</param>
public OneAndOne.POCO.Respones.Servers.Image Show(string server_id)
public OneAndOne.POCO.Response.Servers.Image Show(string server_id)
{
try
{
var request = new RestRequest("/servers/{server_id}/image", Method.GET);
request.AddUrlSegment("server_id", server_id);

var result = restclient.Execute<OneAndOne.POCO.Respones.Servers.Image>(request);
var result = restclient.Execute<OneAndOne.POCO.Response.Servers.Image>(request);
if (result.StatusCode != HttpStatusCode.OK)
{
throw new Exception(result.Content);
Expand Down
Loading

0 comments on commit a28aeb0

Please sign in to comment.