Module: BillingApi
- Defined in:
- lib/pnap_billing_api/api_error.rb,
lib/pnap_billing_api.rb,
lib/pnap_billing_api/version.rb,
lib/pnap_billing_api/api_client.rb,
lib/pnap_billing_api/models/error.rb,
lib/pnap_billing_api/configuration.rb,
lib/pnap_billing_api/models/product.rb,
lib/pnap_billing_api/api/products_api.rb,
lib/pnap_billing_api/models/reservation.rb,
lib/pnap_billing_api/api/rated_usage_api.rb,
lib/pnap_billing_api/models/pricing_plan.rb,
lib/pnap_billing_api/api/reservations_api.rb,
lib/pnap_billing_api/models/location_enum.rb,
lib/pnap_billing_api/models/server_record.rb,
lib/pnap_billing_api/models/server_details.rb,
lib/pnap_billing_api/models/server_product.rb,
lib/pnap_billing_api/models/storage_record.rb,
lib/pnap_billing_api/models/price_unit_enum.rb,
lib/pnap_billing_api/models/storage_details.rb,
lib/pnap_billing_api/models/bandwidth_record.rb,
lib/pnap_billing_api/models/discount_details.rb,
lib/pnap_billing_api/models/bandwidth_details.rb,
lib/pnap_billing_api/models/package_unit_enum.rb,
lib/pnap_billing_api/models/rated_usage_record.rb,
lib/pnap_billing_api/models/reservation_request.rb,
lib/pnap_billing_api/models/applicable_discounts.rb,
lib/pnap_billing_api/models/product_availability.rb,
lib/pnap_billing_api/models/public_subnet_record.rb,
lib/pnap_billing_api/api/product_availability_api.rb,
lib/pnap_billing_api/models/configuration_details.rb,
lib/pnap_billing_api/models/product_category_enum.rb,
lib/pnap_billing_api/models/public_subnet_details.rb,
lib/pnap_billing_api/models/reservation_model_enum.rb,
lib/pnap_billing_api/api/billing_configurations_api.rb,
lib/pnap_billing_api/models/operating_system_record.rb,
lib/pnap_billing_api/models/server_product_metadata.rb,
lib/pnap_billing_api/models/operating_system_details.rb,
lib/pnap_billing_api/models/location_availability_detail.rb,
lib/pnap_billing_api/models/products_get200_response_inner.rb,
lib/pnap_billing_api/models/threshold_configuration_details.rb,
lib/pnap_billing_api/models/reservation_invoicing_model_enum.rb,
lib/pnap_billing_api/models/rated_usage_get200_response_inner.rb,
lib/pnap_billing_api/models/reservation_product_category_enum.rb,
lib/pnap_billing_api/models/reservation_auto_renew_disable_request.rb
Overview
#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.
<span class=‘pnap-api-knowledge-base-link’> Knowledge base articles to help you can be found <a href=‘phoenixnap.com/kb/phoenixnap-bare-metal-cloud-billing-models’ target=‘_blank’>here</a> </span>
All URLs are relative to (https://api.phoenixnap.com/billing/v1/)
The version of the OpenAPI document: 0.1 Contact: [email protected] Generated by: openapi-generator.tech OpenAPI Generator version: 7.2.0
Defined Under Namespace
Modules: ProductsGet200ResponseInner, RatedUsageGet200ResponseInner Classes: ApiClient, ApiError, ApplicableDiscounts, BandwidthDetails, BandwidthRecord, BillingConfigurationsApi, Configuration, ConfigurationDetails, DiscountDetails, Error, LocationAvailabilityDetail, LocationEnum, OperatingSystemDetails, OperatingSystemRecord, PackageUnitEnum, PriceUnitEnum, PricingPlan, Product, ProductAvailability, ProductAvailabilityApi, ProductCategoryEnum, ProductsApi, PublicSubnetDetails, PublicSubnetRecord, RatedUsageApi, RatedUsageRecord, Reservation, ReservationAutoRenewDisableRequest, ReservationInvoicingModelEnum, ReservationModelEnum, ReservationProductCategoryEnum, ReservationRequest, ReservationsApi, ServerDetails, ServerProduct, ServerProductMetadata, ServerRecord, StorageDetails, StorageRecord, ThresholdConfigurationDetails
Constant Summary collapse
- VERSION =
get_version()
Class Method Summary collapse
-
.configure ⇒ Object
Customize default settings for the SDK using block.
Class Method Details
.configure ⇒ Object
Customize default settings for the SDK using block.
BillingApi.configure do |config|
config.username = "xxx"
config.password = "xxx"
end
If no block given, return the default Configuration object.
70 71 72 73 74 75 76 |
# File 'lib/pnap_billing_api.rb', line 70 def configure if block_given? yield(Configuration.default) else Configuration.default end end |