pnap_billing_api 1.0.0 → 2.1.0
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.
- checksums.yaml +4 -4
- data/README.md +16 -5
- data/VERSION +1 -1
- data/docs/BandwidthRecord.md +4 -2
- data/docs/CreditDetails.md +49 -0
- data/docs/CreditDetailsBase.md +20 -0
- data/docs/CreditTypeEnum.md +15 -0
- data/docs/DiscountDetails.md +2 -2
- data/docs/DiscountTypeEnum.md +15 -0
- data/docs/GpuConfigurationMetadata.md +20 -0
- data/docs/OperatingSystemRecord.md +4 -2
- data/docs/PackageUnitEnum.md +15 -0
- data/docs/PricingPlan.md +3 -3
- data/docs/ProductAvailabilityApi.md +89 -0
- data/docs/ProductsApi.md +0 -82
- data/docs/PromoCreditDetails.md +24 -0
- data/docs/PublicSubnetRecord.md +4 -2
- data/docs/RatedUsageProductCategoryEnum.md +15 -0
- data/docs/RatedUsageRecord.md +5 -3
- data/docs/Reservation.md +2 -2
- data/docs/ReservationAutoRenewDisableRequest.md +1 -1
- data/docs/ReservationProductCategoryEnum.md +15 -0
- data/docs/ReservationsApi.md +30 -30
- data/docs/ServerProductMetadata.md +3 -1
- data/docs/ServerRecord.md +4 -2
- data/docs/StorageRecord.md +4 -2
- data/docs/SystemCreditCauseEnum.md +15 -0
- data/docs/SystemCreditDetails.md +22 -0
- data/lib/pnap_billing_api/api/product_availability_api.rb +105 -0
- data/lib/pnap_billing_api/api/products_api.rb +0 -83
- data/lib/pnap_billing_api/api/reservations_api.rb +38 -38
- data/lib/pnap_billing_api/api_client.rb +2 -2
- data/lib/pnap_billing_api/models/bandwidth_record.rb +13 -15
- data/lib/pnap_billing_api/models/credit_details.rb +105 -0
- data/lib/pnap_billing_api/models/credit_details_base.rb +261 -0
- data/lib/pnap_billing_api/models/credit_type_enum.rb +40 -0
- data/lib/pnap_billing_api/models/discount_details.rb +1 -14
- data/lib/pnap_billing_api/models/discount_type_enum.rb +41 -0
- data/lib/pnap_billing_api/models/gpu_configuration_metadata.rb +226 -0
- data/lib/pnap_billing_api/models/operating_system_record.rb +13 -15
- data/lib/pnap_billing_api/models/package_unit_enum.rb +40 -0
- data/lib/pnap_billing_api/models/pricing_plan.rb +1 -14
- data/lib/pnap_billing_api/models/promo_credit_details.rb +301 -0
- data/lib/pnap_billing_api/models/public_subnet_record.rb +13 -15
- data/lib/pnap_billing_api/models/rated_usage_product_category_enum.rb +43 -0
- data/lib/pnap_billing_api/models/rated_usage_record.rb +16 -18
- data/lib/pnap_billing_api/models/reservation.rb +1 -14
- data/lib/pnap_billing_api/models/reservation_product_category_enum.rb +40 -0
- data/lib/pnap_billing_api/models/server_product_metadata.rb +16 -4
- data/lib/pnap_billing_api/models/server_record.rb +13 -15
- data/lib/pnap_billing_api/models/storage_record.rb +13 -15
- data/lib/pnap_billing_api/models/system_credit_cause_enum.rb +39 -0
- data/lib/pnap_billing_api/models/system_credit_details.rb +283 -0
- data/lib/pnap_billing_api.rb +12 -0
- data/spec/api/product_availability_api_spec.rb +52 -0
- data/spec/api/products_api_spec.rb +0 -17
- data/spec/api/reservations_api_spec.rb +5 -5
- data/spec/models/bandwidth_record_spec.rb +6 -4
- data/spec/models/credit_details_base_spec.rb +42 -0
- data/spec/models/credit_details_spec.rb +32 -0
- data/spec/models/credit_type_enum_spec.rb +30 -0
- data/spec/models/discount_details_spec.rb +0 -4
- data/spec/models/discount_type_enum_spec.rb +30 -0
- data/spec/models/gpu_configuration_metadata_spec.rb +42 -0
- data/spec/models/operating_system_record_spec.rb +6 -4
- data/spec/models/package_unit_enum_spec.rb +30 -0
- data/spec/models/pricing_plan_spec.rb +0 -4
- data/spec/models/promo_credit_details_spec.rb +54 -0
- data/spec/models/public_subnet_record_spec.rb +6 -4
- data/spec/models/rated_usage_product_category_enum_spec.rb +30 -0
- data/spec/models/rated_usage_record_spec.rb +6 -4
- data/spec/models/reservation_product_category_enum_spec.rb +30 -0
- data/spec/models/reservation_spec.rb +0 -4
- data/spec/models/server_product_metadata_spec.rb +6 -0
- data/spec/models/server_record_spec.rb +6 -4
- data/spec/models/storage_record_spec.rb +6 -4
- data/spec/models/system_credit_cause_enum_spec.rb +30 -0
- data/spec/models/system_credit_details_spec.rb +48 -0
- metadata +77 -29
@@ -36,10 +36,6 @@ describe BillingApi::BandwidthRecord do
|
|
36
36
|
describe 'test attribute "product_category"' do
|
37
37
|
it 'should work' do
|
38
38
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["bmc-server", "bandwidth", "operating-system", "public-ip", "storage"])
|
40
|
-
# validator.allowable_values.each do |value|
|
41
|
-
# expect { instance.product_category = value }.not_to raise_error
|
42
|
-
# end
|
43
39
|
end
|
44
40
|
end
|
45
41
|
|
@@ -145,6 +141,12 @@ describe BillingApi::BandwidthRecord do
|
|
145
141
|
end
|
146
142
|
end
|
147
143
|
|
144
|
+
describe 'test attribute "credit_details"' 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
|
+
|
148
150
|
describe 'test attribute "metadata"' do
|
149
151
|
it 'should work' do
|
150
152
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
@@ -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
|
+
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::CreditDetailsBase
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe BillingApi::CreditDetailsBase do
|
21
|
+
let(:instance) { BillingApi::CreditDetailsBase.new }
|
22
|
+
|
23
|
+
describe 'test an instance of CreditDetailsBase' do
|
24
|
+
it 'should create an instance of CreditDetailsBase' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(BillingApi::CreditDetailsBase)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "applied_amount"' 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 "type"' 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
|
@@ -0,0 +1,32 @@
|
|
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::CreditDetails
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe BillingApi::CreditDetails do
|
21
|
+
describe '.openapi_one_of' do
|
22
|
+
it 'lists the items referenced in the oneOf array' do
|
23
|
+
expect(described_class.openapi_one_of).to_not be_empty
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
describe '.build' do
|
28
|
+
it 'returns the correct model' do
|
29
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
30
|
+
end
|
31
|
+
end
|
32
|
+
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
|
+
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::CreditTypeEnum
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe BillingApi::CreditTypeEnum do
|
21
|
+
let(:instance) { BillingApi::CreditTypeEnum.new }
|
22
|
+
|
23
|
+
describe 'test an instance of CreditTypeEnum' do
|
24
|
+
it 'should create an instance of CreditTypeEnum' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(BillingApi::CreditTypeEnum)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
@@ -36,10 +36,6 @@ describe BillingApi::DiscountDetails do
|
|
36
36
|
describe 'test attribute "type"' do
|
37
37
|
it 'should work' do
|
38
38
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PRODUCT_CATEGORY_PERCENTAGE", "GLOBAL_PERCENTAGE"])
|
40
|
-
# validator.allowable_values.each do |value|
|
41
|
-
# expect { instance.type = value }.not_to raise_error
|
42
|
-
# end
|
43
39
|
end
|
44
40
|
end
|
45
41
|
|
@@ -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::DiscountTypeEnum
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe BillingApi::DiscountTypeEnum do
|
21
|
+
let(:instance) { BillingApi::DiscountTypeEnum.new }
|
22
|
+
|
23
|
+
describe 'test an instance of DiscountTypeEnum' do
|
24
|
+
it 'should create an instance of DiscountTypeEnum' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(BillingApi::DiscountTypeEnum)
|
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
|
+
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::GpuConfigurationMetadata
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe BillingApi::GpuConfigurationMetadata do
|
21
|
+
let(:instance) { BillingApi::GpuConfigurationMetadata.new }
|
22
|
+
|
23
|
+
describe 'test an instance of GpuConfigurationMetadata' do
|
24
|
+
it 'should create an instance of GpuConfigurationMetadata' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(BillingApi::GpuConfigurationMetadata)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "count"' 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 "name"' 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
|
@@ -36,10 +36,6 @@ describe BillingApi::OperatingSystemRecord do
|
|
36
36
|
describe 'test attribute "product_category"' do
|
37
37
|
it 'should work' do
|
38
38
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["bmc-server", "bandwidth", "operating-system", "public-ip", "storage"])
|
40
|
-
# validator.allowable_values.each do |value|
|
41
|
-
# expect { instance.product_category = value }.not_to raise_error
|
42
|
-
# end
|
43
39
|
end
|
44
40
|
end
|
45
41
|
|
@@ -145,6 +141,12 @@ describe BillingApi::OperatingSystemRecord do
|
|
145
141
|
end
|
146
142
|
end
|
147
143
|
|
144
|
+
describe 'test attribute "credit_details"' 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
|
+
|
148
150
|
describe 'test attribute "metadata"' do
|
149
151
|
it 'should work' do
|
150
152
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
@@ -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::PackageUnitEnum
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe BillingApi::PackageUnitEnum do
|
21
|
+
let(:instance) { BillingApi::PackageUnitEnum.new }
|
22
|
+
|
23
|
+
describe 'test an instance of PackageUnitEnum' do
|
24
|
+
it 'should create an instance of PackageUnitEnum' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(BillingApi::PackageUnitEnum)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
@@ -92,10 +92,6 @@ describe BillingApi::PricingPlan do
|
|
92
92
|
describe 'test attribute "package_unit"' do
|
93
93
|
it 'should work' do
|
94
94
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
95
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["GB", "TB"])
|
96
|
-
# validator.allowable_values.each do |value|
|
97
|
-
# expect { instance.package_unit = value }.not_to raise_error
|
98
|
-
# end
|
99
95
|
end
|
100
96
|
end
|
101
97
|
|
@@ -0,0 +1,54 @@
|
|
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::PromoCreditDetails
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe BillingApi::PromoCreditDetails do
|
21
|
+
let(:instance) { BillingApi::PromoCreditDetails.new }
|
22
|
+
|
23
|
+
describe 'test an instance of PromoCreditDetails' do
|
24
|
+
it 'should create an instance of PromoCreditDetails' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(BillingApi::PromoCreditDetails)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "applied_amount"' 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 "type"' 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
|
+
describe 'test attribute "coupon_id"' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
describe 'test attribute "coupon_code"' do
|
49
|
+
it 'should work' do
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
end
|
@@ -36,10 +36,6 @@ describe BillingApi::PublicSubnetRecord do
|
|
36
36
|
describe 'test attribute "product_category"' do
|
37
37
|
it 'should work' do
|
38
38
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["bmc-server", "bandwidth", "operating-system", "public-ip", "storage"])
|
40
|
-
# validator.allowable_values.each do |value|
|
41
|
-
# expect { instance.product_category = value }.not_to raise_error
|
42
|
-
# end
|
43
39
|
end
|
44
40
|
end
|
45
41
|
|
@@ -145,6 +141,12 @@ describe BillingApi::PublicSubnetRecord do
|
|
145
141
|
end
|
146
142
|
end
|
147
143
|
|
144
|
+
describe 'test attribute "credit_details"' 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
|
+
|
148
150
|
describe 'test attribute "metadata"' do
|
149
151
|
it 'should work' do
|
150
152
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
@@ -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::RatedUsageProductCategoryEnum
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe BillingApi::RatedUsageProductCategoryEnum do
|
21
|
+
let(:instance) { BillingApi::RatedUsageProductCategoryEnum.new }
|
22
|
+
|
23
|
+
describe 'test an instance of RatedUsageProductCategoryEnum' do
|
24
|
+
it 'should create an instance of RatedUsageProductCategoryEnum' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(BillingApi::RatedUsageProductCategoryEnum)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
@@ -36,10 +36,6 @@ describe BillingApi::RatedUsageRecord do
|
|
36
36
|
describe 'test attribute "product_category"' do
|
37
37
|
it 'should work' do
|
38
38
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["bmc-server", "bandwidth", "operating-system", "public-ip", "storage"])
|
40
|
-
# validator.allowable_values.each do |value|
|
41
|
-
# expect { instance.product_category = value }.not_to raise_error
|
42
|
-
# end
|
43
39
|
end
|
44
40
|
end
|
45
41
|
|
@@ -145,4 +141,10 @@ describe BillingApi::RatedUsageRecord do
|
|
145
141
|
end
|
146
142
|
end
|
147
143
|
|
144
|
+
describe 'test attribute "credit_details"' 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
|
+
|
148
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
|
+
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
|
|
@@ -69,4 +69,10 @@ describe BillingApi::ServerProductMetadata do
|
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|
72
|
+
describe 'test attribute "gpu_configurations"' do
|
73
|
+
it 'should work' do
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
72
78
|
end
|
@@ -36,10 +36,6 @@ describe BillingApi::ServerRecord do
|
|
36
36
|
describe 'test attribute "product_category"' do
|
37
37
|
it 'should work' do
|
38
38
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["bmc-server", "bandwidth", "operating-system", "public-ip", "storage"])
|
40
|
-
# validator.allowable_values.each do |value|
|
41
|
-
# expect { instance.product_category = value }.not_to raise_error
|
42
|
-
# end
|
43
39
|
end
|
44
40
|
end
|
45
41
|
|
@@ -145,6 +141,12 @@ describe BillingApi::ServerRecord do
|
|
145
141
|
end
|
146
142
|
end
|
147
143
|
|
144
|
+
describe 'test attribute "credit_details"' 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
|
+
|
148
150
|
describe 'test attribute "metadata"' do
|
149
151
|
it 'should work' do
|
150
152
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
@@ -36,10 +36,6 @@ describe BillingApi::StorageRecord do
|
|
36
36
|
describe 'test attribute "product_category"' do
|
37
37
|
it 'should work' do
|
38
38
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["bmc-server", "bandwidth", "operating-system", "public-ip", "storage"])
|
40
|
-
# validator.allowable_values.each do |value|
|
41
|
-
# expect { instance.product_category = value }.not_to raise_error
|
42
|
-
# end
|
43
39
|
end
|
44
40
|
end
|
45
41
|
|
@@ -145,6 +141,12 @@ describe BillingApi::StorageRecord do
|
|
145
141
|
end
|
146
142
|
end
|
147
143
|
|
144
|
+
describe 'test attribute "credit_details"' 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
|
+
|
148
150
|
describe 'test attribute "metadata"' do
|
149
151
|
it 'should work' do
|
150
152
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
@@ -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::SystemCreditCauseEnum
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe BillingApi::SystemCreditCauseEnum do
|
21
|
+
let(:instance) { BillingApi::SystemCreditCauseEnum.new }
|
22
|
+
|
23
|
+
describe 'test an instance of SystemCreditCauseEnum' do
|
24
|
+
it 'should create an instance of SystemCreditCauseEnum' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(BillingApi::SystemCreditCauseEnum)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
@@ -0,0 +1,48 @@
|
|
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::SystemCreditDetails
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe BillingApi::SystemCreditDetails do
|
21
|
+
let(:instance) { BillingApi::SystemCreditDetails.new }
|
22
|
+
|
23
|
+
describe 'test an instance of SystemCreditDetails' do
|
24
|
+
it 'should create an instance of SystemCreditDetails' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(BillingApi::SystemCreditDetails)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "applied_amount"' 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 "type"' 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
|
+
describe 'test attribute "cause"' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|