=begin
#Billing API
#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.
Knowledge base articles to help you can be found here
All URLs are relative to (https://api.phoenixnap.com/billing/v1/)
The version of the OpenAPI document: 0.1
Contact: support@phoenixnap.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.2.0
=end
require 'spec_helper'
require 'json'
# Unit tests for BillingApi::ProductAvailabilityApi
# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
describe 'ProductAvailabilityApi' do
before do
# run before each test
@api_instance = BillingApi::ProductAvailabilityApi.new
end
after do
# run after each test
end
describe 'test an instance of ProductAvailabilityApi' do
it 'should create an instance of ProductAvailabilityApi' do
expect(@api_instance).to be_instance_of(BillingApi::ProductAvailabilityApi)
end
end
# unit tests for product_availability_get
# List all Product availabilities.
# Retrieves the list of product availability details.
# @param [Hash] opts the optional parameters
# @option opts [Array] :product_category Product category. Currently only SERVER category is supported.
# @option opts [Array] :product_code
# @option opts [Boolean] :show_only_min_quantity_available Show only locations where product with requested quantity is available or all locations where product is offered.
# @option opts [Array] :location
# @option opts [Array] :solution
# @option opts [Float] :min_quantity Minimal quantity of product needed. Minimum, maximum and default values might differ for different products. For servers, they are 1, 10 and 1 respectively.
# @return [Array]
describe 'product_availability_get test' do
it 'should work' do
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
end
end
end