-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- added the prices from the api
- Loading branch information
Showing
12 changed files
with
362 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
hetzner-cloud-api-net/cloud-api-net/Api/FloatingIpPricing.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace lkcode.hetznercloudapi.Api | ||
{ | ||
public class FloatingIpPricing | ||
{ | ||
/// <summary> | ||
/// the cost of one floating IP per month. | ||
/// </summary> | ||
public PricingValue PriceMontly { get; set; } = new PricingValue(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace lkcode.hetznercloudapi.Api | ||
{ | ||
public class ImagePricing | ||
{ | ||
/// <summary> | ||
/// the cost of one 1GB Image for the full month. | ||
/// </summary> | ||
public PricingValue PricePerGbMonth { get; set; } = new PricingValue(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace lkcode.hetznercloudapi.Api | ||
{ | ||
public class PricingValue | ||
{ | ||
/// <summary> | ||
/// the net price-value | ||
/// </summary> | ||
public string Net { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// the gross price-value | ||
/// </summary> | ||
public string Gross { get; set; } = string.Empty; | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
hetzner-cloud-api-net/cloud-api-net/Api/ServerBackupPricing.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace lkcode.hetznercloudapi.Api | ||
{ | ||
public class ServerBackupPricing | ||
{ | ||
/// <summary> | ||
/// will increase base server costs by specific percentage. | ||
/// </summary> | ||
public string Percentage { get; set; } = string.Empty; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
hetzner-cloud-api-net/cloud-api-net/Api/ServerTypePricing.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace lkcode.hetznercloudapi.Api | ||
{ | ||
public class ServerTypePricing | ||
{ | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
public int Id { get; set; } = 0; | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
public string Name { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
public List<ServerTypePricingValue> Prices { get; set; } = null; | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
hetzner-cloud-api-net/cloud-api-net/Api/ServerTypePricingValue.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace lkcode.hetznercloudapi.Api | ||
{ | ||
public class ServerTypePricingValue | ||
{ | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
public string Location { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
public PricingValue PriceHourly { get; set; } = null; | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
public PricingValue PriceMontly { get; set; } = null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace lkcode.hetznercloudapi.Api | ||
{ | ||
public class TrafficPricing | ||
{ | ||
/// <summary> | ||
/// the cost of additional traffic per TB. | ||
/// </summary> | ||
public PricingValue PricePerTb { get; set; } = new PricingValue(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.