pnap_billing_api 2.0.0 → 2.1.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 (63) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -0
  3. data/VERSION +1 -1
  4. data/docs/ApplicableDiscountDetails.md +24 -0
  5. data/docs/ApplicableDiscounts.md +1 -1
  6. data/docs/BandwidthRecord.md +5 -3
  7. data/docs/CreditDetails.md +49 -0
  8. data/docs/CreditDetailsBase.md +20 -0
  9. data/docs/CreditTypeEnum.md +15 -0
  10. data/docs/DiscountDetails.md +2 -2
  11. data/docs/DiscountTypeEnum.md +15 -0
  12. data/docs/GpuConfigurationMetadata.md +20 -0
  13. data/docs/OperatingSystemRecord.md +5 -3
  14. data/docs/PricingPlan.md +2 -2
  15. data/docs/PromoCreditDetails.md +24 -0
  16. data/docs/PublicSubnetRecord.md +5 -3
  17. data/docs/RatedUsageProductCategoryEnum.md +15 -0
  18. data/docs/RatedUsageRecord.md +6 -4
  19. data/docs/ReservationAutoRenewDisableRequest.md +1 -1
  20. data/docs/ServerProductMetadata.md +3 -1
  21. data/docs/ServerRecord.md +5 -3
  22. data/docs/StorageRecord.md +5 -3
  23. data/docs/SystemCreditCauseEnum.md +15 -0
  24. data/docs/SystemCreditDetails.md +22 -0
  25. data/lib/pnap_billing_api/models/applicable_discount_details.rb +294 -0
  26. data/lib/pnap_billing_api/models/applicable_discounts.rb +1 -1
  27. data/lib/pnap_billing_api/models/bandwidth_record.rb +14 -16
  28. data/lib/pnap_billing_api/models/credit_details.rb +105 -0
  29. data/lib/pnap_billing_api/models/credit_details_base.rb +261 -0
  30. data/lib/pnap_billing_api/models/credit_type_enum.rb +40 -0
  31. data/lib/pnap_billing_api/models/discount_details.rb +1 -14
  32. data/lib/pnap_billing_api/models/discount_type_enum.rb +41 -0
  33. data/lib/pnap_billing_api/models/gpu_configuration_metadata.rb +226 -0
  34. data/lib/pnap_billing_api/models/operating_system_record.rb +14 -16
  35. data/lib/pnap_billing_api/models/promo_credit_details.rb +301 -0
  36. data/lib/pnap_billing_api/models/public_subnet_record.rb +14 -16
  37. data/lib/pnap_billing_api/models/rated_usage_product_category_enum.rb +43 -0
  38. data/lib/pnap_billing_api/models/rated_usage_record.rb +16 -18
  39. data/lib/pnap_billing_api/models/server_product_metadata.rb +16 -4
  40. data/lib/pnap_billing_api/models/server_record.rb +14 -16
  41. data/lib/pnap_billing_api/models/storage_record.rb +14 -16
  42. data/lib/pnap_billing_api/models/system_credit_cause_enum.rb +39 -0
  43. data/lib/pnap_billing_api/models/system_credit_details.rb +283 -0
  44. data/lib/pnap_billing_api.rb +10 -0
  45. data/spec/models/applicable_discount_details_spec.rb +54 -0
  46. data/spec/models/bandwidth_record_spec.rb +6 -4
  47. data/spec/models/credit_details_base_spec.rb +42 -0
  48. data/spec/models/credit_details_spec.rb +32 -0
  49. data/spec/models/credit_type_enum_spec.rb +30 -0
  50. data/spec/models/discount_details_spec.rb +0 -4
  51. data/spec/models/discount_type_enum_spec.rb +30 -0
  52. data/spec/models/gpu_configuration_metadata_spec.rb +42 -0
  53. data/spec/models/operating_system_record_spec.rb +6 -4
  54. data/spec/models/promo_credit_details_spec.rb +54 -0
  55. data/spec/models/public_subnet_record_spec.rb +6 -4
  56. data/spec/models/rated_usage_product_category_enum_spec.rb +30 -0
  57. data/spec/models/rated_usage_record_spec.rb +6 -4
  58. data/spec/models/server_product_metadata_spec.rb +6 -0
  59. data/spec/models/server_record_spec.rb +6 -4
  60. data/spec/models/storage_record_spec.rb +6 -4
  61. data/spec/models/system_credit_cause_enum_spec.rb +30 -0
  62. data/spec/models/system_credit_details_spec.rb +48 -0
  63. metadata +71 -31
@@ -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,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
@@ -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