pnap_billing_api 2.1.2 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -0
  3. data/VERSION +1 -1
  4. data/docs/BandwidthRecord.md +4 -2
  5. data/docs/LocationAvailabilityDetail.md +1 -1
  6. data/docs/OperatingSystemRecord.md +4 -2
  7. data/docs/PackageDetails.md +20 -0
  8. data/docs/PackageQuantity.md +20 -0
  9. data/docs/PricingPlan.md +3 -1
  10. data/docs/ProductAvailabilityApi.md +4 -4
  11. data/docs/ProductLocationEnum.md +15 -0
  12. data/docs/PublicSubnetRecord.md +4 -2
  13. data/docs/Quantity.md +20 -0
  14. data/docs/QuantityUnitEnum.md +15 -0
  15. data/docs/RatedUsageRecord.md +4 -2
  16. data/docs/Reservation.md +10 -2
  17. data/docs/ReservationDetails.md +20 -0
  18. data/docs/ReservationRequest.md +3 -1
  19. data/docs/ReservationStateEnum.md +15 -0
  20. data/docs/ReservationTerm.md +20 -0
  21. data/docs/ReservationsApi.md +2 -2
  22. data/docs/ServerRecord.md +4 -2
  23. data/docs/StorageDetails.md +5 -5
  24. data/docs/StorageRecord.md +4 -2
  25. data/docs/Utilization.md +20 -0
  26. data/lib/pnap_billing_api/api/billing_configurations_api.rb +2 -2
  27. data/lib/pnap_billing_api/api/product_availability_api.rb +14 -6
  28. data/lib/pnap_billing_api/api/products_api.rb +2 -2
  29. data/lib/pnap_billing_api/api/rated_usage_api.rb +3 -3
  30. data/lib/pnap_billing_api/api/reservations_api.rb +7 -7
  31. data/lib/pnap_billing_api/api_client.rb +17 -14
  32. data/lib/pnap_billing_api/api_error.rb +1 -1
  33. data/lib/pnap_billing_api/api_model_base.rb +88 -0
  34. data/lib/pnap_billing_api/configuration.rb +11 -1
  35. data/lib/pnap_billing_api/models/applicable_discount_details.rb +41 -78
  36. data/lib/pnap_billing_api/models/applicable_discounts.rb +11 -78
  37. data/lib/pnap_billing_api/models/bandwidth_details.rb +31 -78
  38. data/lib/pnap_billing_api/models/bandwidth_record.rb +151 -93
  39. data/lib/pnap_billing_api/models/configuration_details.rb +11 -78
  40. data/lib/pnap_billing_api/models/credit_details.rb +5 -7
  41. data/lib/pnap_billing_api/models/credit_details_base.rb +31 -78
  42. data/lib/pnap_billing_api/models/credit_type_enum.rb +1 -1
  43. data/lib/pnap_billing_api/models/discount_details.rb +41 -78
  44. data/lib/pnap_billing_api/models/discount_type_enum.rb +1 -1
  45. data/lib/pnap_billing_api/models/error.rb +21 -78
  46. data/lib/pnap_billing_api/models/gpu_configuration_metadata.rb +11 -78
  47. data/lib/pnap_billing_api/models/location_availability_detail.rb +52 -79
  48. data/lib/pnap_billing_api/models/location_enum.rb +1 -1
  49. data/lib/pnap_billing_api/models/operating_system_details.rb +31 -78
  50. data/lib/pnap_billing_api/models/operating_system_record.rb +151 -93
  51. data/lib/pnap_billing_api/models/package_details.rb +179 -0
  52. data/lib/pnap_billing_api/models/package_quantity.rb +193 -0
  53. data/lib/pnap_billing_api/models/package_unit_enum.rb +1 -1
  54. data/lib/pnap_billing_api/models/price_unit_enum.rb +3 -2
  55. data/lib/pnap_billing_api/models/pricing_plan.rb +56 -84
  56. data/lib/pnap_billing_api/models/product.rb +31 -78
  57. data/lib/pnap_billing_api/models/product_availability.rb +41 -78
  58. data/lib/pnap_billing_api/models/product_category_enum.rb +1 -1
  59. data/lib/pnap_billing_api/models/product_location_enum.rb +44 -0
  60. data/lib/pnap_billing_api/models/products_get200_response_inner.rb +1 -2
  61. data/lib/pnap_billing_api/models/promo_credit_details.rb +51 -78
  62. data/lib/pnap_billing_api/models/public_subnet_details.rb +31 -78
  63. data/lib/pnap_billing_api/models/public_subnet_record.rb +151 -93
  64. data/lib/pnap_billing_api/models/quantity.rb +223 -0
  65. data/lib/pnap_billing_api/models/quantity_unit_enum.rb +40 -0
  66. data/lib/pnap_billing_api/models/rated_usage_get200_response_inner.rb +1 -2
  67. data/lib/pnap_billing_api/models/rated_usage_product_category_enum.rb +1 -1
  68. data/lib/pnap_billing_api/models/rated_usage_record.rb +141 -93
  69. data/lib/pnap_billing_api/models/reservation.rb +186 -83
  70. data/lib/pnap_billing_api/models/reservation_auto_renew_disable_request.rb +11 -78
  71. data/lib/pnap_billing_api/models/reservation_details.rb +158 -0
  72. data/lib/pnap_billing_api/models/reservation_invoicing_model_enum.rb +1 -1
  73. data/lib/pnap_billing_api/models/reservation_model_enum.rb +3 -2
  74. data/lib/pnap_billing_api/models/reservation_product_category_enum.rb +3 -2
  75. data/lib/pnap_billing_api/models/reservation_request.rb +51 -82
  76. data/lib/pnap_billing_api/models/reservation_state_enum.rb +44 -0
  77. data/lib/pnap_billing_api/models/reservation_term.rb +214 -0
  78. data/lib/pnap_billing_api/models/server_details.rb +31 -78
  79. data/lib/pnap_billing_api/models/server_product.rb +41 -78
  80. data/lib/pnap_billing_api/models/server_product_metadata.rb +81 -78
  81. data/lib/pnap_billing_api/models/server_record.rb +151 -93
  82. data/lib/pnap_billing_api/models/storage_details.rb +21 -113
  83. data/lib/pnap_billing_api/models/storage_record.rb +151 -93
  84. data/lib/pnap_billing_api/models/system_credit_cause_enum.rb +1 -1
  85. data/lib/pnap_billing_api/models/system_credit_details.rb +41 -78
  86. data/lib/pnap_billing_api/models/threshold_configuration_details.rb +21 -78
  87. data/lib/pnap_billing_api/models/utilization.rb +208 -0
  88. data/lib/pnap_billing_api/version.rb +1 -2
  89. data/lib/pnap_billing_api.rb +11 -1
  90. data/pnap_billing_api.gemspec +6 -6
  91. data/spec/api/billing_configurations_api_spec.rb +1 -1
  92. data/spec/api/product_availability_api_spec.rb +3 -3
  93. data/spec/api/products_api_spec.rb +1 -1
  94. data/spec/api/rated_usage_api_spec.rb +1 -1
  95. data/spec/api/reservations_api_spec.rb +1 -1
  96. data/spec/models/applicable_discount_details_spec.rb +2 -2
  97. data/spec/models/applicable_discounts_spec.rb +2 -2
  98. data/spec/models/bandwidth_details_spec.rb +2 -2
  99. data/spec/models/bandwidth_record_spec.rb +8 -2
  100. data/spec/models/configuration_details_spec.rb +2 -2
  101. data/spec/models/credit_details_base_spec.rb +2 -2
  102. data/spec/models/credit_details_spec.rb +1 -1
  103. data/spec/models/credit_type_enum_spec.rb +2 -2
  104. data/spec/models/discount_details_spec.rb +2 -2
  105. data/spec/models/discount_type_enum_spec.rb +2 -2
  106. data/spec/models/error_spec.rb +2 -2
  107. data/spec/models/gpu_configuration_metadata_spec.rb +2 -2
  108. data/spec/models/location_availability_detail_spec.rb +2 -2
  109. data/spec/models/location_enum_spec.rb +2 -2
  110. data/spec/models/operating_system_details_spec.rb +2 -2
  111. data/spec/models/operating_system_record_spec.rb +8 -2
  112. data/spec/models/package_details_spec.rb +42 -0
  113. data/spec/models/package_quantity_spec.rb +42 -0
  114. data/spec/models/package_unit_enum_spec.rb +2 -2
  115. data/spec/models/price_unit_enum_spec.rb +2 -2
  116. data/spec/models/pricing_plan_spec.rb +9 -3
  117. data/spec/models/product_availability_spec.rb +2 -2
  118. data/spec/models/product_category_enum_spec.rb +2 -2
  119. data/spec/models/product_location_enum_spec.rb +30 -0
  120. data/spec/models/product_spec.rb +2 -2
  121. data/spec/models/products_get200_response_inner_spec.rb +1 -1
  122. data/spec/models/promo_credit_details_spec.rb +2 -2
  123. data/spec/models/public_subnet_details_spec.rb +2 -2
  124. data/spec/models/public_subnet_record_spec.rb +8 -2
  125. data/spec/models/quantity_spec.rb +42 -0
  126. data/spec/models/quantity_unit_enum_spec.rb +30 -0
  127. data/spec/models/rated_usage_get200_response_inner_spec.rb +1 -1
  128. data/spec/models/rated_usage_product_category_enum_spec.rb +2 -2
  129. data/spec/models/rated_usage_record_spec.rb +8 -2
  130. data/spec/models/reservation_auto_renew_disable_request_spec.rb +2 -2
  131. data/spec/models/reservation_details_spec.rb +42 -0
  132. data/spec/models/reservation_invoicing_model_enum_spec.rb +2 -2
  133. data/spec/models/reservation_model_enum_spec.rb +2 -2
  134. data/spec/models/reservation_product_category_enum_spec.rb +2 -2
  135. data/spec/models/reservation_request_spec.rb +8 -2
  136. data/spec/models/reservation_spec.rb +26 -2
  137. data/spec/models/reservation_state_enum_spec.rb +30 -0
  138. data/spec/models/reservation_term_spec.rb +42 -0
  139. data/spec/models/server_details_spec.rb +2 -2
  140. data/spec/models/server_product_metadata_spec.rb +2 -2
  141. data/spec/models/server_product_spec.rb +2 -2
  142. data/spec/models/server_record_spec.rb +8 -2
  143. data/spec/models/storage_details_spec.rb +2 -2
  144. data/spec/models/storage_record_spec.rb +8 -2
  145. data/spec/models/system_credit_cause_enum_spec.rb +2 -2
  146. data/spec/models/system_credit_details_spec.rb +2 -2
  147. data/spec/models/threshold_configuration_details_spec.rb +2 -2
  148. data/spec/models/utilization_spec.rb +42 -0
  149. data/spec/spec_helper.rb +1 -1
  150. metadata +84 -43
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.2.0
9
+ Generator version: 7.20.0
10
10
 
11
11
  =end
12
12
 
@@ -18,7 +18,7 @@ require 'date'
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
20
  describe BillingApi::Reservation do
21
- let(:instance) { BillingApi::Reservation.new }
21
+ #let(:instance) { BillingApi::Reservation.new }
22
22
 
23
23
  describe 'test an instance of Reservation' do
24
24
  it 'should create an instance of Reservation' do
@@ -57,12 +57,30 @@ describe BillingApi::Reservation do
57
57
  end
58
58
  end
59
59
 
60
+ describe 'test attribute "term"' do
61
+ it 'should work' do
62
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
63
+ end
64
+ end
65
+
66
+ describe 'test attribute "reservation_state"' do
67
+ it 'should work' do
68
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
69
+ end
70
+ end
71
+
60
72
  describe 'test attribute "initial_invoice_model"' do
61
73
  it 'should work' do
62
74
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
63
75
  end
64
76
  end
65
77
 
78
+ describe 'test attribute "quantity"' do
79
+ it 'should work' do
80
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
81
+ end
82
+ end
83
+
66
84
  describe 'test attribute "start_date_time"' do
67
85
  it 'should work' do
68
86
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -123,4 +141,10 @@ describe BillingApi::Reservation do
123
141
  end
124
142
  end
125
143
 
144
+ describe 'test attribute "utilization"' do
145
+ it 'should work' do
146
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
147
+ end
148
+ end
149
+
126
150
  end
@@ -0,0 +1,30 @@
1
+ =begin
2
+ #Billing API
3
+
4
+ #Automate your infrastructure billing with the Bare Metal Cloud Billing API. Reserve your server instances to ensure guaranteed resource availability for 12, 24, and 36 months. Retrieve your server’s rated usage for a given period and enable or disable auto-renewals.<br> <br> <span class='pnap-api-knowledge-base-link'> Knowledge base articles to help you can be found <a href='https://phoenixnap.com/kb/phoenixnap-bare-metal-cloud-billing-models' target='_blank'>here</a> </span><br> <br> <b>All URLs are relative to (https://api.phoenixnap.com/billing/v1/)</b>
5
+
6
+ The version of the OpenAPI document: 0.1
7
+ Contact: support@phoenixnap.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.20.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for BillingApi::ReservationStateEnum
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe BillingApi::ReservationStateEnum do
21
+ #let(:instance) { BillingApi::ReservationStateEnum.new }
22
+
23
+ describe 'test an instance of ReservationStateEnum' do
24
+ it 'should create an instance of ReservationStateEnum' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(BillingApi::ReservationStateEnum)
27
+ end
28
+ end
29
+
30
+ end
@@ -0,0 +1,42 @@
1
+ =begin
2
+ #Billing API
3
+
4
+ #Automate your infrastructure billing with the Bare Metal Cloud Billing API. Reserve your server instances to ensure guaranteed resource availability for 12, 24, and 36 months. Retrieve your server’s rated usage for a given period and enable or disable auto-renewals.<br> <br> <span class='pnap-api-knowledge-base-link'> Knowledge base articles to help you can be found <a href='https://phoenixnap.com/kb/phoenixnap-bare-metal-cloud-billing-models' target='_blank'>here</a> </span><br> <br> <b>All URLs are relative to (https://api.phoenixnap.com/billing/v1/)</b>
5
+
6
+ The version of the OpenAPI document: 0.1
7
+ Contact: support@phoenixnap.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.20.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for BillingApi::ReservationTerm
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe BillingApi::ReservationTerm do
21
+ #let(:instance) { BillingApi::ReservationTerm.new }
22
+
23
+ describe 'test an instance of ReservationTerm' do
24
+ it 'should create an instance of ReservationTerm' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(BillingApi::ReservationTerm)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "length_in_months"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "reservation_model"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.2.0
9
+ Generator version: 7.20.0
10
10
 
11
11
  =end
12
12
 
@@ -18,7 +18,7 @@ require 'date'
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
20
  describe BillingApi::ServerDetails do
21
- let(:instance) { BillingApi::ServerDetails.new }
21
+ #let(:instance) { BillingApi::ServerDetails.new }
22
22
 
23
23
  describe 'test an instance of ServerDetails' do
24
24
  it 'should create an instance of ServerDetails' do
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.2.0
9
+ Generator version: 7.20.0
10
10
 
11
11
  =end
12
12
 
@@ -18,7 +18,7 @@ require 'date'
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
20
  describe BillingApi::ServerProductMetadata do
21
- let(:instance) { BillingApi::ServerProductMetadata.new }
21
+ #let(:instance) { BillingApi::ServerProductMetadata.new }
22
22
 
23
23
  describe 'test an instance of ServerProductMetadata' do
24
24
  it 'should create an instance of ServerProductMetadata' do
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.2.0
9
+ Generator version: 7.20.0
10
10
 
11
11
  =end
12
12
 
@@ -18,7 +18,7 @@ require 'date'
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
20
  describe BillingApi::ServerProduct do
21
- let(:instance) { BillingApi::ServerProduct.new }
21
+ #let(:instance) { BillingApi::ServerProduct.new }
22
22
 
23
23
  describe 'test an instance of ServerProduct' do
24
24
  it 'should create an instance of ServerProduct' do
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.2.0
9
+ Generator version: 7.20.0
10
10
 
11
11
  =end
12
12
 
@@ -18,7 +18,7 @@ require 'date'
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
20
  describe BillingApi::ServerRecord do
21
- let(:instance) { BillingApi::ServerRecord.new }
21
+ #let(:instance) { BillingApi::ServerRecord.new }
22
22
 
23
23
  describe 'test an instance of ServerRecord' do
24
24
  it 'should create an instance of ServerRecord' do
@@ -135,6 +135,12 @@ describe BillingApi::ServerRecord do
135
135
  end
136
136
  end
137
137
 
138
+ describe 'test attribute "reservation_details"' do
139
+ it 'should work' do
140
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
141
+ end
142
+ end
143
+
138
144
  describe 'test attribute "discount_details"' do
139
145
  it 'should work' do
140
146
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.2.0
9
+ Generator version: 7.20.0
10
10
 
11
11
  =end
12
12
 
@@ -18,7 +18,7 @@ require 'date'
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
20
  describe BillingApi::StorageDetails do
21
- let(:instance) { BillingApi::StorageDetails.new }
21
+ #let(:instance) { BillingApi::StorageDetails.new }
22
22
 
23
23
  describe 'test an instance of StorageDetails' do
24
24
  it 'should create an instance of StorageDetails' do
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.2.0
9
+ Generator version: 7.20.0
10
10
 
11
11
  =end
12
12
 
@@ -18,7 +18,7 @@ require 'date'
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
20
  describe BillingApi::StorageRecord do
21
- let(:instance) { BillingApi::StorageRecord.new }
21
+ #let(:instance) { BillingApi::StorageRecord.new }
22
22
 
23
23
  describe 'test an instance of StorageRecord' do
24
24
  it 'should create an instance of StorageRecord' do
@@ -135,6 +135,12 @@ describe BillingApi::StorageRecord do
135
135
  end
136
136
  end
137
137
 
138
+ describe 'test attribute "reservation_details"' do
139
+ it 'should work' do
140
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
141
+ end
142
+ end
143
+
138
144
  describe 'test attribute "discount_details"' do
139
145
  it 'should work' do
140
146
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.2.0
9
+ Generator version: 7.20.0
10
10
 
11
11
  =end
12
12
 
@@ -18,7 +18,7 @@ require 'date'
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
20
  describe BillingApi::SystemCreditCauseEnum do
21
- let(:instance) { BillingApi::SystemCreditCauseEnum.new }
21
+ #let(:instance) { BillingApi::SystemCreditCauseEnum.new }
22
22
 
23
23
  describe 'test an instance of SystemCreditCauseEnum' do
24
24
  it 'should create an instance of SystemCreditCauseEnum' do
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.2.0
9
+ Generator version: 7.20.0
10
10
 
11
11
  =end
12
12
 
@@ -18,7 +18,7 @@ require 'date'
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
20
  describe BillingApi::SystemCreditDetails do
21
- let(:instance) { BillingApi::SystemCreditDetails.new }
21
+ #let(:instance) { BillingApi::SystemCreditDetails.new }
22
22
 
23
23
  describe 'test an instance of SystemCreditDetails' do
24
24
  it 'should create an instance of SystemCreditDetails' do
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.2.0
9
+ Generator version: 7.20.0
10
10
 
11
11
  =end
12
12
 
@@ -18,7 +18,7 @@ require 'date'
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
20
  describe BillingApi::ThresholdConfigurationDetails do
21
- let(:instance) { BillingApi::ThresholdConfigurationDetails.new }
21
+ #let(:instance) { BillingApi::ThresholdConfigurationDetails.new }
22
22
 
23
23
  describe 'test an instance of ThresholdConfigurationDetails' do
24
24
  it 'should create an instance of ThresholdConfigurationDetails' do
@@ -0,0 +1,42 @@
1
+ =begin
2
+ #Billing API
3
+
4
+ #Automate your infrastructure billing with the Bare Metal Cloud Billing API. Reserve your server instances to ensure guaranteed resource availability for 12, 24, and 36 months. Retrieve your server’s rated usage for a given period and enable or disable auto-renewals.<br> <br> <span class='pnap-api-knowledge-base-link'> Knowledge base articles to help you can be found <a href='https://phoenixnap.com/kb/phoenixnap-bare-metal-cloud-billing-models' target='_blank'>here</a> </span><br> <br> <b>All URLs are relative to (https://api.phoenixnap.com/billing/v1/)</b>
5
+
6
+ The version of the OpenAPI document: 0.1
7
+ Contact: support@phoenixnap.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.20.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for BillingApi::Utilization
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe BillingApi::Utilization do
21
+ #let(:instance) { BillingApi::Utilization.new }
22
+
23
+ describe 'test an instance of Utilization' do
24
+ it 'should create an instance of Utilization' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(BillingApi::Utilization)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "quantity"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "percentage"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ end
data/spec/spec_helper.rb CHANGED
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.2.0
9
+ Generator version: 7.20.0
10
10
 
11
11
  =end
12
12
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pnap_billing_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
- - PhoenixNAP
7
+ - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-05-15 00:00:00.000000000 Z
11
+ date: 2026-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -50,7 +50,12 @@ dependencies:
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
52
  version: 3.6.0
53
- description: Billing API Ruby Gem
53
+ description: 'Automate your infrastructure billing with the Bare Metal Cloud Billing
54
+ API. Reserve your server instances to ensure guaranteed resource availability for
55
+ 12, 24, and 36 months. Retrieve your server’s rated usage for a given period and
56
+ enable or disable auto-renewals.<br> <br> <span class=''pnap-api-knowledge-base-link''>
57
+ Knowledge base articles to help you can be found <a href=''https://phoenixnap.com/kb/phoenixnap-bare-metal-cloud-billing-models''
58
+ target=''_blank''>here</a> </span><br> <br> <b>All URLs are relative to (https://api.phoenixnap.com/billing/v1/)</b> '
54
59
  email:
55
60
  - support@phoenixnap.com
56
61
  executables: []
@@ -78,6 +83,8 @@ files:
78
83
  - docs/LocationEnum.md
79
84
  - docs/OperatingSystemDetails.md
80
85
  - docs/OperatingSystemRecord.md
86
+ - docs/PackageDetails.md
87
+ - docs/PackageQuantity.md
81
88
  - docs/PackageUnitEnum.md
82
89
  - docs/PriceUnitEnum.md
83
90
  - docs/PricingPlan.md
@@ -85,21 +92,27 @@ files:
85
92
  - docs/ProductAvailability.md
86
93
  - docs/ProductAvailabilityApi.md
87
94
  - docs/ProductCategoryEnum.md
95
+ - docs/ProductLocationEnum.md
88
96
  - docs/ProductsApi.md
89
97
  - docs/ProductsGet200ResponseInner.md
90
98
  - docs/PromoCreditDetails.md
91
99
  - docs/PublicSubnetDetails.md
92
100
  - docs/PublicSubnetRecord.md
101
+ - docs/Quantity.md
102
+ - docs/QuantityUnitEnum.md
93
103
  - docs/RatedUsageApi.md
94
104
  - docs/RatedUsageGet200ResponseInner.md
95
105
  - docs/RatedUsageProductCategoryEnum.md
96
106
  - docs/RatedUsageRecord.md
97
107
  - docs/Reservation.md
98
108
  - docs/ReservationAutoRenewDisableRequest.md
109
+ - docs/ReservationDetails.md
99
110
  - docs/ReservationInvoicingModelEnum.md
100
111
  - docs/ReservationModelEnum.md
101
112
  - docs/ReservationProductCategoryEnum.md
102
113
  - docs/ReservationRequest.md
114
+ - docs/ReservationStateEnum.md
115
+ - docs/ReservationTerm.md
103
116
  - docs/ReservationsApi.md
104
117
  - docs/ServerDetails.md
105
118
  - docs/ServerProduct.md
@@ -110,6 +123,7 @@ files:
110
123
  - docs/SystemCreditCauseEnum.md
111
124
  - docs/SystemCreditDetails.md
112
125
  - docs/ThresholdConfigurationDetails.md
126
+ - docs/Utilization.md
113
127
  - lib/pnap_billing_api.rb
114
128
  - lib/pnap_billing_api/api/billing_configurations_api.rb
115
129
  - lib/pnap_billing_api/api/product_availability_api.rb
@@ -118,6 +132,7 @@ files:
118
132
  - lib/pnap_billing_api/api/reservations_api.rb
119
133
  - lib/pnap_billing_api/api_client.rb
120
134
  - lib/pnap_billing_api/api_error.rb
135
+ - lib/pnap_billing_api/api_model_base.rb
121
136
  - lib/pnap_billing_api/configuration.rb
122
137
  - lib/pnap_billing_api/models/applicable_discount_details.rb
123
138
  - lib/pnap_billing_api/models/applicable_discounts.rb
@@ -135,25 +150,33 @@ files:
135
150
  - lib/pnap_billing_api/models/location_enum.rb
136
151
  - lib/pnap_billing_api/models/operating_system_details.rb
137
152
  - lib/pnap_billing_api/models/operating_system_record.rb
153
+ - lib/pnap_billing_api/models/package_details.rb
154
+ - lib/pnap_billing_api/models/package_quantity.rb
138
155
  - lib/pnap_billing_api/models/package_unit_enum.rb
139
156
  - lib/pnap_billing_api/models/price_unit_enum.rb
140
157
  - lib/pnap_billing_api/models/pricing_plan.rb
141
158
  - lib/pnap_billing_api/models/product.rb
142
159
  - lib/pnap_billing_api/models/product_availability.rb
143
160
  - lib/pnap_billing_api/models/product_category_enum.rb
161
+ - lib/pnap_billing_api/models/product_location_enum.rb
144
162
  - lib/pnap_billing_api/models/products_get200_response_inner.rb
145
163
  - lib/pnap_billing_api/models/promo_credit_details.rb
146
164
  - lib/pnap_billing_api/models/public_subnet_details.rb
147
165
  - lib/pnap_billing_api/models/public_subnet_record.rb
166
+ - lib/pnap_billing_api/models/quantity.rb
167
+ - lib/pnap_billing_api/models/quantity_unit_enum.rb
148
168
  - lib/pnap_billing_api/models/rated_usage_get200_response_inner.rb
149
169
  - lib/pnap_billing_api/models/rated_usage_product_category_enum.rb
150
170
  - lib/pnap_billing_api/models/rated_usage_record.rb
151
171
  - lib/pnap_billing_api/models/reservation.rb
152
172
  - lib/pnap_billing_api/models/reservation_auto_renew_disable_request.rb
173
+ - lib/pnap_billing_api/models/reservation_details.rb
153
174
  - lib/pnap_billing_api/models/reservation_invoicing_model_enum.rb
154
175
  - lib/pnap_billing_api/models/reservation_model_enum.rb
155
176
  - lib/pnap_billing_api/models/reservation_product_category_enum.rb
156
177
  - lib/pnap_billing_api/models/reservation_request.rb
178
+ - lib/pnap_billing_api/models/reservation_state_enum.rb
179
+ - lib/pnap_billing_api/models/reservation_term.rb
157
180
  - lib/pnap_billing_api/models/server_details.rb
158
181
  - lib/pnap_billing_api/models/server_product.rb
159
182
  - lib/pnap_billing_api/models/server_product_metadata.rb
@@ -163,6 +186,7 @@ files:
163
186
  - lib/pnap_billing_api/models/system_credit_cause_enum.rb
164
187
  - lib/pnap_billing_api/models/system_credit_details.rb
165
188
  - lib/pnap_billing_api/models/threshold_configuration_details.rb
189
+ - lib/pnap_billing_api/models/utilization.rb
166
190
  - lib/pnap_billing_api/version.rb
167
191
  - pnap_billing_api.gemspec
168
192
  - spec/api/billing_configurations_api_spec.rb
@@ -186,25 +210,33 @@ files:
186
210
  - spec/models/location_enum_spec.rb
187
211
  - spec/models/operating_system_details_spec.rb
188
212
  - spec/models/operating_system_record_spec.rb
213
+ - spec/models/package_details_spec.rb
214
+ - spec/models/package_quantity_spec.rb
189
215
  - spec/models/package_unit_enum_spec.rb
190
216
  - spec/models/price_unit_enum_spec.rb
191
217
  - spec/models/pricing_plan_spec.rb
192
218
  - spec/models/product_availability_spec.rb
193
219
  - spec/models/product_category_enum_spec.rb
220
+ - spec/models/product_location_enum_spec.rb
194
221
  - spec/models/product_spec.rb
195
222
  - spec/models/products_get200_response_inner_spec.rb
196
223
  - spec/models/promo_credit_details_spec.rb
197
224
  - spec/models/public_subnet_details_spec.rb
198
225
  - spec/models/public_subnet_record_spec.rb
226
+ - spec/models/quantity_spec.rb
227
+ - spec/models/quantity_unit_enum_spec.rb
199
228
  - spec/models/rated_usage_get200_response_inner_spec.rb
200
229
  - spec/models/rated_usage_product_category_enum_spec.rb
201
230
  - spec/models/rated_usage_record_spec.rb
202
231
  - spec/models/reservation_auto_renew_disable_request_spec.rb
232
+ - spec/models/reservation_details_spec.rb
203
233
  - spec/models/reservation_invoicing_model_enum_spec.rb
204
234
  - spec/models/reservation_model_enum_spec.rb
205
235
  - spec/models/reservation_product_category_enum_spec.rb
206
236
  - spec/models/reservation_request_spec.rb
207
237
  - spec/models/reservation_spec.rb
238
+ - spec/models/reservation_state_enum_spec.rb
239
+ - spec/models/reservation_term_spec.rb
208
240
  - spec/models/server_details_spec.rb
209
241
  - spec/models/server_product_metadata_spec.rb
210
242
  - spec/models/server_product_spec.rb
@@ -214,12 +246,12 @@ files:
214
246
  - spec/models/system_credit_cause_enum_spec.rb
215
247
  - spec/models/system_credit_details_spec.rb
216
248
  - spec/models/threshold_configuration_details_spec.rb
249
+ - spec/models/utilization_spec.rb
217
250
  - spec/spec_helper.rb
218
- homepage: https://phoenixnap.com/bare-metal-cloud
251
+ homepage: https://openapi-generator.tech
219
252
  licenses:
220
253
  - MPL-2.0
221
- metadata:
222
- source_code_uri: https://github.com/phoenixnap/ruby-sdk-bmc
254
+ metadata: {}
223
255
  post_install_message:
224
256
  rdoc_options: []
225
257
  require_paths:
@@ -240,53 +272,62 @@ signing_key:
240
272
  specification_version: 4
241
273
  summary: Billing API Ruby Gem
242
274
  test_files:
275
+ - spec/api/products_api_spec.rb
243
276
  - spec/api/reservations_api_spec.rb
244
277
  - spec/api/rated_usage_api_spec.rb
245
- - spec/api/product_availability_api_spec.rb
246
- - spec/api/products_api_spec.rb
247
278
  - spec/api/billing_configurations_api_spec.rb
248
- - spec/models/price_unit_enum_spec.rb
249
- - spec/models/rated_usage_product_category_enum_spec.rb
250
- - spec/models/operating_system_details_spec.rb
251
- - spec/models/error_spec.rb
252
- - spec/models/discount_details_spec.rb
253
- - spec/models/server_record_spec.rb
254
- - spec/models/product_availability_spec.rb
255
- - spec/models/location_availability_detail_spec.rb
256
- - spec/models/reservation_auto_renew_disable_request_spec.rb
257
- - spec/models/product_category_enum_spec.rb
258
- - spec/models/threshold_configuration_details_spec.rb
259
- - spec/models/reservation_model_enum_spec.rb
260
- - spec/models/system_credit_details_spec.rb
261
- - spec/models/location_enum_spec.rb
262
- - spec/models/operating_system_record_spec.rb
263
- - spec/models/applicable_discounts_spec.rb
279
+ - spec/api/product_availability_api_spec.rb
280
+ - spec/models/reservation_term_spec.rb
281
+ - spec/models/reservation_details_spec.rb
282
+ - spec/models/pricing_plan_spec.rb
283
+ - spec/models/promo_credit_details_spec.rb
284
+ - spec/models/credit_type_enum_spec.rb
264
285
  - spec/models/reservation_request_spec.rb
265
- - spec/models/server_product_metadata_spec.rb
266
- - spec/models/server_details_spec.rb
267
- - spec/models/reservation_invoicing_model_enum_spec.rb
268
- - spec/models/rated_usage_get200_response_inner_spec.rb
286
+ - spec/models/public_subnet_details_spec.rb
287
+ - spec/models/package_details_spec.rb
269
288
  - spec/models/applicable_discount_details_spec.rb
270
289
  - spec/models/storage_record_spec.rb
271
- - spec/models/system_credit_cause_enum_spec.rb
272
- - spec/models/package_unit_enum_spec.rb
290
+ - spec/models/storage_details_spec.rb
291
+ - spec/models/operating_system_details_spec.rb
273
292
  - spec/models/credit_details_spec.rb
274
- - spec/models/promo_credit_details_spec.rb
275
- - spec/models/rated_usage_record_spec.rb
276
293
  - spec/models/reservation_spec.rb
294
+ - spec/models/reservation_model_enum_spec.rb
277
295
  - spec/models/credit_details_base_spec.rb
278
- - spec/models/public_subnet_details_spec.rb
279
- - spec/models/product_spec.rb
280
- - spec/models/storage_details_spec.rb
296
+ - spec/models/location_enum_spec.rb
281
297
  - spec/models/reservation_product_category_enum_spec.rb
282
- - spec/models/public_subnet_record_spec.rb
298
+ - spec/models/system_credit_cause_enum_spec.rb
299
+ - spec/models/utilization_spec.rb
300
+ - spec/models/rated_usage_product_category_enum_spec.rb
301
+ - spec/models/error_spec.rb
302
+ - spec/models/threshold_configuration_details_spec.rb
303
+ - spec/models/operating_system_record_spec.rb
304
+ - spec/models/product_availability_spec.rb
305
+ - spec/models/gpu_configuration_metadata_spec.rb
306
+ - spec/models/quantity_unit_enum_spec.rb
307
+ - spec/models/quantity_spec.rb
308
+ - spec/models/server_product_metadata_spec.rb
309
+ - spec/models/rated_usage_record_spec.rb
310
+ - spec/models/reservation_invoicing_model_enum_spec.rb
311
+ - spec/models/product_category_enum_spec.rb
312
+ - spec/models/product_location_enum_spec.rb
283
313
  - spec/models/products_get200_response_inner_spec.rb
284
- - spec/models/discount_type_enum_spec.rb
285
- - spec/models/pricing_plan_spec.rb
286
314
  - spec/models/configuration_details_spec.rb
287
- - spec/models/bandwidth_details_spec.rb
288
- - spec/models/credit_type_enum_spec.rb
289
- - spec/models/gpu_configuration_metadata_spec.rb
290
- - spec/models/bandwidth_record_spec.rb
315
+ - spec/models/location_availability_detail_spec.rb
316
+ - spec/models/product_spec.rb
317
+ - spec/models/applicable_discounts_spec.rb
318
+ - spec/models/rated_usage_get200_response_inner_spec.rb
291
319
  - spec/models/server_product_spec.rb
320
+ - spec/models/reservation_auto_renew_disable_request_spec.rb
321
+ - spec/models/server_record_spec.rb
322
+ - spec/models/bandwidth_record_spec.rb
323
+ - spec/models/server_details_spec.rb
324
+ - spec/models/package_quantity_spec.rb
325
+ - spec/models/discount_type_enum_spec.rb
326
+ - spec/models/bandwidth_details_spec.rb
327
+ - spec/models/package_unit_enum_spec.rb
328
+ - spec/models/reservation_state_enum_spec.rb
329
+ - spec/models/public_subnet_record_spec.rb
330
+ - spec/models/discount_details_spec.rb
331
+ - spec/models/system_credit_details_spec.rb
332
+ - spec/models/price_unit_enum_spec.rb
292
333
  - spec/spec_helper.rb