billingapi

package module
v3.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: MPL-2.0 Imports: 21 Imported by: 4

README

Go API client for billingapi

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/)

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import billingapi "github.com/phoenixnap/go-sdk-bmc/billingapi"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value billingapi.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), billingapi.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value billingapi.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), billingapi.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using billingapi.ContextOperationServerIndices and billingapi.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), billingapi.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), billingapi.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://api.phoenixnap.com/billing/v1

Class Method HTTP request Description
BillingConfigurationsAPI AccountBillingConfigurationMeGet Get /account-billing-configurations/me Retrieves billing configuration associated with the authenticated account.
ProductAvailabilityAPI ProductAvailabilityGet Get /product-availability List all Product availabilities.
ProductsAPI ProductsGet Get /products List all Products.
RatedUsageAPI RatedUsageGet Get /rated-usage List the rated usage.
RatedUsageAPI RatedUsageMonthToDateGet Get /rated-usage/month-to-date List the rated usage records for the current calendar month.
ReservationsAPI ReservationsGet Get /reservations List all Reservations.
ReservationsAPI ReservationsPost Post /reservations Create a reservation.
ReservationsAPI ReservationsReservationIdActionsAutoRenewDisablePost Post /reservations/{id}/actions/auto-renew/disable Disable auto-renewal for reservation by id.
ReservationsAPI ReservationsReservationIdActionsAutoRenewEnablePost Post /reservations/{id}/actions/auto-renew/enable Enable auto-renewal for unexpired reservation by reservation id.
ReservationsAPI ReservationsReservationIdActionsConvertPost Post /reservations/{id}/actions/convert Convert reservation pricing model by reservation ID.
ReservationsAPI ReservationsReservationIdGet Get /reservations/{id} Get a reservation.

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

OAuth2
  • Type: OAuth
  • Flow: application
  • Authorization URL:
  • Scopes:
  • bmc: Grants full access to bmc-api.
  • bmc.read: Grants read only access to bmc-api.

Example

auth := context.WithValue(context.Background(), billingapi.ContextAccessToken, "ACCESSTOKENSTRING")
r, err := client.Service.Operation(auth, args)

Or via OAuth2 module to automatically refresh tokens and perform user authentication.

import "golang.org/x/oauth2"

/* Perform OAuth2 round trip request and obtain a token */

tokenSource := oauth2cfg.TokenSource(createContext(httpClient), &token)
auth := context.WithValue(oauth2.NoContext, billingapi.ContextOAuth2, tokenSource)
r, err := client.Service.Operation(auth, args)

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

[email protected]

Documentation

Index

Constants

View Source
const SdkVersion = "3.0.0"

Variables

View Source
var (
	JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
	XmlCheck  = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
)
View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)
View Source
var AllowedLocationEnumEnumValues = []LocationEnum{
	"PHX",
	"ASH",
	"NLD",
	"SGP",
	"CHI",
	"SEA",
	"AUS",
}

All allowed values of LocationEnum enum

View Source
var AllowedPackageUnitEnumEnumValues = []PackageUnitEnum{
	"GB",
	"TB",
}

All allowed values of PackageUnitEnum enum

View Source
var AllowedPriceUnitEnumEnumValues = []PriceUnitEnum{
	"HOUR",
	"MONTH",
	"GB",
	"UNIT",
	"FLAT",
	"TB_PER_HOUR",
}

All allowed values of PriceUnitEnum enum

View Source
var AllowedProductCategoryEnumEnumValues = []ProductCategoryEnum{
	"SERVER",
	"BANDWIDTH",
	"OPERATING_SYSTEM",
	"PUBLIC_IP",
	"STORAGE",
}

All allowed values of ProductCategoryEnum enum

View Source
var AllowedReservationInvoicingModelEnumEnumValues = []ReservationInvoicingModelEnum{
	"ON_CREATION",
	"CALENDAR_MONTH",
}

All allowed values of ReservationInvoicingModelEnum enum

View Source
var AllowedReservationModelEnumEnumValues = []ReservationModelEnum{
	"ONE_MONTH_RESERVATION",
	"TWELVE_MONTHS_RESERVATION",
	"TWENTY_FOUR_MONTHS_RESERVATION",
	"THIRTY_SIX_MONTHS_RESERVATION",
	"FREE_TIER",
}

All allowed values of ReservationModelEnum enum

View Source
var AllowedReservationProductCategoryEnumEnumValues = []ReservationProductCategoryEnum{
	"server",
	"bandwidth",
}

All allowed values of ReservationProductCategoryEnum enum

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	BillingConfigurationsAPI BillingConfigurationsAPI

	ProductAvailabilityAPI ProductAvailabilityAPI

	ProductsAPI ProductsAPI

	RatedUsageAPI RatedUsageAPI

	ReservationsAPI ReservationsAPI
	// contains filtered or unexported fields
}

APIClient manages communication with the Billing API API v0.1 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type ApiAccountBillingConfigurationMeGetRequest

type ApiAccountBillingConfigurationMeGetRequest struct {
	ApiService BillingConfigurationsAPI
	// contains filtered or unexported fields
}

func (ApiAccountBillingConfigurationMeGetRequest) Execute

type ApiProductAvailabilityGetRequest

type ApiProductAvailabilityGetRequest struct {
	ApiService ProductAvailabilityAPI
	// contains filtered or unexported fields
}

func (ApiProductAvailabilityGetRequest) Execute

func (ApiProductAvailabilityGetRequest) Location

func (ApiProductAvailabilityGetRequest) MinQuantity

Minimal quantity of product needed. Minimum, maximum and default values might differ for different products. For servers, they are 1, 10 and 1 respectively.

func (ApiProductAvailabilityGetRequest) ProductCategory

func (r ApiProductAvailabilityGetRequest) ProductCategory(productCategory []string) ApiProductAvailabilityGetRequest

Product category. Currently only SERVER category is supported.

func (ApiProductAvailabilityGetRequest) ProductCode

func (ApiProductAvailabilityGetRequest) ShowOnlyMinQuantityAvailable

func (r ApiProductAvailabilityGetRequest) ShowOnlyMinQuantityAvailable(showOnlyMinQuantityAvailable bool) ApiProductAvailabilityGetRequest

Show only locations where product with requested quantity is available or all locations where product is offered.

func (ApiProductAvailabilityGetRequest) Solution

type ApiProductsGetRequest

type ApiProductsGetRequest struct {
	ApiService ProductsAPI
	// contains filtered or unexported fields
}

func (ApiProductsGetRequest) Execute

func (ApiProductsGetRequest) Location

func (r ApiProductsGetRequest) Location(location string) ApiProductsGetRequest

func (ApiProductsGetRequest) ProductCategory

func (r ApiProductsGetRequest) ProductCategory(productCategory string) ApiProductsGetRequest

func (ApiProductsGetRequest) ProductCode

func (r ApiProductsGetRequest) ProductCode(productCode string) ApiProductsGetRequest

func (ApiProductsGetRequest) SkuCode

type ApiRatedUsageGetRequest

type ApiRatedUsageGetRequest struct {
	ApiService RatedUsageAPI
	// contains filtered or unexported fields
}

func (ApiRatedUsageGetRequest) Execute

func (ApiRatedUsageGetRequest) FromYearMonth

func (r ApiRatedUsageGetRequest) FromYearMonth(fromYearMonth string) ApiRatedUsageGetRequest

From year month (inclusive) to filter rated usage records by.

func (ApiRatedUsageGetRequest) ProductCategory

func (r ApiRatedUsageGetRequest) ProductCategory(productCategory ProductCategoryEnum) ApiRatedUsageGetRequest

The product category

func (ApiRatedUsageGetRequest) ToYearMonth

func (r ApiRatedUsageGetRequest) ToYearMonth(toYearMonth string) ApiRatedUsageGetRequest

To year month (inclusive) to filter rated usage records by.

type ApiRatedUsageMonthToDateGetRequest

type ApiRatedUsageMonthToDateGetRequest struct {
	ApiService RatedUsageAPI
	// contains filtered or unexported fields
}

func (ApiRatedUsageMonthToDateGetRequest) Execute

func (ApiRatedUsageMonthToDateGetRequest) ProductCategory

The product category

type ApiReservationsGetRequest

type ApiReservationsGetRequest struct {
	ApiService ReservationsAPI
	// contains filtered or unexported fields
}

func (ApiReservationsGetRequest) Execute

func (ApiReservationsGetRequest) ProductCategory

The product category

type ApiReservationsPostRequest

type ApiReservationsPostRequest struct {
	ApiService ReservationsAPI
	// contains filtered or unexported fields
}

func (ApiReservationsPostRequest) Execute

func (ApiReservationsPostRequest) ReservationRequest

func (r ApiReservationsPostRequest) ReservationRequest(reservationRequest ReservationRequest) ApiReservationsPostRequest

type ApiReservationsReservationIdActionsAutoRenewDisablePostRequest

type ApiReservationsReservationIdActionsAutoRenewDisablePostRequest struct {
	ApiService ReservationsAPI
	// contains filtered or unexported fields
}

func (ApiReservationsReservationIdActionsAutoRenewDisablePostRequest) Execute

func (ApiReservationsReservationIdActionsAutoRenewDisablePostRequest) ReservationAutoRenewDisableRequest

type ApiReservationsReservationIdActionsAutoRenewEnablePostRequest

type ApiReservationsReservationIdActionsAutoRenewEnablePostRequest struct {
	ApiService ReservationsAPI
	// contains filtered or unexported fields
}

func (ApiReservationsReservationIdActionsAutoRenewEnablePostRequest) Execute

type ApiReservationsReservationIdActionsConvertPostRequest

type ApiReservationsReservationIdActionsConvertPostRequest struct {
	ApiService ReservationsAPI
	// contains filtered or unexported fields
}

func (ApiReservationsReservationIdActionsConvertPostRequest) Execute

func (ApiReservationsReservationIdActionsConvertPostRequest) ReservationRequest

type ApiReservationsReservationIdGetRequest

type ApiReservationsReservationIdGetRequest struct {
	ApiService ReservationsAPI
	// contains filtered or unexported fields
}

func (ApiReservationsReservationIdGetRequest) Execute

type ApplicableDiscounts

type ApplicableDiscounts struct {
	// The price of the product after applying a discount.
	DiscountedPrice      *float32          `json:"discountedPrice,omitempty"`
	DiscountDetails      []DiscountDetails `json:"discountDetails,omitempty"`
	AdditionalProperties map[string]interface{}
}

ApplicableDiscounts Represents the applicable discount details for a product, including the discounted price and discount information.

func NewApplicableDiscounts

func NewApplicableDiscounts() *ApplicableDiscounts

NewApplicableDiscounts instantiates a new ApplicableDiscounts object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewApplicableDiscountsWithDefaults

func NewApplicableDiscountsWithDefaults() *ApplicableDiscounts

NewApplicableDiscountsWithDefaults instantiates a new ApplicableDiscounts object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ApplicableDiscounts) GetDiscountDetails

func (o *ApplicableDiscounts) GetDiscountDetails() []DiscountDetails

GetDiscountDetails returns the DiscountDetails field value if set, zero value otherwise.

func (*ApplicableDiscounts) GetDiscountDetailsOk

func (o *ApplicableDiscounts) GetDiscountDetailsOk() ([]DiscountDetails, bool)

GetDiscountDetailsOk returns a tuple with the DiscountDetails field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApplicableDiscounts) GetDiscountedPrice

func (o *ApplicableDiscounts) GetDiscountedPrice() float32

GetDiscountedPrice returns the DiscountedPrice field value if set, zero value otherwise.

func (*ApplicableDiscounts) GetDiscountedPriceOk

func (o *ApplicableDiscounts) GetDiscountedPriceOk() (*float32, bool)

GetDiscountedPriceOk returns a tuple with the DiscountedPrice field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApplicableDiscounts) HasDiscountDetails

func (o *ApplicableDiscounts) HasDiscountDetails() bool

HasDiscountDetails returns a boolean if a field has been set.

func (*ApplicableDiscounts) HasDiscountedPrice

func (o *ApplicableDiscounts) HasDiscountedPrice() bool

HasDiscountedPrice returns a boolean if a field has been set.

func (ApplicableDiscounts) MarshalJSON

func (o ApplicableDiscounts) MarshalJSON() ([]byte, error)

func (*ApplicableDiscounts) SetDiscountDetails

func (o *ApplicableDiscounts) SetDiscountDetails(v []DiscountDetails)

SetDiscountDetails gets a reference to the given []DiscountDetails and assigns it to the DiscountDetails field.

func (*ApplicableDiscounts) SetDiscountedPrice

func (o *ApplicableDiscounts) SetDiscountedPrice(v float32)

SetDiscountedPrice gets a reference to the given float32 and assigns it to the DiscountedPrice field.

func (ApplicableDiscounts) ToMap

func (o ApplicableDiscounts) ToMap() (map[string]interface{}, error)

func (*ApplicableDiscounts) UnmarshalJSON

func (o *ApplicableDiscounts) UnmarshalJSON(data []byte) (err error)

type BandwidthDetails

type BandwidthDetails struct {
	// The amount of GB consumed in ingress (IN).
	IngressGb float32 `json:"ingressGb"`
	// The amount of GB consumed in egress (OUT).
	EgressGb float32 `json:"egressGb"`
	// Package size per month.
	PackageQuantity *float32 `json:"packageQuantity,omitempty"`
	// Package size unit.
	PackageUnit          *string `json:"packageUnit,omitempty"`
	AdditionalProperties map[string]interface{}
}

BandwidthDetails Details of the bandwidth associated with this rated usage record.

func NewBandwidthDetails

func NewBandwidthDetails(ingressGb float32, egressGb float32) *BandwidthDetails

NewBandwidthDetails instantiates a new BandwidthDetails object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBandwidthDetailsWithDefaults

func NewBandwidthDetailsWithDefaults() *BandwidthDetails

NewBandwidthDetailsWithDefaults instantiates a new BandwidthDetails object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BandwidthDetails) GetEgressGb

func (o *BandwidthDetails) GetEgressGb() float32

GetEgressGb returns the EgressGb field value

func (*BandwidthDetails) GetEgressGbOk

func (o *BandwidthDetails) GetEgressGbOk() (*float32, bool)

GetEgressGbOk returns a tuple with the EgressGb field value and a boolean to check if the value has been set.

func (*BandwidthDetails) GetIngressGb

func (o *BandwidthDetails) GetIngressGb() float32

GetIngressGb returns the IngressGb field value

func (*BandwidthDetails) GetIngressGbOk

func (o *BandwidthDetails) GetIngressGbOk() (*float32, bool)

GetIngressGbOk returns a tuple with the IngressGb field value and a boolean to check if the value has been set.

func (*BandwidthDetails) GetPackageQuantity

func (o *BandwidthDetails) GetPackageQuantity() float32

GetPackageQuantity returns the PackageQuantity field value if set, zero value otherwise.

func (*BandwidthDetails) GetPackageQuantityOk

func (o *BandwidthDetails) GetPackageQuantityOk() (*float32, bool)

GetPackageQuantityOk returns a tuple with the PackageQuantity field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BandwidthDetails) GetPackageUnit

func (o *BandwidthDetails) GetPackageUnit() string

GetPackageUnit returns the PackageUnit field value if set, zero value otherwise.

func (*BandwidthDetails) GetPackageUnitOk

func (o *BandwidthDetails) GetPackageUnitOk() (*string, bool)

GetPackageUnitOk returns a tuple with the PackageUnit field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BandwidthDetails) HasPackageQuantity

func (o *BandwidthDetails) HasPackageQuantity() bool

HasPackageQuantity returns a boolean if a field has been set.

func (*BandwidthDetails) HasPackageUnit

func (o *BandwidthDetails) HasPackageUnit() bool

HasPackageUnit returns a boolean if a field has been set.

func (BandwidthDetails) MarshalJSON

func (o BandwidthDetails) MarshalJSON() ([]byte, error)

func (*BandwidthDetails) SetEgressGb

func (o *BandwidthDetails) SetEgressGb(v float32)

SetEgressGb sets field value

func (*BandwidthDetails) SetIngressGb

func (o *BandwidthDetails) SetIngressGb(v float32)

SetIngressGb sets field value

func (*BandwidthDetails) SetPackageQuantity

func (o *BandwidthDetails) SetPackageQuantity(v float32)

SetPackageQuantity gets a reference to the given float32 and assigns it to the PackageQuantity field.

func (*BandwidthDetails) SetPackageUnit

func (o *BandwidthDetails) SetPackageUnit(v string)

SetPackageUnit gets a reference to the given string and assigns it to the PackageUnit field.

func (BandwidthDetails) ToMap

func (o BandwidthDetails) ToMap() (map[string]interface{}, error)

func (*BandwidthDetails) UnmarshalJSON

func (o *BandwidthDetails) UnmarshalJSON(data []byte) (err error)

type BandwidthRecord

type BandwidthRecord struct {
	// The unique identifier of the rated usage record.
	Id string `json:"id"`
	// The category of the product associated with this usage record.
	ProductCategory string `json:"productCategory"`
	// The code identifying the product associated to this usage record.
	ProductCode string       `json:"productCode"`
	Location    LocationEnum `json:"location"`
	// Year and month of the usage record.
	YearMonth *string `json:"yearMonth,omitempty"`
	// The point in time (in UTC) when usage has started.
	StartDateTime time.Time `json:"startDateTime"`
	// The point in time (in UTC) until usage has been rated.
	EndDateTime time.Time `json:"endDateTime"`
	// The rated usage in cents.
	Cost int64 `json:"cost"`
	// The cost in cents before discount.
	CostBeforeDiscount *int64 `json:"costBeforeDiscount,omitempty"`
	// The rated usage cost description.
	CostDescription *string `json:"costDescription,omitempty"`
	// The price model applied to this usage record.
	PriceModel string `json:"priceModel"`
	// The unit price.
	UnitPrice float32 `json:"unitPrice"`
	// User friendly description of the unit price.
	UnitPriceDescription string `json:"unitPriceDescription"`
	// The number of units being charged.
	Quantity float32 `json:"quantity"`
	// A flag indicating whether the rated usage record is still active.
	Active bool `json:"active"`
	// The usage session ID is used to correlate rated usage records across periods of time. For example, a server used for over a month will generate multiple rated usage records. The entire usage session cost can be computed by aggregating the records having the same usage session ID. It is usual to have one rated usage record per month or invoice.
	UsageSessionId string `json:"usageSessionId"`
	// Holds usage record id
	CorrelationId string `json:"correlationId"`
	// Reservation id associated with this rated usage record.
	ReservationId        *string          `json:"reservationId,omitempty"`
	DiscountDetails      *DiscountDetails `json:"discountDetails,omitempty"`
	Metadata             BandwidthDetails `json:"metadata"`
	AdditionalProperties map[string]interface{}
}

BandwidthRecord struct for BandwidthRecord

func NewBandwidthRecord

func NewBandwidthRecord(id string, productCategory string, productCode string, location LocationEnum, startDateTime time.Time, endDateTime time.Time, cost int64, priceModel string, unitPrice float32, unitPriceDescription string, quantity float32, active bool, usageSessionId string, correlationId string, metadata BandwidthDetails) *BandwidthRecord

NewBandwidthRecord instantiates a new BandwidthRecord object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBandwidthRecordWithDefaults

func NewBandwidthRecordWithDefaults() *BandwidthRecord

NewBandwidthRecordWithDefaults instantiates a new BandwidthRecord object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BandwidthRecord) GetActive

func (o *BandwidthRecord) GetActive() bool

GetActive returns the Active field value

func (*BandwidthRecord) GetActiveOk

func (o *BandwidthRecord) GetActiveOk() (*bool, bool)

GetActiveOk returns a tuple with the Active field value and a boolean to check if the value has been set.

func (*BandwidthRecord) GetCorrelationId

func (o *BandwidthRecord) GetCorrelationId() string

GetCorrelationId returns the CorrelationId field value

func (*BandwidthRecord) GetCorrelationIdOk

func (o *BandwidthRecord) GetCorrelationIdOk() (*string, bool)

GetCorrelationIdOk returns a tuple with the CorrelationId field value and a boolean to check if the value has been set.

func (*BandwidthRecord) GetCost

func (o *BandwidthRecord) GetCost() int64

GetCost returns the Cost field value

func (*BandwidthRecord) GetCostBeforeDiscount

func (o *BandwidthRecord) GetCostBeforeDiscount() int64

GetCostBeforeDiscount returns the CostBeforeDiscount field value if set, zero value otherwise.

func (*BandwidthRecord) GetCostBeforeDiscountOk

func (o *BandwidthRecord) GetCostBeforeDiscountOk() (*int64, bool)

GetCostBeforeDiscountOk returns a tuple with the CostBeforeDiscount field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BandwidthRecord) GetCostDescription

func (o *BandwidthRecord) GetCostDescription() string

GetCostDescription returns the CostDescription field value if set, zero value otherwise.

func (*BandwidthRecord) GetCostDescriptionOk

func (o *BandwidthRecord) GetCostDescriptionOk() (*string, bool)

GetCostDescriptionOk returns a tuple with the CostDescription field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BandwidthRecord) GetCostOk

func (o *BandwidthRecord) GetCostOk() (*int64, bool)

GetCostOk returns a tuple with the Cost field value and a boolean to check if the value has been set.

func (*BandwidthRecord) GetDiscountDetails

func (o *BandwidthRecord) GetDiscountDetails() DiscountDetails

GetDiscountDetails returns the DiscountDetails field value if set, zero value otherwise.

func (*BandwidthRecord) GetDiscountDetailsOk

func (o *BandwidthRecord) GetDiscountDetailsOk() (*DiscountDetails, bool)

GetDiscountDetailsOk returns a tuple with the DiscountDetails field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BandwidthRecord) GetEndDateTime

func (o *BandwidthRecord) GetEndDateTime() time.Time

GetEndDateTime returns the EndDateTime field value

func (*BandwidthRecord) GetEndDateTimeOk

func (o *BandwidthRecord) GetEndDateTimeOk() (*time.Time, bool)

GetEndDateTimeOk returns a tuple with the EndDateTime field value and a boolean to check if the value has been set.

func (*BandwidthRecord) GetId

func (o *BandwidthRecord) GetId() string

GetId returns the Id field value

func (*BandwidthRecord) GetIdOk

func (o *BandwidthRecord) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*BandwidthRecord) GetLocation

func (o *BandwidthRecord) GetLocation() LocationEnum

GetLocation returns the Location field value

func (*BandwidthRecord) GetLocationOk

func (o *BandwidthRecord) GetLocationOk() (*LocationEnum, bool)

GetLocationOk returns a tuple with the Location field value and a boolean to check if the value has been set.

func (*BandwidthRecord) GetMetadata

func (o *BandwidthRecord) GetMetadata() BandwidthDetails

GetMetadata returns the Metadata field value

func (*BandwidthRecord) GetMetadataOk

func (o *BandwidthRecord) GetMetadataOk() (*BandwidthDetails, bool)

GetMetadataOk returns a tuple with the Metadata field value and a boolean to check if the value has been set.

func (*BandwidthRecord) GetPriceModel

func (o *BandwidthRecord) GetPriceModel() string

GetPriceModel returns the PriceModel field value

func (*BandwidthRecord) GetPriceModelOk

func (o *BandwidthRecord) GetPriceModelOk() (*string, bool)

GetPriceModelOk returns a tuple with the PriceModel field value and a boolean to check if the value has been set.

func (*BandwidthRecord) GetProductCategory

func (o *BandwidthRecord) GetProductCategory() string

GetProductCategory returns the ProductCategory field value

func (*BandwidthRecord) GetProductCategoryOk

func (o *BandwidthRecord) GetProductCategoryOk() (*string, bool)

GetProductCategoryOk returns a tuple with the ProductCategory field value and a boolean to check if the value has been set.

func (*BandwidthRecord) GetProductCode

func (o *BandwidthRecord) GetProductCode() string

GetProductCode returns the ProductCode field value

func (*BandwidthRecord) GetProductCodeOk

func (o *BandwidthRecord) GetProductCodeOk() (*string, bool)

GetProductCodeOk returns a tuple with the ProductCode field value and a boolean to check if the value has been set.

func (*BandwidthRecord) GetQuantity

func (o *BandwidthRecord) GetQuantity() float32

GetQuantity returns the Quantity field value

func (*BandwidthRecord) GetQuantityOk

func (o *BandwidthRecord) GetQuantityOk() (*float32, bool)

GetQuantityOk returns a tuple with the Quantity field value and a boolean to check if the value has been set.

func (*BandwidthRecord) GetReservationId

func (o *BandwidthRecord) GetReservationId() string

GetReservationId returns the ReservationId field value if set, zero value otherwise.

func (*BandwidthRecord) GetReservationIdOk

func (o *BandwidthRecord) GetReservationIdOk() (*string, bool)

GetReservationIdOk returns a tuple with the ReservationId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BandwidthRecord) GetStartDateTime

func (o *BandwidthRecord) GetStartDateTime() time.Time

GetStartDateTime returns the StartDateTime field value

func (*BandwidthRecord) GetStartDateTimeOk

func (o *BandwidthRecord) GetStartDateTimeOk() (*time.Time, bool)

GetStartDateTimeOk returns a tuple with the StartDateTime field value and a boolean to check if the value has been set.

func (*BandwidthRecord) GetUnitPrice

func (o *BandwidthRecord) GetUnitPrice() float32

GetUnitPrice returns the UnitPrice field value

func (*BandwidthRecord) GetUnitPriceDescription

func (o *BandwidthRecord) GetUnitPriceDescription() string

GetUnitPriceDescription returns the UnitPriceDescription field value

func (*BandwidthRecord) GetUnitPriceDescriptionOk

func (o *BandwidthRecord) GetUnitPriceDescriptionOk() (*string, bool)

GetUnitPriceDescriptionOk returns a tuple with the UnitPriceDescription field value and a boolean to check if the value has been set.

func (*BandwidthRecord) GetUnitPriceOk

func (o *BandwidthRecord) GetUnitPriceOk() (*float32, bool)

GetUnitPriceOk returns a tuple with the UnitPrice field value and a boolean to check if the value has been set.

func (*BandwidthRecord) GetUsageSessionId

func (o *BandwidthRecord) GetUsageSessionId() string

GetUsageSessionId returns the UsageSessionId field value

func (*BandwidthRecord) GetUsageSessionIdOk

func (o *BandwidthRecord) GetUsageSessionIdOk() (*string, bool)

GetUsageSessionIdOk returns a tuple with the UsageSessionId field value and a boolean to check if the value has been set.

func (*BandwidthRecord) GetYearMonth

func (o *BandwidthRecord) GetYearMonth() string

GetYearMonth returns the YearMonth field value if set, zero value otherwise.

func (*BandwidthRecord) GetYearMonthOk

func (o *BandwidthRecord) GetYearMonthOk() (*string, bool)

GetYearMonthOk returns a tuple with the YearMonth field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BandwidthRecord) HasCostBeforeDiscount

func (o *BandwidthRecord) HasCostBeforeDiscount() bool

HasCostBeforeDiscount returns a boolean if a field has been set.

func (*BandwidthRecord) HasCostDescription

func (o *BandwidthRecord) HasCostDescription() bool

HasCostDescription returns a boolean if a field has been set.

func (*BandwidthRecord) HasDiscountDetails

func (o *BandwidthRecord) HasDiscountDetails() bool

HasDiscountDetails returns a boolean if a field has been set.

func (*BandwidthRecord) HasReservationId

func (o *BandwidthRecord) HasReservationId() bool

HasReservationId returns a boolean if a field has been set.

func (*BandwidthRecord) HasYearMonth

func (o *BandwidthRecord) HasYearMonth() bool

HasYearMonth returns a boolean if a field has been set.

func (BandwidthRecord) MarshalJSON

func (o BandwidthRecord) MarshalJSON() ([]byte, error)

func (*BandwidthRecord) SetActive

func (o *BandwidthRecord) SetActive(v bool)

SetActive sets field value

func (*BandwidthRecord) SetCorrelationId

func (o *BandwidthRecord) SetCorrelationId(v string)

SetCorrelationId sets field value

func (*BandwidthRecord) SetCost

func (o *BandwidthRecord) SetCost(v int64)

SetCost sets field value

func (*BandwidthRecord) SetCostBeforeDiscount

func (o *BandwidthRecord) SetCostBeforeDiscount(v int64)

SetCostBeforeDiscount gets a reference to the given int64 and assigns it to the CostBeforeDiscount field.

func (*BandwidthRecord) SetCostDescription

func (o *BandwidthRecord) SetCostDescription(v string)

SetCostDescription gets a reference to the given string and assigns it to the CostDescription field.

func (*BandwidthRecord) SetDiscountDetails

func (o *BandwidthRecord) SetDiscountDetails(v DiscountDetails)

SetDiscountDetails gets a reference to the given DiscountDetails and assigns it to the DiscountDetails field.

func (*BandwidthRecord) SetEndDateTime

func (o *BandwidthRecord) SetEndDateTime(v time.Time)

SetEndDateTime sets field value

func (*BandwidthRecord) SetId

func (o *BandwidthRecord) SetId(v string)

SetId sets field value

func (*BandwidthRecord) SetLocation

func (o *BandwidthRecord) SetLocation(v LocationEnum)

SetLocation sets field value

func (*BandwidthRecord) SetMetadata

func (o *BandwidthRecord) SetMetadata(v BandwidthDetails)

SetMetadata sets field value

func (*BandwidthRecord) SetPriceModel

func (o *BandwidthRecord) SetPriceModel(v string)

SetPriceModel sets field value

func (*BandwidthRecord) SetProductCategory

func (o *BandwidthRecord) SetProductCategory(v string)

SetProductCategory sets field value

func (*BandwidthRecord) SetProductCode

func (o *BandwidthRecord) SetProductCode(v string)

SetProductCode sets field value

func (*BandwidthRecord) SetQuantity

func (o *BandwidthRecord) SetQuantity(v float32)

SetQuantity sets field value

func (*BandwidthRecord) SetReservationId

func (o *BandwidthRecord) SetReservationId(v string)

SetReservationId gets a reference to the given string and assigns it to the ReservationId field.

func (*BandwidthRecord) SetStartDateTime

func (o *BandwidthRecord) SetStartDateTime(v time.Time)

SetStartDateTime sets field value

func (*BandwidthRecord) SetUnitPrice

func (o *BandwidthRecord) SetUnitPrice(v float32)

SetUnitPrice sets field value

func (*BandwidthRecord) SetUnitPriceDescription

func (o *BandwidthRecord) SetUnitPriceDescription(v string)

SetUnitPriceDescription sets field value

func (*BandwidthRecord) SetUsageSessionId

func (o *BandwidthRecord) SetUsageSessionId(v string)

SetUsageSessionId sets field value

func (*BandwidthRecord) SetYearMonth

func (o *BandwidthRecord) SetYearMonth(v string)

SetYearMonth gets a reference to the given string and assigns it to the YearMonth field.

func (BandwidthRecord) ToMap

func (o BandwidthRecord) ToMap() (map[string]interface{}, error)

func (*BandwidthRecord) UnmarshalJSON

func (o *BandwidthRecord) UnmarshalJSON(data []byte) (err error)

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type BillingConfigurationsAPI

type BillingConfigurationsAPI interface {

	/*
		AccountBillingConfigurationMeGet Retrieves billing configuration associated with the authenticated account.

		Retrieves billing configuration associated with the authenticated account.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@return ApiAccountBillingConfigurationMeGetRequest
	*/
	AccountBillingConfigurationMeGet(ctx context.Context) ApiAccountBillingConfigurationMeGetRequest

	// AccountBillingConfigurationMeGetExecute executes the request
	//  @return ConfigurationDetails
	AccountBillingConfigurationMeGetExecute(r ApiAccountBillingConfigurationMeGetRequest) (*ConfigurationDetails, *http.Response, error)
}

type BillingConfigurationsAPIService

type BillingConfigurationsAPIService service

BillingConfigurationsAPIService BillingConfigurationsAPI service

func (*BillingConfigurationsAPIService) AccountBillingConfigurationMeGet

AccountBillingConfigurationMeGet Retrieves billing configuration associated with the authenticated account.

Retrieves billing configuration associated with the authenticated account.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAccountBillingConfigurationMeGetRequest

func (*BillingConfigurationsAPIService) AccountBillingConfigurationMeGetExecute

Execute executes the request

@return ConfigurationDetails

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	XPoweredBy       string            `json:"xPoweredBy,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type ConfigurationDetails

type ConfigurationDetails struct {
	ThresholdConfiguration *ThresholdConfigurationDetails `json:"thresholdConfiguration,omitempty"`
	AdditionalProperties   map[string]interface{}
}

ConfigurationDetails Billing configuration details.

func NewConfigurationDetails

func NewConfigurationDetails() *ConfigurationDetails

NewConfigurationDetails instantiates a new ConfigurationDetails object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewConfigurationDetailsWithDefaults

func NewConfigurationDetailsWithDefaults() *ConfigurationDetails

NewConfigurationDetailsWithDefaults instantiates a new ConfigurationDetails object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ConfigurationDetails) GetThresholdConfiguration

func (o *ConfigurationDetails) GetThresholdConfiguration() ThresholdConfigurationDetails

GetThresholdConfiguration returns the ThresholdConfiguration field value if set, zero value otherwise.

func (*ConfigurationDetails) GetThresholdConfigurationOk

func (o *ConfigurationDetails) GetThresholdConfigurationOk() (*ThresholdConfigurationDetails, bool)

GetThresholdConfigurationOk returns a tuple with the ThresholdConfiguration field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ConfigurationDetails) HasThresholdConfiguration

func (o *ConfigurationDetails) HasThresholdConfiguration() bool

HasThresholdConfiguration returns a boolean if a field has been set.

func (ConfigurationDetails) MarshalJSON

func (o ConfigurationDetails) MarshalJSON() ([]byte, error)

func (*ConfigurationDetails) SetThresholdConfiguration

func (o *ConfigurationDetails) SetThresholdConfiguration(v ThresholdConfigurationDetails)

SetThresholdConfiguration gets a reference to the given ThresholdConfigurationDetails and assigns it to the ThresholdConfiguration field.

func (ConfigurationDetails) ToMap

func (o ConfigurationDetails) ToMap() (map[string]interface{}, error)

func (*ConfigurationDetails) UnmarshalJSON

func (o *ConfigurationDetails) UnmarshalJSON(data []byte) (err error)

type DiscountDetails

type DiscountDetails struct {
	// A unique code associated with the discount.
	Code string `json:"code"`
	// The type of discount applied.
	Type string `json:"type"`
	// The value or amount of the discount. The interpretation of this value depends on the 'type' of discount.
	Value                float32 `json:"value"`
	AdditionalProperties map[string]interface{}
}

DiscountDetails Represents the details of a discount applied to a product or charge.

func NewDiscountDetails

func NewDiscountDetails(code string, type_ string, value float32) *DiscountDetails

NewDiscountDetails instantiates a new DiscountDetails object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDiscountDetailsWithDefaults

func NewDiscountDetailsWithDefaults() *DiscountDetails

NewDiscountDetailsWithDefaults instantiates a new DiscountDetails object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*DiscountDetails) GetCode

func (o *DiscountDetails) GetCode() string

GetCode returns the Code field value

func (*DiscountDetails) GetCodeOk

func (o *DiscountDetails) GetCodeOk() (*string, bool)

GetCodeOk returns a tuple with the Code field value and a boolean to check if the value has been set.

func (*DiscountDetails) GetType

func (o *DiscountDetails) GetType() string

GetType returns the Type field value

func (*DiscountDetails) GetTypeOk

func (o *DiscountDetails) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*DiscountDetails) GetValue

func (o *DiscountDetails) GetValue() float32

GetValue returns the Value field value

func (*DiscountDetails) GetValueOk

func (o *DiscountDetails) GetValueOk() (*float32, bool)

GetValueOk returns a tuple with the Value field value and a boolean to check if the value has been set.

func (DiscountDetails) MarshalJSON

func (o DiscountDetails) MarshalJSON() ([]byte, error)

func (*DiscountDetails) SetCode

func (o *DiscountDetails) SetCode(v string)

SetCode sets field value

func (*DiscountDetails) SetType

func (o *DiscountDetails) SetType(v string)

SetType sets field value

func (*DiscountDetails) SetValue

func (o *DiscountDetails) SetValue(v float32)

SetValue sets field value

func (DiscountDetails) ToMap

func (o DiscountDetails) ToMap() (map[string]interface{}, error)

func (*DiscountDetails) UnmarshalJSON

func (o *DiscountDetails) UnmarshalJSON(data []byte) (err error)

type Error

type Error struct {
	// The description detailing the cause of the error code.
	Message string `json:"message"`
	// Validation errors, if any.
	ValidationErrors     []string `json:"validationErrors,omitempty"`
	AdditionalProperties map[string]interface{}
}

Error struct for Error

func NewError

func NewError(message string) *Error

NewError instantiates a new Error object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewErrorWithDefaults

func NewErrorWithDefaults() *Error

NewErrorWithDefaults instantiates a new Error object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Error) GetMessage

func (o *Error) GetMessage() string

GetMessage returns the Message field value

func (*Error) GetMessageOk

func (o *Error) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.

func (*Error) GetValidationErrors

func (o *Error) GetValidationErrors() []string

GetValidationErrors returns the ValidationErrors field value if set, zero value otherwise.

func (*Error) GetValidationErrorsOk

func (o *Error) GetValidationErrorsOk() ([]string, bool)

GetValidationErrorsOk returns a tuple with the ValidationErrors field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Error) HasValidationErrors

func (o *Error) HasValidationErrors() bool

HasValidationErrors returns a boolean if a field has been set.

func (Error) MarshalJSON

func (o Error) MarshalJSON() ([]byte, error)

func (*Error) SetMessage

func (o *Error) SetMessage(v string)

SetMessage sets field value

func (*Error) SetValidationErrors

func (o *Error) SetValidationErrors(v []string)

SetValidationErrors gets a reference to the given []string and assigns it to the ValidationErrors field.

func (Error) ToMap

func (o Error) ToMap() (map[string]interface{}, error)

func (*Error) UnmarshalJSON

func (o *Error) UnmarshalJSON(data []byte) (err error)

type GenericOpenAPIError

type GenericOpenAPIError struct {
	// contains filtered or unexported fields
}

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type LocationAvailabilityDetail

type LocationAvailabilityDetail struct {
	Location LocationEnum `json:"location"`
	// Requested quantity.
	MinQuantityRequested float32 `json:"minQuantityRequested"`
	// Is product available in specific location for requested quantity
	MinQuantityAvailable bool `json:"minQuantityAvailable"`
	// Total available quantity of product in specific location. Max value is 10.
	AvailableQuantity float32 `json:"availableQuantity"`
	// Solutions supported in specific location for a product.
	Solutions            []string `json:"solutions"`
	AdditionalProperties map[string]interface{}
}

LocationAvailabilityDetail Info about location, solutions and availability for a product.

func NewLocationAvailabilityDetail

func NewLocationAvailabilityDetail(location LocationEnum, minQuantityRequested float32, minQuantityAvailable bool, availableQuantity float32, solutions []string) *LocationAvailabilityDetail

NewLocationAvailabilityDetail instantiates a new LocationAvailabilityDetail object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewLocationAvailabilityDetailWithDefaults

func NewLocationAvailabilityDetailWithDefaults() *LocationAvailabilityDetail

NewLocationAvailabilityDetailWithDefaults instantiates a new LocationAvailabilityDetail object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*LocationAvailabilityDetail) GetAvailableQuantity

func (o *LocationAvailabilityDetail) GetAvailableQuantity() float32

GetAvailableQuantity returns the AvailableQuantity field value

func (*LocationAvailabilityDetail) GetAvailableQuantityOk

func (o *LocationAvailabilityDetail) GetAvailableQuantityOk() (*float32, bool)

GetAvailableQuantityOk returns a tuple with the AvailableQuantity field value and a boolean to check if the value has been set.

func (*LocationAvailabilityDetail) GetLocation

func (o *LocationAvailabilityDetail) GetLocation() LocationEnum

GetLocation returns the Location field value

func (*LocationAvailabilityDetail) GetLocationOk

func (o *LocationAvailabilityDetail) GetLocationOk() (*LocationEnum, bool)

GetLocationOk returns a tuple with the Location field value and a boolean to check if the value has been set.

func (*LocationAvailabilityDetail) GetMinQuantityAvailable

func (o *LocationAvailabilityDetail) GetMinQuantityAvailable() bool

GetMinQuantityAvailable returns the MinQuantityAvailable field value

func (*LocationAvailabilityDetail) GetMinQuantityAvailableOk

func (o *LocationAvailabilityDetail) GetMinQuantityAvailableOk() (*bool, bool)

GetMinQuantityAvailableOk returns a tuple with the MinQuantityAvailable field value and a boolean to check if the value has been set.

func (*LocationAvailabilityDetail) GetMinQuantityRequested

func (o *LocationAvailabilityDetail) GetMinQuantityRequested() float32

GetMinQuantityRequested returns the MinQuantityRequested field value

func (*LocationAvailabilityDetail) GetMinQuantityRequestedOk

func (o *LocationAvailabilityDetail) GetMinQuantityRequestedOk() (*float32, bool)

GetMinQuantityRequestedOk returns a tuple with the MinQuantityRequested field value and a boolean to check if the value has been set.

func (*LocationAvailabilityDetail) GetSolutions

func (o *LocationAvailabilityDetail) GetSolutions() []string

GetSolutions returns the Solutions field value

func (*LocationAvailabilityDetail) GetSolutionsOk

func (o *LocationAvailabilityDetail) GetSolutionsOk() ([]string, bool)

GetSolutionsOk returns a tuple with the Solutions field value and a boolean to check if the value has been set.

func (LocationAvailabilityDetail) MarshalJSON

func (o LocationAvailabilityDetail) MarshalJSON() ([]byte, error)

func (*LocationAvailabilityDetail) SetAvailableQuantity

func (o *LocationAvailabilityDetail) SetAvailableQuantity(v float32)

SetAvailableQuantity sets field value

func (*LocationAvailabilityDetail) SetLocation

func (o *LocationAvailabilityDetail) SetLocation(v LocationEnum)

SetLocation sets field value

func (*LocationAvailabilityDetail) SetMinQuantityAvailable

func (o *LocationAvailabilityDetail) SetMinQuantityAvailable(v bool)

SetMinQuantityAvailable sets field value

func (*LocationAvailabilityDetail) SetMinQuantityRequested

func (o *LocationAvailabilityDetail) SetMinQuantityRequested(v float32)

SetMinQuantityRequested sets field value

func (*LocationAvailabilityDetail) SetSolutions

func (o *LocationAvailabilityDetail) SetSolutions(v []string)

SetSolutions sets field value

func (LocationAvailabilityDetail) ToMap

func (o LocationAvailabilityDetail) ToMap() (map[string]interface{}, error)

func (*LocationAvailabilityDetail) UnmarshalJSON

func (o *LocationAvailabilityDetail) UnmarshalJSON(data []byte) (err error)

type LocationEnum

type LocationEnum string

LocationEnum The location code.

const (
	LOCATIONENUM_PHX LocationEnum = "PHX"
	LOCATIONENUM_ASH LocationEnum = "ASH"
	LOCATIONENUM_NLD LocationEnum = "NLD"
	LOCATIONENUM_SGP LocationEnum = "SGP"
	LOCATIONENUM_CHI LocationEnum = "CHI"
	LOCATIONENUM_SEA LocationEnum = "SEA"
	LOCATIONENUM_AUS LocationEnum = "AUS"
)

List of LocationEnum

func NewLocationEnumFromValue

func NewLocationEnumFromValue(v string) (*LocationEnum, error)

NewLocationEnumFromValue returns a pointer to a valid LocationEnum for the value passed as argument, or an error if the value passed is not allowed by the enum

func (LocationEnum) IsValid

func (v LocationEnum) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (LocationEnum) Ptr

func (v LocationEnum) Ptr() *LocationEnum

Ptr returns reference to LocationEnum value

func (*LocationEnum) UnmarshalJSON

func (v *LocationEnum) UnmarshalJSON(src []byte) error

type MappedNullable

type MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

type NullableApplicableDiscounts

type NullableApplicableDiscounts struct {
	// contains filtered or unexported fields
}

func NewNullableApplicableDiscounts

func NewNullableApplicableDiscounts(val *ApplicableDiscounts) *NullableApplicableDiscounts

func (NullableApplicableDiscounts) Get

func (NullableApplicableDiscounts) IsSet

func (NullableApplicableDiscounts) MarshalJSON

func (v NullableApplicableDiscounts) MarshalJSON() ([]byte, error)

func (*NullableApplicableDiscounts) Set

func (*NullableApplicableDiscounts) UnmarshalJSON

func (v *NullableApplicableDiscounts) UnmarshalJSON(src []byte) error

func (*NullableApplicableDiscounts) Unset

func (v *NullableApplicableDiscounts) Unset()

type NullableBandwidthDetails

type NullableBandwidthDetails struct {
	// contains filtered or unexported fields
}

func NewNullableBandwidthDetails

func NewNullableBandwidthDetails(val *BandwidthDetails) *NullableBandwidthDetails

func (NullableBandwidthDetails) Get

func (NullableBandwidthDetails) IsSet

func (v NullableBandwidthDetails) IsSet() bool

func (NullableBandwidthDetails) MarshalJSON

func (v NullableBandwidthDetails) MarshalJSON() ([]byte, error)

func (*NullableBandwidthDetails) Set

func (*NullableBandwidthDetails) UnmarshalJSON

func (v *NullableBandwidthDetails) UnmarshalJSON(src []byte) error

func (*NullableBandwidthDetails) Unset

func (v *NullableBandwidthDetails) Unset()

type NullableBandwidthRecord

type NullableBandwidthRecord struct {
	// contains filtered or unexported fields
}

func NewNullableBandwidthRecord

func NewNullableBandwidthRecord(val *BandwidthRecord) *NullableBandwidthRecord

func (NullableBandwidthRecord) Get

func (NullableBandwidthRecord) IsSet

func (v NullableBandwidthRecord) IsSet() bool

func (NullableBandwidthRecord) MarshalJSON

func (v NullableBandwidthRecord) MarshalJSON() ([]byte, error)

func (*NullableBandwidthRecord) Set

func (*NullableBandwidthRecord) UnmarshalJSON

func (v *NullableBandwidthRecord) UnmarshalJSON(src []byte) error

func (*NullableBandwidthRecord) Unset

func (v *NullableBandwidthRecord) Unset()

type NullableBool

type NullableBool struct {
	// contains filtered or unexported fields
}

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableConfigurationDetails

type NullableConfigurationDetails struct {
	// contains filtered or unexported fields
}

func NewNullableConfigurationDetails

func NewNullableConfigurationDetails(val *ConfigurationDetails) *NullableConfigurationDetails

func (NullableConfigurationDetails) Get

func (NullableConfigurationDetails) IsSet

func (NullableConfigurationDetails) MarshalJSON

func (v NullableConfigurationDetails) MarshalJSON() ([]byte, error)

func (*NullableConfigurationDetails) Set

func (*NullableConfigurationDetails) UnmarshalJSON

func (v *NullableConfigurationDetails) UnmarshalJSON(src []byte) error

func (*NullableConfigurationDetails) Unset

func (v *NullableConfigurationDetails) Unset()

type NullableDiscountDetails

type NullableDiscountDetails struct {
	// contains filtered or unexported fields
}

func NewNullableDiscountDetails

func NewNullableDiscountDetails(val *DiscountDetails) *NullableDiscountDetails

func (NullableDiscountDetails) Get

func (NullableDiscountDetails) IsSet

func (v NullableDiscountDetails) IsSet() bool

func (NullableDiscountDetails) MarshalJSON

func (v NullableDiscountDetails) MarshalJSON() ([]byte, error)

func (*NullableDiscountDetails) Set

func (*NullableDiscountDetails) UnmarshalJSON

func (v *NullableDiscountDetails) UnmarshalJSON(src []byte) error

func (*NullableDiscountDetails) Unset

func (v *NullableDiscountDetails) Unset()

type NullableError

type NullableError struct {
	// contains filtered or unexported fields
}

func NewNullableError

func NewNullableError(val *Error) *NullableError

func (NullableError) Get

func (v NullableError) Get() *Error

func (NullableError) IsSet

func (v NullableError) IsSet() bool

func (NullableError) MarshalJSON

func (v NullableError) MarshalJSON() ([]byte, error)

func (*NullableError) Set

func (v *NullableError) Set(val *Error)

func (*NullableError) UnmarshalJSON

func (v *NullableError) UnmarshalJSON(src []byte) error

func (*NullableError) Unset

func (v *NullableError) Unset()

type NullableFloat32

type NullableFloat32 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

type NullableFloat64 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableInt

type NullableInt struct {
	// contains filtered or unexported fields
}

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

type NullableInt32 struct {
	// contains filtered or unexported fields
}

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

type NullableInt64 struct {
	// contains filtered or unexported fields
}

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableLocationAvailabilityDetail

type NullableLocationAvailabilityDetail struct {
	// contains filtered or unexported fields
}

func (NullableLocationAvailabilityDetail) Get

func (NullableLocationAvailabilityDetail) IsSet

func (NullableLocationAvailabilityDetail) MarshalJSON

func (v NullableLocationAvailabilityDetail) MarshalJSON() ([]byte, error)

func (*NullableLocationAvailabilityDetail) Set

func (*NullableLocationAvailabilityDetail) UnmarshalJSON

func (v *NullableLocationAvailabilityDetail) UnmarshalJSON(src []byte) error

func (*NullableLocationAvailabilityDetail) Unset

type NullableLocationEnum

type NullableLocationEnum struct {
	// contains filtered or unexported fields
}

func NewNullableLocationEnum

func NewNullableLocationEnum(val *LocationEnum) *NullableLocationEnum

func (NullableLocationEnum) Get

func (NullableLocationEnum) IsSet

func (v NullableLocationEnum) IsSet() bool

func (NullableLocationEnum) MarshalJSON

func (v NullableLocationEnum) MarshalJSON() ([]byte, error)

func (*NullableLocationEnum) Set

func (v *NullableLocationEnum) Set(val *LocationEnum)

func (*NullableLocationEnum) UnmarshalJSON

func (v *NullableLocationEnum) UnmarshalJSON(src []byte) error

func (*NullableLocationEnum) Unset

func (v *NullableLocationEnum) Unset()

type NullableOperatingSystemDetails

type NullableOperatingSystemDetails struct {
	// contains filtered or unexported fields
}

func (NullableOperatingSystemDetails) Get

func (NullableOperatingSystemDetails) IsSet

func (NullableOperatingSystemDetails) MarshalJSON

func (v NullableOperatingSystemDetails) MarshalJSON() ([]byte, error)

func (*NullableOperatingSystemDetails) Set

func (*NullableOperatingSystemDetails) UnmarshalJSON

func (v *NullableOperatingSystemDetails) UnmarshalJSON(src []byte) error

func (*NullableOperatingSystemDetails) Unset

func (v *NullableOperatingSystemDetails) Unset()

type NullableOperatingSystemRecord

type NullableOperatingSystemRecord struct {
	// contains filtered or unexported fields
}

func (NullableOperatingSystemRecord) Get

func (NullableOperatingSystemRecord) IsSet

func (NullableOperatingSystemRecord) MarshalJSON

func (v NullableOperatingSystemRecord) MarshalJSON() ([]byte, error)

func (*NullableOperatingSystemRecord) Set

func (*NullableOperatingSystemRecord) UnmarshalJSON

func (v *NullableOperatingSystemRecord) UnmarshalJSON(src []byte) error

func (*NullableOperatingSystemRecord) Unset

func (v *NullableOperatingSystemRecord) Unset()

type NullablePackageUnitEnum

type NullablePackageUnitEnum struct {
	// contains filtered or unexported fields
}

func NewNullablePackageUnitEnum

func NewNullablePackageUnitEnum(val *PackageUnitEnum) *NullablePackageUnitEnum

func (NullablePackageUnitEnum) Get

func (NullablePackageUnitEnum) IsSet

func (v NullablePackageUnitEnum) IsSet() bool

func (NullablePackageUnitEnum) MarshalJSON

func (v NullablePackageUnitEnum) MarshalJSON() ([]byte, error)

func (*NullablePackageUnitEnum) Set

func (*NullablePackageUnitEnum) UnmarshalJSON

func (v *NullablePackageUnitEnum) UnmarshalJSON(src []byte) error

func (*NullablePackageUnitEnum) Unset

func (v *NullablePackageUnitEnum) Unset()

type NullablePriceUnitEnum

type NullablePriceUnitEnum struct {
	// contains filtered or unexported fields
}

func NewNullablePriceUnitEnum

func NewNullablePriceUnitEnum(val *PriceUnitEnum) *NullablePriceUnitEnum

func (NullablePriceUnitEnum) Get

func (NullablePriceUnitEnum) IsSet

func (v NullablePriceUnitEnum) IsSet() bool

func (NullablePriceUnitEnum) MarshalJSON

func (v NullablePriceUnitEnum) MarshalJSON() ([]byte, error)

func (*NullablePriceUnitEnum) Set

func (v *NullablePriceUnitEnum) Set(val *PriceUnitEnum)

func (*NullablePriceUnitEnum) UnmarshalJSON

func (v *NullablePriceUnitEnum) UnmarshalJSON(src []byte) error

func (*NullablePriceUnitEnum) Unset

func (v *NullablePriceUnitEnum) Unset()

type NullablePricingPlan

type NullablePricingPlan struct {
	// contains filtered or unexported fields
}

func NewNullablePricingPlan

func NewNullablePricingPlan(val *PricingPlan) *NullablePricingPlan

func (NullablePricingPlan) Get

func (NullablePricingPlan) IsSet

func (v NullablePricingPlan) IsSet() bool

func (NullablePricingPlan) MarshalJSON

func (v NullablePricingPlan) MarshalJSON() ([]byte, error)

func (*NullablePricingPlan) Set

func (v *NullablePricingPlan) Set(val *PricingPlan)

func (*NullablePricingPlan) UnmarshalJSON

func (v *NullablePricingPlan) UnmarshalJSON(src []byte) error

func (*NullablePricingPlan) Unset

func (v *NullablePricingPlan) Unset()

type NullableProduct

type NullableProduct struct {
	// contains filtered or unexported fields
}

func NewNullableProduct

func NewNullableProduct(val *Product) *NullableProduct

func (NullableProduct) Get

func (v NullableProduct) Get() *Product

func (NullableProduct) IsSet

func (v NullableProduct) IsSet() bool

func (NullableProduct) MarshalJSON

func (v NullableProduct) MarshalJSON() ([]byte, error)

func (*NullableProduct) Set

func (v *NullableProduct) Set(val *Product)

func (*NullableProduct) UnmarshalJSON

func (v *NullableProduct) UnmarshalJSON(src []byte) error

func (*NullableProduct) Unset

func (v *NullableProduct) Unset()

type NullableProductAvailability

type NullableProductAvailability struct {
	// contains filtered or unexported fields
}

func NewNullableProductAvailability

func NewNullableProductAvailability(val *ProductAvailability) *NullableProductAvailability

func (NullableProductAvailability) Get

func (NullableProductAvailability) IsSet

func (NullableProductAvailability) MarshalJSON

func (v NullableProductAvailability) MarshalJSON() ([]byte, error)

func (*NullableProductAvailability) Set

func (*NullableProductAvailability) UnmarshalJSON

func (v *NullableProductAvailability) UnmarshalJSON(src []byte) error

func (*NullableProductAvailability) Unset

func (v *NullableProductAvailability) Unset()

type NullableProductCategoryEnum

type NullableProductCategoryEnum struct {
	// contains filtered or unexported fields
}

func NewNullableProductCategoryEnum

func NewNullableProductCategoryEnum(val *ProductCategoryEnum) *NullableProductCategoryEnum

func (NullableProductCategoryEnum) Get

func (NullableProductCategoryEnum) IsSet

func (NullableProductCategoryEnum) MarshalJSON

func (v NullableProductCategoryEnum) MarshalJSON() ([]byte, error)

func (*NullableProductCategoryEnum) Set

func (*NullableProductCategoryEnum) UnmarshalJSON

func (v *NullableProductCategoryEnum) UnmarshalJSON(src []byte) error

func (*NullableProductCategoryEnum) Unset

func (v *NullableProductCategoryEnum) Unset()

type NullableProductsGet200ResponseInner

type NullableProductsGet200ResponseInner struct {
	// contains filtered or unexported fields
}

func (NullableProductsGet200ResponseInner) Get

func (NullableProductsGet200ResponseInner) IsSet

func (NullableProductsGet200ResponseInner) MarshalJSON

func (v NullableProductsGet200ResponseInner) MarshalJSON() ([]byte, error)

func (*NullableProductsGet200ResponseInner) Set

func (*NullableProductsGet200ResponseInner) UnmarshalJSON

func (v *NullableProductsGet200ResponseInner) UnmarshalJSON(src []byte) error

func (*NullableProductsGet200ResponseInner) Unset

type NullablePublicSubnetDetails

type NullablePublicSubnetDetails struct {
	// contains filtered or unexported fields
}

func NewNullablePublicSubnetDetails

func NewNullablePublicSubnetDetails(val *PublicSubnetDetails) *NullablePublicSubnetDetails

func (NullablePublicSubnetDetails) Get

func (NullablePublicSubnetDetails) IsSet

func (NullablePublicSubnetDetails) MarshalJSON

func (v NullablePublicSubnetDetails) MarshalJSON() ([]byte, error)

func (*NullablePublicSubnetDetails) Set

func (*NullablePublicSubnetDetails) UnmarshalJSON

func (v *NullablePublicSubnetDetails) UnmarshalJSON(src []byte) error

func (*NullablePublicSubnetDetails) Unset

func (v *NullablePublicSubnetDetails) Unset()

type NullablePublicSubnetRecord

type NullablePublicSubnetRecord struct {
	// contains filtered or unexported fields
}

func NewNullablePublicSubnetRecord

func NewNullablePublicSubnetRecord(val *PublicSubnetRecord) *NullablePublicSubnetRecord

func (NullablePublicSubnetRecord) Get

func (NullablePublicSubnetRecord) IsSet

func (v NullablePublicSubnetRecord) IsSet() bool

func (NullablePublicSubnetRecord) MarshalJSON

func (v NullablePublicSubnetRecord) MarshalJSON() ([]byte, error)

func (*NullablePublicSubnetRecord) Set

func (*NullablePublicSubnetRecord) UnmarshalJSON

func (v *NullablePublicSubnetRecord) UnmarshalJSON(src []byte) error

func (*NullablePublicSubnetRecord) Unset

func (v *NullablePublicSubnetRecord) Unset()

type NullableRatedUsageGet200ResponseInner

type NullableRatedUsageGet200ResponseInner struct {
	// contains filtered or unexported fields
}

func (NullableRatedUsageGet200ResponseInner) Get

func (NullableRatedUsageGet200ResponseInner) IsSet

func (NullableRatedUsageGet200ResponseInner) MarshalJSON

func (v NullableRatedUsageGet200ResponseInner) MarshalJSON() ([]byte, error)

func (*NullableRatedUsageGet200ResponseInner) Set

func (*NullableRatedUsageGet200ResponseInner) UnmarshalJSON

func (v *NullableRatedUsageGet200ResponseInner) UnmarshalJSON(src []byte) error

func (*NullableRatedUsageGet200ResponseInner) Unset

type NullableRatedUsageRecord

type NullableRatedUsageRecord struct {
	// contains filtered or unexported fields
}

func NewNullableRatedUsageRecord

func NewNullableRatedUsageRecord(val *RatedUsageRecord) *NullableRatedUsageRecord

func (NullableRatedUsageRecord) Get

func (NullableRatedUsageRecord) IsSet

func (v NullableRatedUsageRecord) IsSet() bool

func (NullableRatedUsageRecord) MarshalJSON

func (v NullableRatedUsageRecord) MarshalJSON() ([]byte, error)

func (*NullableRatedUsageRecord) Set

func (*NullableRatedUsageRecord) UnmarshalJSON

func (v *NullableRatedUsageRecord) UnmarshalJSON(src []byte) error

func (*NullableRatedUsageRecord) Unset

func (v *NullableRatedUsageRecord) Unset()

type NullableReservation

type NullableReservation struct {
	// contains filtered or unexported fields
}

func NewNullableReservation

func NewNullableReservation(val *Reservation) *NullableReservation

func (NullableReservation) Get

func (NullableReservation) IsSet

func (v NullableReservation) IsSet() bool

func (NullableReservation) MarshalJSON

func (v NullableReservation) MarshalJSON() ([]byte, error)

func (*NullableReservation) Set

func (v *NullableReservation) Set(val *Reservation)

func (*NullableReservation) UnmarshalJSON

func (v *NullableReservation) UnmarshalJSON(src []byte) error

func (*NullableReservation) Unset

func (v *NullableReservation) Unset()

type NullableReservationAutoRenewDisableRequest

type NullableReservationAutoRenewDisableRequest struct {
	// contains filtered or unexported fields
}

func (NullableReservationAutoRenewDisableRequest) Get

func (NullableReservationAutoRenewDisableRequest) IsSet

func (NullableReservationAutoRenewDisableRequest) MarshalJSON

func (*NullableReservationAutoRenewDisableRequest) Set

func (*NullableReservationAutoRenewDisableRequest) UnmarshalJSON

func (v *NullableReservationAutoRenewDisableRequest) UnmarshalJSON(src []byte) error

func (*NullableReservationAutoRenewDisableRequest) Unset

type NullableReservationInvoicingModelEnum

type NullableReservationInvoicingModelEnum struct {
	// contains filtered or unexported fields
}

func (NullableReservationInvoicingModelEnum) Get

func (NullableReservationInvoicingModelEnum) IsSet

func (NullableReservationInvoicingModelEnum) MarshalJSON

func (v NullableReservationInvoicingModelEnum) MarshalJSON() ([]byte, error)

func (*NullableReservationInvoicingModelEnum) Set

func (*NullableReservationInvoicingModelEnum) UnmarshalJSON

func (v *NullableReservationInvoicingModelEnum) UnmarshalJSON(src []byte) error

func (*NullableReservationInvoicingModelEnum) Unset

type NullableReservationModelEnum

type NullableReservationModelEnum struct {
	// contains filtered or unexported fields
}

func NewNullableReservationModelEnum

func NewNullableReservationModelEnum(val *ReservationModelEnum) *NullableReservationModelEnum

func (NullableReservationModelEnum) Get

func (NullableReservationModelEnum) IsSet

func (NullableReservationModelEnum) MarshalJSON

func (v NullableReservationModelEnum) MarshalJSON() ([]byte, error)

func (*NullableReservationModelEnum) Set

func (*NullableReservationModelEnum) UnmarshalJSON

func (v *NullableReservationModelEnum) UnmarshalJSON(src []byte) error

func (*NullableReservationModelEnum) Unset

func (v *NullableReservationModelEnum) Unset()

type NullableReservationProductCategoryEnum

type NullableReservationProductCategoryEnum struct {
	// contains filtered or unexported fields
}

func (NullableReservationProductCategoryEnum) Get

func (NullableReservationProductCategoryEnum) IsSet

func (NullableReservationProductCategoryEnum) MarshalJSON

func (v NullableReservationProductCategoryEnum) MarshalJSON() ([]byte, error)

func (*NullableReservationProductCategoryEnum) Set

func (*NullableReservationProductCategoryEnum) UnmarshalJSON

func (v *NullableReservationProductCategoryEnum) UnmarshalJSON(src []byte) error

func (*NullableReservationProductCategoryEnum) Unset

type NullableReservationRequest

type NullableReservationRequest struct {
	// contains filtered or unexported fields
}

func NewNullableReservationRequest

func NewNullableReservationRequest(val *ReservationRequest) *NullableReservationRequest

func (NullableReservationRequest) Get

func (NullableReservationRequest) IsSet

func (v NullableReservationRequest) IsSet() bool

func (NullableReservationRequest) MarshalJSON

func (v NullableReservationRequest) MarshalJSON() ([]byte, error)

func (*NullableReservationRequest) Set

func (*NullableReservationRequest) UnmarshalJSON

func (v *NullableReservationRequest) UnmarshalJSON(src []byte) error

func (*NullableReservationRequest) Unset

func (v *NullableReservationRequest) Unset()

type NullableServerDetails

type NullableServerDetails struct {
	// contains filtered or unexported fields
}

func NewNullableServerDetails

func NewNullableServerDetails(val *ServerDetails) *NullableServerDetails

func (NullableServerDetails) Get

func (NullableServerDetails) IsSet

func (v NullableServerDetails) IsSet() bool

func (NullableServerDetails) MarshalJSON

func (v NullableServerDetails) MarshalJSON() ([]byte, error)

func (*NullableServerDetails) Set

func (v *NullableServerDetails) Set(val *ServerDetails)

func (*NullableServerDetails) UnmarshalJSON

func (v *NullableServerDetails) UnmarshalJSON(src []byte) error

func (*NullableServerDetails) Unset

func (v *NullableServerDetails) Unset()

type NullableServerProduct

type NullableServerProduct struct {
	// contains filtered or unexported fields
}

func NewNullableServerProduct

func NewNullableServerProduct(val *ServerProduct) *NullableServerProduct

func (NullableServerProduct) Get

func (NullableServerProduct) IsSet

func (v NullableServerProduct) IsSet() bool

func (NullableServerProduct) MarshalJSON

func (v NullableServerProduct) MarshalJSON() ([]byte, error)

func (*NullableServerProduct) Set

func (v *NullableServerProduct) Set(val *ServerProduct)

func (*NullableServerProduct) UnmarshalJSON

func (v *NullableServerProduct) UnmarshalJSON(src []byte) error

func (*NullableServerProduct) Unset

func (v *NullableServerProduct) Unset()

type NullableServerProductMetadata

type NullableServerProductMetadata struct {
	// contains filtered or unexported fields
}

func (NullableServerProductMetadata) Get

func (NullableServerProductMetadata) IsSet

func (NullableServerProductMetadata) MarshalJSON

func (v NullableServerProductMetadata) MarshalJSON() ([]byte, error)

func (*NullableServerProductMetadata) Set

func (*NullableServerProductMetadata) UnmarshalJSON

func (v *NullableServerProductMetadata) UnmarshalJSON(src []byte) error

func (*NullableServerProductMetadata) Unset

func (v *NullableServerProductMetadata) Unset()

type NullableServerRecord

type NullableServerRecord struct {
	// contains filtered or unexported fields
}

func NewNullableServerRecord

func NewNullableServerRecord(val *ServerRecord) *NullableServerRecord

func (NullableServerRecord) Get

func (NullableServerRecord) IsSet

func (v NullableServerRecord) IsSet() bool

func (NullableServerRecord) MarshalJSON

func (v NullableServerRecord) MarshalJSON() ([]byte, error)

func (*NullableServerRecord) Set

func (v *NullableServerRecord) Set(val *ServerRecord)

func (*NullableServerRecord) UnmarshalJSON

func (v *NullableServerRecord) UnmarshalJSON(src []byte) error

func (*NullableServerRecord) Unset

func (v *NullableServerRecord) Unset()

type NullableStorageDetails

type NullableStorageDetails struct {
	// contains filtered or unexported fields
}

func NewNullableStorageDetails

func NewNullableStorageDetails(val *StorageDetails) *NullableStorageDetails

func (NullableStorageDetails) Get

func (NullableStorageDetails) IsSet

func (v NullableStorageDetails) IsSet() bool

func (NullableStorageDetails) MarshalJSON

func (v NullableStorageDetails) MarshalJSON() ([]byte, error)

func (*NullableStorageDetails) Set

func (*NullableStorageDetails) UnmarshalJSON

func (v *NullableStorageDetails) UnmarshalJSON(src []byte) error

func (*NullableStorageDetails) Unset

func (v *NullableStorageDetails) Unset()

type NullableStorageRecord

type NullableStorageRecord struct {
	// contains filtered or unexported fields
}

func NewNullableStorageRecord

func NewNullableStorageRecord(val *StorageRecord) *NullableStorageRecord

func (NullableStorageRecord) Get

func (NullableStorageRecord) IsSet

func (v NullableStorageRecord) IsSet() bool

func (NullableStorageRecord) MarshalJSON

func (v NullableStorageRecord) MarshalJSON() ([]byte, error)

func (*NullableStorageRecord) Set

func (v *NullableStorageRecord) Set(val *StorageRecord)

func (*NullableStorageRecord) UnmarshalJSON

func (v *NullableStorageRecord) UnmarshalJSON(src []byte) error

func (*NullableStorageRecord) Unset

func (v *NullableStorageRecord) Unset()

type NullableString

type NullableString struct {
	// contains filtered or unexported fields
}

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableThresholdConfigurationDetails

type NullableThresholdConfigurationDetails struct {
	// contains filtered or unexported fields
}

func (NullableThresholdConfigurationDetails) Get

func (NullableThresholdConfigurationDetails) IsSet

func (NullableThresholdConfigurationDetails) MarshalJSON

func (v NullableThresholdConfigurationDetails) MarshalJSON() ([]byte, error)

func (*NullableThresholdConfigurationDetails) Set

func (*NullableThresholdConfigurationDetails) UnmarshalJSON

func (v *NullableThresholdConfigurationDetails) UnmarshalJSON(src []byte) error

func (*NullableThresholdConfigurationDetails) Unset

type NullableTime

type NullableTime struct {
	// contains filtered or unexported fields
}

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type OperatingSystemDetails

type OperatingSystemDetails struct {
	// Number of cores.
	Cores int32 `json:"cores"`
	// Correlation is used to associate Operating System License charges and the Server on which it was installed. In this scenario, the correlation ID will be equal to the rated usage record ID representing the charge for the Server.
	CorrelationId        string `json:"correlationId"`
	AdditionalProperties map[string]interface{}
}

OperatingSystemDetails Details of the operating system associated with this rated usage record.

func NewOperatingSystemDetails

func NewOperatingSystemDetails(cores int32, correlationId string) *OperatingSystemDetails

NewOperatingSystemDetails instantiates a new OperatingSystemDetails object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewOperatingSystemDetailsWithDefaults

func NewOperatingSystemDetailsWithDefaults() *OperatingSystemDetails

NewOperatingSystemDetailsWithDefaults instantiates a new OperatingSystemDetails object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*OperatingSystemDetails) GetCores

func (o *OperatingSystemDetails) GetCores() int32

GetCores returns the Cores field value

func (*OperatingSystemDetails) GetCoresOk

func (o *OperatingSystemDetails) GetCoresOk() (*int32, bool)

GetCoresOk returns a tuple with the Cores field value and a boolean to check if the value has been set.

func (*OperatingSystemDetails) GetCorrelationId

func (o *OperatingSystemDetails) GetCorrelationId() string

GetCorrelationId returns the CorrelationId field value

func (*OperatingSystemDetails) GetCorrelationIdOk

func (o *OperatingSystemDetails) GetCorrelationIdOk() (*string, bool)

GetCorrelationIdOk returns a tuple with the CorrelationId field value and a boolean to check if the value has been set.

func (OperatingSystemDetails) MarshalJSON

func (o OperatingSystemDetails) MarshalJSON() ([]byte, error)

func (*OperatingSystemDetails) SetCores

func (o *OperatingSystemDetails) SetCores(v int32)

SetCores sets field value

func (*OperatingSystemDetails) SetCorrelationId

func (o *OperatingSystemDetails) SetCorrelationId(v string)

SetCorrelationId sets field value

func (OperatingSystemDetails) ToMap

func (o OperatingSystemDetails) ToMap() (map[string]interface{}, error)

func (*OperatingSystemDetails) UnmarshalJSON

func (o *OperatingSystemDetails) UnmarshalJSON(data []byte) (err error)

type OperatingSystemRecord

type OperatingSystemRecord struct {
	// The unique identifier of the rated usage record.
	Id string `json:"id"`
	// The category of the product associated with this usage record.
	ProductCategory string `json:"productCategory"`
	// The code identifying the product associated to this usage record.
	ProductCode string       `json:"productCode"`
	Location    LocationEnum `json:"location"`
	// Year and month of the usage record.
	YearMonth *string `json:"yearMonth,omitempty"`
	// The point in time (in UTC) when usage has started.
	StartDateTime time.Time `json:"startDateTime"`
	// The point in time (in UTC) until usage has been rated.
	EndDateTime time.Time `json:"endDateTime"`
	// The rated usage in cents.
	Cost int64 `json:"cost"`
	// The cost in cents before discount.
	CostBeforeDiscount *int64 `json:"costBeforeDiscount,omitempty"`
	// The rated usage cost description.
	CostDescription *string `json:"costDescription,omitempty"`
	// The price model applied to this usage record.
	PriceModel string `json:"priceModel"`
	// The unit price.
	UnitPrice float32 `json:"unitPrice"`
	// User friendly description of the unit price.
	UnitPriceDescription string `json:"unitPriceDescription"`
	// The number of units being charged.
	Quantity float32 `json:"quantity"`
	// A flag indicating whether the rated usage record is still active.
	Active bool `json:"active"`
	// The usage session ID is used to correlate rated usage records across periods of time. For example, a server used for over a month will generate multiple rated usage records. The entire usage session cost can be computed by aggregating the records having the same usage session ID. It is usual to have one rated usage record per month or invoice.
	UsageSessionId string `json:"usageSessionId"`
	// Holds usage record id
	CorrelationId string `json:"correlationId"`
	// Reservation id associated with this rated usage record.
	ReservationId        *string                `json:"reservationId,omitempty"`
	DiscountDetails      *DiscountDetails       `json:"discountDetails,omitempty"`
	Metadata             OperatingSystemDetails `json:"metadata"`
	AdditionalProperties map[string]interface{}
}

OperatingSystemRecord struct for OperatingSystemRecord

func NewOperatingSystemRecord

func NewOperatingSystemRecord(id string, productCategory string, productCode string, location LocationEnum, startDateTime time.Time, endDateTime time.Time, cost int64, priceModel string, unitPrice float32, unitPriceDescription string, quantity float32, active bool, usageSessionId string, correlationId string, metadata OperatingSystemDetails) *OperatingSystemRecord

NewOperatingSystemRecord instantiates a new OperatingSystemRecord object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewOperatingSystemRecordWithDefaults

func NewOperatingSystemRecordWithDefaults() *OperatingSystemRecord

NewOperatingSystemRecordWithDefaults instantiates a new OperatingSystemRecord object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*OperatingSystemRecord) GetActive

func (o *OperatingSystemRecord) GetActive() bool

GetActive returns the Active field value

func (*OperatingSystemRecord) GetActiveOk

func (o *OperatingSystemRecord) GetActiveOk() (*bool, bool)

GetActiveOk returns a tuple with the Active field value and a boolean to check if the value has been set.

func (*OperatingSystemRecord) GetCorrelationId

func (o *OperatingSystemRecord) GetCorrelationId() string

GetCorrelationId returns the CorrelationId field value

func (*OperatingSystemRecord) GetCorrelationIdOk

func (o *OperatingSystemRecord) GetCorrelationIdOk() (*string, bool)

GetCorrelationIdOk returns a tuple with the CorrelationId field value and a boolean to check if the value has been set.

func (*OperatingSystemRecord) GetCost

func (o *OperatingSystemRecord) GetCost() int64

GetCost returns the Cost field value

func (*OperatingSystemRecord) GetCostBeforeDiscount

func (o *OperatingSystemRecord) GetCostBeforeDiscount() int64

GetCostBeforeDiscount returns the CostBeforeDiscount field value if set, zero value otherwise.

func (*OperatingSystemRecord) GetCostBeforeDiscountOk

func (o *OperatingSystemRecord) GetCostBeforeDiscountOk() (*int64, bool)

GetCostBeforeDiscountOk returns a tuple with the CostBeforeDiscount field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OperatingSystemRecord) GetCostDescription

func (o *OperatingSystemRecord) GetCostDescription() string

GetCostDescription returns the CostDescription field value if set, zero value otherwise.

func (*OperatingSystemRecord) GetCostDescriptionOk

func (o *OperatingSystemRecord) GetCostDescriptionOk() (*string, bool)

GetCostDescriptionOk returns a tuple with the CostDescription field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OperatingSystemRecord) GetCostOk

func (o *OperatingSystemRecord) GetCostOk() (*int64, bool)

GetCostOk returns a tuple with the Cost field value and a boolean to check if the value has been set.

func (*OperatingSystemRecord) GetDiscountDetails

func (o *OperatingSystemRecord) GetDiscountDetails() DiscountDetails

GetDiscountDetails returns the DiscountDetails field value if set, zero value otherwise.

func (*OperatingSystemRecord) GetDiscountDetailsOk

func (o *OperatingSystemRecord) GetDiscountDetailsOk() (*DiscountDetails, bool)

GetDiscountDetailsOk returns a tuple with the DiscountDetails field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OperatingSystemRecord) GetEndDateTime

func (o *OperatingSystemRecord) GetEndDateTime() time.Time

GetEndDateTime returns the EndDateTime field value

func (*OperatingSystemRecord) GetEndDateTimeOk

func (o *OperatingSystemRecord) GetEndDateTimeOk() (*time.Time, bool)

GetEndDateTimeOk returns a tuple with the EndDateTime field value and a boolean to check if the value has been set.

func (*OperatingSystemRecord) GetId

func (o *OperatingSystemRecord) GetId() string

GetId returns the Id field value

func (*OperatingSystemRecord) GetIdOk

func (o *OperatingSystemRecord) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*OperatingSystemRecord) GetLocation

func (o *OperatingSystemRecord) GetLocation() LocationEnum

GetLocation returns the Location field value

func (*OperatingSystemRecord) GetLocationOk

func (o *OperatingSystemRecord) GetLocationOk() (*LocationEnum, bool)

GetLocationOk returns a tuple with the Location field value and a boolean to check if the value has been set.

func (*OperatingSystemRecord) GetMetadata

GetMetadata returns the Metadata field value

func (*OperatingSystemRecord) GetMetadataOk

func (o *OperatingSystemRecord) GetMetadataOk() (*OperatingSystemDetails, bool)

GetMetadataOk returns a tuple with the Metadata field value and a boolean to check if the value has been set.

func (*OperatingSystemRecord) GetPriceModel

func (o *OperatingSystemRecord) GetPriceModel() string

GetPriceModel returns the PriceModel field value

func (*OperatingSystemRecord) GetPriceModelOk

func (o *OperatingSystemRecord) GetPriceModelOk() (*string, bool)

GetPriceModelOk returns a tuple with the PriceModel field value and a boolean to check if the value has been set.

func (*OperatingSystemRecord) GetProductCategory

func (o *OperatingSystemRecord) GetProductCategory() string

GetProductCategory returns the ProductCategory field value

func (*OperatingSystemRecord) GetProductCategoryOk

func (o *OperatingSystemRecord) GetProductCategoryOk() (*string, bool)

GetProductCategoryOk returns a tuple with the ProductCategory field value and a boolean to check if the value has been set.

func (*OperatingSystemRecord) GetProductCode

func (o *OperatingSystemRecord) GetProductCode() string

GetProductCode returns the ProductCode field value

func (*OperatingSystemRecord) GetProductCodeOk

func (o *OperatingSystemRecord) GetProductCodeOk() (*string, bool)

GetProductCodeOk returns a tuple with the ProductCode field value and a boolean to check if the value has been set.

func (*OperatingSystemRecord) GetQuantity

func (o *OperatingSystemRecord) GetQuantity() float32

GetQuantity returns the Quantity field value

func (*OperatingSystemRecord) GetQuantityOk

func (o *OperatingSystemRecord) GetQuantityOk() (*float32, bool)

GetQuantityOk returns a tuple with the Quantity field value and a boolean to check if the value has been set.

func (*OperatingSystemRecord) GetReservationId

func (o *OperatingSystemRecord) GetReservationId() string

GetReservationId returns the ReservationId field value if set, zero value otherwise.

func (*OperatingSystemRecord) GetReservationIdOk

func (o *OperatingSystemRecord) GetReservationIdOk() (*string, bool)

GetReservationIdOk returns a tuple with the ReservationId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OperatingSystemRecord) GetStartDateTime

func (o *OperatingSystemRecord) GetStartDateTime() time.Time

GetStartDateTime returns the StartDateTime field value

func (*OperatingSystemRecord) GetStartDateTimeOk

func (o *OperatingSystemRecord) GetStartDateTimeOk() (*time.Time, bool)

GetStartDateTimeOk returns a tuple with the StartDateTime field value and a boolean to check if the value has been set.

func (*OperatingSystemRecord) GetUnitPrice

func (o *OperatingSystemRecord) GetUnitPrice() float32

GetUnitPrice returns the UnitPrice field value

func (*OperatingSystemRecord) GetUnitPriceDescription

func (o *OperatingSystemRecord) GetUnitPriceDescription() string

GetUnitPriceDescription returns the UnitPriceDescription field value

func (*OperatingSystemRecord) GetUnitPriceDescriptionOk

func (o *OperatingSystemRecord) GetUnitPriceDescriptionOk() (*string, bool)

GetUnitPriceDescriptionOk returns a tuple with the UnitPriceDescription field value and a boolean to check if the value has been set.

func (*OperatingSystemRecord) GetUnitPriceOk

func (o *OperatingSystemRecord) GetUnitPriceOk() (*float32, bool)

GetUnitPriceOk returns a tuple with the UnitPrice field value and a boolean to check if the value has been set.

func (*OperatingSystemRecord) GetUsageSessionId

func (o *OperatingSystemRecord) GetUsageSessionId() string

GetUsageSessionId returns the UsageSessionId field value

func (*OperatingSystemRecord) GetUsageSessionIdOk

func (o *OperatingSystemRecord) GetUsageSessionIdOk() (*string, bool)

GetUsageSessionIdOk returns a tuple with the UsageSessionId field value and a boolean to check if the value has been set.

func (*OperatingSystemRecord) GetYearMonth

func (o *OperatingSystemRecord) GetYearMonth() string

GetYearMonth returns the YearMonth field value if set, zero value otherwise.

func (*OperatingSystemRecord) GetYearMonthOk

func (o *OperatingSystemRecord) GetYearMonthOk() (*string, bool)

GetYearMonthOk returns a tuple with the YearMonth field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OperatingSystemRecord) HasCostBeforeDiscount

func (o *OperatingSystemRecord) HasCostBeforeDiscount() bool

HasCostBeforeDiscount returns a boolean if a field has been set.

func (*OperatingSystemRecord) HasCostDescription

func (o *OperatingSystemRecord) HasCostDescription() bool

HasCostDescription returns a boolean if a field has been set.

func (*OperatingSystemRecord) HasDiscountDetails

func (o *OperatingSystemRecord) HasDiscountDetails() bool

HasDiscountDetails returns a boolean if a field has been set.

func (*OperatingSystemRecord) HasReservationId

func (o *OperatingSystemRecord) HasReservationId() bool

HasReservationId returns a boolean if a field has been set.

func (*OperatingSystemRecord) HasYearMonth

func (o *OperatingSystemRecord) HasYearMonth() bool

HasYearMonth returns a boolean if a field has been set.

func (OperatingSystemRecord) MarshalJSON

func (o OperatingSystemRecord) MarshalJSON() ([]byte, error)

func (*OperatingSystemRecord) SetActive

func (o *OperatingSystemRecord) SetActive(v bool)

SetActive sets field value

func (*OperatingSystemRecord) SetCorrelationId

func (o *OperatingSystemRecord) SetCorrelationId(v string)

SetCorrelationId sets field value

func (*OperatingSystemRecord) SetCost

func (o *OperatingSystemRecord) SetCost(v int64)

SetCost sets field value

func (*OperatingSystemRecord) SetCostBeforeDiscount

func (o *OperatingSystemRecord) SetCostBeforeDiscount(v int64)

SetCostBeforeDiscount gets a reference to the given int64 and assigns it to the CostBeforeDiscount field.

func (*OperatingSystemRecord) SetCostDescription

func (o *OperatingSystemRecord) SetCostDescription(v string)

SetCostDescription gets a reference to the given string and assigns it to the CostDescription field.

func (*OperatingSystemRecord) SetDiscountDetails

func (o *OperatingSystemRecord) SetDiscountDetails(v DiscountDetails)

SetDiscountDetails gets a reference to the given DiscountDetails and assigns it to the DiscountDetails field.

func (*OperatingSystemRecord) SetEndDateTime

func (o *OperatingSystemRecord) SetEndDateTime(v time.Time)

SetEndDateTime sets field value

func (*OperatingSystemRecord) SetId

func (o *OperatingSystemRecord) SetId(v string)

SetId sets field value

func (*OperatingSystemRecord) SetLocation

func (o *OperatingSystemRecord) SetLocation(v LocationEnum)

SetLocation sets field value

func (*OperatingSystemRecord) SetMetadata

SetMetadata sets field value

func (*OperatingSystemRecord) SetPriceModel

func (o *OperatingSystemRecord) SetPriceModel(v string)

SetPriceModel sets field value

func (*OperatingSystemRecord) SetProductCategory

func (o *OperatingSystemRecord) SetProductCategory(v string)

SetProductCategory sets field value

func (*OperatingSystemRecord) SetProductCode

func (o *OperatingSystemRecord) SetProductCode(v string)

SetProductCode sets field value

func (*OperatingSystemRecord) SetQuantity

func (o *OperatingSystemRecord) SetQuantity(v float32)

SetQuantity sets field value

func (*OperatingSystemRecord) SetReservationId

func (o *OperatingSystemRecord) SetReservationId(v string)

SetReservationId gets a reference to the given string and assigns it to the ReservationId field.

func (*OperatingSystemRecord) SetStartDateTime

func (o *OperatingSystemRecord) SetStartDateTime(v time.Time)

SetStartDateTime sets field value

func (*OperatingSystemRecord) SetUnitPrice

func (o *OperatingSystemRecord) SetUnitPrice(v float32)

SetUnitPrice sets field value

func (*OperatingSystemRecord) SetUnitPriceDescription

func (o *OperatingSystemRecord) SetUnitPriceDescription(v string)

SetUnitPriceDescription sets field value

func (*OperatingSystemRecord) SetUsageSessionId

func (o *OperatingSystemRecord) SetUsageSessionId(v string)

SetUsageSessionId sets field value

func (*OperatingSystemRecord) SetYearMonth

func (o *OperatingSystemRecord) SetYearMonth(v string)

SetYearMonth gets a reference to the given string and assigns it to the YearMonth field.

func (OperatingSystemRecord) ToMap

func (o OperatingSystemRecord) ToMap() (map[string]interface{}, error)

func (*OperatingSystemRecord) UnmarshalJSON

func (o *OperatingSystemRecord) UnmarshalJSON(data []byte) (err error)

type PackageUnitEnum

type PackageUnitEnum string

PackageUnitEnum Package size unit.

const (
	PACKAGEUNITENUM_GB PackageUnitEnum = "GB"
	PACKAGEUNITENUM_TB PackageUnitEnum = "TB"
)

List of PackageUnitEnum

func NewPackageUnitEnumFromValue

func NewPackageUnitEnumFromValue(v string) (*PackageUnitEnum, error)

NewPackageUnitEnumFromValue returns a pointer to a valid PackageUnitEnum for the value passed as argument, or an error if the value passed is not allowed by the enum

func (PackageUnitEnum) IsValid

func (v PackageUnitEnum) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (PackageUnitEnum) Ptr

Ptr returns reference to PackageUnitEnum value

func (*PackageUnitEnum) UnmarshalJSON

func (v *PackageUnitEnum) UnmarshalJSON(src []byte) error

type PriceUnitEnum

type PriceUnitEnum string

PriceUnitEnum The unit to which the price applies.

const (
	PRICEUNITENUM_HOUR        PriceUnitEnum = "HOUR"
	PRICEUNITENUM_MONTH       PriceUnitEnum = "MONTH"
	PRICEUNITENUM_GB          PriceUnitEnum = "GB"
	PRICEUNITENUM_UNIT        PriceUnitEnum = "UNIT"
	PRICEUNITENUM_FLAT        PriceUnitEnum = "FLAT"
	PRICEUNITENUM_TB_PER_HOUR PriceUnitEnum = "TB_PER_HOUR"
)

List of PriceUnitEnum

func NewPriceUnitEnumFromValue

func NewPriceUnitEnumFromValue(v string) (*PriceUnitEnum, error)

NewPriceUnitEnumFromValue returns a pointer to a valid PriceUnitEnum for the value passed as argument, or an error if the value passed is not allowed by the enum

func (PriceUnitEnum) IsValid

func (v PriceUnitEnum) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (PriceUnitEnum) Ptr

func (v PriceUnitEnum) Ptr() *PriceUnitEnum

Ptr returns reference to PriceUnitEnum value

func (*PriceUnitEnum) UnmarshalJSON

func (v *PriceUnitEnum) UnmarshalJSON(src []byte) error

type PricingPlan

type PricingPlan struct {
	// The SKU identifying this pricing plan.
	Sku string `json:"sku"`
	// Description of this pricing plan.
	SkuDescription *string `json:"skuDescription,omitempty"`
	// The code identifying the location.
	Location string `json:"location"`
	// The pricing model.
	PricingModel string `json:"pricingModel"`
	// The price per unit.
	Price               float32              `json:"price"`
	PriceUnit           PriceUnitEnum        `json:"priceUnit"`
	ApplicableDiscounts *ApplicableDiscounts `json:"applicableDiscounts,omitempty"`
	// Product code of the product this product is correlated with
	CorrelatedProductCode *string `json:"correlatedProductCode,omitempty"`
	// Package size per month.
	PackageQuantity      *float32         `json:"packageQuantity,omitempty"`
	PackageUnit          *PackageUnitEnum `json:"packageUnit,omitempty"`
	AdditionalProperties map[string]interface{}
}

PricingPlan Pricing plan details.

func NewPricingPlan

func NewPricingPlan(sku string, location string, pricingModel string, price float32, priceUnit PriceUnitEnum) *PricingPlan

NewPricingPlan instantiates a new PricingPlan object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPricingPlanWithDefaults

func NewPricingPlanWithDefaults() *PricingPlan

NewPricingPlanWithDefaults instantiates a new PricingPlan object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PricingPlan) GetApplicableDiscounts

func (o *PricingPlan) GetApplicableDiscounts() ApplicableDiscounts

GetApplicableDiscounts returns the ApplicableDiscounts field value if set, zero value otherwise.

func (*PricingPlan) GetApplicableDiscountsOk

func (o *PricingPlan) GetApplicableDiscountsOk() (*ApplicableDiscounts, bool)

GetApplicableDiscountsOk returns a tuple with the ApplicableDiscounts field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PricingPlan) GetCorrelatedProductCode

func (o *PricingPlan) GetCorrelatedProductCode() string

GetCorrelatedProductCode returns the CorrelatedProductCode field value if set, zero value otherwise.

func (*PricingPlan) GetCorrelatedProductCodeOk

func (o *PricingPlan) GetCorrelatedProductCodeOk() (*string, bool)

GetCorrelatedProductCodeOk returns a tuple with the CorrelatedProductCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PricingPlan) GetLocation

func (o *PricingPlan) GetLocation() string

GetLocation returns the Location field value

func (*PricingPlan) GetLocationOk

func (o *PricingPlan) GetLocationOk() (*string, bool)

GetLocationOk returns a tuple with the Location field value and a boolean to check if the value has been set.

func (*PricingPlan) GetPackageQuantity

func (o *PricingPlan) GetPackageQuantity() float32

GetPackageQuantity returns the PackageQuantity field value if set, zero value otherwise.

func (*PricingPlan) GetPackageQuantityOk

func (o *PricingPlan) GetPackageQuantityOk() (*float32, bool)

GetPackageQuantityOk returns a tuple with the PackageQuantity field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PricingPlan) GetPackageUnit

func (o *PricingPlan) GetPackageUnit() PackageUnitEnum

GetPackageUnit returns the PackageUnit field value if set, zero value otherwise.

func (*PricingPlan) GetPackageUnitOk

func (o *PricingPlan) GetPackageUnitOk() (*PackageUnitEnum, bool)

GetPackageUnitOk returns a tuple with the PackageUnit field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PricingPlan) GetPrice

func (o *PricingPlan) GetPrice() float32

GetPrice returns the Price field value

func (*PricingPlan) GetPriceOk

func (o *PricingPlan) GetPriceOk() (*float32, bool)

GetPriceOk returns a tuple with the Price field value and a boolean to check if the value has been set.

func (*PricingPlan) GetPriceUnit

func (o *PricingPlan) GetPriceUnit() PriceUnitEnum

GetPriceUnit returns the PriceUnit field value

func (*PricingPlan) GetPriceUnitOk

func (o *PricingPlan) GetPriceUnitOk() (*PriceUnitEnum, bool)

GetPriceUnitOk returns a tuple with the PriceUnit field value and a boolean to check if the value has been set.

func (*PricingPlan) GetPricingModel

func (o *PricingPlan) GetPricingModel() string

GetPricingModel returns the PricingModel field value

func (*PricingPlan) GetPricingModelOk

func (o *PricingPlan) GetPricingModelOk() (*string, bool)

GetPricingModelOk returns a tuple with the PricingModel field value and a boolean to check if the value has been set.

func (*PricingPlan) GetSku

func (o *PricingPlan) GetSku() string

GetSku returns the Sku field value

func (*PricingPlan) GetSkuDescription

func (o *PricingPlan) GetSkuDescription() string

GetSkuDescription returns the SkuDescription field value if set, zero value otherwise.

func (*PricingPlan) GetSkuDescriptionOk

func (o *PricingPlan) GetSkuDescriptionOk() (*string, bool)

GetSkuDescriptionOk returns a tuple with the SkuDescription field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PricingPlan) GetSkuOk

func (o *PricingPlan) GetSkuOk() (*string, bool)

GetSkuOk returns a tuple with the Sku field value and a boolean to check if the value has been set.

func (*PricingPlan) HasApplicableDiscounts

func (o *PricingPlan) HasApplicableDiscounts() bool

HasApplicableDiscounts returns a boolean if a field has been set.

func (*PricingPlan) HasCorrelatedProductCode

func (o *PricingPlan) HasCorrelatedProductCode() bool

HasCorrelatedProductCode returns a boolean if a field has been set.

func (*PricingPlan) HasPackageQuantity

func (o *PricingPlan) HasPackageQuantity() bool

HasPackageQuantity returns a boolean if a field has been set.

func (*PricingPlan) HasPackageUnit

func (o *PricingPlan) HasPackageUnit() bool

HasPackageUnit returns a boolean if a field has been set.

func (*PricingPlan) HasSkuDescription

func (o *PricingPlan) HasSkuDescription() bool

HasSkuDescription returns a boolean if a field has been set.

func (PricingPlan) MarshalJSON

func (o PricingPlan) MarshalJSON() ([]byte, error)

func (*PricingPlan) SetApplicableDiscounts

func (o *PricingPlan) SetApplicableDiscounts(v ApplicableDiscounts)

SetApplicableDiscounts gets a reference to the given ApplicableDiscounts and assigns it to the ApplicableDiscounts field.

func (*PricingPlan) SetCorrelatedProductCode

func (o *PricingPlan) SetCorrelatedProductCode(v string)

SetCorrelatedProductCode gets a reference to the given string and assigns it to the CorrelatedProductCode field.

func (*PricingPlan) SetLocation

func (o *PricingPlan) SetLocation(v string)

SetLocation sets field value

func (*PricingPlan) SetPackageQuantity

func (o *PricingPlan) SetPackageQuantity(v float32)

SetPackageQuantity gets a reference to the given float32 and assigns it to the PackageQuantity field.

func (*PricingPlan) SetPackageUnit

func (o *PricingPlan) SetPackageUnit(v PackageUnitEnum)

SetPackageUnit gets a reference to the given PackageUnitEnum and assigns it to the PackageUnit field.

func (*PricingPlan) SetPrice

func (o *PricingPlan) SetPrice(v float32)

SetPrice sets field value

func (*PricingPlan) SetPriceUnit

func (o *PricingPlan) SetPriceUnit(v PriceUnitEnum)

SetPriceUnit sets field value

func (*PricingPlan) SetPricingModel

func (o *PricingPlan) SetPricingModel(v string)

SetPricingModel sets field value

func (*PricingPlan) SetSku

func (o *PricingPlan) SetSku(v string)

SetSku sets field value

func (*PricingPlan) SetSkuDescription

func (o *PricingPlan) SetSkuDescription(v string)

SetSkuDescription gets a reference to the given string and assigns it to the SkuDescription field.

func (PricingPlan) ToMap

func (o PricingPlan) ToMap() (map[string]interface{}, error)

func (*PricingPlan) UnmarshalJSON

func (o *PricingPlan) UnmarshalJSON(data []byte) (err error)

type Product

type Product struct {
	// The code identifying the product. This code has significant across all locations.
	ProductCode string `json:"productCode"`
	// The product category.
	ProductCategory string `json:"productCategory"`
	// The pricing plans available for this product.
	Plans                []PricingPlan `json:"plans,omitempty"`
	AdditionalProperties map[string]interface{}
}

Product Product details

func NewProduct

func NewProduct(productCode string, productCategory string) *Product

NewProduct instantiates a new Product object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewProductWithDefaults

func NewProductWithDefaults() *Product

NewProductWithDefaults instantiates a new Product object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Product) GetPlans

func (o *Product) GetPlans() []PricingPlan

GetPlans returns the Plans field value if set, zero value otherwise.

func (*Product) GetPlansOk

func (o *Product) GetPlansOk() ([]PricingPlan, bool)

GetPlansOk returns a tuple with the Plans field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Product) GetProductCategory

func (o *Product) GetProductCategory() string

GetProductCategory returns the ProductCategory field value

func (*Product) GetProductCategoryOk

func (o *Product) GetProductCategoryOk() (*string, bool)

GetProductCategoryOk returns a tuple with the ProductCategory field value and a boolean to check if the value has been set.

func (*Product) GetProductCode

func (o *Product) GetProductCode() string

GetProductCode returns the ProductCode field value

func (*Product) GetProductCodeOk

func (o *Product) GetProductCodeOk() (*string, bool)

GetProductCodeOk returns a tuple with the ProductCode field value and a boolean to check if the value has been set.

func (*Product) HasPlans

func (o *Product) HasPlans() bool

HasPlans returns a boolean if a field has been set.

func (Product) MarshalJSON

func (o Product) MarshalJSON() ([]byte, error)

func (*Product) SetPlans

func (o *Product) SetPlans(v []PricingPlan)

SetPlans gets a reference to the given []PricingPlan and assigns it to the Plans field.

func (*Product) SetProductCategory

func (o *Product) SetProductCategory(v string)

SetProductCategory sets field value

func (*Product) SetProductCode

func (o *Product) SetProductCode(v string)

SetProductCode sets field value

func (Product) ToMap

func (o Product) ToMap() (map[string]interface{}, error)

func (*Product) UnmarshalJSON

func (o *Product) UnmarshalJSON(data []byte) (err error)

type ProductAvailability

type ProductAvailability struct {
	// Product code.
	ProductCode string `json:"productCode"`
	// Product category.
	ProductCategory             string                       `json:"productCategory"`
	LocationAvailabilityDetails []LocationAvailabilityDetail `json:"locationAvailabilityDetails"`
	AdditionalProperties        map[string]interface{}
}

ProductAvailability Product availability details.

func NewProductAvailability

func NewProductAvailability(productCode string, productCategory string, locationAvailabilityDetails []LocationAvailabilityDetail) *ProductAvailability

NewProductAvailability instantiates a new ProductAvailability object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewProductAvailabilityWithDefaults

func NewProductAvailabilityWithDefaults() *ProductAvailability

NewProductAvailabilityWithDefaults instantiates a new ProductAvailability object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ProductAvailability) GetLocationAvailabilityDetails

func (o *ProductAvailability) GetLocationAvailabilityDetails() []LocationAvailabilityDetail

GetLocationAvailabilityDetails returns the LocationAvailabilityDetails field value

func (*ProductAvailability) GetLocationAvailabilityDetailsOk

func (o *ProductAvailability) GetLocationAvailabilityDetailsOk() ([]LocationAvailabilityDetail, bool)

GetLocationAvailabilityDetailsOk returns a tuple with the LocationAvailabilityDetails field value and a boolean to check if the value has been set.

func (*ProductAvailability) GetProductCategory

func (o *ProductAvailability) GetProductCategory() string

GetProductCategory returns the ProductCategory field value

func (*ProductAvailability) GetProductCategoryOk

func (o *ProductAvailability) GetProductCategoryOk() (*string, bool)

GetProductCategoryOk returns a tuple with the ProductCategory field value and a boolean to check if the value has been set.

func (*ProductAvailability) GetProductCode

func (o *ProductAvailability) GetProductCode() string

GetProductCode returns the ProductCode field value

func (*ProductAvailability) GetProductCodeOk

func (o *ProductAvailability) GetProductCodeOk() (*string, bool)

GetProductCodeOk returns a tuple with the ProductCode field value and a boolean to check if the value has been set.

func (ProductAvailability) MarshalJSON

func (o ProductAvailability) MarshalJSON() ([]byte, error)

func (*ProductAvailability) SetLocationAvailabilityDetails

func (o *ProductAvailability) SetLocationAvailabilityDetails(v []LocationAvailabilityDetail)

SetLocationAvailabilityDetails sets field value

func (*ProductAvailability) SetProductCategory

func (o *ProductAvailability) SetProductCategory(v string)

SetProductCategory sets field value

func (*ProductAvailability) SetProductCode

func (o *ProductAvailability) SetProductCode(v string)

SetProductCode sets field value

func (ProductAvailability) ToMap

func (o ProductAvailability) ToMap() (map[string]interface{}, error)

func (*ProductAvailability) UnmarshalJSON

func (o *ProductAvailability) UnmarshalJSON(data []byte) (err error)

type ProductAvailabilityAPI

type ProductAvailabilityAPI interface {

	/*
		ProductAvailabilityGet List all Product availabilities.

		Retrieves the list of product availability details.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@return ApiProductAvailabilityGetRequest
	*/
	ProductAvailabilityGet(ctx context.Context) ApiProductAvailabilityGetRequest

	// ProductAvailabilityGetExecute executes the request
	//  @return []ProductAvailability
	ProductAvailabilityGetExecute(r ApiProductAvailabilityGetRequest) ([]ProductAvailability, *http.Response, error)
}

type ProductAvailabilityAPIService

type ProductAvailabilityAPIService service

ProductAvailabilityAPIService ProductAvailabilityAPI service

func (*ProductAvailabilityAPIService) ProductAvailabilityGet

ProductAvailabilityGet List all Product availabilities.

Retrieves the list of product availability details.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiProductAvailabilityGetRequest

func (*ProductAvailabilityAPIService) ProductAvailabilityGetExecute

Execute executes the request

@return []ProductAvailability

type ProductCategoryEnum

type ProductCategoryEnum string

ProductCategoryEnum The product category.

const (
	PRODUCTCATEGORYENUM_SERVER           ProductCategoryEnum = "SERVER"
	PRODUCTCATEGORYENUM_BANDWIDTH        ProductCategoryEnum = "BANDWIDTH"
	PRODUCTCATEGORYENUM_OPERATING_SYSTEM ProductCategoryEnum = "OPERATING_SYSTEM"
	PRODUCTCATEGORYENUM_PUBLIC_IP        ProductCategoryEnum = "PUBLIC_IP"
	PRODUCTCATEGORYENUM_STORAGE          ProductCategoryEnum = "STORAGE"
)

List of ProductCategoryEnum

func NewProductCategoryEnumFromValue

func NewProductCategoryEnumFromValue(v string) (*ProductCategoryEnum, error)

NewProductCategoryEnumFromValue returns a pointer to a valid ProductCategoryEnum for the value passed as argument, or an error if the value passed is not allowed by the enum

func (ProductCategoryEnum) IsValid

func (v ProductCategoryEnum) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (ProductCategoryEnum) Ptr

Ptr returns reference to ProductCategoryEnum value

func (*ProductCategoryEnum) UnmarshalJSON

func (v *ProductCategoryEnum) UnmarshalJSON(src []byte) error

type ProductsAPI

type ProductsAPI interface {

	/*
		ProductsGet List all Products.

		Retrieves all Products.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@return ApiProductsGetRequest
	*/
	ProductsGet(ctx context.Context) ApiProductsGetRequest

	// ProductsGetExecute executes the request
	//  @return []ProductsGet200ResponseInner
	ProductsGetExecute(r ApiProductsGetRequest) ([]ProductsGet200ResponseInner, *http.Response, error)
}

type ProductsAPIService

type ProductsAPIService service

ProductsAPIService ProductsAPI service

func (*ProductsAPIService) ProductsGet

ProductsGet List all Products.

Retrieves all Products.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiProductsGetRequest

func (*ProductsAPIService) ProductsGetExecute

Execute executes the request

@return []ProductsGet200ResponseInner

type ProductsGet200ResponseInner

type ProductsGet200ResponseInner struct {
	Product       *Product
	ServerProduct *ServerProduct
}

ProductsGet200ResponseInner - struct for ProductsGet200ResponseInner

func ProductAsProductsGet200ResponseInner

func ProductAsProductsGet200ResponseInner(v *Product) ProductsGet200ResponseInner

ProductAsProductsGet200ResponseInner is a convenience function that returns Product wrapped in ProductsGet200ResponseInner

func ServerProductAsProductsGet200ResponseInner

func ServerProductAsProductsGet200ResponseInner(v *ServerProduct) ProductsGet200ResponseInner

ServerProductAsProductsGet200ResponseInner is a convenience function that returns ServerProduct wrapped in ProductsGet200ResponseInner

func (*ProductsGet200ResponseInner) GetActualInstance

func (obj *ProductsGet200ResponseInner) GetActualInstance() interface{}

Get the actual instance

func (ProductsGet200ResponseInner) MarshalJSON

func (src ProductsGet200ResponseInner) MarshalJSON() ([]byte, error)

Marshal data from the first non-nil pointers in the struct to JSON

func (*ProductsGet200ResponseInner) UnmarshalJSON

func (dst *ProductsGet200ResponseInner) UnmarshalJSON(data []byte) error

Unmarshal JSON data into one of the pointers in the struct

type PublicSubnetDetails

type PublicSubnetDetails struct {
	// Public Subnet identifier as returned by the BMC API.
	Id *string `json:"id,omitempty"`
	// Classless Inter-Domain Routing
	Cidr string `json:"cidr"`
	// CIDR size
	Size                 string `json:"size"`
	AdditionalProperties map[string]interface{}
}

PublicSubnetDetails Details of public subnets.

func NewPublicSubnetDetails

func NewPublicSubnetDetails(cidr string, size string) *PublicSubnetDetails

NewPublicSubnetDetails instantiates a new PublicSubnetDetails object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPublicSubnetDetailsWithDefaults

func NewPublicSubnetDetailsWithDefaults() *PublicSubnetDetails

NewPublicSubnetDetailsWithDefaults instantiates a new PublicSubnetDetails object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PublicSubnetDetails) GetCidr

func (o *PublicSubnetDetails) GetCidr() string

GetCidr returns the Cidr field value

func (*PublicSubnetDetails) GetCidrOk

func (o *PublicSubnetDetails) GetCidrOk() (*string, bool)

GetCidrOk returns a tuple with the Cidr field value and a boolean to check if the value has been set.

func (*PublicSubnetDetails) GetId

func (o *PublicSubnetDetails) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*PublicSubnetDetails) GetIdOk

func (o *PublicSubnetDetails) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PublicSubnetDetails) GetSize

func (o *PublicSubnetDetails) GetSize() string

GetSize returns the Size field value

func (*PublicSubnetDetails) GetSizeOk

func (o *PublicSubnetDetails) GetSizeOk() (*string, bool)

GetSizeOk returns a tuple with the Size field value and a boolean to check if the value has been set.

func (*PublicSubnetDetails) HasId

func (o *PublicSubnetDetails) HasId() bool

HasId returns a boolean if a field has been set.

func (PublicSubnetDetails) MarshalJSON

func (o PublicSubnetDetails) MarshalJSON() ([]byte, error)

func (*PublicSubnetDetails) SetCidr

func (o *PublicSubnetDetails) SetCidr(v string)

SetCidr sets field value

func (*PublicSubnetDetails) SetId

func (o *PublicSubnetDetails) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*PublicSubnetDetails) SetSize

func (o *PublicSubnetDetails) SetSize(v string)

SetSize sets field value

func (PublicSubnetDetails) ToMap

func (o PublicSubnetDetails) ToMap() (map[string]interface{}, error)

func (*PublicSubnetDetails) UnmarshalJSON

func (o *PublicSubnetDetails) UnmarshalJSON(data []byte) (err error)

type PublicSubnetRecord

type PublicSubnetRecord struct {
	// The unique identifier of the rated usage record.
	Id string `json:"id"`
	// The category of the product associated with this usage record.
	ProductCategory string `json:"productCategory"`
	// The code identifying the product associated to this usage record.
	ProductCode string       `json:"productCode"`
	Location    LocationEnum `json:"location"`
	// Year and month of the usage record.
	YearMonth *string `json:"yearMonth,omitempty"`
	// The point in time (in UTC) when usage has started.
	StartDateTime time.Time `json:"startDateTime"`
	// The point in time (in UTC) until usage has been rated.
	EndDateTime time.Time `json:"endDateTime"`
	// The rated usage in cents.
	Cost int64 `json:"cost"`
	// The cost in cents before discount.
	CostBeforeDiscount *int64 `json:"costBeforeDiscount,omitempty"`
	// The rated usage cost description.
	CostDescription *string `json:"costDescription,omitempty"`
	// The price model applied to this usage record.
	PriceModel string `json:"priceModel"`
	// The unit price.
	UnitPrice float32 `json:"unitPrice"`
	// User friendly description of the unit price.
	UnitPriceDescription string `json:"unitPriceDescription"`
	// The number of units being charged.
	Quantity float32 `json:"quantity"`
	// A flag indicating whether the rated usage record is still active.
	Active bool `json:"active"`
	// The usage session ID is used to correlate rated usage records across periods of time. For example, a server used for over a month will generate multiple rated usage records. The entire usage session cost can be computed by aggregating the records having the same usage session ID. It is usual to have one rated usage record per month or invoice.
	UsageSessionId string `json:"usageSessionId"`
	// Holds usage record id
	CorrelationId string `json:"correlationId"`
	// Reservation id associated with this rated usage record.
	ReservationId        *string             `json:"reservationId,omitempty"`
	DiscountDetails      *DiscountDetails    `json:"discountDetails,omitempty"`
	Metadata             PublicSubnetDetails `json:"metadata"`
	AdditionalProperties map[string]interface{}
}

PublicSubnetRecord struct for PublicSubnetRecord

func NewPublicSubnetRecord

func NewPublicSubnetRecord(id string, productCategory string, productCode string, location LocationEnum, startDateTime time.Time, endDateTime time.Time, cost int64, priceModel string, unitPrice float32, unitPriceDescription string, quantity float32, active bool, usageSessionId string, correlationId string, metadata PublicSubnetDetails) *PublicSubnetRecord

NewPublicSubnetRecord instantiates a new PublicSubnetRecord object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPublicSubnetRecordWithDefaults

func NewPublicSubnetRecordWithDefaults() *PublicSubnetRecord

NewPublicSubnetRecordWithDefaults instantiates a new PublicSubnetRecord object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PublicSubnetRecord) GetActive

func (o *PublicSubnetRecord) GetActive() bool

GetActive returns the Active field value

func (*PublicSubnetRecord) GetActiveOk

func (o *PublicSubnetRecord) GetActiveOk() (*bool, bool)

GetActiveOk returns a tuple with the Active field value and a boolean to check if the value has been set.

func (*PublicSubnetRecord) GetCorrelationId

func (o *PublicSubnetRecord) GetCorrelationId() string

GetCorrelationId returns the CorrelationId field value

func (*PublicSubnetRecord) GetCorrelationIdOk

func (o *PublicSubnetRecord) GetCorrelationIdOk() (*string, bool)

GetCorrelationIdOk returns a tuple with the CorrelationId field value and a boolean to check if the value has been set.

func (*PublicSubnetRecord) GetCost

func (o *PublicSubnetRecord) GetCost() int64

GetCost returns the Cost field value

func (*PublicSubnetRecord) GetCostBeforeDiscount

func (o *PublicSubnetRecord) GetCostBeforeDiscount() int64

GetCostBeforeDiscount returns the CostBeforeDiscount field value if set, zero value otherwise.

func (*PublicSubnetRecord) GetCostBeforeDiscountOk

func (o *PublicSubnetRecord) GetCostBeforeDiscountOk() (*int64, bool)

GetCostBeforeDiscountOk returns a tuple with the CostBeforeDiscount field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PublicSubnetRecord) GetCostDescription

func (o *PublicSubnetRecord) GetCostDescription() string

GetCostDescription returns the CostDescription field value if set, zero value otherwise.

func (*PublicSubnetRecord) GetCostDescriptionOk

func (o *PublicSubnetRecord) GetCostDescriptionOk() (*string, bool)

GetCostDescriptionOk returns a tuple with the CostDescription field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PublicSubnetRecord) GetCostOk

func (o *PublicSubnetRecord) GetCostOk() (*int64, bool)

GetCostOk returns a tuple with the Cost field value and a boolean to check if the value has been set.

func (*PublicSubnetRecord) GetDiscountDetails

func (o *PublicSubnetRecord) GetDiscountDetails() DiscountDetails

GetDiscountDetails returns the DiscountDetails field value if set, zero value otherwise.

func (*PublicSubnetRecord) GetDiscountDetailsOk

func (o *PublicSubnetRecord) GetDiscountDetailsOk() (*DiscountDetails, bool)

GetDiscountDetailsOk returns a tuple with the DiscountDetails field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PublicSubnetRecord) GetEndDateTime

func (o *PublicSubnetRecord) GetEndDateTime() time.Time

GetEndDateTime returns the EndDateTime field value

func (*PublicSubnetRecord) GetEndDateTimeOk

func (o *PublicSubnetRecord) GetEndDateTimeOk() (*time.Time, bool)

GetEndDateTimeOk returns a tuple with the EndDateTime field value and a boolean to check if the value has been set.

func (*PublicSubnetRecord) GetId

func (o *PublicSubnetRecord) GetId() string

GetId returns the Id field value

func (*PublicSubnetRecord) GetIdOk

func (o *PublicSubnetRecord) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*PublicSubnetRecord) GetLocation

func (o *PublicSubnetRecord) GetLocation() LocationEnum

GetLocation returns the Location field value

func (*PublicSubnetRecord) GetLocationOk

func (o *PublicSubnetRecord) GetLocationOk() (*LocationEnum, bool)

GetLocationOk returns a tuple with the Location field value and a boolean to check if the value has been set.

func (*PublicSubnetRecord) GetMetadata

func (o *PublicSubnetRecord) GetMetadata() PublicSubnetDetails

GetMetadata returns the Metadata field value

func (*PublicSubnetRecord) GetMetadataOk

func (o *PublicSubnetRecord) GetMetadataOk() (*PublicSubnetDetails, bool)

GetMetadataOk returns a tuple with the Metadata field value and a boolean to check if the value has been set.

func (*PublicSubnetRecord) GetPriceModel

func (o *PublicSubnetRecord) GetPriceModel() string

GetPriceModel returns the PriceModel field value

func (*PublicSubnetRecord) GetPriceModelOk

func (o *PublicSubnetRecord) GetPriceModelOk() (*string, bool)

GetPriceModelOk returns a tuple with the PriceModel field value and a boolean to check if the value has been set.

func (*PublicSubnetRecord) GetProductCategory

func (o *PublicSubnetRecord) GetProductCategory() string

GetProductCategory returns the ProductCategory field value

func (*PublicSubnetRecord) GetProductCategoryOk

func (o *PublicSubnetRecord) GetProductCategoryOk() (*string, bool)

GetProductCategoryOk returns a tuple with the ProductCategory field value and a boolean to check if the value has been set.

func (*PublicSubnetRecord) GetProductCode

func (o *PublicSubnetRecord) GetProductCode() string

GetProductCode returns the ProductCode field value

func (*PublicSubnetRecord) GetProductCodeOk

func (o *PublicSubnetRecord) GetProductCodeOk() (*string, bool)

GetProductCodeOk returns a tuple with the ProductCode field value and a boolean to check if the value has been set.

func (*PublicSubnetRecord) GetQuantity

func (o *PublicSubnetRecord) GetQuantity() float32

GetQuantity returns the Quantity field value

func (*PublicSubnetRecord) GetQuantityOk

func (o *PublicSubnetRecord) GetQuantityOk() (*float32, bool)

GetQuantityOk returns a tuple with the Quantity field value and a boolean to check if the value has been set.

func (*PublicSubnetRecord) GetReservationId

func (o *PublicSubnetRecord) GetReservationId() string

GetReservationId returns the ReservationId field value if set, zero value otherwise.

func (*PublicSubnetRecord) GetReservationIdOk

func (o *PublicSubnetRecord) GetReservationIdOk() (*string, bool)

GetReservationIdOk returns a tuple with the ReservationId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PublicSubnetRecord) GetStartDateTime

func (o *PublicSubnetRecord) GetStartDateTime() time.Time

GetStartDateTime returns the StartDateTime field value

func (*PublicSubnetRecord) GetStartDateTimeOk

func (o *PublicSubnetRecord) GetStartDateTimeOk() (*time.Time, bool)

GetStartDateTimeOk returns a tuple with the StartDateTime field value and a boolean to check if the value has been set.

func (*PublicSubnetRecord) GetUnitPrice

func (o *PublicSubnetRecord) GetUnitPrice() float32

GetUnitPrice returns the UnitPrice field value

func (*PublicSubnetRecord) GetUnitPriceDescription

func (o *PublicSubnetRecord) GetUnitPriceDescription() string

GetUnitPriceDescription returns the UnitPriceDescription field value

func (*PublicSubnetRecord) GetUnitPriceDescriptionOk

func (o *PublicSubnetRecord) GetUnitPriceDescriptionOk() (*string, bool)

GetUnitPriceDescriptionOk returns a tuple with the UnitPriceDescription field value and a boolean to check if the value has been set.

func (*PublicSubnetRecord) GetUnitPriceOk

func (o *PublicSubnetRecord) GetUnitPriceOk() (*float32, bool)

GetUnitPriceOk returns a tuple with the UnitPrice field value and a boolean to check if the value has been set.

func (*PublicSubnetRecord) GetUsageSessionId

func (o *PublicSubnetRecord) GetUsageSessionId() string

GetUsageSessionId returns the UsageSessionId field value

func (*PublicSubnetRecord) GetUsageSessionIdOk

func (o *PublicSubnetRecord) GetUsageSessionIdOk() (*string, bool)

GetUsageSessionIdOk returns a tuple with the UsageSessionId field value and a boolean to check if the value has been set.

func (*PublicSubnetRecord) GetYearMonth

func (o *PublicSubnetRecord) GetYearMonth() string

GetYearMonth returns the YearMonth field value if set, zero value otherwise.

func (*PublicSubnetRecord) GetYearMonthOk

func (o *PublicSubnetRecord) GetYearMonthOk() (*string, bool)

GetYearMonthOk returns a tuple with the YearMonth field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PublicSubnetRecord) HasCostBeforeDiscount

func (o *PublicSubnetRecord) HasCostBeforeDiscount() bool

HasCostBeforeDiscount returns a boolean if a field has been set.

func (*PublicSubnetRecord) HasCostDescription

func (o *PublicSubnetRecord) HasCostDescription() bool

HasCostDescription returns a boolean if a field has been set.

func (*PublicSubnetRecord) HasDiscountDetails

func (o *PublicSubnetRecord) HasDiscountDetails() bool

HasDiscountDetails returns a boolean if a field has been set.

func (*PublicSubnetRecord) HasReservationId

func (o *PublicSubnetRecord) HasReservationId() bool

HasReservationId returns a boolean if a field has been set.

func (*PublicSubnetRecord) HasYearMonth

func (o *PublicSubnetRecord) HasYearMonth() bool

HasYearMonth returns a boolean if a field has been set.

func (PublicSubnetRecord) MarshalJSON

func (o PublicSubnetRecord) MarshalJSON() ([]byte, error)

func (*PublicSubnetRecord) SetActive

func (o *PublicSubnetRecord) SetActive(v bool)

SetActive sets field value

func (*PublicSubnetRecord) SetCorrelationId

func (o *PublicSubnetRecord) SetCorrelationId(v string)

SetCorrelationId sets field value

func (*PublicSubnetRecord) SetCost

func (o *PublicSubnetRecord) SetCost(v int64)

SetCost sets field value

func (*PublicSubnetRecord) SetCostBeforeDiscount

func (o *PublicSubnetRecord) SetCostBeforeDiscount(v int64)

SetCostBeforeDiscount gets a reference to the given int64 and assigns it to the CostBeforeDiscount field.

func (*PublicSubnetRecord) SetCostDescription

func (o *PublicSubnetRecord) SetCostDescription(v string)

SetCostDescription gets a reference to the given string and assigns it to the CostDescription field.

func (*PublicSubnetRecord) SetDiscountDetails

func (o *PublicSubnetRecord) SetDiscountDetails(v DiscountDetails)

SetDiscountDetails gets a reference to the given DiscountDetails and assigns it to the DiscountDetails field.

func (*PublicSubnetRecord) SetEndDateTime

func (o *PublicSubnetRecord) SetEndDateTime(v time.Time)

SetEndDateTime sets field value

func (*PublicSubnetRecord) SetId

func (o *PublicSubnetRecord) SetId(v string)

SetId sets field value

func (*PublicSubnetRecord) SetLocation

func (o *PublicSubnetRecord) SetLocation(v LocationEnum)

SetLocation sets field value

func (*PublicSubnetRecord) SetMetadata

func (o *PublicSubnetRecord) SetMetadata(v PublicSubnetDetails)

SetMetadata sets field value

func (*PublicSubnetRecord) SetPriceModel

func (o *PublicSubnetRecord) SetPriceModel(v string)

SetPriceModel sets field value

func (*PublicSubnetRecord) SetProductCategory

func (o *PublicSubnetRecord) SetProductCategory(v string)

SetProductCategory sets field value

func (*PublicSubnetRecord) SetProductCode

func (o *PublicSubnetRecord) SetProductCode(v string)

SetProductCode sets field value

func (*PublicSubnetRecord) SetQuantity

func (o *PublicSubnetRecord) SetQuantity(v float32)

SetQuantity sets field value

func (*PublicSubnetRecord) SetReservationId

func (o *PublicSubnetRecord) SetReservationId(v string)

SetReservationId gets a reference to the given string and assigns it to the ReservationId field.

func (*PublicSubnetRecord) SetStartDateTime

func (o *PublicSubnetRecord) SetStartDateTime(v time.Time)

SetStartDateTime sets field value

func (*PublicSubnetRecord) SetUnitPrice

func (o *PublicSubnetRecord) SetUnitPrice(v float32)

SetUnitPrice sets field value

func (*PublicSubnetRecord) SetUnitPriceDescription

func (o *PublicSubnetRecord) SetUnitPriceDescription(v string)

SetUnitPriceDescription sets field value

func (*PublicSubnetRecord) SetUsageSessionId

func (o *PublicSubnetRecord) SetUsageSessionId(v string)

SetUsageSessionId sets field value

func (*PublicSubnetRecord) SetYearMonth

func (o *PublicSubnetRecord) SetYearMonth(v string)

SetYearMonth gets a reference to the given string and assigns it to the YearMonth field.

func (PublicSubnetRecord) ToMap

func (o PublicSubnetRecord) ToMap() (map[string]interface{}, error)

func (*PublicSubnetRecord) UnmarshalJSON

func (o *PublicSubnetRecord) UnmarshalJSON(data []byte) (err error)

type RatedUsageAPI

type RatedUsageAPI interface {

	/*
		RatedUsageGet List the rated usage.

		Retrieves all rated usage for given time period. The information is presented as a list of rated usage records. Every record corresponds to a charge. All date & times are in UTC.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@return ApiRatedUsageGetRequest
	*/
	RatedUsageGet(ctx context.Context) ApiRatedUsageGetRequest

	// RatedUsageGetExecute executes the request
	//  @return []RatedUsageGet200ResponseInner
	RatedUsageGetExecute(r ApiRatedUsageGetRequest) ([]RatedUsageGet200ResponseInner, *http.Response, error)

	/*
		RatedUsageMonthToDateGet List the rated usage records for the current calendar month.

		Retrieves all rated usage for the current calendar month. The information is presented as a list of rated usage records. Every record corresponds to a charge. All date & times are in UTC.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@return ApiRatedUsageMonthToDateGetRequest
	*/
	RatedUsageMonthToDateGet(ctx context.Context) ApiRatedUsageMonthToDateGetRequest

	// RatedUsageMonthToDateGetExecute executes the request
	//  @return []RatedUsageGet200ResponseInner
	RatedUsageMonthToDateGetExecute(r ApiRatedUsageMonthToDateGetRequest) ([]RatedUsageGet200ResponseInner, *http.Response, error)
}

type RatedUsageAPIService

type RatedUsageAPIService service

RatedUsageAPIService RatedUsageAPI service

func (*RatedUsageAPIService) RatedUsageGet

RatedUsageGet List the rated usage.

Retrieves all rated usage for given time period. The information is presented as a list of rated usage records. Every record corresponds to a charge. All date & times are in UTC.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiRatedUsageGetRequest

func (*RatedUsageAPIService) RatedUsageGetExecute

Execute executes the request

@return []RatedUsageGet200ResponseInner

func (*RatedUsageAPIService) RatedUsageMonthToDateGet

RatedUsageMonthToDateGet List the rated usage records for the current calendar month.

Retrieves all rated usage for the current calendar month. The information is presented as a list of rated usage records. Every record corresponds to a charge. All date & times are in UTC.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiRatedUsageMonthToDateGetRequest

func (*RatedUsageAPIService) RatedUsageMonthToDateGetExecute

Execute executes the request

@return []RatedUsageGet200ResponseInner

type RatedUsageGet200ResponseInner

type RatedUsageGet200ResponseInner struct {
	BandwidthRecord       *BandwidthRecord
	OperatingSystemRecord *OperatingSystemRecord
	PublicSubnetRecord    *PublicSubnetRecord
	ServerRecord          *ServerRecord
	StorageRecord         *StorageRecord
}

RatedUsageGet200ResponseInner - struct for RatedUsageGet200ResponseInner

func BandwidthRecordAsRatedUsageGet200ResponseInner

func BandwidthRecordAsRatedUsageGet200ResponseInner(v *BandwidthRecord) RatedUsageGet200ResponseInner

BandwidthRecordAsRatedUsageGet200ResponseInner is a convenience function that returns BandwidthRecord wrapped in RatedUsageGet200ResponseInner

func OperatingSystemRecordAsRatedUsageGet200ResponseInner

func OperatingSystemRecordAsRatedUsageGet200ResponseInner(v *OperatingSystemRecord) RatedUsageGet200ResponseInner

OperatingSystemRecordAsRatedUsageGet200ResponseInner is a convenience function that returns OperatingSystemRecord wrapped in RatedUsageGet200ResponseInner

func PublicSubnetRecordAsRatedUsageGet200ResponseInner

func PublicSubnetRecordAsRatedUsageGet200ResponseInner(v *PublicSubnetRecord) RatedUsageGet200ResponseInner

PublicSubnetRecordAsRatedUsageGet200ResponseInner is a convenience function that returns PublicSubnetRecord wrapped in RatedUsageGet200ResponseInner

func ServerRecordAsRatedUsageGet200ResponseInner

func ServerRecordAsRatedUsageGet200ResponseInner(v *ServerRecord) RatedUsageGet200ResponseInner

ServerRecordAsRatedUsageGet200ResponseInner is a convenience function that returns ServerRecord wrapped in RatedUsageGet200ResponseInner

func StorageRecordAsRatedUsageGet200ResponseInner

func StorageRecordAsRatedUsageGet200ResponseInner(v *StorageRecord) RatedUsageGet200ResponseInner

StorageRecordAsRatedUsageGet200ResponseInner is a convenience function that returns StorageRecord wrapped in RatedUsageGet200ResponseInner

func (*RatedUsageGet200ResponseInner) GetActualInstance

func (obj *RatedUsageGet200ResponseInner) GetActualInstance() interface{}

Get the actual instance

func (RatedUsageGet200ResponseInner) MarshalJSON

func (src RatedUsageGet200ResponseInner) MarshalJSON() ([]byte, error)

Marshal data from the first non-nil pointers in the struct to JSON

func (*RatedUsageGet200ResponseInner) UnmarshalJSON

func (dst *RatedUsageGet200ResponseInner) UnmarshalJSON(data []byte) error

Unmarshal JSON data into one of the pointers in the struct

type RatedUsageRecord

type RatedUsageRecord struct {
	// The unique identifier of the rated usage record.
	Id string `json:"id"`
	// The category of the product associated with this usage record.
	ProductCategory string `json:"productCategory"`
	// The code identifying the product associated to this usage record.
	ProductCode string       `json:"productCode"`
	Location    LocationEnum `json:"location"`
	// Year and month of the usage record.
	YearMonth *string `json:"yearMonth,omitempty"`
	// The point in time (in UTC) when usage has started.
	StartDateTime time.Time `json:"startDateTime"`
	// The point in time (in UTC) until usage has been rated.
	EndDateTime time.Time `json:"endDateTime"`
	// The rated usage in cents.
	Cost int64 `json:"cost"`
	// The cost in cents before discount.
	CostBeforeDiscount *int64 `json:"costBeforeDiscount,omitempty"`
	// The rated usage cost description.
	CostDescription *string `json:"costDescription,omitempty"`
	// The price model applied to this usage record.
	PriceModel string `json:"priceModel"`
	// The unit price.
	UnitPrice float32 `json:"unitPrice"`
	// User friendly description of the unit price.
	UnitPriceDescription string `json:"unitPriceDescription"`
	// The number of units being charged.
	Quantity float32 `json:"quantity"`
	// A flag indicating whether the rated usage record is still active.
	Active bool `json:"active"`
	// The usage session ID is used to correlate rated usage records across periods of time. For example, a server used for over a month will generate multiple rated usage records. The entire usage session cost can be computed by aggregating the records having the same usage session ID. It is usual to have one rated usage record per month or invoice.
	UsageSessionId string `json:"usageSessionId"`
	// Holds usage record id
	CorrelationId string `json:"correlationId"`
	// Reservation id associated with this rated usage record.
	ReservationId        *string          `json:"reservationId,omitempty"`
	DiscountDetails      *DiscountDetails `json:"discountDetails,omitempty"`
	AdditionalProperties map[string]interface{}
}

RatedUsageRecord Rated usage record.

func NewRatedUsageRecord

func NewRatedUsageRecord(id string, productCategory string, productCode string, location LocationEnum, startDateTime time.Time, endDateTime time.Time, cost int64, priceModel string, unitPrice float32, unitPriceDescription string, quantity float32, active bool, usageSessionId string, correlationId string) *RatedUsageRecord

NewRatedUsageRecord instantiates a new RatedUsageRecord object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewRatedUsageRecordWithDefaults

func NewRatedUsageRecordWithDefaults() *RatedUsageRecord

NewRatedUsageRecordWithDefaults instantiates a new RatedUsageRecord object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*RatedUsageRecord) GetActive

func (o *RatedUsageRecord) GetActive() bool

GetActive returns the Active field value

func (*RatedUsageRecord) GetActiveOk

func (o *RatedUsageRecord) GetActiveOk() (*bool, bool)

GetActiveOk returns a tuple with the Active field value and a boolean to check if the value has been set.

func (*RatedUsageRecord) GetCorrelationId

func (o *RatedUsageRecord) GetCorrelationId() string

GetCorrelationId returns the CorrelationId field value

func (*RatedUsageRecord) GetCorrelationIdOk

func (o *RatedUsageRecord) GetCorrelationIdOk() (*string, bool)

GetCorrelationIdOk returns a tuple with the CorrelationId field value and a boolean to check if the value has been set.

func (*RatedUsageRecord) GetCost

func (o *RatedUsageRecord) GetCost() int64

GetCost returns the Cost field value

func (*RatedUsageRecord) GetCostBeforeDiscount

func (o *RatedUsageRecord) GetCostBeforeDiscount() int64

GetCostBeforeDiscount returns the CostBeforeDiscount field value if set, zero value otherwise.

func (*RatedUsageRecord) GetCostBeforeDiscountOk

func (o *RatedUsageRecord) GetCostBeforeDiscountOk() (*int64, bool)

GetCostBeforeDiscountOk returns a tuple with the CostBeforeDiscount field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RatedUsageRecord) GetCostDescription

func (o *RatedUsageRecord) GetCostDescription() string

GetCostDescription returns the CostDescription field value if set, zero value otherwise.

func (*RatedUsageRecord) GetCostDescriptionOk

func (o *RatedUsageRecord) GetCostDescriptionOk() (*string, bool)

GetCostDescriptionOk returns a tuple with the CostDescription field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RatedUsageRecord) GetCostOk

func (o *RatedUsageRecord) GetCostOk() (*int64, bool)

GetCostOk returns a tuple with the Cost field value and a boolean to check if the value has been set.

func (*RatedUsageRecord) GetDiscountDetails

func (o *RatedUsageRecord) GetDiscountDetails() DiscountDetails

GetDiscountDetails returns the DiscountDetails field value if set, zero value otherwise.

func (*RatedUsageRecord) GetDiscountDetailsOk

func (o *RatedUsageRecord) GetDiscountDetailsOk() (*DiscountDetails, bool)

GetDiscountDetailsOk returns a tuple with the DiscountDetails field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RatedUsageRecord) GetEndDateTime

func (o *RatedUsageRecord) GetEndDateTime() time.Time

GetEndDateTime returns the EndDateTime field value

func (*RatedUsageRecord) GetEndDateTimeOk

func (o *RatedUsageRecord) GetEndDateTimeOk() (*time.Time, bool)

GetEndDateTimeOk returns a tuple with the EndDateTime field value and a boolean to check if the value has been set.

func (*RatedUsageRecord) GetId

func (o *RatedUsageRecord) GetId() string

GetId returns the Id field value

func (*RatedUsageRecord) GetIdOk

func (o *RatedUsageRecord) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*RatedUsageRecord) GetLocation

func (o *RatedUsageRecord) GetLocation() LocationEnum

GetLocation returns the Location field value

func (*RatedUsageRecord) GetLocationOk

func (o *RatedUsageRecord) GetLocationOk() (*LocationEnum, bool)

GetLocationOk returns a tuple with the Location field value and a boolean to check if the value has been set.

func (*RatedUsageRecord) GetPriceModel

func (o *RatedUsageRecord) GetPriceModel() string

GetPriceModel returns the PriceModel field value

func (*RatedUsageRecord) GetPriceModelOk

func (o *RatedUsageRecord) GetPriceModelOk() (*string, bool)

GetPriceModelOk returns a tuple with the PriceModel field value and a boolean to check if the value has been set.

func (*RatedUsageRecord) GetProductCategory

func (o *RatedUsageRecord) GetProductCategory() string

GetProductCategory returns the ProductCategory field value

func (*RatedUsageRecord) GetProductCategoryOk

func (o *RatedUsageRecord) GetProductCategoryOk() (*string, bool)

GetProductCategoryOk returns a tuple with the ProductCategory field value and a boolean to check if the value has been set.

func (*RatedUsageRecord) GetProductCode

func (o *RatedUsageRecord) GetProductCode() string

GetProductCode returns the ProductCode field value

func (*RatedUsageRecord) GetProductCodeOk

func (o *RatedUsageRecord) GetProductCodeOk() (*string, bool)

GetProductCodeOk returns a tuple with the ProductCode field value and a boolean to check if the value has been set.

func (*RatedUsageRecord) GetQuantity

func (o *RatedUsageRecord) GetQuantity() float32

GetQuantity returns the Quantity field value

func (*RatedUsageRecord) GetQuantityOk

func (o *RatedUsageRecord) GetQuantityOk() (*float32, bool)

GetQuantityOk returns a tuple with the Quantity field value and a boolean to check if the value has been set.

func (*RatedUsageRecord) GetReservationId

func (o *RatedUsageRecord) GetReservationId() string

GetReservationId returns the ReservationId field value if set, zero value otherwise.

func (*RatedUsageRecord) GetReservationIdOk

func (o *RatedUsageRecord) GetReservationIdOk() (*string, bool)

GetReservationIdOk returns a tuple with the ReservationId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RatedUsageRecord) GetStartDateTime

func (o *RatedUsageRecord) GetStartDateTime() time.Time

GetStartDateTime returns the StartDateTime field value

func (*RatedUsageRecord) GetStartDateTimeOk

func (o *RatedUsageRecord) GetStartDateTimeOk() (*time.Time, bool)

GetStartDateTimeOk returns a tuple with the StartDateTime field value and a boolean to check if the value has been set.

func (*RatedUsageRecord) GetUnitPrice

func (o *RatedUsageRecord) GetUnitPrice() float32

GetUnitPrice returns the UnitPrice field value

func (*RatedUsageRecord) GetUnitPriceDescription

func (o *RatedUsageRecord) GetUnitPriceDescription() string

GetUnitPriceDescription returns the UnitPriceDescription field value

func (*RatedUsageRecord) GetUnitPriceDescriptionOk

func (o *RatedUsageRecord) GetUnitPriceDescriptionOk() (*string, bool)

GetUnitPriceDescriptionOk returns a tuple with the UnitPriceDescription field value and a boolean to check if the value has been set.

func (*RatedUsageRecord) GetUnitPriceOk

func (o *RatedUsageRecord) GetUnitPriceOk() (*float32, bool)

GetUnitPriceOk returns a tuple with the UnitPrice field value and a boolean to check if the value has been set.

func (*RatedUsageRecord) GetUsageSessionId

func (o *RatedUsageRecord) GetUsageSessionId() string

GetUsageSessionId returns the UsageSessionId field value

func (*RatedUsageRecord) GetUsageSessionIdOk

func (o *RatedUsageRecord) GetUsageSessionIdOk() (*string, bool)

GetUsageSessionIdOk returns a tuple with the UsageSessionId field value and a boolean to check if the value has been set.

func (*RatedUsageRecord) GetYearMonth

func (o *RatedUsageRecord) GetYearMonth() string

GetYearMonth returns the YearMonth field value if set, zero value otherwise.

func (*RatedUsageRecord) GetYearMonthOk

func (o *RatedUsageRecord) GetYearMonthOk() (*string, bool)

GetYearMonthOk returns a tuple with the YearMonth field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RatedUsageRecord) HasCostBeforeDiscount

func (o *RatedUsageRecord) HasCostBeforeDiscount() bool

HasCostBeforeDiscount returns a boolean if a field has been set.

func (*RatedUsageRecord) HasCostDescription

func (o *RatedUsageRecord) HasCostDescription() bool

HasCostDescription returns a boolean if a field has been set.

func (*RatedUsageRecord) HasDiscountDetails

func (o *RatedUsageRecord) HasDiscountDetails() bool

HasDiscountDetails returns a boolean if a field has been set.

func (*RatedUsageRecord) HasReservationId

func (o *RatedUsageRecord) HasReservationId() bool

HasReservationId returns a boolean if a field has been set.

func (*RatedUsageRecord) HasYearMonth

func (o *RatedUsageRecord) HasYearMonth() bool

HasYearMonth returns a boolean if a field has been set.

func (RatedUsageRecord) MarshalJSON

func (o RatedUsageRecord) MarshalJSON() ([]byte, error)

func (*RatedUsageRecord) SetActive

func (o *RatedUsageRecord) SetActive(v bool)

SetActive sets field value

func (*RatedUsageRecord) SetCorrelationId

func (o *RatedUsageRecord) SetCorrelationId(v string)

SetCorrelationId sets field value

func (*RatedUsageRecord) SetCost

func (o *RatedUsageRecord) SetCost(v int64)

SetCost sets field value

func (*RatedUsageRecord) SetCostBeforeDiscount

func (o *RatedUsageRecord) SetCostBeforeDiscount(v int64)

SetCostBeforeDiscount gets a reference to the given int64 and assigns it to the CostBeforeDiscount field.

func (*RatedUsageRecord) SetCostDescription

func (o *RatedUsageRecord) SetCostDescription(v string)

SetCostDescription gets a reference to the given string and assigns it to the CostDescription field.

func (*RatedUsageRecord) SetDiscountDetails

func (o *RatedUsageRecord) SetDiscountDetails(v DiscountDetails)

SetDiscountDetails gets a reference to the given DiscountDetails and assigns it to the DiscountDetails field.

func (*RatedUsageRecord) SetEndDateTime

func (o *RatedUsageRecord) SetEndDateTime(v time.Time)

SetEndDateTime sets field value

func (*RatedUsageRecord) SetId

func (o *RatedUsageRecord) SetId(v string)

SetId sets field value

func (*RatedUsageRecord) SetLocation

func (o *RatedUsageRecord) SetLocation(v LocationEnum)

SetLocation sets field value

func (*RatedUsageRecord) SetPriceModel

func (o *RatedUsageRecord) SetPriceModel(v string)

SetPriceModel sets field value

func (*RatedUsageRecord) SetProductCategory

func (o *RatedUsageRecord) SetProductCategory(v string)

SetProductCategory sets field value

func (*RatedUsageRecord) SetProductCode

func (o *RatedUsageRecord) SetProductCode(v string)

SetProductCode sets field value

func (*RatedUsageRecord) SetQuantity

func (o *RatedUsageRecord) SetQuantity(v float32)

SetQuantity sets field value

func (*RatedUsageRecord) SetReservationId

func (o *RatedUsageRecord) SetReservationId(v string)

SetReservationId gets a reference to the given string and assigns it to the ReservationId field.

func (*RatedUsageRecord) SetStartDateTime

func (o *RatedUsageRecord) SetStartDateTime(v time.Time)

SetStartDateTime sets field value

func (*RatedUsageRecord) SetUnitPrice

func (o *RatedUsageRecord) SetUnitPrice(v float32)

SetUnitPrice sets field value

func (*RatedUsageRecord) SetUnitPriceDescription

func (o *RatedUsageRecord) SetUnitPriceDescription(v string)

SetUnitPriceDescription sets field value

func (*RatedUsageRecord) SetUsageSessionId

func (o *RatedUsageRecord) SetUsageSessionId(v string)

SetUsageSessionId sets field value

func (*RatedUsageRecord) SetYearMonth

func (o *RatedUsageRecord) SetYearMonth(v string)

SetYearMonth gets a reference to the given string and assigns it to the YearMonth field.

func (RatedUsageRecord) ToMap

func (o RatedUsageRecord) ToMap() (map[string]interface{}, error)

func (*RatedUsageRecord) UnmarshalJSON

func (o *RatedUsageRecord) UnmarshalJSON(data []byte) (err error)

type Reservation

type Reservation struct {
	// The reservation identifier.
	Id string `json:"id"`
	// The code identifying the product. This code has significant across all locations.
	ProductCode         string                         `json:"productCode"`
	ProductCategory     ReservationProductCategoryEnum `json:"productCategory"`
	Location            LocationEnum                   `json:"location"`
	ReservationModel    ReservationModelEnum           `json:"reservationModel"`
	InitialInvoiceModel *ReservationInvoicingModelEnum `json:"initialInvoiceModel,omitempty"`
	// The point in time (in UTC) when the reservation starts.
	StartDateTime time.Time `json:"startDateTime"`
	// The point in time (in UTC) when the reservation end.
	EndDateTime *time.Time `json:"endDateTime,omitempty"`
	// The point in time (in UTC) when the reservation was renewed last.
	LastRenewalDateTime *time.Time `json:"lastRenewalDateTime,omitempty"`
	// The point in time (in UTC) when the reservation will be renewed if auto renew is set to true.
	NextRenewalDateTime *time.Time `json:"nextRenewalDateTime,omitempty"`
	// A flag indicating whether the reservation will auto-renew (default is true).
	AutoRenew bool `json:"autoRenew"`
	// The sku that will be applied to this reservation. It is useful to find out the price by querying the /product endpoint.
	Sku string `json:"sku"`
	// Reservation price.
	Price     float32       `json:"price"`
	PriceUnit PriceUnitEnum `json:"priceUnit"`
	// The resource ID currently being assigned to Reservation.
	AssignedResourceId *string `json:"assignedResourceId,omitempty"`
	// Next billing date for Reservation.
	NextBillingDate      *string `json:"nextBillingDate,omitempty"`
	AdditionalProperties map[string]interface{}
}

Reservation Reservation details

func NewReservation

func NewReservation(id string, productCode string, productCategory ReservationProductCategoryEnum, location LocationEnum, reservationModel ReservationModelEnum, startDateTime time.Time, autoRenew bool, sku string, price float32, priceUnit PriceUnitEnum) *Reservation

NewReservation instantiates a new Reservation object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewReservationWithDefaults

func NewReservationWithDefaults() *Reservation

NewReservationWithDefaults instantiates a new Reservation object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Reservation) GetAssignedResourceId

func (o *Reservation) GetAssignedResourceId() string

GetAssignedResourceId returns the AssignedResourceId field value if set, zero value otherwise.

func (*Reservation) GetAssignedResourceIdOk

func (o *Reservation) GetAssignedResourceIdOk() (*string, bool)

GetAssignedResourceIdOk returns a tuple with the AssignedResourceId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Reservation) GetAutoRenew

func (o *Reservation) GetAutoRenew() bool

GetAutoRenew returns the AutoRenew field value

func (*Reservation) GetAutoRenewOk

func (o *Reservation) GetAutoRenewOk() (*bool, bool)

GetAutoRenewOk returns a tuple with the AutoRenew field value and a boolean to check if the value has been set.

func (*Reservation) GetEndDateTime

func (o *Reservation) GetEndDateTime() time.Time

GetEndDateTime returns the EndDateTime field value if set, zero value otherwise.

func (*Reservation) GetEndDateTimeOk

func (o *Reservation) GetEndDateTimeOk() (*time.Time, bool)

GetEndDateTimeOk returns a tuple with the EndDateTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Reservation) GetId

func (o *Reservation) GetId() string

GetId returns the Id field value

func (*Reservation) GetIdOk

func (o *Reservation) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Reservation) GetInitialInvoiceModel

func (o *Reservation) GetInitialInvoiceModel() ReservationInvoicingModelEnum

GetInitialInvoiceModel returns the InitialInvoiceModel field value if set, zero value otherwise.

func (*Reservation) GetInitialInvoiceModelOk

func (o *Reservation) GetInitialInvoiceModelOk() (*ReservationInvoicingModelEnum, bool)

GetInitialInvoiceModelOk returns a tuple with the InitialInvoiceModel field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Reservation) GetLastRenewalDateTime

func (o *Reservation) GetLastRenewalDateTime() time.Time

GetLastRenewalDateTime returns the LastRenewalDateTime field value if set, zero value otherwise.

func (*Reservation) GetLastRenewalDateTimeOk

func (o *Reservation) GetLastRenewalDateTimeOk() (*time.Time, bool)

GetLastRenewalDateTimeOk returns a tuple with the LastRenewalDateTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Reservation) GetLocation

func (o *Reservation) GetLocation() LocationEnum

GetLocation returns the Location field value

func (*Reservation) GetLocationOk

func (o *Reservation) GetLocationOk() (*LocationEnum, bool)

GetLocationOk returns a tuple with the Location field value and a boolean to check if the value has been set.

func (*Reservation) GetNextBillingDate

func (o *Reservation) GetNextBillingDate() string

GetNextBillingDate returns the NextBillingDate field value if set, zero value otherwise.

func (*Reservation) GetNextBillingDateOk

func (o *Reservation) GetNextBillingDateOk() (*string, bool)

GetNextBillingDateOk returns a tuple with the NextBillingDate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Reservation) GetNextRenewalDateTime

func (o *Reservation) GetNextRenewalDateTime() time.Time

GetNextRenewalDateTime returns the NextRenewalDateTime field value if set, zero value otherwise.

func (*Reservation) GetNextRenewalDateTimeOk

func (o *Reservation) GetNextRenewalDateTimeOk() (*time.Time, bool)

GetNextRenewalDateTimeOk returns a tuple with the NextRenewalDateTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Reservation) GetPrice

func (o *Reservation) GetPrice() float32

GetPrice returns the Price field value

func (*Reservation) GetPriceOk

func (o *Reservation) GetPriceOk() (*float32, bool)

GetPriceOk returns a tuple with the Price field value and a boolean to check if the value has been set.

func (*Reservation) GetPriceUnit

func (o *Reservation) GetPriceUnit() PriceUnitEnum

GetPriceUnit returns the PriceUnit field value

func (*Reservation) GetPriceUnitOk

func (o *Reservation) GetPriceUnitOk() (*PriceUnitEnum, bool)

GetPriceUnitOk returns a tuple with the PriceUnit field value and a boolean to check if the value has been set.

func (*Reservation) GetProductCategory

func (o *Reservation) GetProductCategory() ReservationProductCategoryEnum

GetProductCategory returns the ProductCategory field value

func (*Reservation) GetProductCategoryOk

func (o *Reservation) GetProductCategoryOk() (*ReservationProductCategoryEnum, bool)

GetProductCategoryOk returns a tuple with the ProductCategory field value and a boolean to check if the value has been set.

func (*Reservation) GetProductCode

func (o *Reservation) GetProductCode() string

GetProductCode returns the ProductCode field value

func (*Reservation) GetProductCodeOk

func (o *Reservation) GetProductCodeOk() (*string, bool)

GetProductCodeOk returns a tuple with the ProductCode field value and a boolean to check if the value has been set.

func (*Reservation) GetReservationModel

func (o *Reservation) GetReservationModel() ReservationModelEnum

GetReservationModel returns the ReservationModel field value

func (*Reservation) GetReservationModelOk

func (o *Reservation) GetReservationModelOk() (*ReservationModelEnum, bool)

GetReservationModelOk returns a tuple with the ReservationModel field value and a boolean to check if the value has been set.

func (*Reservation) GetSku

func (o *Reservation) GetSku() string

GetSku returns the Sku field value

func (*Reservation) GetSkuOk

func (o *Reservation) GetSkuOk() (*string, bool)

GetSkuOk returns a tuple with the Sku field value and a boolean to check if the value has been set.

func (*Reservation) GetStartDateTime

func (o *Reservation) GetStartDateTime() time.Time

GetStartDateTime returns the StartDateTime field value

func (*Reservation) GetStartDateTimeOk

func (o *Reservation) GetStartDateTimeOk() (*time.Time, bool)

GetStartDateTimeOk returns a tuple with the StartDateTime field value and a boolean to check if the value has been set.

func (*Reservation) HasAssignedResourceId

func (o *Reservation) HasAssignedResourceId() bool

HasAssignedResourceId returns a boolean if a field has been set.

func (*Reservation) HasEndDateTime

func (o *Reservation) HasEndDateTime() bool

HasEndDateTime returns a boolean if a field has been set.

func (*Reservation) HasInitialInvoiceModel

func (o *Reservation) HasInitialInvoiceModel() bool

HasInitialInvoiceModel returns a boolean if a field has been set.

func (*Reservation) HasLastRenewalDateTime

func (o *Reservation) HasLastRenewalDateTime() bool

HasLastRenewalDateTime returns a boolean if a field has been set.

func (*Reservation) HasNextBillingDate

func (o *Reservation) HasNextBillingDate() bool

HasNextBillingDate returns a boolean if a field has been set.

func (*Reservation) HasNextRenewalDateTime

func (o *Reservation) HasNextRenewalDateTime() bool

HasNextRenewalDateTime returns a boolean if a field has been set.

func (Reservation) MarshalJSON

func (o Reservation) MarshalJSON() ([]byte, error)

func (*Reservation) SetAssignedResourceId

func (o *Reservation) SetAssignedResourceId(v string)

SetAssignedResourceId gets a reference to the given string and assigns it to the AssignedResourceId field.

func (*Reservation) SetAutoRenew

func (o *Reservation) SetAutoRenew(v bool)

SetAutoRenew sets field value

func (*Reservation) SetEndDateTime

func (o *Reservation) SetEndDateTime(v time.Time)

SetEndDateTime gets a reference to the given time.Time and assigns it to the EndDateTime field.

func (*Reservation) SetId

func (o *Reservation) SetId(v string)

SetId sets field value

func (*Reservation) SetInitialInvoiceModel

func (o *Reservation) SetInitialInvoiceModel(v ReservationInvoicingModelEnum)

SetInitialInvoiceModel gets a reference to the given ReservationInvoicingModelEnum and assigns it to the InitialInvoiceModel field.

func (*Reservation) SetLastRenewalDateTime

func (o *Reservation) SetLastRenewalDateTime(v time.Time)

SetLastRenewalDateTime gets a reference to the given time.Time and assigns it to the LastRenewalDateTime field.

func (*Reservation) SetLocation

func (o *Reservation) SetLocation(v LocationEnum)

SetLocation sets field value

func (*Reservation) SetNextBillingDate

func (o *Reservation) SetNextBillingDate(v string)

SetNextBillingDate gets a reference to the given string and assigns it to the NextBillingDate field.

func (*Reservation) SetNextRenewalDateTime

func (o *Reservation) SetNextRenewalDateTime(v time.Time)

SetNextRenewalDateTime gets a reference to the given time.Time and assigns it to the NextRenewalDateTime field.

func (*Reservation) SetPrice

func (o *Reservation) SetPrice(v float32)

SetPrice sets field value

func (*Reservation) SetPriceUnit

func (o *Reservation) SetPriceUnit(v PriceUnitEnum)

SetPriceUnit sets field value

func (*Reservation) SetProductCategory

func (o *Reservation) SetProductCategory(v ReservationProductCategoryEnum)

SetProductCategory sets field value

func (*Reservation) SetProductCode

func (o *Reservation) SetProductCode(v string)

SetProductCode sets field value

func (*Reservation) SetReservationModel

func (o *Reservation) SetReservationModel(v ReservationModelEnum)

SetReservationModel sets field value

func (*Reservation) SetSku

func (o *Reservation) SetSku(v string)

SetSku sets field value

func (*Reservation) SetStartDateTime

func (o *Reservation) SetStartDateTime(v time.Time)

SetStartDateTime sets field value

func (Reservation) ToMap

func (o Reservation) ToMap() (map[string]interface{}, error)

func (*Reservation) UnmarshalJSON

func (o *Reservation) UnmarshalJSON(data []byte) (err error)

type ReservationAutoRenewDisableRequest

type ReservationAutoRenewDisableRequest struct {
	AutoRenewDisableReason *string `json:"autoRenewDisableReason,omitempty"`
	AdditionalProperties   map[string]interface{}
}

ReservationAutoRenewDisableRequest Disabling auto-renewal for reservation request.

func NewReservationAutoRenewDisableRequest

func NewReservationAutoRenewDisableRequest() *ReservationAutoRenewDisableRequest

NewReservationAutoRenewDisableRequest instantiates a new ReservationAutoRenewDisableRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewReservationAutoRenewDisableRequestWithDefaults

func NewReservationAutoRenewDisableRequestWithDefaults() *ReservationAutoRenewDisableRequest

NewReservationAutoRenewDisableRequestWithDefaults instantiates a new ReservationAutoRenewDisableRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ReservationAutoRenewDisableRequest) GetAutoRenewDisableReason

func (o *ReservationAutoRenewDisableRequest) GetAutoRenewDisableReason() string

GetAutoRenewDisableReason returns the AutoRenewDisableReason field value if set, zero value otherwise.

func (*ReservationAutoRenewDisableRequest) GetAutoRenewDisableReasonOk

func (o *ReservationAutoRenewDisableRequest) GetAutoRenewDisableReasonOk() (*string, bool)

GetAutoRenewDisableReasonOk returns a tuple with the AutoRenewDisableReason field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReservationAutoRenewDisableRequest) HasAutoRenewDisableReason

func (o *ReservationAutoRenewDisableRequest) HasAutoRenewDisableReason() bool

HasAutoRenewDisableReason returns a boolean if a field has been set.

func (ReservationAutoRenewDisableRequest) MarshalJSON

func (o ReservationAutoRenewDisableRequest) MarshalJSON() ([]byte, error)

func (*ReservationAutoRenewDisableRequest) SetAutoRenewDisableReason

func (o *ReservationAutoRenewDisableRequest) SetAutoRenewDisableReason(v string)

SetAutoRenewDisableReason gets a reference to the given string and assigns it to the AutoRenewDisableReason field.

func (ReservationAutoRenewDisableRequest) ToMap

func (o ReservationAutoRenewDisableRequest) ToMap() (map[string]interface{}, error)

func (*ReservationAutoRenewDisableRequest) UnmarshalJSON

func (o *ReservationAutoRenewDisableRequest) UnmarshalJSON(data []byte) (err error)

type ReservationInvoicingModelEnum

type ReservationInvoicingModelEnum string

ReservationInvoicingModelEnum Reservations created with initial invoice model ON_CREATION will be invoiced on same date when reservation is created. Reservation created with CALENDAR_MONTH initial invoice model will be invoiced at the beginning of next month.

const (
	RESERVATIONINVOICINGMODELENUM_ON_CREATION    ReservationInvoicingModelEnum = "ON_CREATION"
	RESERVATIONINVOICINGMODELENUM_CALENDAR_MONTH ReservationInvoicingModelEnum = "CALENDAR_MONTH"
)

List of ReservationInvoicingModelEnum

func NewReservationInvoicingModelEnumFromValue

func NewReservationInvoicingModelEnumFromValue(v string) (*ReservationInvoicingModelEnum, error)

NewReservationInvoicingModelEnumFromValue returns a pointer to a valid ReservationInvoicingModelEnum for the value passed as argument, or an error if the value passed is not allowed by the enum

func (ReservationInvoicingModelEnum) IsValid

func (v ReservationInvoicingModelEnum) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (ReservationInvoicingModelEnum) Ptr

Ptr returns reference to ReservationInvoicingModelEnum value

func (*ReservationInvoicingModelEnum) UnmarshalJSON

func (v *ReservationInvoicingModelEnum) UnmarshalJSON(src []byte) error

type ReservationModelEnum

type ReservationModelEnum string

ReservationModelEnum The reservation model.

const (
	RESERVATIONMODELENUM_ONE_MONTH_RESERVATION          ReservationModelEnum = "ONE_MONTH_RESERVATION"
	RESERVATIONMODELENUM_TWELVE_MONTHS_RESERVATION      ReservationModelEnum = "TWELVE_MONTHS_RESERVATION"
	RESERVATIONMODELENUM_TWENTY_FOUR_MONTHS_RESERVATION ReservationModelEnum = "TWENTY_FOUR_MONTHS_RESERVATION"
	RESERVATIONMODELENUM_THIRTY_SIX_MONTHS_RESERVATION  ReservationModelEnum = "THIRTY_SIX_MONTHS_RESERVATION"
	RESERVATIONMODELENUM_FREE_TIER                      ReservationModelEnum = "FREE_TIER"
)

List of ReservationModelEnum

func NewReservationModelEnumFromValue

func NewReservationModelEnumFromValue(v string) (*ReservationModelEnum, error)

NewReservationModelEnumFromValue returns a pointer to a valid ReservationModelEnum for the value passed as argument, or an error if the value passed is not allowed by the enum

func (ReservationModelEnum) IsValid

func (v ReservationModelEnum) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (ReservationModelEnum) Ptr

Ptr returns reference to ReservationModelEnum value

func (*ReservationModelEnum) UnmarshalJSON

func (v *ReservationModelEnum) UnmarshalJSON(src []byte) error

type ReservationProductCategoryEnum

type ReservationProductCategoryEnum string

ReservationProductCategoryEnum The commitment product category.

const (
	RESERVATIONPRODUCTCATEGORYENUM_SERVER    ReservationProductCategoryEnum = "server"
	RESERVATIONPRODUCTCATEGORYENUM_BANDWIDTH ReservationProductCategoryEnum = "bandwidth"
)

List of ReservationProductCategoryEnum

func NewReservationProductCategoryEnumFromValue

func NewReservationProductCategoryEnumFromValue(v string) (*ReservationProductCategoryEnum, error)

NewReservationProductCategoryEnumFromValue returns a pointer to a valid ReservationProductCategoryEnum for the value passed as argument, or an error if the value passed is not allowed by the enum

func (ReservationProductCategoryEnum) IsValid

IsValid return true if the value is valid for the enum, false otherwise

func (ReservationProductCategoryEnum) Ptr

Ptr returns reference to ReservationProductCategoryEnum value

func (*ReservationProductCategoryEnum) UnmarshalJSON

func (v *ReservationProductCategoryEnum) UnmarshalJSON(src []byte) error

type ReservationRequest

type ReservationRequest struct {
	// The sku code of product pricing plan.
	Sku                  string `json:"sku"`
	AdditionalProperties map[string]interface{}
}

ReservationRequest Reservation request.

func NewReservationRequest

func NewReservationRequest(sku string) *ReservationRequest

NewReservationRequest instantiates a new ReservationRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewReservationRequestWithDefaults

func NewReservationRequestWithDefaults() *ReservationRequest

NewReservationRequestWithDefaults instantiates a new ReservationRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ReservationRequest) GetSku

func (o *ReservationRequest) GetSku() string

GetSku returns the Sku field value

func (*ReservationRequest) GetSkuOk

func (o *ReservationRequest) GetSkuOk() (*string, bool)

GetSkuOk returns a tuple with the Sku field value and a boolean to check if the value has been set.

func (ReservationRequest) MarshalJSON

func (o ReservationRequest) MarshalJSON() ([]byte, error)

func (*ReservationRequest) SetSku

func (o *ReservationRequest) SetSku(v string)

SetSku sets field value

func (ReservationRequest) ToMap

func (o ReservationRequest) ToMap() (map[string]interface{}, error)

func (*ReservationRequest) UnmarshalJSON

func (o *ReservationRequest) UnmarshalJSON(data []byte) (err error)

type ReservationsAPI

type ReservationsAPI interface {

	/*
		ReservationsGet List all Reservations.

		Retrieves all reservations associated with the authenticated account. All date & times are in UTC.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@return ApiReservationsGetRequest
	*/
	ReservationsGet(ctx context.Context) ApiReservationsGetRequest

	// ReservationsGetExecute executes the request
	//  @return []Reservation
	ReservationsGetExecute(r ApiReservationsGetRequest) ([]Reservation, *http.Response, error)

	/*
		ReservationsPost Create a reservation.

		Creates new package reservation for authenticated account.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@return ApiReservationsPostRequest
	*/
	ReservationsPost(ctx context.Context) ApiReservationsPostRequest

	// ReservationsPostExecute executes the request
	//  @return Reservation
	ReservationsPostExecute(r ApiReservationsPostRequest) (*Reservation, *http.Response, error)

	/*
		ReservationsReservationIdActionsAutoRenewDisablePost Disable auto-renewal for reservation by id.

		Disable auto-renewal for reservation by reservation id.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param id Resource id.
		@return ApiReservationsReservationIdActionsAutoRenewDisablePostRequest
	*/
	ReservationsReservationIdActionsAutoRenewDisablePost(ctx context.Context, id string) ApiReservationsReservationIdActionsAutoRenewDisablePostRequest

	// ReservationsReservationIdActionsAutoRenewDisablePostExecute executes the request
	//  @return Reservation
	ReservationsReservationIdActionsAutoRenewDisablePostExecute(r ApiReservationsReservationIdActionsAutoRenewDisablePostRequest) (*Reservation, *http.Response, error)

	/*
		ReservationsReservationIdActionsAutoRenewEnablePost Enable auto-renewal for unexpired reservation by reservation id.

		Enable auto-renewal for unexpired reservation by reservation id.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param id Resource id.
		@return ApiReservationsReservationIdActionsAutoRenewEnablePostRequest
	*/
	ReservationsReservationIdActionsAutoRenewEnablePost(ctx context.Context, id string) ApiReservationsReservationIdActionsAutoRenewEnablePostRequest

	// ReservationsReservationIdActionsAutoRenewEnablePostExecute executes the request
	//  @return Reservation
	ReservationsReservationIdActionsAutoRenewEnablePostExecute(r ApiReservationsReservationIdActionsAutoRenewEnablePostRequest) (*Reservation, *http.Response, error)

	/*
		ReservationsReservationIdActionsConvertPost Convert reservation pricing model by reservation ID.

		Convert reservation pricing model by reservation id.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param id Resource id.
		@return ApiReservationsReservationIdActionsConvertPostRequest
	*/
	ReservationsReservationIdActionsConvertPost(ctx context.Context, id string) ApiReservationsReservationIdActionsConvertPostRequest

	// ReservationsReservationIdActionsConvertPostExecute executes the request
	//  @return Reservation
	ReservationsReservationIdActionsConvertPostExecute(r ApiReservationsReservationIdActionsConvertPostRequest) (*Reservation, *http.Response, error)

	/*
		ReservationsReservationIdGet Get a reservation.

		Retrieves the reservations with the specified identifier. All date & times are in UTC.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param id Resource id.
		@return ApiReservationsReservationIdGetRequest
	*/
	ReservationsReservationIdGet(ctx context.Context, id string) ApiReservationsReservationIdGetRequest

	// ReservationsReservationIdGetExecute executes the request
	//  @return Reservation
	ReservationsReservationIdGetExecute(r ApiReservationsReservationIdGetRequest) (*Reservation, *http.Response, error)
}

type ReservationsAPIService

type ReservationsAPIService service

ReservationsAPIService ReservationsAPI service

func (*ReservationsAPIService) ReservationsGet

ReservationsGet List all Reservations.

Retrieves all reservations associated with the authenticated account. All date & times are in UTC.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiReservationsGetRequest

func (*ReservationsAPIService) ReservationsGetExecute

func (a *ReservationsAPIService) ReservationsGetExecute(r ApiReservationsGetRequest) ([]Reservation, *http.Response, error)

Execute executes the request

@return []Reservation

func (*ReservationsAPIService) ReservationsPost

ReservationsPost Create a reservation.

Creates new package reservation for authenticated account.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiReservationsPostRequest

func (*ReservationsAPIService) ReservationsPostExecute

Execute executes the request

@return Reservation

func (*ReservationsAPIService) ReservationsReservationIdActionsAutoRenewDisablePost

func (a *ReservationsAPIService) ReservationsReservationIdActionsAutoRenewDisablePost(ctx context.Context, id string) ApiReservationsReservationIdActionsAutoRenewDisablePostRequest

ReservationsReservationIdActionsAutoRenewDisablePost Disable auto-renewal for reservation by id.

Disable auto-renewal for reservation by reservation id.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id Resource id.
@return ApiReservationsReservationIdActionsAutoRenewDisablePostRequest

func (*ReservationsAPIService) ReservationsReservationIdActionsAutoRenewDisablePostExecute

func (a *ReservationsAPIService) ReservationsReservationIdActionsAutoRenewDisablePostExecute(r ApiReservationsReservationIdActionsAutoRenewDisablePostRequest) (*Reservation, *http.Response, error)

Execute executes the request

@return Reservation

func (*ReservationsAPIService) ReservationsReservationIdActionsAutoRenewEnablePost

func (a *ReservationsAPIService) ReservationsReservationIdActionsAutoRenewEnablePost(ctx context.Context, id string) ApiReservationsReservationIdActionsAutoRenewEnablePostRequest

ReservationsReservationIdActionsAutoRenewEnablePost Enable auto-renewal for unexpired reservation by reservation id.

Enable auto-renewal for unexpired reservation by reservation id.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id Resource id.
@return ApiReservationsReservationIdActionsAutoRenewEnablePostRequest

func (*ReservationsAPIService) ReservationsReservationIdActionsAutoRenewEnablePostExecute

func (a *ReservationsAPIService) ReservationsReservationIdActionsAutoRenewEnablePostExecute(r ApiReservationsReservationIdActionsAutoRenewEnablePostRequest) (*Reservation, *http.Response, error)

Execute executes the request

@return Reservation

func (*ReservationsAPIService) ReservationsReservationIdActionsConvertPost

func (a *ReservationsAPIService) ReservationsReservationIdActionsConvertPost(ctx context.Context, id string) ApiReservationsReservationIdActionsConvertPostRequest

ReservationsReservationIdActionsConvertPost Convert reservation pricing model by reservation ID.

Convert reservation pricing model by reservation id.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id Resource id.
@return ApiReservationsReservationIdActionsConvertPostRequest

func (*ReservationsAPIService) ReservationsReservationIdActionsConvertPostExecute

func (a *ReservationsAPIService) ReservationsReservationIdActionsConvertPostExecute(r ApiReservationsReservationIdActionsConvertPostRequest) (*Reservation, *http.Response, error)

Execute executes the request

@return Reservation

func (*ReservationsAPIService) ReservationsReservationIdGet

func (a *ReservationsAPIService) ReservationsReservationIdGet(ctx context.Context, id string) ApiReservationsReservationIdGetRequest

ReservationsReservationIdGet Get a reservation.

Retrieves the reservations with the specified identifier. All date & times are in UTC.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id Resource id.
@return ApiReservationsReservationIdGetRequest

func (*ReservationsAPIService) ReservationsReservationIdGetExecute

func (a *ReservationsAPIService) ReservationsReservationIdGetExecute(r ApiReservationsReservationIdGetRequest) (*Reservation, *http.Response, error)

Execute executes the request

@return Reservation

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerDetails

type ServerDetails struct {
	// The server identifier as returned by the BMC API.
	Id string `json:"id"`
	// The server hostname.
	Hostname             string `json:"hostname"`
	AdditionalProperties map[string]interface{}
}

ServerDetails Details of the server associated with this rated usage record.

func NewServerDetails

func NewServerDetails(id string, hostname string) *ServerDetails

NewServerDetails instantiates a new ServerDetails object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewServerDetailsWithDefaults

func NewServerDetailsWithDefaults() *ServerDetails

NewServerDetailsWithDefaults instantiates a new ServerDetails object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ServerDetails) GetHostname

func (o *ServerDetails) GetHostname() string

GetHostname returns the Hostname field value

func (*ServerDetails) GetHostnameOk

func (o *ServerDetails) GetHostnameOk() (*string, bool)

GetHostnameOk returns a tuple with the Hostname field value and a boolean to check if the value has been set.

func (*ServerDetails) GetId

func (o *ServerDetails) GetId() string

GetId returns the Id field value

func (*ServerDetails) GetIdOk

func (o *ServerDetails) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (ServerDetails) MarshalJSON

func (o ServerDetails) MarshalJSON() ([]byte, error)

func (*ServerDetails) SetHostname

func (o *ServerDetails) SetHostname(v string)

SetHostname sets field value

func (*ServerDetails) SetId

func (o *ServerDetails) SetId(v string)

SetId sets field value

func (ServerDetails) ToMap

func (o ServerDetails) ToMap() (map[string]interface{}, error)

func (*ServerDetails) UnmarshalJSON

func (o *ServerDetails) UnmarshalJSON(data []byte) (err error)

type ServerProduct

type ServerProduct struct {
	// The code identifying the product. This code has significant across all locations.
	ProductCode string `json:"productCode"`
	// The product category.
	ProductCategory string `json:"productCategory"`
	// The pricing plans available for this product.
	Plans                []PricingPlan         `json:"plans,omitempty"`
	Metadata             ServerProductMetadata `json:"metadata"`
	AdditionalProperties map[string]interface{}
}

ServerProduct struct for ServerProduct

func NewServerProduct

func NewServerProduct(productCode string, productCategory string, metadata ServerProductMetadata) *ServerProduct

NewServerProduct instantiates a new ServerProduct object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewServerProductWithDefaults

func NewServerProductWithDefaults() *ServerProduct

NewServerProductWithDefaults instantiates a new ServerProduct object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ServerProduct) GetMetadata

func (o *ServerProduct) GetMetadata() ServerProductMetadata

GetMetadata returns the Metadata field value

func (*ServerProduct) GetMetadataOk

func (o *ServerProduct) GetMetadataOk() (*ServerProductMetadata, bool)

GetMetadataOk returns a tuple with the Metadata field value and a boolean to check if the value has been set.

func (*ServerProduct) GetPlans

func (o *ServerProduct) GetPlans() []PricingPlan

GetPlans returns the Plans field value if set, zero value otherwise.

func (*ServerProduct) GetPlansOk

func (o *ServerProduct) GetPlansOk() ([]PricingPlan, bool)

GetPlansOk returns a tuple with the Plans field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerProduct) GetProductCategory

func (o *ServerProduct) GetProductCategory() string

GetProductCategory returns the ProductCategory field value

func (*ServerProduct) GetProductCategoryOk

func (o *ServerProduct) GetProductCategoryOk() (*string, bool)

GetProductCategoryOk returns a tuple with the ProductCategory field value and a boolean to check if the value has been set.

func (*ServerProduct) GetProductCode

func (o *ServerProduct) GetProductCode() string

GetProductCode returns the ProductCode field value

func (*ServerProduct) GetProductCodeOk

func (o *ServerProduct) GetProductCodeOk() (*string, bool)

GetProductCodeOk returns a tuple with the ProductCode field value and a boolean to check if the value has been set.

func (*ServerProduct) HasPlans

func (o *ServerProduct) HasPlans() bool

HasPlans returns a boolean if a field has been set.

func (ServerProduct) MarshalJSON

func (o ServerProduct) MarshalJSON() ([]byte, error)

func (*ServerProduct) SetMetadata

func (o *ServerProduct) SetMetadata(v ServerProductMetadata)

SetMetadata sets field value

func (*ServerProduct) SetPlans

func (o *ServerProduct) SetPlans(v []PricingPlan)

SetPlans gets a reference to the given []PricingPlan and assigns it to the Plans field.

func (*ServerProduct) SetProductCategory

func (o *ServerProduct) SetProductCategory(v string)

SetProductCategory sets field value

func (*ServerProduct) SetProductCode

func (o *ServerProduct) SetProductCode(v string)

SetProductCode sets field value

func (ServerProduct) ToMap

func (o ServerProduct) ToMap() (map[string]interface{}, error)

func (*ServerProduct) UnmarshalJSON

func (o *ServerProduct) UnmarshalJSON(data []byte) (err error)

type ServerProductMetadata

type ServerProductMetadata struct {
	// RAM in GB.
	RamInGb float32 `json:"ramInGb"`
	// CPU name.
	Cpu string `json:"cpu"`
	// Number of CPUs.
	CpuCount float32 `json:"cpuCount"`
	// The number of physical cores present on each CPU.
	CoresPerCpu float32 `json:"coresPerCpu"`
	// CPU frequency in GHz.
	CpuFrequency float32 `json:"cpuFrequency"`
	// Server network.
	Network string `json:"network"`
	// Server storage.
	Storage              string `json:"storage"`
	AdditionalProperties map[string]interface{}
}

ServerProductMetadata Details of the server product.

func NewServerProductMetadata

func NewServerProductMetadata(ramInGb float32, cpu string, cpuCount float32, coresPerCpu float32, cpuFrequency float32, network string, storage string) *ServerProductMetadata

NewServerProductMetadata instantiates a new ServerProductMetadata object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewServerProductMetadataWithDefaults

func NewServerProductMetadataWithDefaults() *ServerProductMetadata

NewServerProductMetadataWithDefaults instantiates a new ServerProductMetadata object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ServerProductMetadata) GetCoresPerCpu

func (o *ServerProductMetadata) GetCoresPerCpu() float32

GetCoresPerCpu returns the CoresPerCpu field value

func (*ServerProductMetadata) GetCoresPerCpuOk

func (o *ServerProductMetadata) GetCoresPerCpuOk() (*float32, bool)

GetCoresPerCpuOk returns a tuple with the CoresPerCpu field value and a boolean to check if the value has been set.

func (*ServerProductMetadata) GetCpu

func (o *ServerProductMetadata) GetCpu() string

GetCpu returns the Cpu field value

func (*ServerProductMetadata) GetCpuCount

func (o *ServerProductMetadata) GetCpuCount() float32

GetCpuCount returns the CpuCount field value

func (*ServerProductMetadata) GetCpuCountOk

func (o *ServerProductMetadata) GetCpuCountOk() (*float32, bool)

GetCpuCountOk returns a tuple with the CpuCount field value and a boolean to check if the value has been set.

func (*ServerProductMetadata) GetCpuFrequency

func (o *ServerProductMetadata) GetCpuFrequency() float32

GetCpuFrequency returns the CpuFrequency field value

func (*ServerProductMetadata) GetCpuFrequencyOk

func (o *ServerProductMetadata) GetCpuFrequencyOk() (*float32, bool)

GetCpuFrequencyOk returns a tuple with the CpuFrequency field value and a boolean to check if the value has been set.

func (*ServerProductMetadata) GetCpuOk

func (o *ServerProductMetadata) GetCpuOk() (*string, bool)

GetCpuOk returns a tuple with the Cpu field value and a boolean to check if the value has been set.

func (*ServerProductMetadata) GetNetwork

func (o *ServerProductMetadata) GetNetwork() string

GetNetwork returns the Network field value

func (*ServerProductMetadata) GetNetworkOk

func (o *ServerProductMetadata) GetNetworkOk() (*string, bool)

GetNetworkOk returns a tuple with the Network field value and a boolean to check if the value has been set.

func (*ServerProductMetadata) GetRamInGb

func (o *ServerProductMetadata) GetRamInGb() float32

GetRamInGb returns the RamInGb field value

func (*ServerProductMetadata) GetRamInGbOk

func (o *ServerProductMetadata) GetRamInGbOk() (*float32, bool)

GetRamInGbOk returns a tuple with the RamInGb field value and a boolean to check if the value has been set.

func (*ServerProductMetadata) GetStorage

func (o *ServerProductMetadata) GetStorage() string

GetStorage returns the Storage field value

func (*ServerProductMetadata) GetStorageOk

func (o *ServerProductMetadata) GetStorageOk() (*string, bool)

GetStorageOk returns a tuple with the Storage field value and a boolean to check if the value has been set.

func (ServerProductMetadata) MarshalJSON

func (o ServerProductMetadata) MarshalJSON() ([]byte, error)

func (*ServerProductMetadata) SetCoresPerCpu

func (o *ServerProductMetadata) SetCoresPerCpu(v float32)

SetCoresPerCpu sets field value

func (*ServerProductMetadata) SetCpu

func (o *ServerProductMetadata) SetCpu(v string)

SetCpu sets field value

func (*ServerProductMetadata) SetCpuCount

func (o *ServerProductMetadata) SetCpuCount(v float32)

SetCpuCount sets field value

func (*ServerProductMetadata) SetCpuFrequency

func (o *ServerProductMetadata) SetCpuFrequency(v float32)

SetCpuFrequency sets field value

func (*ServerProductMetadata) SetNetwork

func (o *ServerProductMetadata) SetNetwork(v string)

SetNetwork sets field value

func (*ServerProductMetadata) SetRamInGb

func (o *ServerProductMetadata) SetRamInGb(v float32)

SetRamInGb sets field value

func (*ServerProductMetadata) SetStorage

func (o *ServerProductMetadata) SetStorage(v string)

SetStorage sets field value

func (ServerProductMetadata) ToMap

func (o ServerProductMetadata) ToMap() (map[string]interface{}, error)

func (*ServerProductMetadata) UnmarshalJSON

func (o *ServerProductMetadata) UnmarshalJSON(data []byte) (err error)

type ServerRecord

type ServerRecord struct {
	// The unique identifier of the rated usage record.
	Id string `json:"id"`
	// The category of the product associated with this usage record.
	ProductCategory string `json:"productCategory"`
	// The code identifying the product associated to this usage record.
	ProductCode string       `json:"productCode"`
	Location    LocationEnum `json:"location"`
	// Year and month of the usage record.
	YearMonth *string `json:"yearMonth,omitempty"`
	// The point in time (in UTC) when usage has started.
	StartDateTime time.Time `json:"startDateTime"`
	// The point in time (in UTC) until usage has been rated.
	EndDateTime time.Time `json:"endDateTime"`
	// The rated usage in cents.
	Cost int64 `json:"cost"`
	// The cost in cents before discount.
	CostBeforeDiscount *int64 `json:"costBeforeDiscount,omitempty"`
	// The rated usage cost description.
	CostDescription *string `json:"costDescription,omitempty"`
	// The price model applied to this usage record.
	PriceModel string `json:"priceModel"`
	// The unit price.
	UnitPrice float32 `json:"unitPrice"`
	// User friendly description of the unit price.
	UnitPriceDescription string `json:"unitPriceDescription"`
	// The number of units being charged.
	Quantity float32 `json:"quantity"`
	// A flag indicating whether the rated usage record is still active.
	Active bool `json:"active"`
	// The usage session ID is used to correlate rated usage records across periods of time. For example, a server used for over a month will generate multiple rated usage records. The entire usage session cost can be computed by aggregating the records having the same usage session ID. It is usual to have one rated usage record per month or invoice.
	UsageSessionId string `json:"usageSessionId"`
	// Holds usage record id
	CorrelationId string `json:"correlationId"`
	// Reservation id associated with this rated usage record.
	ReservationId        *string          `json:"reservationId,omitempty"`
	DiscountDetails      *DiscountDetails `json:"discountDetails,omitempty"`
	Metadata             ServerDetails    `json:"metadata"`
	AdditionalProperties map[string]interface{}
}

ServerRecord struct for ServerRecord

func NewServerRecord

func NewServerRecord(id string, productCategory string, productCode string, location LocationEnum, startDateTime time.Time, endDateTime time.Time, cost int64, priceModel string, unitPrice float32, unitPriceDescription string, quantity float32, active bool, usageSessionId string, correlationId string, metadata ServerDetails) *ServerRecord

NewServerRecord instantiates a new ServerRecord object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewServerRecordWithDefaults

func NewServerRecordWithDefaults() *ServerRecord

NewServerRecordWithDefaults instantiates a new ServerRecord object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ServerRecord) GetActive

func (o *ServerRecord) GetActive() bool

GetActive returns the Active field value

func (*ServerRecord) GetActiveOk

func (o *ServerRecord) GetActiveOk() (*bool, bool)

GetActiveOk returns a tuple with the Active field value and a boolean to check if the value has been set.

func (*ServerRecord) GetCorrelationId

func (o *ServerRecord) GetCorrelationId() string

GetCorrelationId returns the CorrelationId field value

func (*ServerRecord) GetCorrelationIdOk

func (o *ServerRecord) GetCorrelationIdOk() (*string, bool)

GetCorrelationIdOk returns a tuple with the CorrelationId field value and a boolean to check if the value has been set.

func (*ServerRecord) GetCost

func (o *ServerRecord) GetCost() int64

GetCost returns the Cost field value

func (*ServerRecord) GetCostBeforeDiscount

func (o *ServerRecord) GetCostBeforeDiscount() int64

GetCostBeforeDiscount returns the CostBeforeDiscount field value if set, zero value otherwise.

func (*ServerRecord) GetCostBeforeDiscountOk

func (o *ServerRecord) GetCostBeforeDiscountOk() (*int64, bool)

GetCostBeforeDiscountOk returns a tuple with the CostBeforeDiscount field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerRecord) GetCostDescription

func (o *ServerRecord) GetCostDescription() string

GetCostDescription returns the CostDescription field value if set, zero value otherwise.

func (*ServerRecord) GetCostDescriptionOk

func (o *ServerRecord) GetCostDescriptionOk() (*string, bool)

GetCostDescriptionOk returns a tuple with the CostDescription field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerRecord) GetCostOk

func (o *ServerRecord) GetCostOk() (*int64, bool)

GetCostOk returns a tuple with the Cost field value and a boolean to check if the value has been set.

func (*ServerRecord) GetDiscountDetails

func (o *ServerRecord) GetDiscountDetails() DiscountDetails

GetDiscountDetails returns the DiscountDetails field value if set, zero value otherwise.

func (*ServerRecord) GetDiscountDetailsOk

func (o *ServerRecord) GetDiscountDetailsOk() (*DiscountDetails, bool)

GetDiscountDetailsOk returns a tuple with the DiscountDetails field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerRecord) GetEndDateTime

func (o *ServerRecord) GetEndDateTime() time.Time

GetEndDateTime returns the EndDateTime field value

func (*ServerRecord) GetEndDateTimeOk

func (o *ServerRecord) GetEndDateTimeOk() (*time.Time, bool)

GetEndDateTimeOk returns a tuple with the EndDateTime field value and a boolean to check if the value has been set.

func (*ServerRecord) GetId

func (o *ServerRecord) GetId() string

GetId returns the Id field value

func (*ServerRecord) GetIdOk

func (o *ServerRecord) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*ServerRecord) GetLocation

func (o *ServerRecord) GetLocation() LocationEnum

GetLocation returns the Location field value

func (*ServerRecord) GetLocationOk

func (o *ServerRecord) GetLocationOk() (*LocationEnum, bool)

GetLocationOk returns a tuple with the Location field value and a boolean to check if the value has been set.

func (*ServerRecord) GetMetadata

func (o *ServerRecord) GetMetadata() ServerDetails

GetMetadata returns the Metadata field value

func (*ServerRecord) GetMetadataOk

func (o *ServerRecord) GetMetadataOk() (*ServerDetails, bool)

GetMetadataOk returns a tuple with the Metadata field value and a boolean to check if the value has been set.

func (*ServerRecord) GetPriceModel

func (o *ServerRecord) GetPriceModel() string

GetPriceModel returns the PriceModel field value

func (*ServerRecord) GetPriceModelOk

func (o *ServerRecord) GetPriceModelOk() (*string, bool)

GetPriceModelOk returns a tuple with the PriceModel field value and a boolean to check if the value has been set.

func (*ServerRecord) GetProductCategory

func (o *ServerRecord) GetProductCategory() string

GetProductCategory returns the ProductCategory field value

func (*ServerRecord) GetProductCategoryOk

func (o *ServerRecord) GetProductCategoryOk() (*string, bool)

GetProductCategoryOk returns a tuple with the ProductCategory field value and a boolean to check if the value has been set.

func (*ServerRecord) GetProductCode

func (o *ServerRecord) GetProductCode() string

GetProductCode returns the ProductCode field value

func (*ServerRecord) GetProductCodeOk

func (o *ServerRecord) GetProductCodeOk() (*string, bool)

GetProductCodeOk returns a tuple with the ProductCode field value and a boolean to check if the value has been set.

func (*ServerRecord) GetQuantity

func (o *ServerRecord) GetQuantity() float32

GetQuantity returns the Quantity field value

func (*ServerRecord) GetQuantityOk

func (o *ServerRecord) GetQuantityOk() (*float32, bool)

GetQuantityOk returns a tuple with the Quantity field value and a boolean to check if the value has been set.

func (*ServerRecord) GetReservationId

func (o *ServerRecord) GetReservationId() string

GetReservationId returns the ReservationId field value if set, zero value otherwise.

func (*ServerRecord) GetReservationIdOk

func (o *ServerRecord) GetReservationIdOk() (*string, bool)

GetReservationIdOk returns a tuple with the ReservationId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerRecord) GetStartDateTime

func (o *ServerRecord) GetStartDateTime() time.Time

GetStartDateTime returns the StartDateTime field value

func (*ServerRecord) GetStartDateTimeOk

func (o *ServerRecord) GetStartDateTimeOk() (*time.Time, bool)

GetStartDateTimeOk returns a tuple with the StartDateTime field value and a boolean to check if the value has been set.

func (*ServerRecord) GetUnitPrice

func (o *ServerRecord) GetUnitPrice() float32

GetUnitPrice returns the UnitPrice field value

func (*ServerRecord) GetUnitPriceDescription

func (o *ServerRecord) GetUnitPriceDescription() string

GetUnitPriceDescription returns the UnitPriceDescription field value

func (*ServerRecord) GetUnitPriceDescriptionOk

func (o *ServerRecord) GetUnitPriceDescriptionOk() (*string, bool)

GetUnitPriceDescriptionOk returns a tuple with the UnitPriceDescription field value and a boolean to check if the value has been set.

func (*ServerRecord) GetUnitPriceOk

func (o *ServerRecord) GetUnitPriceOk() (*float32, bool)

GetUnitPriceOk returns a tuple with the UnitPrice field value and a boolean to check if the value has been set.

func (*ServerRecord) GetUsageSessionId

func (o *ServerRecord) GetUsageSessionId() string

GetUsageSessionId returns the UsageSessionId field value

func (*ServerRecord) GetUsageSessionIdOk

func (o *ServerRecord) GetUsageSessionIdOk() (*string, bool)

GetUsageSessionIdOk returns a tuple with the UsageSessionId field value and a boolean to check if the value has been set.

func (*ServerRecord) GetYearMonth

func (o *ServerRecord) GetYearMonth() string

GetYearMonth returns the YearMonth field value if set, zero value otherwise.

func (*ServerRecord) GetYearMonthOk

func (o *ServerRecord) GetYearMonthOk() (*string, bool)

GetYearMonthOk returns a tuple with the YearMonth field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerRecord) HasCostBeforeDiscount

func (o *ServerRecord) HasCostBeforeDiscount() bool

HasCostBeforeDiscount returns a boolean if a field has been set.

func (*ServerRecord) HasCostDescription

func (o *ServerRecord) HasCostDescription() bool

HasCostDescription returns a boolean if a field has been set.

func (*ServerRecord) HasDiscountDetails

func (o *ServerRecord) HasDiscountDetails() bool

HasDiscountDetails returns a boolean if a field has been set.

func (*ServerRecord) HasReservationId

func (o *ServerRecord) HasReservationId() bool

HasReservationId returns a boolean if a field has been set.

func (*ServerRecord) HasYearMonth

func (o *ServerRecord) HasYearMonth() bool

HasYearMonth returns a boolean if a field has been set.

func (ServerRecord) MarshalJSON

func (o ServerRecord) MarshalJSON() ([]byte, error)

func (*ServerRecord) SetActive

func (o *ServerRecord) SetActive(v bool)

SetActive sets field value

func (*ServerRecord) SetCorrelationId

func (o *ServerRecord) SetCorrelationId(v string)

SetCorrelationId sets field value

func (*ServerRecord) SetCost

func (o *ServerRecord) SetCost(v int64)

SetCost sets field value

func (*ServerRecord) SetCostBeforeDiscount

func (o *ServerRecord) SetCostBeforeDiscount(v int64)

SetCostBeforeDiscount gets a reference to the given int64 and assigns it to the CostBeforeDiscount field.

func (*ServerRecord) SetCostDescription

func (o *ServerRecord) SetCostDescription(v string)

SetCostDescription gets a reference to the given string and assigns it to the CostDescription field.

func (*ServerRecord) SetDiscountDetails

func (o *ServerRecord) SetDiscountDetails(v DiscountDetails)

SetDiscountDetails gets a reference to the given DiscountDetails and assigns it to the DiscountDetails field.

func (*ServerRecord) SetEndDateTime

func (o *ServerRecord) SetEndDateTime(v time.Time)

SetEndDateTime sets field value

func (*ServerRecord) SetId

func (o *ServerRecord) SetId(v string)

SetId sets field value

func (*ServerRecord) SetLocation

func (o *ServerRecord) SetLocation(v LocationEnum)

SetLocation sets field value

func (*ServerRecord) SetMetadata

func (o *ServerRecord) SetMetadata(v ServerDetails)

SetMetadata sets field value

func (*ServerRecord) SetPriceModel

func (o *ServerRecord) SetPriceModel(v string)

SetPriceModel sets field value

func (*ServerRecord) SetProductCategory

func (o *ServerRecord) SetProductCategory(v string)

SetProductCategory sets field value

func (*ServerRecord) SetProductCode

func (o *ServerRecord) SetProductCode(v string)

SetProductCode sets field value

func (*ServerRecord) SetQuantity

func (o *ServerRecord) SetQuantity(v float32)

SetQuantity sets field value

func (*ServerRecord) SetReservationId

func (o *ServerRecord) SetReservationId(v string)

SetReservationId gets a reference to the given string and assigns it to the ReservationId field.

func (*ServerRecord) SetStartDateTime

func (o *ServerRecord) SetStartDateTime(v time.Time)

SetStartDateTime sets field value

func (*ServerRecord) SetUnitPrice

func (o *ServerRecord) SetUnitPrice(v float32)

SetUnitPrice sets field value

func (*ServerRecord) SetUnitPriceDescription

func (o *ServerRecord) SetUnitPriceDescription(v string)

SetUnitPriceDescription sets field value

func (*ServerRecord) SetUsageSessionId

func (o *ServerRecord) SetUsageSessionId(v string)

SetUsageSessionId sets field value

func (*ServerRecord) SetYearMonth

func (o *ServerRecord) SetYearMonth(v string)

SetYearMonth gets a reference to the given string and assigns it to the YearMonth field.

func (ServerRecord) ToMap

func (o ServerRecord) ToMap() (map[string]interface{}, error)

func (*ServerRecord) UnmarshalJSON

func (o *ServerRecord) UnmarshalJSON(data []byte) (err error)

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type StorageDetails

type StorageDetails struct {
	// Network storage ID.
	NetworkStorageId string `json:"networkStorageId"`
	// Network storage name.
	NetworkStorageName string `json:"networkStorageName"`
	// Volume ID.
	VolumeId string `json:"volumeId"`
	// Volume name.
	VolumeName string `json:"volumeName"`
	// Capacity in GB.
	CapacityInGb int64 `json:"capacityInGb"`
	// Timestamp when the record was created.
	CreatedOn            time.Time `json:"createdOn"`
	AdditionalProperties map[string]interface{}
}

StorageDetails Details of the storage associated with this rated usage record.

func NewStorageDetails

func NewStorageDetails(networkStorageId string, networkStorageName string, volumeId string, volumeName string, capacityInGb int64, createdOn time.Time) *StorageDetails

NewStorageDetails instantiates a new StorageDetails object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewStorageDetailsWithDefaults

func NewStorageDetailsWithDefaults() *StorageDetails

NewStorageDetailsWithDefaults instantiates a new StorageDetails object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*StorageDetails) GetCapacityInGb

func (o *StorageDetails) GetCapacityInGb() int64

GetCapacityInGb returns the CapacityInGb field value

func (*StorageDetails) GetCapacityInGbOk

func (o *StorageDetails) GetCapacityInGbOk() (*int64, bool)

GetCapacityInGbOk returns a tuple with the CapacityInGb field value and a boolean to check if the value has been set.

func (*StorageDetails) GetCreatedOn

func (o *StorageDetails) GetCreatedOn() time.Time

GetCreatedOn returns the CreatedOn field value

func (*StorageDetails) GetCreatedOnOk

func (o *StorageDetails) GetCreatedOnOk() (*time.Time, bool)

GetCreatedOnOk returns a tuple with the CreatedOn field value and a boolean to check if the value has been set.

func (*StorageDetails) GetNetworkStorageId

func (o *StorageDetails) GetNetworkStorageId() string

GetNetworkStorageId returns the NetworkStorageId field value

func (*StorageDetails) GetNetworkStorageIdOk

func (o *StorageDetails) GetNetworkStorageIdOk() (*string, bool)

GetNetworkStorageIdOk returns a tuple with the NetworkStorageId field value and a boolean to check if the value has been set.

func (*StorageDetails) GetNetworkStorageName

func (o *StorageDetails) GetNetworkStorageName() string

GetNetworkStorageName returns the NetworkStorageName field value

func (*StorageDetails) GetNetworkStorageNameOk

func (o *StorageDetails) GetNetworkStorageNameOk() (*string, bool)

GetNetworkStorageNameOk returns a tuple with the NetworkStorageName field value and a boolean to check if the value has been set.

func (*StorageDetails) GetVolumeId

func (o *StorageDetails) GetVolumeId() string

GetVolumeId returns the VolumeId field value

func (*StorageDetails) GetVolumeIdOk

func (o *StorageDetails) GetVolumeIdOk() (*string, bool)

GetVolumeIdOk returns a tuple with the VolumeId field value and a boolean to check if the value has been set.

func (*StorageDetails) GetVolumeName

func (o *StorageDetails) GetVolumeName() string

GetVolumeName returns the VolumeName field value

func (*StorageDetails) GetVolumeNameOk

func (o *StorageDetails) GetVolumeNameOk() (*string, bool)

GetVolumeNameOk returns a tuple with the VolumeName field value and a boolean to check if the value has been set.

func (StorageDetails) MarshalJSON

func (o StorageDetails) MarshalJSON() ([]byte, error)

func (*StorageDetails) SetCapacityInGb

func (o *StorageDetails) SetCapacityInGb(v int64)

SetCapacityInGb sets field value

func (*StorageDetails) SetCreatedOn

func (o *StorageDetails) SetCreatedOn(v time.Time)

SetCreatedOn sets field value

func (*StorageDetails) SetNetworkStorageId

func (o *StorageDetails) SetNetworkStorageId(v string)

SetNetworkStorageId sets field value

func (*StorageDetails) SetNetworkStorageName

func (o *StorageDetails) SetNetworkStorageName(v string)

SetNetworkStorageName sets field value

func (*StorageDetails) SetVolumeId

func (o *StorageDetails) SetVolumeId(v string)

SetVolumeId sets field value

func (*StorageDetails) SetVolumeName

func (o *StorageDetails) SetVolumeName(v string)

SetVolumeName sets field value

func (StorageDetails) ToMap

func (o StorageDetails) ToMap() (map[string]interface{}, error)

func (*StorageDetails) UnmarshalJSON

func (o *StorageDetails) UnmarshalJSON(data []byte) (err error)

type StorageRecord

type StorageRecord struct {
	// The unique identifier of the rated usage record.
	Id string `json:"id"`
	// The category of the product associated with this usage record.
	ProductCategory string `json:"productCategory"`
	// The code identifying the product associated to this usage record.
	ProductCode string       `json:"productCode"`
	Location    LocationEnum `json:"location"`
	// Year and month of the usage record.
	YearMonth *string `json:"yearMonth,omitempty"`
	// The point in time (in UTC) when usage has started.
	StartDateTime time.Time `json:"startDateTime"`
	// The point in time (in UTC) until usage has been rated.
	EndDateTime time.Time `json:"endDateTime"`
	// The rated usage in cents.
	Cost int64 `json:"cost"`
	// The cost in cents before discount.
	CostBeforeDiscount *int64 `json:"costBeforeDiscount,omitempty"`
	// The rated usage cost description.
	CostDescription *string `json:"costDescription,omitempty"`
	// The price model applied to this usage record.
	PriceModel string `json:"priceModel"`
	// The unit price.
	UnitPrice float32 `json:"unitPrice"`
	// User friendly description of the unit price.
	UnitPriceDescription string `json:"unitPriceDescription"`
	// The number of units being charged.
	Quantity float32 `json:"quantity"`
	// A flag indicating whether the rated usage record is still active.
	Active bool `json:"active"`
	// The usage session ID is used to correlate rated usage records across periods of time. For example, a server used for over a month will generate multiple rated usage records. The entire usage session cost can be computed by aggregating the records having the same usage session ID. It is usual to have one rated usage record per month or invoice.
	UsageSessionId string `json:"usageSessionId"`
	// Holds usage record id
	CorrelationId string `json:"correlationId"`
	// Reservation id associated with this rated usage record.
	ReservationId        *string          `json:"reservationId,omitempty"`
	DiscountDetails      *DiscountDetails `json:"discountDetails,omitempty"`
	Metadata             StorageDetails   `json:"metadata"`
	AdditionalProperties map[string]interface{}
}

StorageRecord struct for StorageRecord

func NewStorageRecord

func NewStorageRecord(id string, productCategory string, productCode string, location LocationEnum, startDateTime time.Time, endDateTime time.Time, cost int64, priceModel string, unitPrice float32, unitPriceDescription string, quantity float32, active bool, usageSessionId string, correlationId string, metadata StorageDetails) *StorageRecord

NewStorageRecord instantiates a new StorageRecord object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewStorageRecordWithDefaults

func NewStorageRecordWithDefaults() *StorageRecord

NewStorageRecordWithDefaults instantiates a new StorageRecord object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*StorageRecord) GetActive

func (o *StorageRecord) GetActive() bool

GetActive returns the Active field value

func (*StorageRecord) GetActiveOk

func (o *StorageRecord) GetActiveOk() (*bool, bool)

GetActiveOk returns a tuple with the Active field value and a boolean to check if the value has been set.

func (*StorageRecord) GetCorrelationId

func (o *StorageRecord) GetCorrelationId() string

GetCorrelationId returns the CorrelationId field value

func (*StorageRecord) GetCorrelationIdOk

func (o *StorageRecord) GetCorrelationIdOk() (*string, bool)

GetCorrelationIdOk returns a tuple with the CorrelationId field value and a boolean to check if the value has been set.

func (*StorageRecord) GetCost

func (o *StorageRecord) GetCost() int64

GetCost returns the Cost field value

func (*StorageRecord) GetCostBeforeDiscount

func (o *StorageRecord) GetCostBeforeDiscount() int64

GetCostBeforeDiscount returns the CostBeforeDiscount field value if set, zero value otherwise.

func (*StorageRecord) GetCostBeforeDiscountOk

func (o *StorageRecord) GetCostBeforeDiscountOk() (*int64, bool)

GetCostBeforeDiscountOk returns a tuple with the CostBeforeDiscount field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StorageRecord) GetCostDescription

func (o *StorageRecord) GetCostDescription() string

GetCostDescription returns the CostDescription field value if set, zero value otherwise.

func (*StorageRecord) GetCostDescriptionOk

func (o *StorageRecord) GetCostDescriptionOk() (*string, bool)

GetCostDescriptionOk returns a tuple with the CostDescription field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StorageRecord) GetCostOk

func (o *StorageRecord) GetCostOk() (*int64, bool)

GetCostOk returns a tuple with the Cost field value and a boolean to check if the value has been set.

func (*StorageRecord) GetDiscountDetails

func (o *StorageRecord) GetDiscountDetails() DiscountDetails

GetDiscountDetails returns the DiscountDetails field value if set, zero value otherwise.

func (*StorageRecord) GetDiscountDetailsOk

func (o *StorageRecord) GetDiscountDetailsOk() (*DiscountDetails, bool)

GetDiscountDetailsOk returns a tuple with the DiscountDetails field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StorageRecord) GetEndDateTime

func (o *StorageRecord) GetEndDateTime() time.Time

GetEndDateTime returns the EndDateTime field value

func (*StorageRecord) GetEndDateTimeOk

func (o *StorageRecord) GetEndDateTimeOk() (*time.Time, bool)

GetEndDateTimeOk returns a tuple with the EndDateTime field value and a boolean to check if the value has been set.

func (*StorageRecord) GetId

func (o *StorageRecord) GetId() string

GetId returns the Id field value

func (*StorageRecord) GetIdOk

func (o *StorageRecord) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*StorageRecord) GetLocation

func (o *StorageRecord) GetLocation() LocationEnum

GetLocation returns the Location field value

func (*StorageRecord) GetLocationOk

func (o *StorageRecord) GetLocationOk() (*LocationEnum, bool)

GetLocationOk returns a tuple with the Location field value and a boolean to check if the value has been set.

func (*StorageRecord) GetMetadata

func (o *StorageRecord) GetMetadata() StorageDetails

GetMetadata returns the Metadata field value

func (*StorageRecord) GetMetadataOk

func (o *StorageRecord) GetMetadataOk() (*StorageDetails, bool)

GetMetadataOk returns a tuple with the Metadata field value and a boolean to check if the value has been set.

func (*StorageRecord) GetPriceModel

func (o *StorageRecord) GetPriceModel() string

GetPriceModel returns the PriceModel field value

func (*StorageRecord) GetPriceModelOk

func (o *StorageRecord) GetPriceModelOk() (*string, bool)

GetPriceModelOk returns a tuple with the PriceModel field value and a boolean to check if the value has been set.

func (*StorageRecord) GetProductCategory

func (o *StorageRecord) GetProductCategory() string

GetProductCategory returns the ProductCategory field value

func (*StorageRecord) GetProductCategoryOk

func (o *StorageRecord) GetProductCategoryOk() (*string, bool)

GetProductCategoryOk returns a tuple with the ProductCategory field value and a boolean to check if the value has been set.

func (*StorageRecord) GetProductCode

func (o *StorageRecord) GetProductCode() string

GetProductCode returns the ProductCode field value

func (*StorageRecord) GetProductCodeOk

func (o *StorageRecord) GetProductCodeOk() (*string, bool)

GetProductCodeOk returns a tuple with the ProductCode field value and a boolean to check if the value has been set.

func (*StorageRecord) GetQuantity

func (o *StorageRecord) GetQuantity() float32

GetQuantity returns the Quantity field value

func (*StorageRecord) GetQuantityOk

func (o *StorageRecord) GetQuantityOk() (*float32, bool)

GetQuantityOk returns a tuple with the Quantity field value and a boolean to check if the value has been set.

func (*StorageRecord) GetReservationId

func (o *StorageRecord) GetReservationId() string

GetReservationId returns the ReservationId field value if set, zero value otherwise.

func (*StorageRecord) GetReservationIdOk

func (o *StorageRecord) GetReservationIdOk() (*string, bool)

GetReservationIdOk returns a tuple with the ReservationId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StorageRecord) GetStartDateTime

func (o *StorageRecord) GetStartDateTime() time.Time

GetStartDateTime returns the StartDateTime field value

func (*StorageRecord) GetStartDateTimeOk

func (o *StorageRecord) GetStartDateTimeOk() (*time.Time, bool)

GetStartDateTimeOk returns a tuple with the StartDateTime field value and a boolean to check if the value has been set.

func (*StorageRecord) GetUnitPrice

func (o *StorageRecord) GetUnitPrice() float32

GetUnitPrice returns the UnitPrice field value

func (*StorageRecord) GetUnitPriceDescription

func (o *StorageRecord) GetUnitPriceDescription() string

GetUnitPriceDescription returns the UnitPriceDescription field value

func (*StorageRecord) GetUnitPriceDescriptionOk

func (o *StorageRecord) GetUnitPriceDescriptionOk() (*string, bool)

GetUnitPriceDescriptionOk returns a tuple with the UnitPriceDescription field value and a boolean to check if the value has been set.

func (*StorageRecord) GetUnitPriceOk

func (o *StorageRecord) GetUnitPriceOk() (*float32, bool)

GetUnitPriceOk returns a tuple with the UnitPrice field value and a boolean to check if the value has been set.

func (*StorageRecord) GetUsageSessionId

func (o *StorageRecord) GetUsageSessionId() string

GetUsageSessionId returns the UsageSessionId field value

func (*StorageRecord) GetUsageSessionIdOk

func (o *StorageRecord) GetUsageSessionIdOk() (*string, bool)

GetUsageSessionIdOk returns a tuple with the UsageSessionId field value and a boolean to check if the value has been set.

func (*StorageRecord) GetYearMonth

func (o *StorageRecord) GetYearMonth() string

GetYearMonth returns the YearMonth field value if set, zero value otherwise.

func (*StorageRecord) GetYearMonthOk

func (o *StorageRecord) GetYearMonthOk() (*string, bool)

GetYearMonthOk returns a tuple with the YearMonth field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StorageRecord) HasCostBeforeDiscount

func (o *StorageRecord) HasCostBeforeDiscount() bool

HasCostBeforeDiscount returns a boolean if a field has been set.

func (*StorageRecord) HasCostDescription

func (o *StorageRecord) HasCostDescription() bool

HasCostDescription returns a boolean if a field has been set.

func (*StorageRecord) HasDiscountDetails

func (o *StorageRecord) HasDiscountDetails() bool

HasDiscountDetails returns a boolean if a field has been set.

func (*StorageRecord) HasReservationId

func (o *StorageRecord) HasReservationId() bool

HasReservationId returns a boolean if a field has been set.

func (*StorageRecord) HasYearMonth

func (o *StorageRecord) HasYearMonth() bool

HasYearMonth returns a boolean if a field has been set.

func (StorageRecord) MarshalJSON

func (o StorageRecord) MarshalJSON() ([]byte, error)

func (*StorageRecord) SetActive

func (o *StorageRecord) SetActive(v bool)

SetActive sets field value

func (*StorageRecord) SetCorrelationId

func (o *StorageRecord) SetCorrelationId(v string)

SetCorrelationId sets field value

func (*StorageRecord) SetCost

func (o *StorageRecord) SetCost(v int64)

SetCost sets field value

func (*StorageRecord) SetCostBeforeDiscount

func (o *StorageRecord) SetCostBeforeDiscount(v int64)

SetCostBeforeDiscount gets a reference to the given int64 and assigns it to the CostBeforeDiscount field.

func (*StorageRecord) SetCostDescription

func (o *StorageRecord) SetCostDescription(v string)

SetCostDescription gets a reference to the given string and assigns it to the CostDescription field.

func (*StorageRecord) SetDiscountDetails

func (o *StorageRecord) SetDiscountDetails(v DiscountDetails)

SetDiscountDetails gets a reference to the given DiscountDetails and assigns it to the DiscountDetails field.

func (*StorageRecord) SetEndDateTime

func (o *StorageRecord) SetEndDateTime(v time.Time)

SetEndDateTime sets field value

func (*StorageRecord) SetId

func (o *StorageRecord) SetId(v string)

SetId sets field value

func (*StorageRecord) SetLocation

func (o *StorageRecord) SetLocation(v LocationEnum)

SetLocation sets field value

func (*StorageRecord) SetMetadata

func (o *StorageRecord) SetMetadata(v StorageDetails)

SetMetadata sets field value

func (*StorageRecord) SetPriceModel

func (o *StorageRecord) SetPriceModel(v string)

SetPriceModel sets field value

func (*StorageRecord) SetProductCategory

func (o *StorageRecord) SetProductCategory(v string)

SetProductCategory sets field value

func (*StorageRecord) SetProductCode

func (o *StorageRecord) SetProductCode(v string)

SetProductCode sets field value

func (*StorageRecord) SetQuantity

func (o *StorageRecord) SetQuantity(v float32)

SetQuantity sets field value

func (*StorageRecord) SetReservationId

func (o *StorageRecord) SetReservationId(v string)

SetReservationId gets a reference to the given string and assigns it to the ReservationId field.

func (*StorageRecord) SetStartDateTime

func (o *StorageRecord) SetStartDateTime(v time.Time)

SetStartDateTime sets field value

func (*StorageRecord) SetUnitPrice

func (o *StorageRecord) SetUnitPrice(v float32)

SetUnitPrice sets field value

func (*StorageRecord) SetUnitPriceDescription

func (o *StorageRecord) SetUnitPriceDescription(v string)

SetUnitPriceDescription sets field value

func (*StorageRecord) SetUsageSessionId

func (o *StorageRecord) SetUsageSessionId(v string)

SetUsageSessionId sets field value

func (*StorageRecord) SetYearMonth

func (o *StorageRecord) SetYearMonth(v string)

SetYearMonth gets a reference to the given string and assigns it to the YearMonth field.

func (StorageRecord) ToMap

func (o StorageRecord) ToMap() (map[string]interface{}, error)

func (*StorageRecord) UnmarshalJSON

func (o *StorageRecord) UnmarshalJSON(data []byte) (err error)

type ThresholdConfigurationDetails

type ThresholdConfigurationDetails struct {
	// Threshold billing amount.
	ThresholdAmount      float32 `json:"thresholdAmount"`
	AdditionalProperties map[string]interface{}
}

ThresholdConfigurationDetails Threshold billing configuration.

func NewThresholdConfigurationDetails

func NewThresholdConfigurationDetails(thresholdAmount float32) *ThresholdConfigurationDetails

NewThresholdConfigurationDetails instantiates a new ThresholdConfigurationDetails object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewThresholdConfigurationDetailsWithDefaults

func NewThresholdConfigurationDetailsWithDefaults() *ThresholdConfigurationDetails

NewThresholdConfigurationDetailsWithDefaults instantiates a new ThresholdConfigurationDetails object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ThresholdConfigurationDetails) GetThresholdAmount

func (o *ThresholdConfigurationDetails) GetThresholdAmount() float32

GetThresholdAmount returns the ThresholdAmount field value

func (*ThresholdConfigurationDetails) GetThresholdAmountOk

func (o *ThresholdConfigurationDetails) GetThresholdAmountOk() (*float32, bool)

GetThresholdAmountOk returns a tuple with the ThresholdAmount field value and a boolean to check if the value has been set.

func (ThresholdConfigurationDetails) MarshalJSON

func (o ThresholdConfigurationDetails) MarshalJSON() ([]byte, error)

func (*ThresholdConfigurationDetails) SetThresholdAmount

func (o *ThresholdConfigurationDetails) SetThresholdAmount(v float32)

SetThresholdAmount sets field value

func (ThresholdConfigurationDetails) ToMap

func (o ThresholdConfigurationDetails) ToMap() (map[string]interface{}, error)

func (*ThresholdConfigurationDetails) UnmarshalJSON

func (o *ThresholdConfigurationDetails) UnmarshalJSON(data []byte) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL