pnap_billing_api 1.0.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
+ OpenAPI Generator version: 7.2.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for BillingApi::ReservationProductCategoryEnum
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe BillingApi::ReservationProductCategoryEnum do
21
+ let(:instance) { BillingApi::ReservationProductCategoryEnum.new }
22
+
23
+ describe 'test an instance of ReservationProductCategoryEnum' do
24
+ it 'should create an instance of ReservationProductCategoryEnum' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(BillingApi::ReservationProductCategoryEnum)
27
+ end
28
+ end
29
+
30
+ end
@@ -42,10 +42,6 @@ describe BillingApi::Reservation do
42
42
  describe 'test attribute "product_category"' do
43
43
  it 'should work' do
44
44
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["server", "bandwidth", "operating-system"])
46
- # validator.allowable_values.each do |value|
47
- # expect { instance.product_category = value }.not_to raise_error
48
- # end
49
45
  end
50
46
  end
51
47
 
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: 1.0.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - PhoenixNAP
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-05 00:00:00.000000000 Z
11
+ date: 2024-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -72,10 +72,12 @@ files:
72
72
  - docs/LocationEnum.md
73
73
  - docs/OperatingSystemDetails.md
74
74
  - docs/OperatingSystemRecord.md
75
+ - docs/PackageUnitEnum.md
75
76
  - docs/PriceUnitEnum.md
76
77
  - docs/PricingPlan.md
77
78
  - docs/Product.md
78
79
  - docs/ProductAvailability.md
80
+ - docs/ProductAvailabilityApi.md
79
81
  - docs/ProductCategoryEnum.md
80
82
  - docs/ProductsApi.md
81
83
  - docs/ProductsGet200ResponseInner.md
@@ -88,6 +90,7 @@ files:
88
90
  - docs/ReservationAutoRenewDisableRequest.md
89
91
  - docs/ReservationInvoicingModelEnum.md
90
92
  - docs/ReservationModelEnum.md
93
+ - docs/ReservationProductCategoryEnum.md
91
94
  - docs/ReservationRequest.md
92
95
  - docs/ReservationsApi.md
93
96
  - docs/ServerDetails.md
@@ -99,6 +102,7 @@ files:
99
102
  - docs/ThresholdConfigurationDetails.md
100
103
  - lib/pnap_billing_api.rb
101
104
  - lib/pnap_billing_api/api/billing_configurations_api.rb
105
+ - lib/pnap_billing_api/api/product_availability_api.rb
102
106
  - lib/pnap_billing_api/api/products_api.rb
103
107
  - lib/pnap_billing_api/api/rated_usage_api.rb
104
108
  - lib/pnap_billing_api/api/reservations_api.rb
@@ -115,6 +119,7 @@ files:
115
119
  - lib/pnap_billing_api/models/location_enum.rb
116
120
  - lib/pnap_billing_api/models/operating_system_details.rb
117
121
  - lib/pnap_billing_api/models/operating_system_record.rb
122
+ - lib/pnap_billing_api/models/package_unit_enum.rb
118
123
  - lib/pnap_billing_api/models/price_unit_enum.rb
119
124
  - lib/pnap_billing_api/models/pricing_plan.rb
120
125
  - lib/pnap_billing_api/models/product.rb
@@ -129,6 +134,7 @@ files:
129
134
  - lib/pnap_billing_api/models/reservation_auto_renew_disable_request.rb
130
135
  - lib/pnap_billing_api/models/reservation_invoicing_model_enum.rb
131
136
  - lib/pnap_billing_api/models/reservation_model_enum.rb
137
+ - lib/pnap_billing_api/models/reservation_product_category_enum.rb
132
138
  - lib/pnap_billing_api/models/reservation_request.rb
133
139
  - lib/pnap_billing_api/models/server_details.rb
134
140
  - lib/pnap_billing_api/models/server_product.rb
@@ -140,6 +146,7 @@ files:
140
146
  - lib/pnap_billing_api/version.rb
141
147
  - pnap_billing_api.gemspec
142
148
  - spec/api/billing_configurations_api_spec.rb
149
+ - spec/api/product_availability_api_spec.rb
143
150
  - spec/api/products_api_spec.rb
144
151
  - spec/api/rated_usage_api_spec.rb
145
152
  - spec/api/reservations_api_spec.rb
@@ -153,6 +160,7 @@ files:
153
160
  - spec/models/location_enum_spec.rb
154
161
  - spec/models/operating_system_details_spec.rb
155
162
  - spec/models/operating_system_record_spec.rb
163
+ - spec/models/package_unit_enum_spec.rb
156
164
  - spec/models/price_unit_enum_spec.rb
157
165
  - spec/models/pricing_plan_spec.rb
158
166
  - spec/models/product_availability_spec.rb
@@ -166,6 +174,7 @@ files:
166
174
  - spec/models/reservation_auto_renew_disable_request_spec.rb
167
175
  - spec/models/reservation_invoicing_model_enum_spec.rb
168
176
  - spec/models/reservation_model_enum_spec.rb
177
+ - spec/models/reservation_product_category_enum_spec.rb
169
178
  - spec/models/reservation_request_spec.rb
170
179
  - spec/models/reservation_spec.rb
171
180
  - spec/models/server_details_spec.rb
@@ -201,40 +210,43 @@ signing_key:
201
210
  specification_version: 4
202
211
  summary: Billing API Ruby Gem
203
212
  test_files:
204
- - spec/api/products_api_spec.rb
213
+ - spec/api/product_availability_api_spec.rb
205
214
  - spec/api/reservations_api_spec.rb
206
- - spec/api/billing_configurations_api_spec.rb
215
+ - spec/api/products_api_spec.rb
207
216
  - spec/api/rated_usage_api_spec.rb
208
- - spec/models/storage_details_spec.rb
217
+ - spec/api/billing_configurations_api_spec.rb
209
218
  - spec/models/server_product_spec.rb
210
- - spec/models/pricing_plan_spec.rb
211
- - spec/models/server_record_spec.rb
212
- - spec/models/threshold_configuration_details_spec.rb
213
- - spec/models/location_enum_spec.rb
214
- - spec/models/error_spec.rb
215
- - spec/models/public_subnet_details_spec.rb
216
- - spec/models/reservation_request_spec.rb
217
- - spec/models/products_get200_response_inner_spec.rb
219
+ - spec/models/configuration_details_spec.rb
220
+ - spec/models/storage_details_spec.rb
221
+ - spec/models/product_spec.rb
218
222
  - spec/models/discount_details_spec.rb
219
- - spec/models/operating_system_record_spec.rb
220
- - spec/models/applicable_discounts_spec.rb
223
+ - spec/models/bandwidth_record_spec.rb
221
224
  - spec/models/public_subnet_record_spec.rb
222
- - spec/models/rated_usage_get200_response_inner_spec.rb
223
- - spec/models/reservation_invoicing_model_enum_spec.rb
225
+ - spec/models/public_subnet_details_spec.rb
226
+ - spec/models/error_spec.rb
224
227
  - spec/models/reservation_spec.rb
225
- - spec/models/bandwidth_record_spec.rb
226
228
  - spec/models/product_category_enum_spec.rb
227
- - spec/models/storage_record_spec.rb
228
- - spec/models/bandwidth_details_spec.rb
229
- - spec/models/reservation_model_enum_spec.rb
230
- - spec/models/location_availability_detail_spec.rb
231
- - spec/models/configuration_details_spec.rb
232
- - spec/models/operating_system_details_spec.rb
233
- - spec/models/product_spec.rb
229
+ - spec/models/operating_system_record_spec.rb
230
+ - spec/models/reservation_invoicing_model_enum_spec.rb
231
+ - spec/models/location_enum_spec.rb
232
+ - spec/models/price_unit_enum_spec.rb
234
233
  - spec/models/reservation_auto_renew_disable_request_spec.rb
235
234
  - spec/models/product_availability_spec.rb
236
- - spec/models/price_unit_enum_spec.rb
235
+ - spec/models/applicable_discounts_spec.rb
236
+ - spec/models/operating_system_details_spec.rb
237
+ - spec/models/server_product_metadata_spec.rb
237
238
  - spec/models/rated_usage_record_spec.rb
239
+ - spec/models/products_get200_response_inner_spec.rb
238
240
  - spec/models/server_details_spec.rb
239
- - spec/models/server_product_metadata_spec.rb
241
+ - spec/models/reservation_model_enum_spec.rb
242
+ - spec/models/pricing_plan_spec.rb
243
+ - spec/models/package_unit_enum_spec.rb
244
+ - spec/models/threshold_configuration_details_spec.rb
245
+ - spec/models/storage_record_spec.rb
246
+ - spec/models/reservation_request_spec.rb
247
+ - spec/models/location_availability_detail_spec.rb
248
+ - spec/models/server_record_spec.rb
249
+ - spec/models/rated_usage_get200_response_inner_spec.rb
250
+ - spec/models/reservation_product_category_enum_spec.rb
251
+ - spec/models/bandwidth_details_spec.rb
240
252
  - spec/spec_helper.rb