offer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIProductOfferingManagement

type APIProductOfferingManagement struct {
	BaseURL string
	Client  *rest.Client
	// contains filtered or unexported fields
}

func NewAPIProductOfferingManagement

func NewAPIProductOfferingManagement(baseUrl string) *APIProductOfferingManagement

func (*APIProductOfferingManagement) ProductOfferingFind

func (a *APIProductOfferingManagement) ProductOfferingFind(params *ProductOfferingFindParams) (*FindResponse, error)

func (*APIProductOfferingManagement) ProductOfferingGet

func (a *APIProductOfferingManagement) ProductOfferingGet(params *ProductOfferingGetParams) (*GetResponse, error)

type FindResponse

type FindResponse struct {
	/*The number of resources retrieved in the response
	 */
	XResultCount string
	/*The total number of matching resources
	 */
	XTotalCount string

	Payload []*ProductOffering
}

type GetResponse

type GetResponse struct {
	Payload *ProductOffering
}

type Product

type Product struct {
	ID             string         `json:"id,omitempty"`
	Name           string         `json:"name,omitempty"`
	Deleted        bool           `json:"deleted,omitempty"`
	Type           string         `json:"type,omitempty"`
	Code           string         `json:"code,omitempty"`
	SKU            string         `json:"sku,omitempty"`
	Provider       string         `json:"provider,omitempty"`
	State          string         `json:"state,omitempty"`
	QuoteSpecs     *Specification `json:"quoteSpecs,omitempty"`
	ProvisionSpecs *Specification `json:"provisionSpecs,omitempty"`
}

type ProductOffering

type ProductOffering struct {
	ID      string   `json:"id,omitempty"`
	Name    string   `json:"name,omitempty"`
	Deleted bool     `json:"deleted,omitempty"`
	Product *Product `json:"product,omitempty"`
}

type ProductOfferingFindParams

type ProductOfferingFindParams struct {
	ApiToken string

	Provider *string `json:"provider,omitempty"`
	Type     *string `json:"type,omitempty"`
	Deleted  *bool   `json:"deleted,omitempty"`
	Page     *int    `json:"page,omitempty"`
	PageSize *int    `json:"pageSize,omitempty"`
}

type ProductOfferingGetParams

type ProductOfferingGetParams struct {
	ApiToken string

	ProductOfferingID string
}

type Property

type Property struct {
	Type        string   `json:"type,omitempty"`
	Description string   `json:"description,omitempty"`
	Enum        []string `json:"enum,omitempty"`
}

type Specification

type Specification struct {
	Required   []string            `json:"required,omitempty"`
	Properties map[string]Property `json:"properties,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL