Documentation ¶
Index ¶
- Constants
- Variables
- func CategoryGVK() apiv1.GroupVersionKind
- func CategoryVisibilityGVK() apiv1.GroupVersionKind
- func DocumentGVK() apiv1.GroupVersionKind
- func DocumentResourceGVK() apiv1.GroupVersionKind
- func MarketplaceGVK() apiv1.GroupVersionKind
- func ProductGVK() apiv1.GroupVersionKind
- func ProductOverviewGVK() apiv1.GroupVersionKind
- func ProductReleaseGVK() apiv1.GroupVersionKind
- func ProductReviewGVK() apiv1.GroupVersionKind
- func PublishedDocumentResourceGVK() apiv1.GroupVersionKind
- func PublishedStageGVK() apiv1.GroupVersionKind
- func QuotaGVK() apiv1.GroupVersionKind
- func ResourceGVK() apiv1.GroupVersionKind
- func SubscriptionRequestDefinitionGVK() apiv1.GroupVersionKind
- func SupportContactGVK() apiv1.GroupVersionKind
- type Category
- type CategorySpec
- type CategorySpecApiServiceRestriction
- type CategorySpecAssetRestriction
- type CategorySpecProductRestriction
- type CategorySpecProductRestrictionMarketplace
- type CategoryVisibility
- func (res *CategoryVisibility) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *CategoryVisibility) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *CategoryVisibility) MarshalJSON() ([]byte, error)
- func (res *CategoryVisibility) PluralName() string
- func (res *CategoryVisibility) UnmarshalJSON(data []byte) error
- type CategoryVisibilitySpec
- type Document
- type DocumentResource
- func (res *DocumentResource) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *DocumentResource) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *DocumentResource) MarshalJSON() ([]byte, error)
- func (res *DocumentResource) PluralName() string
- func (res *DocumentResource) UnmarshalJSON(data []byte) error
- type DocumentResourceReferences
- type DocumentResourceReferencesMarketplaceSettings
- type DocumentResourceReferencesPlatformSettings
- type DocumentResourceSpec
- type DocumentResourceSpecBinaryData
- type DocumentResourceSpecTextData
- type DocumentResourceSpecUrl
- type DocumentResourceSpecUsage
- type DocumentResourceSpecUsageMarketplaceSettings
- type DocumentResourceSpecUsageProducts
- type DocumentResourceState
- type DocumentSpec
- type DocumentSpecDocumentResourceRef
- type DocumentSpecResourceRef
- type DocumentSpecSections
- type DocumentStatus
- type DocumentStatusError
- type DocumentStatusSuccess
- type Marketplace
- type MarketplaceBilling
- type MarketplaceBillingPayment
- type MarketplaceSpec
- type Product
- type ProductLatestrelease
- type ProductOverview
- func (res *ProductOverview) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *ProductOverview) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *ProductOverview) MarshalJSON() ([]byte, error)
- func (res *ProductOverview) PluralName() string
- func (res *ProductOverview) UnmarshalJSON(data []byte) error
- type ProductOverviewSpec
- type ProductOverviewSpecDocuments
- type ProductReferences
- type ProductReferencesAssets
- type ProductReferencesMarketplaces
- type ProductReferencesRatings
- type ProductReferencesRatingsDistribution
- type ProductReferencesRelease
- type ProductRelease
- func (res *ProductRelease) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *ProductRelease) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *ProductRelease) MarshalJSON() ([]byte, error)
- func (res *ProductRelease) PluralName() string
- func (res *ProductRelease) UnmarshalJSON(data []byte) error
- type ProductReleaseReferences
- type ProductReleaseSpec
- type ProductReleaseSpecAssets
- type ProductReleaseSpecRelease
- type ProductReleaseSpecVersionProperties
- type ProductReleaseStatus
- type ProductReleaseStatusError
- type ProductReleaseStatusPending
- type ProductReleaseStatusPendingMeta
- type ProductReleaseStatusSuccess
- type ProductReview
- func (res *ProductReview) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *ProductReview) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *ProductReview) MarshalJSON() ([]byte, error)
- func (res *ProductReview) PluralName() string
- func (res *ProductReview) UnmarshalJSON(data []byte) error
- type ProductReviewMarketplace
- type ProductReviewMarketplaceResource
- type ProductReviewMarketplaceResourceMetadata
- type ProductReviewMarketplaceResourceOwner
- type ProductReviewMarketplaceResourceOwnerOrganization
- type ProductReviewSpec
- type ProductReviewState
- type ProductSpec
- type ProductSpecAssets
- type ProductSpecAutoRelease
- type ProductSpecAutoReleasePreviousReleases
- type ProductSpecAutoReleaseReleaseVersionProperties
- type ProductSpecFilters
- type ProductState
- type ProductStatus
- type ProductStatusMeta
- type ProductStatusReasons
- type PublishedDocumentResource
- func (res *PublishedDocumentResource) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *PublishedDocumentResource) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *PublishedDocumentResource) MarshalJSON() ([]byte, error)
- func (res *PublishedDocumentResource) PluralName() string
- func (res *PublishedDocumentResource) UnmarshalJSON(data []byte) error
- type PublishedDocumentResourceSpec
- type PublishedDocumentResourceSpecDocumentResource
- type PublishedStage
- func (res *PublishedStage) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *PublishedStage) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *PublishedStage) MarshalJSON() ([]byte, error)
- func (res *PublishedStage) PluralName() string
- func (res *PublishedStage) UnmarshalJSON(data []byte) error
- type PublishedStageSpec
- type PublishedStageSpecStage
- type Quota
- type QuotaSpec
- type QuotaSpecAssetResourceRef
- type QuotaSpecFixedPricingType
- type QuotaSpecGraduatedPricingType
- type QuotaSpecLimitTypeLoose
- type QuotaSpecLimitTypeLooseOverages
- type QuotaSpecLimitTypeStrict
- type QuotaSpecLimitTypeTiered
- type QuotaSpecLimitTypeTieredTiers
- type QuotaSpecPerUnitPricingType
- type QuotaSpecUnlimitedPricingType
- type QuotaSpecVolumePricingType
- type QuotaStatus
- type QuotaStatusError
- type QuotaStatusPending
- type QuotaStatusSuccess
- type Resource
- type ResourceSpec
- type ResourceSpecBinaryData
- type ResourceSpecTextData
- type SubscriptionRequestDefinition
- func (res *SubscriptionRequestDefinition) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *SubscriptionRequestDefinition) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *SubscriptionRequestDefinition) MarshalJSON() ([]byte, error)
- func (res *SubscriptionRequestDefinition) PluralName() string
- func (res *SubscriptionRequestDefinition) UnmarshalJSON(data []byte) error
- type SubscriptionRequestDefinitionSpec
- type SupportContact
- func (res *SupportContact) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *SupportContact) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *SupportContact) MarshalJSON() ([]byte, error)
- func (res *SupportContact) PluralName() string
- func (res *SupportContact) UnmarshalJSON(data []byte) error
- type SupportContactSpec
- type SupportContactSpecAlternativeContacts
- type SupportContactSpecAlternativeContactsUrls
- type SupportContactSpecOfficeHours
- type SupportContactSpecOfficeHoursPeriods
Constants ¶
const ( CategoryResourceName = "categories" CategoryIconSubResourceName = "icon" )
const ( DocumentResourceName = "documents" DocumentIconSubResourceName = "icon" DocumentStatusSubResourceName = "status" )
const ( DocumentResourceResourceName = "documentresources" DocumentResourceIconSubResourceName = "icon" DocumentResourceReferencesSubResourceName = "references" DocumentResourceStateSubResourceName = "state" )
const ( MarketplaceResourceName = "marketplaces" MarketplaceBillingSubResourceName = "billing" )
const ( ProductResourceName = "products" ProductIconSubResourceName = "icon" ProductLatestreleaseSubResourceName = "latestrelease" ProductReferencesSubResourceName = "references" ProductStateSubResourceName = "state" ProductStatusSubResourceName = "status" )
const ( ProductReleaseResourceName = "productreleases" ProductReleaseIconSubResourceName = "icon" ProductReleaseReferencesSubResourceName = "references" ProductReleaseStatusSubResourceName = "status" )
const ( ProductReviewResourceName = "productreviews" ProductReviewMarketplaceSubResourceName = "marketplace" ProductReviewStateSubResourceName = "state" )
const ( QuotaResourceName = "quotas" QuotaStatusSubResourceName = "status" )
const (
CategoryVisibilityResourceName = "categoryvisibility"
)
const (
ProductOverviewResourceName = "productoverviews"
)
const (
PublishedDocumentResourceResourceName = "publisheddocumentresources"
)
const (
PublishedStageResourceName = "publishedstages"
)
const (
ResourceResourceName = "resources"
)
const (
SubscriptionRequestDefinitionResourceName = "subscriptionrequestdefinitions"
)
const (
SupportContactResourceName = "supportcontacts"
)
Variables ¶
var ( CategoryCtx log.ContextField = "category" CategoryScopes = []string{""} )
var ( CategoryVisibilityCtx log.ContextField = "categoryVisibility" CategoryVisibilityScopes = []string{"Marketplace"} )
var ( DocumentCtx log.ContextField = "document" DocumentScopes = []string{"Product", "ProductRelease"} )
var ( DocumentResourceCtx log.ContextField = "documentResource" DocumentResourceScopes = []string{""} )
var ( MarketplaceCtx log.ContextField = "marketplace" MarketplaceScopes = []string{""} )
var ( ProductCtx log.ContextField = "product" ProductScopes = []string{""} )
var ( ProductOverviewCtx log.ContextField = "productOverview" ProductOverviewScopes = []string{"Product", "ProductRelease"} )
var ( ProductReleaseCtx log.ContextField = "productRelease" ProductReleaseScopes = []string{""} )
var ( ProductReviewCtx log.ContextField = "productReview" ProductReviewScopes = []string{"Product"} )
var ( PublishedDocumentResourceCtx log.ContextField = "publishedDocumentResource" PublishedDocumentResourceScopes = []string{"Marketplace"} )
var ( PublishedStageCtx log.ContextField = "publishedStage" PublishedStageScopes = []string{"Marketplace"} )
var ( QuotaCtx log.ContextField = "quota" QuotaScopes = []string{"ProductPlan"} )
var ( ResourceCtx log.ContextField = "resource" ResourceScopes = []string{"Product", "ProductRelease"} )
var ( SubscriptionRequestDefinitionCtx log.ContextField = "subscriptionRequestDefinition" SubscriptionRequestDefinitionScopes = []string{""} )
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 (*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 ¶
MarshalJSON custom marshaller to handle sub resources
func (*Category) PluralName ¶
PluralName returns the plural name of the resource
func (*Category) UnmarshalJSON ¶
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 ¶
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 ¶
MarshalJSON custom marshaller to handle sub resources
func (*Document) PluralName ¶
PluralName returns the plural name of the resource
func (*Document) UnmarshalJSON ¶
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 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 ¶
MarshalJSON custom marshaller to handle sub resources
func (*Product) PluralName ¶
PluralName returns the plural name of the resource
func (*Product) UnmarshalJSON ¶
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 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 ¶
MarshalJSON custom marshaller to handle sub resources
func (*Quota) PluralName ¶
PluralName returns the plural name of the resource
func (*Quota) UnmarshalJSON ¶
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 ¶
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 ¶
MarshalJSON custom marshaller to handle sub resources
func (*Resource) PluralName ¶
PluralName returns the plural name of the resource
func (*Resource) UnmarshalJSON ¶
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
func (res *SubscriptionRequestDefinition) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a SubscriptionRequestDefinition to a ResourceInstance
func (*SubscriptionRequestDefinition) FromInstance ¶ added in v1.1.64
func (res *SubscriptionRequestDefinition) FromInstance(ri *apiv1.ResourceInstance) error
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 ¶
- Category.go
- CategoryVisibility.go
- Document.go
- DocumentResource.go
- Marketplace.go
- Product.go
- ProductOverview.go
- ProductRelease.go
- ProductReview.go
- PublishedDocumentResource.go
- PublishedStage.go
- Quota.go
- Resource.go
- SubscriptionRequestDefinition.go
- SupportContact.go
- model_category_spec.go
- model_category_spec_api_service_restriction.go
- model_category_spec_asset_restriction.go
- model_category_spec_product_restriction.go
- model_category_spec_product_restriction_marketplace.go
- model_category_visibility_spec.go
- model_document_resource_references.go
- model_document_resource_references_marketplace_settings.go
- model_document_resource_references_platform_settings.go
- model_document_resource_spec.go
- model_document_resource_spec_binary_data.go
- model_document_resource_spec_text_data.go
- model_document_resource_spec_url.go
- model_document_resource_spec_usage.go
- model_document_resource_spec_usage_marketplace_settings.go
- model_document_resource_spec_usage_products.go
- model_document_resource_state.go
- model_document_spec.go
- model_document_spec_document_resource_ref.go
- model_document_spec_resource_ref.go
- model_document_spec_sections.go
- model_document_status.go
- model_document_status_error.go
- model_document_status_success.go
- model_marketplace_billing.go
- model_marketplace_billing_payment.go
- model_marketplace_spec.go
- model_product_latestrelease.go
- model_product_overview_spec.go
- model_product_overview_spec_documents.go
- model_product_references.go
- model_product_references_assets.go
- model_product_references_marketplaces.go
- model_product_references_ratings.go
- model_product_references_ratings_distribution.go
- model_product_references_release.go
- model_product_release_references.go
- model_product_release_spec.go
- model_product_release_spec_assets.go
- model_product_release_spec_release.go
- model_product_release_spec_version_properties.go
- model_product_release_status.go
- model_product_release_status_error.go
- model_product_release_status_pending.go
- model_product_release_status_pending_meta.go
- model_product_release_status_success.go
- model_product_review_marketplace.go
- model_product_review_marketplace_resource.go
- model_product_review_marketplace_resource_metadata.go
- model_product_review_marketplace_resource_owner.go
- model_product_review_marketplace_resource_owner_organization.go
- model_product_review_spec.go
- model_product_review_state.go
- model_product_spec.go
- model_product_spec_assets.go
- model_product_spec_auto_release.go
- model_product_spec_auto_release_previous_releases.go
- model_product_spec_auto_release_release_version_properties.go
- model_product_spec_filters.go
- model_product_state.go
- model_product_status.go
- model_product_status_meta.go
- model_product_status_reasons.go
- model_published_document_resource_spec.go
- model_published_document_resource_spec_document_resource.go
- model_published_stage_spec.go
- model_published_stage_spec_stage.go
- model_quota_spec.go
- model_quota_spec_asset_resource_ref.go
- model_quota_spec_fixed_pricing_type.go
- model_quota_spec_graduated_pricing_type.go
- model_quota_spec_limit_type_loose.go
- model_quota_spec_limit_type_loose_overages.go
- model_quota_spec_limit_type_strict.go
- model_quota_spec_limit_type_tiered.go
- model_quota_spec_limit_type_tiered_tiers.go
- model_quota_spec_per_unit_pricing_type.go
- model_quota_spec_unlimited_pricing_type.go
- model_quota_spec_volume_pricing_type.go
- model_quota_status.go
- model_quota_status_error.go
- model_quota_status_pending.go
- model_quota_status_success.go
- model_resource_spec.go
- model_resource_spec_binary_data.go
- model_resource_spec_text_data.go
- model_subscription_request_definition_spec.go
- model_support_contact_spec.go
- model_support_contact_spec_alternative_contacts.go
- model_support_contact_spec_alternative_contacts_urls.go
- model_support_contact_spec_office_hours.go
- model_support_contact_spec_office_hours_periods.go