catalog

package
v1.1.95 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CategoryResourceName        = "categories"
	CategoryIconSubResourceName = "icon"
)
View Source
const (
	DocumentResourceName          = "documents"
	DocumentIconSubResourceName   = "icon"
	DocumentStatusSubResourceName = "status"
)
View Source
const (
	DocumentResourceResourceName              = "documentresources"
	DocumentResourceIconSubResourceName       = "icon"
	DocumentResourceReferencesSubResourceName = "references"
	DocumentResourceStateSubResourceName      = "state"
)
View Source
const (
	MarketplaceResourceName           = "marketplaces"
	MarketplaceBillingSubResourceName = "billing"
)
View Source
const (
	ProductResourceName                 = "products"
	ProductIconSubResourceName          = "icon"
	ProductLatestreleaseSubResourceName = "latestrelease"
	ProductReferencesSubResourceName    = "references"
	ProductStateSubResourceName         = "state"
	ProductStatusSubResourceName        = "status"
)
View Source
const (
	ProductReleaseResourceName              = "productreleases"
	ProductReleaseIconSubResourceName       = "icon"
	ProductReleaseReferencesSubResourceName = "references"
	ProductReleaseStatusSubResourceName     = "status"
)
View Source
const (
	ProductReviewResourceName               = "productreviews"
	ProductReviewMarketplaceSubResourceName = "marketplace"
	ProductReviewStateSubResourceName       = "state"
)
View Source
const (
	QuotaResourceName          = "quotas"
	QuotaStatusSubResourceName = "status"
)
View Source
const (
	CategoryVisibilityResourceName = "categoryvisibility"
)
View Source
const (
	ProductOverviewResourceName = "productoverviews"
)
View Source
const (
	PublishedDocumentResourceResourceName = "publisheddocumentresources"
)
View Source
const (
	PublishedStageResourceName = "publishedstages"
)
View Source
const (
	ResourceResourceName = "resources"
)
View Source
const (
	SubscriptionRequestDefinitionResourceName = "subscriptionrequestdefinitions"
)
View Source
const (
	SupportContactResourceName = "supportcontacts"
)

Variables

View Source
var (
	CategoryCtx log.ContextField = "category"

	CategoryScopes = []string{""}
)
View Source
var (
	CategoryVisibilityCtx log.ContextField = "categoryVisibility"

	CategoryVisibilityScopes = []string{"Marketplace"}
)
View Source
var (
	DocumentCtx log.ContextField = "document"

	DocumentScopes = []string{"Product", "ProductRelease"}
)
View Source
var (
	DocumentResourceCtx log.ContextField = "documentResource"

	DocumentResourceScopes = []string{""}
)
View Source
var (
	MarketplaceCtx log.ContextField = "marketplace"

	MarketplaceScopes = []string{""}
)
View Source
var (
	ProductCtx log.ContextField = "product"

	ProductScopes = []string{""}
)
View Source
var (
	ProductOverviewCtx log.ContextField = "productOverview"

	ProductOverviewScopes = []string{"Product", "ProductRelease"}
)
View Source
var (
	ProductReleaseCtx log.ContextField = "productRelease"

	ProductReleaseScopes = []string{""}
)
View Source
var (
	ProductReviewCtx log.ContextField = "productReview"

	ProductReviewScopes = []string{"Product"}
)
View Source
var (
	PublishedDocumentResourceCtx log.ContextField = "publishedDocumentResource"

	PublishedDocumentResourceScopes = []string{"Marketplace"}
)
View Source
var (
	PublishedStageCtx log.ContextField = "publishedStage"

	PublishedStageScopes = []string{"Marketplace"}
)
View Source
var (
	QuotaCtx log.ContextField = "quota"

	QuotaScopes = []string{"ProductPlan"}
)
View Source
var (
	ResourceCtx log.ContextField = "resource"

	ResourceScopes = []string{"Product", "ProductRelease"}
)
View Source
var (
	SubscriptionRequestDefinitionCtx log.ContextField = "subscriptionRequestDefinition"

	SubscriptionRequestDefinitionScopes = []string{""}
)
View Source
var (
	SupportContactCtx log.ContextField = "supportContact"

	SupportContactScopes = []string{""}
)

Functions

func CategoryGVK

func CategoryGVK() apiv1.GroupVersionKind

func CategoryVisibilityGVK added in v1.1.49

func CategoryVisibilityGVK() apiv1.GroupVersionKind

func DocumentGVK

func DocumentGVK() apiv1.GroupVersionKind

func DocumentResourceGVK added in v1.1.62

func DocumentResourceGVK() apiv1.GroupVersionKind

func MarketplaceGVK

func MarketplaceGVK() apiv1.GroupVersionKind

func ProductGVK

func ProductGVK() apiv1.GroupVersionKind

func ProductOverviewGVK

func ProductOverviewGVK() apiv1.GroupVersionKind

func ProductReleaseGVK

func ProductReleaseGVK() apiv1.GroupVersionKind

func ProductReviewGVK added in v1.1.78

func ProductReviewGVK() apiv1.GroupVersionKind

func PublishedDocumentResourceGVK added in v1.1.62

func PublishedDocumentResourceGVK() apiv1.GroupVersionKind

func PublishedStageGVK added in v1.1.78

func PublishedStageGVK() apiv1.GroupVersionKind

func QuotaGVK

func QuotaGVK() apiv1.GroupVersionKind

func ResourceGVK

func ResourceGVK() apiv1.GroupVersionKind

func SubscriptionRequestDefinitionGVK added in v1.1.64

func SubscriptionRequestDefinitionGVK() apiv1.GroupVersionKind

func SupportContactGVK added in v1.1.41

func SupportContactGVK() apiv1.GroupVersionKind

Types

type Category

type Category struct {
	apiv1.ResourceMeta
	Icon  interface{}  `json:"icon"`
	Owner *apiv1.Owner `json:"owner"`
	Spec  CategorySpec `json:"spec"`
}

Category Resource

func CategoryFromInstanceArray

func CategoryFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Category, error)

CategoryFromInstanceArray converts a []*ResourceInstance to a []*Category

func NewCategory

func NewCategory(name string) *Category

NewCategory creates an empty *Category

func (*Category) AsInstance

func (res *Category) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a Category to a ResourceInstance

func (*Category) FromInstance

func (res *Category) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a Category

func (*Category) MarshalJSON

func (res *Category) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*Category) PluralName

func (res *Category) PluralName() string

PluralName returns the plural name of the resource

func (*Category) UnmarshalJSON

func (res *Category) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type CategorySpec

type CategorySpec struct {
	// Markdown representing the category description.
	Description string `json:"description,omitempty"`
	// Defines a parent category reference. Write access needed on the parent category to allow referencing it.
	ParentCategory string `json:"parentCategory,omitempty"`
	// GENERATE: The following code has been modified after code generation
	Restriction interface{} `json:"restriction,omitempty"`
}

CategorySpec (catalog.v1.Category)

type CategorySpecApiServiceRestriction added in v1.1.35

type CategorySpecApiServiceRestriction struct {
	Type string `json:"type"`
}

CategorySpecApiServiceRestriction struct for CategorySpecApiServiceRestriction

type CategorySpecAssetRestriction added in v1.1.35

type CategorySpecAssetRestriction struct {
	Type string `json:"type"`
}

CategorySpecAssetRestriction struct for CategorySpecAssetRestriction

type CategorySpecProductRestriction added in v1.1.35

type CategorySpecProductRestriction struct {
	Type        string                                    `json:"type"`
	Marketplace CategorySpecProductRestrictionMarketplace `json:"marketplace,omitempty"`
}

CategorySpecProductRestriction struct for CategorySpecProductRestriction

type CategorySpecProductRestrictionMarketplace added in v1.1.35

type CategorySpecProductRestrictionMarketplace struct {
	// Property not used anymore. CategoryVisibility resource to be used to control the featured property of the Category in a specific Marketplace.
	Featured bool `json:"featured,omitempty"`
	// Defines if the Category is visible in the marketplace.
	Visible bool `json:"visible"`
}

CategorySpecProductRestrictionMarketplace Defines properties to be applied to all marketplaces.

type CategoryVisibility added in v1.1.49

type CategoryVisibility struct {
	apiv1.ResourceMeta
	Owner *apiv1.Owner           `json:"owner"`
	Spec  CategoryVisibilitySpec `json:"spec"`
}

CategoryVisibility Resource

func CategoryVisibilityFromInstanceArray added in v1.1.49

func CategoryVisibilityFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*CategoryVisibility, error)

CategoryVisibilityFromInstanceArray converts a []*ResourceInstance to a []*CategoryVisibility

func NewCategoryVisibility added in v1.1.49

func NewCategoryVisibility(name, scopeName string) *CategoryVisibility

NewCategoryVisibility creates an empty *CategoryVisibility

func (*CategoryVisibility) AsInstance added in v1.1.49

func (res *CategoryVisibility) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a CategoryVisibility to a ResourceInstance

func (*CategoryVisibility) FromInstance added in v1.1.49

func (res *CategoryVisibility) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a CategoryVisibility

func (*CategoryVisibility) MarshalJSON added in v1.1.49

func (res *CategoryVisibility) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*CategoryVisibility) PluralName added in v1.1.49

func (res *CategoryVisibility) PluralName() string

PluralName returns the plural name of the resource

func (*CategoryVisibility) UnmarshalJSON added in v1.1.49

func (res *CategoryVisibility) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type CategoryVisibilitySpec added in v1.1.49

type CategoryVisibilitySpec struct {
	Category string `json:"category"`
	// Defines if the Category is featured in the marketplace.
	Featured bool `json:"featured"`
}

CategoryVisibilitySpec (catalog.v1.CategoryVisibility)

type Document

type Document struct {
	apiv1.ResourceMeta
	Icon  interface{}  `json:"icon"`
	Owner *apiv1.Owner `json:"owner"`
	Spec  DocumentSpec `json:"spec"`
	// Status DocumentStatus `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

Document Resource

func DocumentFromInstanceArray

func DocumentFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Document, error)

DocumentFromInstanceArray converts a []*ResourceInstance to a []*Document

func NewDocument

func NewDocument(name, scopeKind, scopeName string) (*Document, error)

NewDocument creates an empty *Document

func (*Document) AsInstance

func (res *Document) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a Document to a ResourceInstance

func (*Document) FromInstance

func (res *Document) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a Document

func (*Document) MarshalJSON

func (res *Document) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*Document) PluralName

func (res *Document) PluralName() string

PluralName returns the plural name of the resource

func (*Document) UnmarshalJSON

func (res *Document) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type DocumentResource added in v1.1.62

type DocumentResource struct {
	apiv1.ResourceMeta
	Icon       interface{}                `json:"icon"`
	Owner      *apiv1.Owner               `json:"owner"`
	References DocumentResourceReferences `json:"references"`
	Spec       DocumentResourceSpec       `json:"spec"`
	State      DocumentResourceState      `json:"state"`
}

DocumentResource Resource

func DocumentResourceFromInstanceArray added in v1.1.62

func DocumentResourceFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*DocumentResource, error)

DocumentResourceFromInstanceArray converts a []*ResourceInstance to a []*DocumentResource

func NewDocumentResource added in v1.1.62

func NewDocumentResource(name string) *DocumentResource

NewDocumentResource creates an empty *DocumentResource

func (*DocumentResource) AsInstance added in v1.1.62

func (res *DocumentResource) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a DocumentResource to a ResourceInstance

func (*DocumentResource) FromInstance added in v1.1.62

func (res *DocumentResource) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a DocumentResource

func (*DocumentResource) MarshalJSON added in v1.1.62

func (res *DocumentResource) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*DocumentResource) PluralName added in v1.1.62

func (res *DocumentResource) PluralName() string

PluralName returns the plural name of the resource

func (*DocumentResource) UnmarshalJSON added in v1.1.62

func (res *DocumentResource) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type DocumentResourceReferences added in v1.1.62

type DocumentResourceReferences struct {
	// The marketplaces this DocumentResource is being used in as part of the marketplace settings.
	MarketplaceSettings []DocumentResourceReferencesMarketplaceSettings `json:"marketplaceSettings,omitempty"`
	PlatformSettings    DocumentResourceReferencesPlatformSettings      `json:"platformSettings,omitempty"`
}

DocumentResourceReferences (catalog.v1.DocumentResource)

type DocumentResourceReferencesMarketplaceSettings added in v1.1.62

type DocumentResourceReferencesMarketplaceSettings struct {
	// The Marketplace reference.
	Name string `json:"name,omitempty"`
}

DocumentResourceReferencesMarketplaceSettings (catalog.v1.DocumentResource)

type DocumentResourceReferencesPlatformSettings added in v1.1.78

type DocumentResourceReferencesPlatformSettings struct {
	// Defines the DocumentResource used in the platform settings or not.
	Used bool `json:"used"`
}

DocumentResourceReferencesPlatformSettings (catalog.v1.DocumentResource)

type DocumentResourceSpec added in v1.1.62

type DocumentResourceSpec struct {
	// Document description.
	Description string `json:"description,omitempty"`
	// Version of the DocumentResource.
	Version string                    `json:"version"`
	Usage   DocumentResourceSpecUsage `json:"usage"`
	// GENERATE: The following code has been modified after code generation
	Data interface{} `json:"data"`
}

DocumentResourceSpec (catalog.v1.DocumentResource)

type DocumentResourceSpecBinaryData added in v1.1.62

type DocumentResourceSpecBinaryData struct {
	Type string `json:"type"`
	// Base64 encoded value of the file.
	Content string `json:"content"`
	// The name of the file.
	FileName string `json:"fileName,omitempty"`
	// The type of the resource, example: pdf, markdown
	FileType string `json:"fileType"`
	// The content type
	ContentType string `json:"contentType"`
}

DocumentResourceSpecBinaryData struct for DocumentResourceSpecBinaryData

type DocumentResourceSpecTextData added in v1.1.62

type DocumentResourceSpecTextData struct {
	Type string `json:"type"`
	// Resource content.
	Content string `json:"content"`
	// The name of the file.
	FileName string `json:"fileName,omitempty"`
	// The type of the resource, example: pdf
	FileType string `json:"fileType"`
	// The content type
	ContentType string `json:"contentType"`
}

DocumentResourceSpecTextData struct for DocumentResourceSpecTextData

type DocumentResourceSpecUrl added in v1.1.62

type DocumentResourceSpecUrl struct {
	Type string `json:"type"`
	// URL value.
	Value string `json:"value"`
}

DocumentResourceSpecUrl struct for DocumentResourceSpecUrl

type DocumentResourceSpecUsage added in v1.1.62

type DocumentResourceSpecUsage struct {
	MarketplaceSettings DocumentResourceSpecUsageMarketplaceSettings `json:"marketplaceSettings"`
	Products            DocumentResourceSpecUsageProducts            `json:"products"`
}

DocumentResourceSpecUsage Defines where the DocumentResource can be used. (catalog.v1.DocumentResource)

type DocumentResourceSpecUsageMarketplaceSettings added in v1.1.62

type DocumentResourceSpecUsageMarketplaceSettings struct {
	// Defines if the DocumentResource can be used in the platform marketplace settings. Create PublishedDocumentResources to indicate in which marketplaces the document is available.
	Available bool `json:"available"`
}

DocumentResourceSpecUsageMarketplaceSettings (catalog.v1.DocumentResource)

type DocumentResourceSpecUsageProducts added in v1.1.62

type DocumentResourceSpecUsageProducts struct {
	// Defines if the DocumentResource is available to be used in Products.
	Available bool `json:"available"`
}

DocumentResourceSpecUsageProducts (catalog.v1.DocumentResource)

type DocumentResourceState added in v1.1.62

type DocumentResourceState struct {
	// The name of the state of the DocumentResource. If the state is \"final\" it means that the DocumentResource can be used in Products or Marketplace settings.
	Name string `json:"name,omitempty"`
}

DocumentResourceState Current state of the DocumentResource. (catalog.v1.DocumentResource)

type DocumentSpec

type DocumentSpec struct {
	// Document description.
	Description string `json:"description,omitempty"`
	// Rank of document.
	// GENERATE: The following code has been modified after code generation
	Rank     float64                `json:"rank,omitempty"`
	Sections []DocumentSpecSections `json:"sections,omitempty"`
}

DocumentSpec (catalog.v1.Document)

type DocumentSpecDocumentResourceRef added in v1.1.62

type DocumentSpecDocumentResourceRef struct {
	Kind string `json:"kind"`
	Name string `json:"name,omitempty"`
	// Title for the article.
	Title string `json:"title"`
}

DocumentSpecDocumentResourceRef struct for DocumentSpecDocumentResourceRef

type DocumentSpecResourceRef

type DocumentSpecResourceRef struct {
	Kind string `json:"kind"`
	Name string `json:"name,omitempty"`
	// Title for the article.
	Title string `json:"title"`
}

DocumentSpecResourceRef struct for DocumentSpecResourceRef

type DocumentSpecSections

type DocumentSpecSections struct {
	// Title for the section.
	Title string `json:"title"`
	// Description for the section.
	Description string `json:"description,omitempty"`
	// Section articles.
	// GENERATE: The following code has been modified after code generation
	Articles []interface{} `json:"articles,omitempty"`
}

DocumentSpecSections (catalog.v1.Document)

type DocumentStatus

type DocumentStatus struct {
	// The current status level, indicating progress towards consistency.
	Level string `json:"level"`
	// Reasons for the generated status.
	// GENERATE: The following code has been modified after code generation
	Reasons []interface{} `json:"reasons,omitempty"`
}

DocumentStatus (catalog.v1.Document)

type DocumentStatusError

type DocumentStatusError struct {
	Type string `json:"type"`
	// Details of the error.
	Detail string `json:"detail"`
	// Time when the update occurred.
	Timestamp time.Time              `json:"timestamp"`
	Meta      map[string]interface{} `json:"meta,omitempty"`
}

DocumentStatusError struct for DocumentStatusError

type DocumentStatusSuccess

type DocumentStatusSuccess struct {
	Type string `json:"type"`
	// Time when the change occured.
	Timestamp time.Time `json:"timestamp"`
	// message of the result
	Detail string                 `json:"detail"`
	Meta   map[string]interface{} `json:"meta,omitempty"`
}

DocumentStatusSuccess struct for DocumentStatusSuccess

type Marketplace

type Marketplace struct {
	apiv1.ResourceMeta
	Billing MarketplaceBilling `json:"billing"`
	Owner   *apiv1.Owner       `json:"owner"`
	Spec    MarketplaceSpec    `json:"spec"`
}

Marketplace Resource

func MarketplaceFromInstanceArray

func MarketplaceFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Marketplace, error)

MarketplaceFromInstanceArray converts a []*ResourceInstance to a []*Marketplace

func NewMarketplace

func NewMarketplace(name string) *Marketplace

NewMarketplace creates an empty *Marketplace

func (*Marketplace) AsInstance

func (res *Marketplace) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a Marketplace to a ResourceInstance

func (*Marketplace) FromInstance

func (res *Marketplace) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a Marketplace

func (*Marketplace) MarshalJSON

func (res *Marketplace) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*Marketplace) PluralName

func (res *Marketplace) PluralName() string

PluralName returns the plural name of the resource

func (*Marketplace) UnmarshalJSON

func (res *Marketplace) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type MarketplaceBilling added in v1.1.52

type MarketplaceBilling struct {
	Payment MarketplaceBillingPayment `json:"payment,omitempty"`
}

MarketplaceBilling Billing options for the Marketplace. (catalog.v1.Marketplace)

type MarketplaceBillingPayment added in v1.1.52

type MarketplaceBillingPayment struct {
	// The billing system type used for this Marketplace.
	Type string `json:"type"`
}

MarketplaceBillingPayment Supported payment properties. (catalog.v1.Marketplace)

type MarketplaceSpec

type MarketplaceSpec struct {
	// description of the Marketplace.
	Description string `json:"description,omitempty"`
}

MarketplaceSpec (catalog.v1.Marketplace)

type Product

type Product struct {
	apiv1.ResourceMeta
	Icon          interface{}          `json:"icon"`
	Latestrelease ProductLatestrelease `json:"latestrelease"`
	Owner         *apiv1.Owner         `json:"owner"`
	References    ProductReferences    `json:"references"`
	Spec          ProductSpec          `json:"spec"`
	State         ProductState         `json:"state"`
	// Status        ProductStatus        `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

Product Resource

func NewProduct

func NewProduct(name string) *Product

NewProduct creates an empty *Product

func ProductFromInstanceArray

func ProductFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Product, error)

ProductFromInstanceArray converts a []*ResourceInstance to a []*Product

func (*Product) AsInstance

func (res *Product) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a Product to a ResourceInstance

func (*Product) FromInstance

func (res *Product) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a Product

func (*Product) MarshalJSON

func (res *Product) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*Product) PluralName

func (res *Product) PluralName() string

PluralName returns the plural name of the resource

func (*Product) UnmarshalJSON

func (res *Product) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type ProductLatestrelease added in v1.1.52

type ProductLatestrelease struct {
	Name    string `json:"name,omitempty"`
	TagName string `json:"tagName,omitempty"`
	Version string `json:"version,omitempty"`
}

ProductLatestrelease Provides newest non-archived release and version. Will be unassigned if no releases exist. (catalog.v1.Product)

type ProductOverview

type ProductOverview struct {
	apiv1.ResourceMeta
	Owner *apiv1.Owner        `json:"owner"`
	Spec  ProductOverviewSpec `json:"spec"`
}

ProductOverview Resource

func NewProductOverview

func NewProductOverview(name, scopeKind, scopeName string) (*ProductOverview, error)

NewProductOverview creates an empty *ProductOverview

func ProductOverviewFromInstanceArray

func ProductOverviewFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ProductOverview, error)

ProductOverviewFromInstanceArray converts a []*ResourceInstance to a []*ProductOverview

func (*ProductOverview) AsInstance

func (res *ProductOverview) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a ProductOverview to a ResourceInstance

func (*ProductOverview) FromInstance

func (res *ProductOverview) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a ProductOverview

func (*ProductOverview) MarshalJSON

func (res *ProductOverview) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*ProductOverview) PluralName

func (res *ProductOverview) PluralName() string

PluralName returns the plural name of the resource

func (*ProductOverview) UnmarshalJSON

func (res *ProductOverview) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type ProductOverviewSpec

type ProductOverviewSpec struct {
	// Defines all the documents and order for marketplace.
	Documents []ProductOverviewSpecDocuments `json:"documents,omitempty"`
}

ProductOverviewSpec (catalog.v1.ProductOverview)

type ProductOverviewSpecDocuments

type ProductOverviewSpecDocuments struct {
	Name string `json:"name"`
}

ProductOverviewSpecDocuments (catalog.v1.ProductOverview)

type ProductReferences

type ProductReferences struct {
	// Computed DocumentResources used in all Product's Documents articles.
	DocumentResources []string `json:"documentResources,omitempty"`
	// Computed latest AssetReleases for each Asset reference in the Product.
	Assets []ProductReferencesAssets `json:"assets,omitempty"`
	// The marketplaces this product has been published to.
	Marketplaces []ProductReferencesMarketplaces `json:"marketplaces,omitempty"`
}

ProductReferences (catalog.v1.Product)

type ProductReferencesAssets

type ProductReferencesAssets struct {
	// The Asset reference.
	Name    string                   `json:"name,omitempty"`
	Release ProductReferencesRelease `json:"release,omitempty"`
}

ProductReferencesAssets (catalog.v1.Product)

type ProductReferencesMarketplaces added in v1.1.49

type ProductReferencesMarketplaces struct {
	// The Marketplace reference.
	Name    string                   `json:"name,omitempty"`
	Ratings ProductReferencesRatings `json:"ratings,omitempty"`
	// The PublishedProduct reference.
	PublishedProduct string `json:"publishedProduct,omitempty"`
}

ProductReferencesMarketplaces (catalog.v1.Product)

type ProductReferencesRatings added in v1.1.78

type ProductReferencesRatings struct {
	Total int32 `json:"total,omitempty"`
	// GENERATE: The following code has been modified after code generation
	Average float64 `json:"average,omitempty"`
	// The ratings distribution per value.
	Distribution []ProductReferencesRatingsDistribution `json:"distribution,omitempty"`
}

ProductReferencesRatings (catalog.v1.Product)

type ProductReferencesRatingsDistribution added in v1.1.78

type ProductReferencesRatingsDistribution struct {
	Rating int32 `json:"rating,omitempty"`
	Total  int32 `json:"total,omitempty"`
}

ProductReferencesRatingsDistribution (catalog.v1.Product)

type ProductReferencesRelease

type ProductReferencesRelease struct {
	// The latest AssetRelease computed based on the provided Asset filters.
	Name string `json:"name,omitempty"`
	// The AssetRelease version that the Product currently points to.
	Version string `json:"version,omitempty"`
	// The AssetRelease state.
	State string `json:"state,omitempty"`
	// APIService references belonging to referenced AssetReleases.
	ApiServices []string `json:"apiServices,omitempty"`
}

ProductReferencesRelease (catalog.v1.Product)

type ProductRelease

type ProductRelease struct {
	apiv1.ResourceMeta
	Icon       interface{}              `json:"icon"`
	Owner      *apiv1.Owner             `json:"owner"`
	References ProductReleaseReferences `json:"references"`
	Spec       ProductReleaseSpec       `json:"spec"`
	// Status     ProductReleaseStatus     `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

ProductRelease Resource

func NewProductRelease

func NewProductRelease(name string) *ProductRelease

NewProductRelease creates an empty *ProductRelease

func ProductReleaseFromInstanceArray

func ProductReleaseFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ProductRelease, error)

ProductReleaseFromInstanceArray converts a []*ResourceInstance to a []*ProductRelease

func (*ProductRelease) AsInstance

func (res *ProductRelease) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a ProductRelease to a ResourceInstance

func (*ProductRelease) FromInstance

func (res *ProductRelease) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a ProductRelease

func (*ProductRelease) MarshalJSON

func (res *ProductRelease) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*ProductRelease) PluralName

func (res *ProductRelease) PluralName() string

PluralName returns the plural name of the resource

func (*ProductRelease) UnmarshalJSON

func (res *ProductRelease) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type ProductReleaseReferences added in v1.1.62

type ProductReleaseReferences struct {
	// Computed DocumentResources used in all ProductRelease's Documents articles.
	DocumentResources []string `json:"documentResources,omitempty"`
}

ProductReleaseReferences (catalog.v1.ProductRelease)

type ProductReleaseSpec

type ProductReleaseSpec struct {
	// Description of the product when the release was generated.
	Description string `json:"description,omitempty"`
	// Version of the release.
	Version           string                              `json:"version"`
	VersionProperties ProductReleaseSpecVersionProperties `json:"versionProperties,omitempty"`
	Product           string                              `json:"product"`
	Assets            []ProductReleaseSpecAssets          `json:"assets,omitempty"`
	ReleaseTag        string                              `json:"releaseTag"`
	State             string                              `json:"state,omitempty"`
	// list of categories for the released product.
	Categories []string `json:"categories,omitempty"`
}

ProductReleaseSpec (catalog.v1.ProductRelease)

type ProductReleaseSpecAssets

type ProductReleaseSpecAssets struct {
	// The Asset name
	Name    string                    `json:"name,omitempty"`
	Release ProductReleaseSpecRelease `json:"release,omitempty"`
}

ProductReleaseSpecAssets (catalog.v1.ProductRelease)

type ProductReleaseSpecRelease

type ProductReleaseSpecRelease struct {
	Name string `json:"name,omitempty"`
	// The AssetRelease version.
	Version string `json:"version,omitempty"`
	// The AssetRelease state.
	State string `json:"state,omitempty"`
}

ProductReleaseSpecRelease (catalog.v1.ProductRelease)

type ProductReleaseSpecVersionProperties added in v1.1.78

type ProductReleaseSpecVersionProperties struct {
	// Label for the generated version.
	Label string `json:"label,omitempty"`
	// Description of the version.
	Description string `json:"description,omitempty"`
}

ProductReleaseSpecVersionProperties Defines version related properties. (catalog.v1.ProductRelease)

type ProductReleaseStatus

type ProductReleaseStatus struct {
	// The current status level, indicating progress towards consistency.
	Level string `json:"level,omitempty"`
	// Reasons for the generated status.
	// GENERATE: The following code has been modified after code generation
	Reasons []interface{} `json:"reasons,omitempty"`
}

ProductReleaseStatus (catalog.v1.ProductRelease)

type ProductReleaseStatusError

type ProductReleaseStatusError struct {
	Type string `json:"type"`
	// Details of the error.
	Detail string `json:"detail"`
	// Time when the update occurred.
	Timestamp time.Time                       `json:"timestamp"`
	Meta      ProductReleaseStatusPendingMeta `json:"meta,omitempty"`
}

ProductReleaseStatusError struct for ProductReleaseStatusError

type ProductReleaseStatusPending

type ProductReleaseStatusPending struct {
	Type string `json:"type"`
	// Time when the change occured.
	Timestamp time.Time `json:"timestamp"`
	// Reason for being in Pending.
	Detail string                          `json:"detail"`
	Meta   ProductReleaseStatusPendingMeta `json:"meta,omitempty"`
}

ProductReleaseStatusPending struct for ProductReleaseStatusPending

type ProductReleaseStatusPendingMeta added in v1.1.35

type ProductReleaseStatusPendingMeta struct {
	Asset        string `json:"asset,omitempty"`
	AssetRelease string `json:"assetRelease,omitempty"`
}

ProductReleaseStatusPendingMeta struct for ProductReleaseStatusPendingMeta

type ProductReleaseStatusSuccess

type ProductReleaseStatusSuccess struct {
	Type string `json:"type"`
	// Time when the change occured.
	Timestamp time.Time `json:"timestamp"`
	// message of the result
	Detail string                          `json:"detail"`
	Meta   ProductReleaseStatusPendingMeta `json:"meta,omitempty"`
}

ProductReleaseStatusSuccess struct for ProductReleaseStatusSuccess

type ProductReview added in v1.1.78

type ProductReview struct {
	apiv1.ResourceMeta
	Marketplace ProductReviewMarketplace `json:"marketplace"`
	Owner       *apiv1.Owner             `json:"owner"`
	Spec        ProductReviewSpec        `json:"spec"`
	State       ProductReviewState       `json:"state"`
}

ProductReview Resource

func NewProductReview added in v1.1.78

func NewProductReview(name, scopeName string) *ProductReview

NewProductReview creates an empty *ProductReview

func ProductReviewFromInstanceArray added in v1.1.78

func ProductReviewFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ProductReview, error)

ProductReviewFromInstanceArray converts a []*ResourceInstance to a []*ProductReview

func (*ProductReview) AsInstance added in v1.1.78

func (res *ProductReview) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a ProductReview to a ResourceInstance

func (*ProductReview) FromInstance added in v1.1.78

func (res *ProductReview) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a ProductReview

func (*ProductReview) MarshalJSON added in v1.1.78

func (res *ProductReview) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*ProductReview) PluralName added in v1.1.78

func (res *ProductReview) PluralName() string

PluralName returns the plural name of the resource

func (*ProductReview) UnmarshalJSON added in v1.1.78

func (res *ProductReview) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type ProductReviewMarketplace added in v1.1.78

type ProductReviewMarketplace struct {
	// The name of the Marketplace.
	Name     string                           `json:"name"`
	Resource ProductReviewMarketplaceResource `json:"resource"`
}

ProductReviewMarketplace Details about the marketplace ratings. (catalog.v1.ProductReview)

type ProductReviewMarketplaceResource added in v1.1.78

type ProductReviewMarketplaceResource struct {
	Metadata ProductReviewMarketplaceResourceMetadata `json:"metadata"`
	// GENERATE: The following code has been modified after code generation
	Owner *apiv1.Owner `json:"owner,omitempty"`
}

ProductReviewMarketplaceResource The Marketplace Ratings resource details. (catalog.v1.ProductReview)

type ProductReviewMarketplaceResourceMetadata added in v1.1.78

type ProductReviewMarketplaceResourceMetadata struct {
	// Id of the user that created the entity.
	CreateUserId string `json:"createUserId,omitempty"`
	// Id of the user that modified the entity.
	ModifyUserId string `json:"modifyUserId,omitempty"`
}

ProductReviewMarketplaceResourceMetadata Marketplace Subscription metadata. (catalog.v1.ProductReview)

type ProductReviewMarketplaceResourceOwner added in v1.1.78

type ProductReviewMarketplaceResourceOwner struct {
	Organization ProductReviewMarketplaceResourceOwnerOrganization `json:"organization"`
}

ProductReviewMarketplaceResourceOwner Owner of the Subscription. (catalog.v1.ProductReview)

type ProductReviewMarketplaceResourceOwnerOrganization added in v1.1.78

type ProductReviewMarketplaceResourceOwnerOrganization struct {
	// Id of the organization.
	Id string `json:"id"`
}

ProductReviewMarketplaceResourceOwnerOrganization Organization details. (catalog.v1.ProductReview)

type ProductReviewSpec added in v1.1.78

type ProductReviewSpec struct {
	Rating  int32  `json:"rating"`
	Comment string `json:"comment,omitempty"`
}

ProductReviewSpec (catalog.v1.ProductReview)

type ProductReviewState added in v1.1.78

type ProductReviewState struct {
	Name string `json:"name,omitempty"`
	// Additional info on the state.
	Reason string `json:"reason,omitempty"`
}

ProductReviewState (catalog.v1.ProductReview)

type ProductSpec

type ProductSpec struct {
	// Description of the Product.
	Description    string   `json:"description,omitempty"`
	SupportContact string   `json:"supportContact,omitempty"`
	Categories     []string `json:"categories,omitempty"`
	// Defines all the Assets that the Product will be built from.
	Assets      []ProductSpecAssets    `json:"assets,omitempty"`
	AutoRelease ProductSpecAutoRelease `json:"autoRelease,omitempty"`
}

ProductSpec (catalog.v1.Product)

type ProductSpecAssets

type ProductSpecAssets struct {
	Name    string             `json:"name"`
	Filters ProductSpecFilters `json:"filters,omitempty"`
}

ProductSpecAssets (catalog.v1.Product)

type ProductSpecAutoRelease added in v1.1.41

type ProductSpecAutoRelease struct {
	// Description of the generated release tag.
	Description              string                                         `json:"description,omitempty"`
	ReleaseType              string                                         `json:"releaseType"`
	ReleaseVersionProperties ProductSpecAutoReleaseReleaseVersionProperties `json:"releaseVersionProperties,omitempty"`
	// Set true to suspend auto-release until product state changes to active or deprecated. This property will be automatically removed once activated.
	RequiresInitialActivation bool                                   `json:"requiresInitialActivation,omitempty"`
	PreviousReleases          ProductSpecAutoReleasePreviousReleases `json:"previousReleases,omitempty"`
}

ProductSpecAutoRelease Defines if a product should create releases everytime there is an update to the product references. (catalog.v1.Product)

type ProductSpecAutoReleasePreviousReleases added in v1.1.44

type ProductSpecAutoReleasePreviousReleases struct {
	// Updates all prior non-archived releases to the desired state.
	UpdateState string `json:"updateState,omitempty"`
}

ProductSpecAutoReleasePreviousReleases (catalog.v1.Product)

type ProductSpecAutoReleaseReleaseVersionProperties added in v1.1.78

type ProductSpecAutoReleaseReleaseVersionProperties struct {
	// Label for the generated release version.
	Label string `json:"label,omitempty"`
	// Description of the generated release version.
	Description string `json:"description,omitempty"`
}

ProductSpecAutoReleaseReleaseVersionProperties Version properties for the product releases generated as part of auto release. (catalog.v1.Product)

type ProductSpecFilters

type ProductSpecFilters struct {
	// The AssetRelease version to use. Examples:   - 1.0.1 for a specific asset release version   - 1.* for all minor and patch versions of version 1   - 1.2.* for all the patch version for version 1.2
	Version string `json:"version,omitempty"`
}

ProductSpecFilters Filters what AssetRelease the Product points to. (catalog.v1.Product)

type ProductState

type ProductState string

ProductState the model 'ProductState'

const (
	// GENERATE: The following code has been modified after code generation
	ProductStateDRAFT ProductState = "draft"
	// GENERATE: The following code has been modified after code generation
	ProductStateACTIVE ProductState = "active"
	// GENERATE: The following code has been modified after code generation
	ProductStateDEPRECATED ProductState = "deprecated"
	// GENERATE: The following code has been modified after code generation
	ProductStateARCHIVED ProductState = "archived"
)

List of ProductState

type ProductStatus added in v1.1.35

type ProductStatus struct {
	// The current status level, indicating progress towards consistency.
	Level string `json:"level"`
	// Reasons for the generated status.
	Reasons []ProductStatusReasons `json:"reasons,omitempty"`
}

ProductStatus (catalog.v1.Product)

type ProductStatusMeta added in v1.1.35

type ProductStatusMeta struct {
	Asset        string `json:"asset,omitempty"`
	AssetRelease string `json:"assetRelease,omitempty"`
}

ProductStatusMeta (catalog.v1.Product)

type ProductStatusReasons added in v1.1.35

type ProductStatusReasons struct {
	Type string `json:"type"`
	// Details of the error.
	Detail string `json:"detail"`
	// Time when the update occurred.
	Timestamp time.Time         `json:"timestamp"`
	Meta      ProductStatusMeta `json:"meta,omitempty"`
}

ProductStatusReasons (catalog.v1.Product)

type PublishedDocumentResource added in v1.1.62

type PublishedDocumentResource struct {
	apiv1.ResourceMeta
	Owner *apiv1.Owner                  `json:"owner"`
	Spec  PublishedDocumentResourceSpec `json:"spec"`
}

PublishedDocumentResource Resource

func NewPublishedDocumentResource added in v1.1.62

func NewPublishedDocumentResource(name, scopeName string) *PublishedDocumentResource

NewPublishedDocumentResource creates an empty *PublishedDocumentResource

func PublishedDocumentResourceFromInstanceArray added in v1.1.62

func PublishedDocumentResourceFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*PublishedDocumentResource, error)

PublishedDocumentResourceFromInstanceArray converts a []*ResourceInstance to a []*PublishedDocumentResource

func (*PublishedDocumentResource) AsInstance added in v1.1.62

func (res *PublishedDocumentResource) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a PublishedDocumentResource to a ResourceInstance

func (*PublishedDocumentResource) FromInstance added in v1.1.62

func (res *PublishedDocumentResource) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a PublishedDocumentResource

func (*PublishedDocumentResource) MarshalJSON added in v1.1.62

func (res *PublishedDocumentResource) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*PublishedDocumentResource) PluralName added in v1.1.62

func (res *PublishedDocumentResource) PluralName() string

PluralName returns the plural name of the resource

func (*PublishedDocumentResource) UnmarshalJSON added in v1.1.62

func (res *PublishedDocumentResource) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type PublishedDocumentResourceSpec added in v1.1.62

type PublishedDocumentResourceSpec struct {
	DocumentResource PublishedDocumentResourceSpecDocumentResource `json:"documentResource"`
}

PublishedDocumentResourceSpec (catalog.v1.PublishedDocumentResource)

type PublishedDocumentResourceSpecDocumentResource added in v1.1.62

type PublishedDocumentResourceSpecDocumentResource struct {
	Name string `json:"name"`
}

PublishedDocumentResourceSpecDocumentResource (catalog.v1.PublishedDocumentResource)

type PublishedStage added in v1.1.78

type PublishedStage struct {
	apiv1.ResourceMeta
	Owner *apiv1.Owner       `json:"owner"`
	Spec  PublishedStageSpec `json:"spec"`
}

PublishedStage Resource

func NewPublishedStage added in v1.1.78

func NewPublishedStage(name, scopeName string) *PublishedStage

NewPublishedStage creates an empty *PublishedStage

func PublishedStageFromInstanceArray added in v1.1.78

func PublishedStageFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*PublishedStage, error)

PublishedStageFromInstanceArray converts a []*ResourceInstance to a []*PublishedStage

func (*PublishedStage) AsInstance added in v1.1.78

func (res *PublishedStage) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a PublishedStage to a ResourceInstance

func (*PublishedStage) FromInstance added in v1.1.78

func (res *PublishedStage) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a PublishedStage

func (*PublishedStage) MarshalJSON added in v1.1.78

func (res *PublishedStage) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*PublishedStage) PluralName added in v1.1.78

func (res *PublishedStage) PluralName() string

PluralName returns the plural name of the resource

func (*PublishedStage) UnmarshalJSON added in v1.1.78

func (res *PublishedStage) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type PublishedStageSpec added in v1.1.78

type PublishedStageSpec struct {
	Stage PublishedStageSpecStage `json:"stage"`
}

PublishedStageSpec (catalog.v1.PublishedStage)

type PublishedStageSpecStage added in v1.1.78

type PublishedStageSpecStage struct {
	Name string `json:"name"`
}

PublishedStageSpecStage (catalog.v1.PublishedStage)

type Quota

type Quota struct {
	apiv1.ResourceMeta
	Owner *apiv1.Owner `json:"owner"`
	Spec  QuotaSpec    `json:"spec"`
	// Status QuotaStatus  `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

Quota Resource

func NewQuota

func NewQuota(name, scopeName string) *Quota

NewQuota creates an empty *Quota

func QuotaFromInstanceArray

func QuotaFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Quota, error)

QuotaFromInstanceArray converts a []*ResourceInstance to a []*Quota

func (*Quota) AsInstance

func (res *Quota) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a Quota to a ResourceInstance

func (*Quota) FromInstance

func (res *Quota) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a Quota

func (*Quota) MarshalJSON

func (res *Quota) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*Quota) PluralName

func (res *Quota) PluralName() string

PluralName returns the plural name of the resource

func (*Quota) UnmarshalJSON

func (res *Quota) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type QuotaSpec

type QuotaSpec struct {
	// description of the quota.
	Description string `json:"description,omitempty"`
	// The unit used to measure the access to the resource.
	Unit string `json:"unit"`
	// GENERATE: The following code has been modified after code generation
	Pricing interface{} `json:"pricing"`
	// The resources that the access is being granted to.
	// GENERATE: The following code has been modified after code generation
	Resources []interface{} `json:"resources"`
}

QuotaSpec (catalog.v1.Quota)

type QuotaSpecAssetResourceRef

type QuotaSpecAssetResourceRef struct {
	Kind string `json:"kind"`
	Name string `json:"name,omitempty"`
}

QuotaSpecAssetResourceRef struct for QuotaSpecAssetResourceRef

type QuotaSpecFixedPricingType

type QuotaSpecFixedPricingType struct {
	Type     string `json:"type"`
	Interval string `json:"interval"`
	// GENERATE: The following code has been modified after code generation
	Limit interface{} `json:"limit"`
}

QuotaSpecFixedPricingType struct for QuotaSpecFixedPricingType

type QuotaSpecGraduatedPricingType added in v1.1.35

type QuotaSpecGraduatedPricingType struct {
	Type string `json:"type"`
	// The tiered limits to set.
	// GENERATE: The following code has been modified after code generation
	Limit interface{} `json:"limit"`
}

QuotaSpecGraduatedPricingType struct for QuotaSpecGraduatedPricingType

type QuotaSpecLimitTypeLoose

type QuotaSpecLimitTypeLoose struct {
	Type string `json:"type"`
	// The limit of the unit that is provided.
	Value    int32                           `json:"value"`
	Overages QuotaSpecLimitTypeLooseOverages `json:"overages"`
}

QuotaSpecLimitTypeLoose struct for QuotaSpecLimitTypeLoose

type QuotaSpecLimitTypeLooseOverages

type QuotaSpecLimitTypeLooseOverages struct {
	// The overage price per unit.
	Value float64 `json:"value,omitempty"`
}

QuotaSpecLimitTypeLooseOverages struct for QuotaSpecLimitTypeLooseOverages

type QuotaSpecLimitTypeStrict

type QuotaSpecLimitTypeStrict struct {
	Type string `json:"type"`
	// The limit of the unit that is provided.
	Value int32 `json:"value"`
}

QuotaSpecLimitTypeStrict struct for QuotaSpecLimitTypeStrict

type QuotaSpecLimitTypeTiered added in v1.1.35

type QuotaSpecLimitTypeTiered struct {
	Type  string                          `json:"type"`
	Tiers []QuotaSpecLimitTypeTieredTiers `json:"tiers"`
}

QuotaSpecLimitTypeTiered struct for QuotaSpecLimitTypeTiered

type QuotaSpecLimitTypeTieredTiers added in v1.1.35

type QuotaSpecLimitTypeTieredTiers struct {
	// The limit start of the tier provided.
	From int32 `json:"from"`
	// The limit end of the tier provided.
	To int32 `json:"to"`
	// The tier price.
	Cost float64 `json:"cost"`
	// The flat fee for the tier.
	FlatFee float64 `json:"flatFee"`
}

QuotaSpecLimitTypeTieredTiers struct for QuotaSpecLimitTypeTieredTiers

type QuotaSpecPerUnitPricingType added in v1.1.44

type QuotaSpecPerUnitPricingType struct {
	Type string `json:"type"`
	// The cost per unit of usage.
	Cost float64 `json:"cost"`
}

QuotaSpecPerUnitPricingType struct for QuotaSpecPerUnitPricingType

type QuotaSpecUnlimitedPricingType

type QuotaSpecUnlimitedPricingType struct {
	Type string `json:"type"`
}

QuotaSpecUnlimitedPricingType struct for QuotaSpecUnlimitedPricingType

type QuotaSpecVolumePricingType added in v1.1.35

type QuotaSpecVolumePricingType struct {
	Type string `json:"type"`
	// The tiered limits set.
	// GENERATE: The following code has been modified after code generation
	Limit interface{} `json:"limit"`
}

QuotaSpecVolumePricingType struct for QuotaSpecVolumePricingType

type QuotaStatus

type QuotaStatus struct {
	// The current status level, indicating progress towards consistency.
	Level string `json:"level"`
	// Reasons for the generated status.
	// GENERATE: The following code has been modified after code generation
	Reasons []interface{} `json:"reasons,omitempty"`
}

QuotaStatus (catalog.v1.Quota)

type QuotaStatusError

type QuotaStatusError struct {
	Type string `json:"type"`
	// Details of the error.
	Detail string `json:"detail"`
	// Time when the update occurred.
	Timestamp time.Time                         `json:"timestamp"`
	Meta      map[string]map[string]interface{} `json:"meta,omitempty"`
}

QuotaStatusError struct for QuotaStatusError

type QuotaStatusPending

type QuotaStatusPending struct {
	Type string `json:"type"`
	// Details of the Pending status.
	Detail string `json:"detail"`
	// Time when the resource moved to Pending.
	Timestamp time.Time                         `json:"timestamp"`
	Meta      map[string]map[string]interface{} `json:"meta,omitempty"`
}

QuotaStatusPending struct for QuotaStatusPending

type QuotaStatusSuccess

type QuotaStatusSuccess struct {
	Type string `json:"type"`
	// Time when the change occured.
	Timestamp time.Time `json:"timestamp"`
	// Details of the result.
	Detail string                 `json:"detail"`
	Meta   map[string]interface{} `json:"meta,omitempty"`
}

QuotaStatusSuccess struct for QuotaStatusSuccess

type Resource

type Resource struct {
	apiv1.ResourceMeta
	Owner *apiv1.Owner `json:"owner"`
	Spec  ResourceSpec `json:"spec"`
}

Resource Resource

func NewResource

func NewResource(name, scopeKind, scopeName string) (*Resource, error)

NewResource creates an empty *Resource

func ResourceFromInstanceArray

func ResourceFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Resource, error)

ResourceFromInstanceArray converts a []*ResourceInstance to a []*Resource

func (*Resource) AsInstance

func (res *Resource) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a Resource to a ResourceInstance

func (*Resource) FromInstance

func (res *Resource) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a Resource

func (*Resource) MarshalJSON

func (res *Resource) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*Resource) PluralName

func (res *Resource) PluralName() string

PluralName returns the plural name of the resource

func (*Resource) UnmarshalJSON

func (res *Resource) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type ResourceSpec

type ResourceSpec struct {
	// Resource description.
	Description string `json:"description,omitempty"`
	// Version of the Resource.
	Version string `json:"version,omitempty"`
	// The type of the resource, example: pdf
	FileType string `json:"fileType"`
	// The content type
	ContentType string `json:"contentType"`
	// GENERATE: The following code has been modified after code generation
	Data interface{} `json:"data"`
}

ResourceSpec (catalog.v1.Resource)

type ResourceSpecBinaryData

type ResourceSpecBinaryData struct {
	Type string `json:"type"`
	// Base64 encoded value of the file.
	Content string `json:"content"`
}

ResourceSpecBinaryData struct for ResourceSpecBinaryData

type ResourceSpecTextData

type ResourceSpecTextData struct {
	Type string `json:"type"`
	// Resource content.
	Content string `json:"content"`
}

ResourceSpecTextData struct for ResourceSpecTextData

type SubscriptionRequestDefinition added in v1.1.64

type SubscriptionRequestDefinition struct {
	apiv1.ResourceMeta
	Owner *apiv1.Owner                      `json:"owner"`
	Spec  SubscriptionRequestDefinitionSpec `json:"spec"`
}

SubscriptionRequestDefinition Resource

func NewSubscriptionRequestDefinition added in v1.1.64

func NewSubscriptionRequestDefinition(name string) *SubscriptionRequestDefinition

NewSubscriptionRequestDefinition creates an empty *SubscriptionRequestDefinition

func SubscriptionRequestDefinitionFromInstanceArray added in v1.1.64

func SubscriptionRequestDefinitionFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*SubscriptionRequestDefinition, error)

SubscriptionRequestDefinitionFromInstanceArray converts a []*ResourceInstance to a []*SubscriptionRequestDefinition

func (*SubscriptionRequestDefinition) AsInstance added in v1.1.64

AsInstance converts a SubscriptionRequestDefinition to a ResourceInstance

func (*SubscriptionRequestDefinition) FromInstance added in v1.1.64

FromInstance converts a ResourceInstance to a SubscriptionRequestDefinition

func (*SubscriptionRequestDefinition) MarshalJSON added in v1.1.64

func (res *SubscriptionRequestDefinition) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*SubscriptionRequestDefinition) PluralName added in v1.1.64

func (res *SubscriptionRequestDefinition) PluralName() string

PluralName returns the plural name of the resource

func (*SubscriptionRequestDefinition) UnmarshalJSON added in v1.1.64

func (res *SubscriptionRequestDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type SubscriptionRequestDefinitionSpec added in v1.1.64

type SubscriptionRequestDefinitionSpec struct {
	// JSON Schema draft \\#7 for defining the properties needed from a consumer to subscribe to a plan. (catalog.v1.SubscriptionRequestDefinition)
	Schema map[string]interface{} `json:"schema"`
}

SubscriptionRequestDefinitionSpec (catalog.v1.SubscriptionRequestDefinition)

type SupportContact added in v1.1.41

type SupportContact struct {
	apiv1.ResourceMeta
	Owner *apiv1.Owner       `json:"owner"`
	Spec  SupportContactSpec `json:"spec"`
}

SupportContact Resource

func NewSupportContact added in v1.1.41

func NewSupportContact(name string) *SupportContact

NewSupportContact creates an empty *SupportContact

func SupportContactFromInstanceArray added in v1.1.41

func SupportContactFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*SupportContact, error)

SupportContactFromInstanceArray converts a []*ResourceInstance to a []*SupportContact

func (*SupportContact) AsInstance added in v1.1.41

func (res *SupportContact) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a SupportContact to a ResourceInstance

func (*SupportContact) FromInstance added in v1.1.41

func (res *SupportContact) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a SupportContact

func (*SupportContact) MarshalJSON added in v1.1.41

func (res *SupportContact) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*SupportContact) PluralName added in v1.1.41

func (res *SupportContact) PluralName() string

PluralName returns the plural name of the resource

func (*SupportContact) UnmarshalJSON added in v1.1.41

func (res *SupportContact) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type SupportContactSpec added in v1.1.41

type SupportContactSpec struct {
	// Email address of the Support Contact.
	Email string `json:"email"`
	// String of the E.164 format of the phone number, e.g. +11234567899
	PhoneNumber         string                                `json:"phoneNumber,omitempty"`
	OfficeHours         SupportContactSpecOfficeHours         `json:"officeHours,omitempty"`
	AlternativeContacts SupportContactSpecAlternativeContacts `json:"alternativeContacts,omitempty"`
}

SupportContactSpec (catalog.v1.SupportContact)

type SupportContactSpecAlternativeContacts added in v1.1.44

type SupportContactSpecAlternativeContacts struct {
	// Alternative contact URLs.
	Urls []SupportContactSpecAlternativeContactsUrls `json:"urls,omitempty"`
}

SupportContactSpecAlternativeContacts (catalog.v1.SupportContact)

type SupportContactSpecAlternativeContactsUrls added in v1.1.44

type SupportContactSpecAlternativeContactsUrls struct {
	// URL hosting service name. Examples: msteams, slack
	Type string `json:"type,omitempty"`
	// Title for the provided URL.
	Title string `json:"title"`
	// URL value.
	Value string `json:"value"`
}

SupportContactSpecAlternativeContactsUrls (catalog.v1.SupportContact)

type SupportContactSpecOfficeHours added in v1.1.44

type SupportContactSpecOfficeHours struct {
	// Long IANA Time Zone format. Examples: 'America/New_York' or 'Europe/Paris'
	Timezone string                                 `json:"timezone"`
	Periods  []SupportContactSpecOfficeHoursPeriods `json:"periods"`
}

SupportContactSpecOfficeHours (catalog.v1.SupportContact)

type SupportContactSpecOfficeHoursPeriods added in v1.1.44

type SupportContactSpecOfficeHoursPeriods struct {
	// Time in 24hr ISO 8601 extended format (hh:mm). Valid values are 00:00-24:00.
	OpenTime string `json:"openTime"`
	OpenDay  string `json:"openDay"`
	// Time in 24hr ISO 8601 extended format (hh:mm). Valid values are 00:00-24:00.
	CloseTime string `json:"closeTime"`
	CloseDay  string `json:"closeDay"`
}

SupportContactSpecOfficeHoursPeriods (catalog.v1.SupportContact)

Source Files

Jump to

Keyboard shortcuts

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