catalog

package
v1.1.82 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation ¶

Index ¶

Constants ¶

View Source
const (
	ApplicationResourceName               = "applications"
	ApplicationMarketplaceSubResourceName = "marketplace"
	ApplicationStateSubResourceName       = "state"
)
View Source
const (
	AssetResourceName                 = "assets"
	AssetAccessSubResourceName        = "access"
	AssetIconSubResourceName          = "icon"
	AssetLatestreleaseSubResourceName = "latestrelease"
	AssetReferencesSubResourceName    = "references"
	AssetStateSubResourceName         = "state"
	AssetStatusSubResourceName        = "status"
)
View Source
const (
	AssetMappingResourceName          = "assetmappings"
	AssetMappingStatusSubResourceName = "status"
)
View Source
const (
	AssetReleaseResourceName              = "assetreleases"
	AssetReleaseIconSubResourceName       = "icon"
	AssetReleaseReferencesSubResourceName = "references"
	AssetReleaseStatusSubResourceName     = "status"
)
View Source
const (
	AssetRequestResourceName               = "assetrequests"
	AssetRequestApprovalSubResourceName    = "approval"
	AssetRequestDataSubResourceName        = "data"
	AssetRequestMarketplaceSubResourceName = "marketplace"
	AssetRequestReferencesSubResourceName  = "references"
	AssetRequestStatusSubResourceName      = "status"
)
View Source
const (
	AssetRequestDefinitionResourceName                 = "assetrequestdefinitions"
	AssetRequestDefinitionAuthorizationSubResourceName = "authorization"
	AssetRequestDefinitionReferencesSubResourceName    = "references"
	AssetRequestDefinitionWebhooksSubResourceName      = "webhooks"
)
View Source
const (
	AssetResourceResourceName               = "assetresources"
	AssetResourceReferencesSubResourceName  = "references"
	AssetResourceReleasehashSubResourceName = "releasehash"
)
View Source
const (
	AuthorizationProfileResourceName              = "authprofiles"
	AuthorizationProfilePoliciesSubResourceName   = "policies"
	AuthorizationProfileReferencesSubResourceName = "references"
)
View Source
const (
	CategoryResourceName        = "categories"
	CategoryIconSubResourceName = "icon"
)
View Source
const (
	CredentialResourceName               = "credentials"
	CredentialDataSubResourceName        = "data"
	CredentialExpirationSubResourceName  = "expiration"
	CredentialMarketplaceSubResourceName = "marketplace"
	CredentialPoliciesSubResourceName    = "policies"
	CredentialReferencesSubResourceName  = "references"
	CredentialStateSubResourceName       = "state"
	CredentialStatusSubResourceName      = "status"
)
View Source
const (
	CredentialRequestDefinitionResourceName              = "credentialrequestdefinitions"
	CredentialRequestDefinitionReferencesSubResourceName = "references"
	CredentialRequestDefinitionWebhooksSubResourceName   = "webhooks"
)
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 (
	ProductPlanResourceName              = "productplans"
	ProductPlanReferencesSubResourceName = "references"
	ProductPlanStateSubResourceName      = "state"
	ProductPlanStatusSubResourceName     = "status"
)
View Source
const (
	ProductPlanJobResourceName          = "productplanjobs"
	ProductPlanJobStatusSubResourceName = "status"
)
View Source
const (
	ProductReleaseResourceName              = "productreleases"
	ProductReleaseIconSubResourceName       = "icon"
	ProductReleaseReferencesSubResourceName = "references"
	ProductReleaseStatusSubResourceName     = "status"
)
View Source
const (
	ProductReviewResourceName               = "productreviews"
	ProductReviewMarketplaceSubResourceName = "marketplace"
	ProductReviewStateSubResourceName       = "state"
)
View Source
const (
	PublishedProductResourceName              = "publishedproducts"
	PublishedProductReferencesSubResourceName = "references"
)
View Source
const (
	QuotaResourceName          = "quotas"
	QuotaStatusSubResourceName = "status"
)
View Source
const (
	ReleaseTagResourceName          = "releasetags"
	ReleaseTagStateSubResourceName  = "state"
	ReleaseTagStatusSubResourceName = "status"
)
View Source
const (
	StageResourceName        = "stages"
	StageIconSubResourceName = "icon"
)
View Source
const (
	SubscriptionResourceName               = "subscriptions"
	SubscriptionApprovalSubResourceName    = "approval"
	SubscriptionBillingSubResourceName     = "billing"
	SubscriptionMarketplaceSubResourceName = "marketplace"
	SubscriptionReferencesSubResourceName  = "references"
	SubscriptionStateSubResourceName       = "state"
	SubscriptionStatusSubResourceName      = "status"
)
View Source
const (
	SubscriptionInvoiceResourceName               = "subscriptioninvoices"
	SubscriptionInvoiceBillingSubResourceName     = "billing"
	SubscriptionInvoiceMarketplaceSubResourceName = "marketplace"
	SubscriptionInvoiceStateSubResourceName       = "state"
	SubscriptionInvoiceStatusSubResourceName      = "status"
)
View Source
const (
	SubscriptionJobResourceName          = "subscriptionjobs"
	SubscriptionJobStatusSubResourceName = "status"
)
View Source
const (
	AccessControlListResourceName = "accesscontrollists"
)
View Source
const (
	CategoryVisibilityResourceName = "categoryvisibility"
)
View Source
const (
	ConsumerProductVisibilityResourceName = "consumerproductvisibility"
)
View Source
const (
	ConsumerStageVisibilityResourceName = "consumerstagevisibility"
)
View Source
const (
	ProductOverviewResourceName = "productoverviews"
)
View Source
const (
	ProductPlanUnitResourceName = "productplanunits"
)
View Source
const (
	ProductVisibilityResourceName = "productvisibility"
)
View Source
const (
	PublishedDocumentResourceResourceName = "publisheddocumentresources"
)
View Source
const (
	PublishedStageResourceName = "publishedstages"
)
View Source
const (
	ResourceResourceName = "resources"
)
View Source
const (
	SecretResourceName = "secrets"
)
View Source
const (
	StageVisibilityResourceName = "stagevisibility"
)
View Source
const (
	SubscriptionRequestDefinitionResourceName = "subscriptionrequestdefinitions"
)
View Source
const (
	SupportContactResourceName = "supportcontacts"
)
View Source
const (
	WebhookResourceName = "webhooks"
)

Variables ¶

View Source
var (
	AccessControlListCtx log.ContextField = "accessControlList"

	AccessControlListScopes = []string{"Application", "Asset", "AssetRelease", "AuthorizationProfile", "Category", "DocumentResource", "Marketplace", "Product", "ProductPlan", "ProductPlanUnit", "ProductRelease", "Stage", "Subscription", "SubscriptionRequestDefinition", "SupportContact"}
)
View Source
var (
	ApplicationCtx log.ContextField = "application"

	ApplicationScopes = []string{""}
)
View Source
var (
	AssetCtx log.ContextField = "asset"

	AssetScopes = []string{""}
)
View Source
var (
	AssetMappingCtx log.ContextField = "assetMapping"

	AssetMappingScopes = []string{"Asset"}
)
View Source
var (
	AssetReleaseCtx log.ContextField = "assetRelease"

	AssetReleaseScopes = []string{""}
)
View Source
var (
	AssetRequestCtx log.ContextField = "assetRequest"

	AssetRequestScopes = []string{"Application"}
)
View Source
var (
	AssetRequestDefinitionCtx log.ContextField = "assetRequestDefinition"

	AssetRequestDefinitionScopes = []string{"AuthorizationProfile"}
)
View Source
var (
	AssetResourceCtx log.ContextField = "assetResource"

	AssetResourceScopes = []string{"Asset", "AssetRelease"}
)
View Source
var (
	AuthorizationProfileCtx log.ContextField = "authorizationProfile"

	AuthorizationProfileScopes = []string{""}
)
View Source
var (
	CategoryCtx log.ContextField = "category"

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

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

	ConsumerProductVisibilityScopes = []string{"Marketplace"}
)
View Source
var (
	ConsumerStageVisibilityCtx log.ContextField = "consumerStageVisibility"

	ConsumerStageVisibilityScopes = []string{"Marketplace"}
)
View Source
var (
	CredentialCtx log.ContextField = "credential"

	CredentialScopes = []string{"Application"}
)
View Source
var (
	CredentialRequestDefinitionCtx log.ContextField = "credentialRequestDefinition"

	CredentialRequestDefinitionScopes = []string{"AuthorizationProfile"}
)
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 (
	ProductPlanCtx log.ContextField = "productPlan"

	ProductPlanScopes = []string{""}
)
View Source
var (
	ProductPlanJobCtx log.ContextField = "productPlanJob"

	ProductPlanJobScopes = []string{"ProductPlan"}
)
View Source
var (
	ProductPlanUnitCtx log.ContextField = "productPlanUnit"

	ProductPlanUnitScopes = []string{""}
)
View Source
var (
	ProductReleaseCtx log.ContextField = "productRelease"

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

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

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

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

	PublishedProductScopes = []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 (
	ReleaseTagCtx log.ContextField = "releaseTag"

	ReleaseTagScopes = []string{"Asset", "Product"}
)
View Source
var (
	ResourceCtx log.ContextField = "resource"

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

	SecretScopes = []string{"AuthorizationProfile"}
)
View Source
var (
	StageCtx log.ContextField = "stage"

	StageScopes = []string{""}
)
View Source
var (
	StageVisibilityCtx log.ContextField = "stageVisibility"

	StageVisibilityScopes = []string{"Marketplace"}
)
View Source
var (
	SubscriptionCtx log.ContextField = "subscription"

	SubscriptionScopes = []string{""}
)
View Source
var (
	SubscriptionInvoiceCtx log.ContextField = "subscriptionInvoice"

	SubscriptionInvoiceScopes = []string{"Subscription"}
)
View Source
var (
	SubscriptionJobCtx log.ContextField = "subscriptionJob"

	SubscriptionJobScopes = []string{"Subscription"}
)
View Source
var (
	SubscriptionRequestDefinitionCtx log.ContextField = "subscriptionRequestDefinition"

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

	SupportContactScopes = []string{""}
)
View Source
var (
	WebhookCtx log.ContextField = "webhook"

	WebhookScopes = []string{"AuthorizationProfile"}
)

Functions ¶

func AccessControlListGVK ¶

func AccessControlListGVK() apiv1.GroupVersionKind

func ApplicationGVK ¶

func ApplicationGVK() apiv1.GroupVersionKind

func AssetGVK ¶

func AssetGVK() apiv1.GroupVersionKind

func AssetMappingGVK ¶

func AssetMappingGVK() apiv1.GroupVersionKind

func AssetReleaseGVK ¶

func AssetReleaseGVK() apiv1.GroupVersionKind

func AssetRequestDefinitionGVK ¶

func AssetRequestDefinitionGVK() apiv1.GroupVersionKind

func AssetRequestGVK ¶

func AssetRequestGVK() apiv1.GroupVersionKind

func AssetResourceGVK ¶

func AssetResourceGVK() apiv1.GroupVersionKind

func AuthorizationProfileGVK ¶

func AuthorizationProfileGVK() apiv1.GroupVersionKind

func CategoryGVK ¶

func CategoryGVK() apiv1.GroupVersionKind

func CategoryVisibilityGVK ¶ added in v1.1.49

func CategoryVisibilityGVK() apiv1.GroupVersionKind

func ConsumerProductVisibilityGVK ¶ added in v1.1.44

func ConsumerProductVisibilityGVK() apiv1.GroupVersionKind

func ConsumerStageVisibilityGVK ¶ added in v1.1.78

func ConsumerStageVisibilityGVK() apiv1.GroupVersionKind

func CredentialGVK ¶

func CredentialGVK() apiv1.GroupVersionKind

func CredentialRequestDefinitionGVK ¶

func CredentialRequestDefinitionGVK() 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 ProductPlanGVK ¶

func ProductPlanGVK() apiv1.GroupVersionKind

func ProductPlanJobGVK ¶ added in v1.1.49

func ProductPlanJobGVK() apiv1.GroupVersionKind

func ProductPlanUnitGVK ¶

func ProductPlanUnitGVK() apiv1.GroupVersionKind

func ProductReleaseGVK ¶

func ProductReleaseGVK() apiv1.GroupVersionKind

func ProductReviewGVK ¶ added in v1.1.78

func ProductReviewGVK() apiv1.GroupVersionKind

func ProductVisibilityGVK ¶

func ProductVisibilityGVK() apiv1.GroupVersionKind

func PublishedDocumentResourceGVK ¶ added in v1.1.62

func PublishedDocumentResourceGVK() apiv1.GroupVersionKind

func PublishedProductGVK ¶

func PublishedProductGVK() apiv1.GroupVersionKind

func PublishedStageGVK ¶ added in v1.1.78

func PublishedStageGVK() apiv1.GroupVersionKind

func QuotaGVK ¶

func QuotaGVK() apiv1.GroupVersionKind

func ReleaseTagGVK ¶

func ReleaseTagGVK() apiv1.GroupVersionKind

func ResourceGVK ¶

func ResourceGVK() apiv1.GroupVersionKind

func SecretGVK ¶

func SecretGVK() apiv1.GroupVersionKind

func StageGVK ¶

func StageGVK() apiv1.GroupVersionKind

func StageVisibilityGVK ¶ added in v1.1.78

func StageVisibilityGVK() apiv1.GroupVersionKind

func SubscriptionGVK ¶

func SubscriptionGVK() apiv1.GroupVersionKind

func SubscriptionInvoiceGVK ¶ added in v1.1.52

func SubscriptionInvoiceGVK() apiv1.GroupVersionKind

func SubscriptionJobGVK ¶ added in v1.1.49

func SubscriptionJobGVK() apiv1.GroupVersionKind

func SubscriptionRequestDefinitionGVK ¶ added in v1.1.64

func SubscriptionRequestDefinitionGVK() apiv1.GroupVersionKind

func SupportContactGVK ¶ added in v1.1.41

func SupportContactGVK() apiv1.GroupVersionKind

func WebhookGVK ¶

func WebhookGVK() apiv1.GroupVersionKind

Types ¶

type AccessControlList ¶

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

AccessControlList Resource

func AccessControlListFromInstanceArray ¶

func AccessControlListFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*AccessControlList, error)

AccessControlListFromInstanceArray converts a []*ResourceInstance to a []*AccessControlList

func NewAccessControlList ¶

func NewAccessControlList(name, scopeKind, scopeName string) (*AccessControlList, error)

NewAccessControlList creates an empty *AccessControlList

func (*AccessControlList) AsInstance ¶

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

AsInstance converts a AccessControlList to a ResourceInstance

func (*AccessControlList) FromInstance ¶

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

FromInstance converts a ResourceInstance to a AccessControlList

func (*AccessControlList) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*AccessControlList) PluralName ¶

func (res *AccessControlList) PluralName() string

PluralName returns the plural name of the resource

func (*AccessControlList) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type AccessControlListSpec ¶

type AccessControlListSpec struct {
	Rules    []AccessRules `json:"rules,omitempty"`
	Subjects []apiv1.Owner `json:"subjects,omitempty"`
}

AccessControlListSpec struct for AccessControlListSpec

type AccessControlListSpecAccessLevelScope ¶

type AccessControlListSpecAccessLevelScope struct {
	// Resource level at which access is being granted.
	Level string `json:"level,omitempty"`
	// Set true to allow users to create scoped resources.
	AllowCreateScoped bool `json:"allowCreateScoped,omitempty"`
	// Set true to allow users to delete the unscoped resource.
	AllowDelete bool `json:"allowDelete,omitempty"`
	// Set true to allow users to update the unscoped resource.
	AllowWrite bool `json:"allowWrite,omitempty"`
}

AccessControlListSpecAccessLevelScope struct for AccessControlListSpecAccessLevelScope

type AccessControlListSpecAccessLevelScopedKind ¶ added in v1.1.35

type AccessControlListSpecAccessLevelScopedKind struct {
	// Resource level at which access is being granted.
	Level string `json:"level,omitempty"`
	// The kind of scoped resources to provide access to or \"*\" for all kinds.
	Kind string `json:"kind"`
	// Set true to allow users to create scoped resources of the specified kind.
	AllowCreate bool `json:"allowCreate,omitempty"`
	// Set true to allow users to delete scoped resources of the specified kind.
	AllowDelete bool `json:"allowDelete,omitempty"`
	// Set true to allow users to update scoped resources of the specified kind.
	AllowWrite bool `json:"allowWrite,omitempty"`
}

AccessControlListSpecAccessLevelScopedKind struct for AccessControlListSpecAccessLevelScopedKind

type AccessControlListSpecAccessLevelScopedResource ¶ added in v1.1.35

type AccessControlListSpecAccessLevelScopedResource struct {
	// Resource level at which access is being granted.
	Level string `json:"level,omitempty"`
	// The kind of scoped resources to provide access.
	Kind string `json:"kind"`
	// The name of the scoped resource to provide access to.
	Name string `json:"name"`
	// Set true to allow users to delete the referenced scoped resource.
	AllowDelete bool `json:"allowDelete,omitempty"`
	// Set true to allow users to update the referenced scoped resource.
	AllowWrite bool `json:"allowWrite,omitempty"`
}

AccessControlListSpecAccessLevelScopedResource struct for AccessControlListSpecAccessLevelScopedResource

type AccessControlListSpecRules ¶

type AccessControlListSpecRules struct {
	// GENERATE: The following code has been modified after code generation
	Access []interface{} `json:"access,omitempty"`
}

AccessControlListSpecRules struct for AccessControlListSpecRules

type AccessControlListSpecSubjects ¶

type AccessControlListSpecSubjects struct {
	// Type of the subject
	Type string `json:"type,omitempty"`
	// ID of the subject
	Id string `json:"id,omitempty"`
}

AccessControlListSpecSubjects struct for AccessControlListSpecSubjects

type AccessLevelScope ¶

type AccessLevelScope struct {
	// Resource level at which access is being granted.
	Level string `json:"level,omitempty"`
}

AccessLevelScope struct for AccessLevelScope

type AccessRules ¶

type AccessRules struct {
	// Resource level at which access is being granted.
	Access []AccessLevelScope `json:"access,omitempty"`
}

AccessRules struct for AccessRules

type Application ¶

type Application struct {
	apiv1.ResourceMeta
	Marketplace ApplicationMarketplace `json:"marketplace"`
	Owner       *apiv1.Owner           `json:"owner"`
	Spec        ApplicationSpec        `json:"spec"`
	State       ApplicationState       `json:"state"`
}

Application Resource

func ApplicationFromInstanceArray ¶

func ApplicationFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Application, error)

ApplicationFromInstanceArray converts a []*ResourceInstance to a []*Application

func NewApplication ¶

func NewApplication(name string) *Application

NewApplication creates an empty *Application

func (*Application) AsInstance ¶

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

AsInstance converts a Application to a ResourceInstance

func (*Application) FromInstance ¶

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

FromInstance converts a ResourceInstance to a Application

func (*Application) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*Application) PluralName ¶

func (res *Application) PluralName() string

PluralName returns the plural name of the resource

func (*Application) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type ApplicationMarketplace ¶

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

ApplicationMarketplace Details about marketplace in Application.

type ApplicationMarketplaceResource ¶

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

ApplicationMarketplaceResource The Marketplace Application resource details.

type ApplicationMarketplaceResourceMetadata ¶

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

ApplicationMarketplaceResourceMetadata Marketplace Application metadata.

type ApplicationMarketplaceResourceOwner ¶

type ApplicationMarketplaceResourceOwner struct {
	// The type of the owner.
	Type string `json:"type,omitempty"`
	// Id of the owner of the resource.
	Id           string                                          `json:"id,omitempty"`
	Organization ApplicationMarketplaceResourceOwnerOrganization `json:"organization"`
}

ApplicationMarketplaceResourceOwner Owner of the Application.

type ApplicationMarketplaceResourceOwnerOrganization ¶

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

ApplicationMarketplaceResourceOwnerOrganization Organization details.

type ApplicationSpec ¶

type ApplicationSpec struct {
	Security ApplicationSpecSecurity `json:"security"`
}

ApplicationSpec struct for ApplicationSpec

type ApplicationSpecSecurity ¶

type ApplicationSpecSecurity struct {
	// public key to be used to encrypt the credentials linked to this Application.
	EncryptionKey       string `json:"encryptionKey"`
	EncryptionAlgorithm string `json:"encryptionAlgorithm,omitempty"`
	EncryptionHash      string `json:"encryptionHash,omitempty"`
}

ApplicationSpecSecurity struct for ApplicationSpecSecurity

type ApplicationState ¶ added in v1.1.52

type ApplicationState string

ApplicationState the model 'ApplicationState'

const (
	// GENERATE: The following code has been modified after code generation
	ApplicationStateARCHIVED ApplicationState = "archived"
	// GENERATE: The following code has been modified after code generation
	ApplicationStateARCHIVING ApplicationState = "archiving"
)

List of ApplicationState

type Asset ¶

type Asset struct {
	apiv1.ResourceMeta
	Access        AssetAccess        `json:"access"`
	Icon          interface{}        `json:"icon"`
	Latestrelease AssetLatestrelease `json:"latestrelease"`
	Owner         *apiv1.Owner       `json:"owner"`
	References    interface{}        `json:"references"`
	Spec          AssetSpec          `json:"spec"`
	State         AssetState         `json:"state"`
	// Status        AssetStatus        `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

Asset Resource

func AssetFromInstanceArray ¶

func AssetFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Asset, error)

AssetFromInstanceArray converts a []*ResourceInstance to a []*Asset

func NewAsset ¶

func NewAsset(name string) *Asset

NewAsset creates an empty *Asset

func (*Asset) AsInstance ¶

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

AsInstance converts a Asset to a ResourceInstance

func (*Asset) FromInstance ¶

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

FromInstance converts a ResourceInstance to a Asset

func (*Asset) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*Asset) PluralName ¶

func (res *Asset) PluralName() string

PluralName returns the plural name of the resource

func (*Asset) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type AssetAccess ¶ added in v1.1.35

type AssetAccess struct {
	Approval string `json:"approval"`
}

AssetAccess Defines how an asset should handle access requests received from marketplace consumers.

type AssetLatestrelease ¶ added in v1.1.49

type AssetLatestrelease struct {
	Name    string `json:"name,omitempty"`
	Version string `json:"version,omitempty"`
}

AssetLatestrelease Provides newest non-archived release and version. Will be unassigned if no releases exist.

type AssetMapping ¶

type AssetMapping struct {
	apiv1.ResourceMeta
	Owner  *apiv1.Owner       `json:"owner"`
	Spec   AssetMappingSpec   `json:"spec"`
	Status AssetMappingStatus `json:"status"`
}

AssetMapping Resource

func AssetMappingFromInstanceArray ¶

func AssetMappingFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*AssetMapping, error)

AssetMappingFromInstanceArray converts a []*ResourceInstance to a []*AssetMapping

func NewAssetMapping ¶

func NewAssetMapping(name, scopeName string) *AssetMapping

NewAssetMapping creates an empty *AssetMapping

func (*AssetMapping) AsInstance ¶

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

AsInstance converts a AssetMapping to a ResourceInstance

func (*AssetMapping) FromInstance ¶

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

FromInstance converts a ResourceInstance to a AssetMapping

func (*AssetMapping) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*AssetMapping) PluralName ¶

func (res *AssetMapping) PluralName() string

PluralName returns the plural name of the resource

func (*AssetMapping) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type AssetMappingSpec ¶

type AssetMappingSpec struct {
	// Reference to the executed AssetMappingTemplate.
	AssetMappingTemplate string                 `json:"assetMappingTemplate,omitempty"`
	Inputs               AssetMappingSpecInputs `json:"inputs"`
}

AssetMappingSpec struct for AssetMappingSpec

type AssetMappingSpecInputs ¶

type AssetMappingSpecInputs struct {
	ApiService         string `json:"apiService"`
	ApiServiceRevision string `json:"apiServiceRevision,omitempty"`
	ApiServiceInstance string `json:"apiServiceInstance,omitempty"`
	// This property is deprecated and will be ignored.
	Stage string `json:"stage,omitempty"`
	// list of categories for the asset.
	Categories []string `json:"categories,omitempty"`
	// title for generated asset resource.
	AssetResourceTitle string `json:"assetResourceTitle,omitempty"`
}

AssetMappingSpecInputs The list of the inputs provided to the template.

type AssetMappingStatus ¶

type AssetMappingStatus struct {
	Level  string                   `json:"level,omitempty"`
	Source AssetMappingStatusSource `json:"source,omitempty"`
	// Generated catalog resources.
	Outputs []AssetMappingStatusOutputs `json:"outputs,omitempty"`
}

AssetMappingStatus struct for AssetMappingStatus

type AssetMappingStatusOperationType ¶

type AssetMappingStatusOperationType string

AssetMappingStatusOperationType The type of the operation executed on the resource that triggered the Asset Mapping.

const (
	CREATED AssetMappingStatusOperationType = "created"
	UPDATED AssetMappingStatusOperationType = "updated"
	DELETED AssetMappingStatusOperationType = "deleted"
)

List of AssetMappingStatus.OperationType

type AssetMappingStatusOutputs ¶

type AssetMappingStatusOutputs struct {
	Resource AssetMappingStatusResource `json:"resource,omitempty"`
}

AssetMappingStatusOutputs struct for AssetMappingStatusOutputs

type AssetMappingStatusResource ¶

type AssetMappingStatusResource struct {
	AssetResource AssetMappingStatusResourceAssetResource `json:"assetResource,omitempty"`
	Stage         AssetMappingStatusResourceStage         `json:"stage,omitempty"`
}

AssetMappingStatusResource The resources that were impacted with the trigger of asset mapping.

type AssetMappingStatusResourceAssetResource ¶

type AssetMappingStatusResourceAssetResource struct {
	Ref string `json:"ref,omitempty"`
	// GENERATE: The following code has been modified after code generation
	OperationType AssetMappingStatusOperationType `json:"operationType,omitempty"`
}

AssetMappingStatusResourceAssetResource struct for AssetMappingStatusResourceAssetResource

type AssetMappingStatusResourceStage ¶

type AssetMappingStatusResourceStage struct {
	Ref string `json:"ref,omitempty"`
	// GENERATE: The following code has been modified after code generation
	OperationType AssetMappingStatusOperationType `json:"operationType,omitempty"`
}

AssetMappingStatusResourceStage struct for AssetMappingStatusResourceStage

type AssetMappingStatusSource ¶

type AssetMappingStatusSource struct {
	Resource AssetMappingStatusSourceResource `json:"resource,omitempty"`
}

AssetMappingStatusSource struct for AssetMappingStatusSource

type AssetMappingStatusSourceResource ¶

type AssetMappingStatusSourceResource struct {
	ApiService           AssetMappingStatusSourceResourceApiService           `json:"apiService,omitempty"`
	ApiServiceRevision   AssetMappingStatusSourceResourceApiServiceRevision   `json:"apiServiceRevision,omitempty"`
	ApiServiceInstance   AssetMappingStatusSourceResourceApiServiceInstance   `json:"apiServiceInstance,omitempty"`
	AssetMappingTemplate AssetMappingStatusSourceResourceAssetMappingTemplate `json:"assetMappingTemplate,omitempty"`
}

AssetMappingStatusSourceResource The resource that triggered the Asset Mapping.

type AssetMappingStatusSourceResourceApiService ¶

type AssetMappingStatusSourceResourceApiService struct {
	Ref string `json:"ref,omitempty"`
	// GENERATE: The following code has been modified after code generation
	OperationType AssetMappingStatusOperationType `json:"operationType,omitempty"`
}

AssetMappingStatusSourceResourceApiService struct for AssetMappingStatusSourceResourceApiService

type AssetMappingStatusSourceResourceApiServiceInstance ¶

type AssetMappingStatusSourceResourceApiServiceInstance struct {
	Ref string `json:"ref,omitempty"`
	// GENERATE: The following code has been modified after code generation
	OperationType AssetMappingStatusOperationType `json:"operationType,omitempty"`
}

AssetMappingStatusSourceResourceApiServiceInstance struct for AssetMappingStatusSourceResourceApiServiceInstance

type AssetMappingStatusSourceResourceApiServiceRevision ¶

type AssetMappingStatusSourceResourceApiServiceRevision struct {
	Ref string `json:"ref,omitempty"`
	// GENERATE: The following code has been modified after code generation
	OperationType AssetMappingStatusOperationType `json:"operationType,omitempty"`
}

AssetMappingStatusSourceResourceApiServiceRevision struct for AssetMappingStatusSourceResourceApiServiceRevision

type AssetMappingStatusSourceResourceAssetMappingTemplate ¶

type AssetMappingStatusSourceResourceAssetMappingTemplate struct {
	Ref string `json:"ref,omitempty"`
	// GENERATE: The following code has been modified after code generation
	OperationType AssetMappingStatusOperationType `json:"operationType,omitempty"`
}

AssetMappingStatusSourceResourceAssetMappingTemplate struct for AssetMappingStatusSourceResourceAssetMappingTemplate

type AssetReferencesApiServiceRef ¶

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

AssetReferencesApiServiceRef struct for AssetReferencesApiServiceRef

type AssetReferencesAssetMappingRef ¶

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

AssetReferencesAssetMappingRef struct for AssetReferencesAssetMappingRef

type AssetReferencesAssetMappingTemplateRef ¶

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

AssetReferencesAssetMappingTemplateRef struct for AssetReferencesAssetMappingTemplateRef

type AssetReferencesEnvironmentRef ¶

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

AssetReferencesEnvironmentRef struct for AssetReferencesEnvironmentRef

type AssetReferencesStageRef ¶

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

AssetReferencesStageRef struct for AssetReferencesStageRef

type AssetRelease ¶

type AssetRelease struct {
	apiv1.ResourceMeta
	Icon       interface{}      `json:"icon"`
	Owner      *apiv1.Owner     `json:"owner"`
	References interface{}      `json:"references"`
	Spec       AssetReleaseSpec `json:"spec"`
	// Status     AssetReleaseStatus `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

AssetRelease Resource

func AssetReleaseFromInstanceArray ¶

func AssetReleaseFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*AssetRelease, error)

AssetReleaseFromInstanceArray converts a []*ResourceInstance to a []*AssetRelease

func NewAssetRelease ¶

func NewAssetRelease(name string) *AssetRelease

NewAssetRelease creates an empty *AssetRelease

func (*AssetRelease) AsInstance ¶

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

AsInstance converts a AssetRelease to a ResourceInstance

func (*AssetRelease) FromInstance ¶

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

FromInstance converts a ResourceInstance to a AssetRelease

func (*AssetRelease) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*AssetRelease) PluralName ¶

func (res *AssetRelease) PluralName() string

PluralName returns the plural name of the resource

func (*AssetRelease) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type AssetReleaseReferencesApiServiceRef ¶

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

AssetReleaseReferencesApiServiceRef struct for AssetReleaseReferencesApiServiceRef

type AssetReleaseReferencesAssetMappingTemplateRef ¶

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

AssetReleaseReferencesAssetMappingTemplateRef struct for AssetReleaseReferencesAssetMappingTemplateRef

type AssetReleaseReferencesEnvironmentRef ¶

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

AssetReleaseReferencesEnvironmentRef struct for AssetReleaseReferencesEnvironmentRef

type AssetReleaseReferencesReleaseTagRef ¶

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

AssetReleaseReferencesReleaseTagRef struct for AssetReleaseReferencesReleaseTagRef

type AssetReleaseReferencesStageRef ¶

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

AssetReleaseReferencesStageRef struct for AssetReleaseReferencesStageRef

type AssetReleaseSpec ¶

type AssetReleaseSpec struct {
	// Description of the asset release.
	Description string `json:"description,omitempty"`
	Type        string `json:"type"`
	// version of the asset release.
	Version string `json:"version"`
	Asset   string `json:"asset"`
	State   string `json:"state,omitempty"`
	// list of categories for the released asset.
	Categories []string `json:"categories,omitempty"`
}

AssetReleaseSpec struct for AssetReleaseSpec

type AssetReleaseStatus ¶

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

AssetReleaseStatus struct for AssetReleaseStatus

type AssetReleaseStatusMeta ¶

type AssetReleaseStatusMeta struct {
	AssetResource string `json:"assetResource,omitempty"`
}

AssetReleaseStatusMeta struct for AssetReleaseStatusMeta

type AssetReleaseStatusReasons ¶

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

AssetReleaseStatusReasons struct for AssetReleaseStatusReasons

type AssetRequest ¶

type AssetRequest struct {
	apiv1.ResourceMeta
	Approval    AssetRequestApproval    `json:"approval"`
	Data        interface{}             `json:"data"`
	Marketplace AssetRequestMarketplace `json:"marketplace"`
	Owner       *apiv1.Owner            `json:"owner"`
	References  AssetRequestReferences  `json:"references"`
	Spec        AssetRequestSpec        `json:"spec"`
	// Status      AssetRequestStatus      `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

AssetRequest Resource

func AssetRequestFromInstanceArray ¶

func AssetRequestFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*AssetRequest, error)

AssetRequestFromInstanceArray converts a []*ResourceInstance to a []*AssetRequest

func NewAssetRequest ¶

func NewAssetRequest(name, scopeName string) *AssetRequest

NewAssetRequest creates an empty *AssetRequest

func (*AssetRequest) AsInstance ¶

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

AsInstance converts a AssetRequest to a ResourceInstance

func (*AssetRequest) FromInstance ¶

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

FromInstance converts a ResourceInstance to a AssetRequest

func (*AssetRequest) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*AssetRequest) PluralName ¶

func (res *AssetRequest) PluralName() string

PluralName returns the plural name of the resource

func (*AssetRequest) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type AssetRequestApproval ¶

type AssetRequestApproval struct {
	State AssetRequestApprovalState `json:"state"`
}

AssetRequestApproval struct for AssetRequestApproval

type AssetRequestApprovalState ¶

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

AssetRequestApprovalState struct for AssetRequestApprovalState

type AssetRequestDefinition ¶

type AssetRequestDefinition struct {
	apiv1.ResourceMeta
	Authorization AssetRequestDefinitionAuthorization `json:"authorization"`
	Owner         *apiv1.Owner                        `json:"owner"`
	References    interface{}                         `json:"references"`
	Spec          AssetRequestDefinitionSpec          `json:"spec"`
	Webhooks      interface{}                         `json:"webhooks"`
}

AssetRequestDefinition Resource

func AssetRequestDefinitionFromInstanceArray ¶

func AssetRequestDefinitionFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*AssetRequestDefinition, error)

AssetRequestDefinitionFromInstanceArray converts a []*ResourceInstance to a []*AssetRequestDefinition

func NewAssetRequestDefinition ¶

func NewAssetRequestDefinition(name, scopeName string) *AssetRequestDefinition

NewAssetRequestDefinition creates an empty *AssetRequestDefinition

func (*AssetRequestDefinition) AsInstance ¶

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

AsInstance converts a AssetRequestDefinition to a ResourceInstance

func (*AssetRequestDefinition) FromInstance ¶

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

FromInstance converts a ResourceInstance to a AssetRequestDefinition

func (*AssetRequestDefinition) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*AssetRequestDefinition) PluralName ¶

func (res *AssetRequestDefinition) PluralName() string

PluralName returns the plural name of the resource

func (*AssetRequestDefinition) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type AssetRequestDefinitionAuthorization ¶

type AssetRequestDefinitionAuthorization struct {
	Approval string `json:"approval"`
}

AssetRequestDefinitionAuthorization struct for AssetRequestDefinitionAuthorization

type AssetRequestDefinitionSpec ¶

type AssetRequestDefinitionSpec struct {
	// JSON Schema draft \\#7 for defining the AssetRequest properties needed to get access to an AssetResource.
	Schema    map[string]interface{}              `json:"schema"`
	Provision AssetRequestDefinitionSpecProvision `json:"provision,omitempty"`
}

AssetRequestDefinitionSpec struct for AssetRequestDefinitionSpec

type AssetRequestDefinitionSpecProvision ¶

type AssetRequestDefinitionSpecProvision struct {
	// JSON Schema draft \\#7 for describing the data to be sent back after access has been provisioned.
	Schema   map[string]interface{}                      `json:"schema,omitempty"`
	Policies AssetRequestDefinitionSpecProvisionPolicies `json:"policies,omitempty"`
}

AssetRequestDefinitionSpecProvision struct for AssetRequestDefinitionSpecProvision

type AssetRequestDefinitionSpecProvisionPolicies ¶ added in v1.1.49

type AssetRequestDefinitionSpecProvisionPolicies struct {
	// Defines on if AssetRequests using this definition can be moved from their current Subscription to a new one.
	Transferable bool `json:"transferable,omitempty"`
}

AssetRequestDefinitionSpecProvisionPolicies Defines the policies applied on the AccessRequests generated using this definition.

type AssetRequestMarketplace ¶ added in v1.1.41

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

AssetRequestMarketplace Details about the marketplace Access Request.

type AssetRequestMarketplaceResource ¶ added in v1.1.41

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

AssetRequestMarketplaceResource The Marketplace Access Request resource details.

type AssetRequestMarketplaceResourceMetadata ¶ added in v1.1.41

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

AssetRequestMarketplaceResourceMetadata Marketplace Access Request metadata.

type AssetRequestMarketplaceResourceOwner ¶ added in v1.1.41

type AssetRequestMarketplaceResourceOwner struct {
	// The type of the owner.
	Type string `json:"type,omitempty"`
	// Id of the owner of the resource.
	Id           string                                          `json:"id,omitempty"`
	Organization ApplicationMarketplaceResourceOwnerOrganization `json:"organization"`
}

AssetRequestMarketplaceResourceOwner Owner of the Access Request.

type AssetRequestReferences ¶

type AssetRequestReferences struct {
	AssetRequestDefinition string `json:"assetRequestDefinition,omitempty"`
	// Reference to Release that got created from this asset request.
	AssetRelease string `json:"assetRelease,omitempty"`
	// Reference to Release that got created from this asset request.
	Asset                        string   `json:"asset,omitempty"`
	CredentialRequestDefinitions []string `json:"credentialRequestDefinitions,omitempty"`
	// Reference to Access Request resource
	AccessRequest string `json:"accessRequest,omitempty"`
}

AssetRequestReferences struct for AssetRequestReferences

type AssetRequestSpec ¶

type AssetRequestSpec struct {
	Data          map[string]interface{} `json:"data"`
	AssetResource string                 `json:"assetResource"`
	// reference to the Subscription to be used to access the Asset Resource.
	Subscription string `json:"subscription,omitempty"`
	// The AssetRequest from which this resource is being migrated from. Reference must be in the same Application.
	AssetRequest string `json:"assetRequest,omitempty"`
}

AssetRequestSpec struct for AssetRequestSpec

type AssetRequestStatus ¶

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

AssetRequestStatus struct for AssetRequestStatus

type AssetResource ¶

type AssetResource struct {
	apiv1.ResourceMeta
	Owner       *apiv1.Owner            `json:"owner"`
	References  AssetResourceReferences `json:"references"`
	Releasehash interface{}             `json:"releasehash"`
	Spec        AssetResourceSpec       `json:"spec"`
}

AssetResource Resource

func AssetResourceFromInstanceArray ¶

func AssetResourceFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*AssetResource, error)

AssetResourceFromInstanceArray converts a []*ResourceInstance to a []*AssetResource

func NewAssetResource ¶

func NewAssetResource(name, scopeKind, scopeName string) (*AssetResource, error)

NewAssetResource creates an empty *AssetResource

func (*AssetResource) AsInstance ¶

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

AsInstance converts a AssetResource to a ResourceInstance

func (*AssetResource) FromInstance ¶

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

FromInstance converts a ResourceInstance to a AssetResource

func (*AssetResource) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*AssetResource) PluralName ¶

func (res *AssetResource) PluralName() string

PluralName returns the plural name of the resource

func (*AssetResource) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type AssetResourceReferences ¶

type AssetResourceReferences struct {
	// Reference to API Service Revision resource
	ApiServiceRevision string `json:"apiServiceRevision,omitempty"`
	// Reference to API Service Instance resource
	ApiServiceInstance string `json:"apiServiceInstance,omitempty"`
}

AssetResourceReferences struct for AssetResourceReferences

type AssetResourceSpec ¶

type AssetResourceSpec struct {
	// The Stage this Asset Resource is deployed on.
	Stage                        string   `json:"stage,omitempty"`
	AssetRequestDefinition       string   `json:"assetRequestDefinition,omitempty"`
	CredentialRequestDefinitions []string `json:"credentialRequestDefinitions,omitempty"`
	Type                         string   `json:"type"`
	// content-type of the spec.
	ContentType string `json:"contentType,omitempty"`
	// The version of referenced resource.
	Version string `json:"version,omitempty"`
	// Base64 encoded value of the api specification.
	Definition string `json:"definition"`
	// Resource availability
	Status string `json:"status"`
	// information to access the definition.
	AccessInfo         []AssetResourceSpecAccessInfo       `json:"accessInfo,omitempty"`
	SourceReleaseState AssetResourceSpecSourceReleaseState `json:"sourceReleaseState,omitempty"`
}

AssetResourceSpec struct for AssetResourceSpec

type AssetResourceSpecAccessInfo ¶

type AssetResourceSpecAccessInfo struct {
	// url where the definition can be accessed.
	Url string `json:"url,omitempty"`
	// description of the access information.
	Description string `json:"description,omitempty"`
}

AssetResourceSpecAccessInfo struct for AssetResourceSpecAccessInfo

type AssetResourceSpecSourceReleaseState ¶ added in v1.1.78

type AssetResourceSpecSourceReleaseState struct {
	// Current release state of the source such as stable or deprecated.
	Name string `json:"name"`
	// Optional info to be associated with the current state. If state is deprecated, then this is intended to indicate when the source will become archived/decommissioned.
	Message string `json:"message,omitempty"`
}

AssetResourceSpecSourceReleaseState Copy of APIServiceInstance lifecycle releaseState info.

type AssetSpec ¶

type AssetSpec struct {
	// description of the asset.
	Description string `json:"description,omitempty"`
	Type        string `json:"type"`
	// list of categories for the asset.
	Categories  []string             `json:"categories,omitempty"`
	AutoRelease AssetSpecAutoRelease `json:"autoRelease,omitempty"`
}

AssetSpec struct for AssetSpec

type AssetSpecAutoRelease ¶ added in v1.1.41

type AssetSpecAutoRelease struct {
	ReleaseType string `json:"releaseType"`
	// Set true to suspend auto-release until asset state changes to active or deprecated. This property will be automatically removed once activated.
	RequiresInitialActivation bool                                 `json:"requiresInitialActivation,omitempty"`
	PreviousReleases          AssetSpecAutoReleasePreviousReleases `json:"previousReleases,omitempty"`
}

AssetSpecAutoRelease Defines if an asset should create releases everytime there is an update to the resources.

type AssetSpecAutoReleasePreviousReleases ¶ added in v1.1.44

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

AssetSpecAutoReleasePreviousReleases struct for AssetSpecAutoReleasePreviousReleases

type AssetState ¶

type AssetState string

AssetState the model 'AssetState'

const (
	// GENERATE: The following code has been modified after code generation
	AssetStateDRAFT AssetState = "draft"
	// GENERATE: The following code has been modified after code generation
	AssetStateACTIVE AssetState = "active"
	// GENERATE: The following code has been modified after code generation
	AssetStateDEPRECATED AssetState = "deprecated"
	// GENERATE: The following code has been modified after code generation
	AssetStateARCHIVED AssetState = "archived"
)

List of AssetState

type AssetStatus ¶

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

AssetStatus struct for AssetStatus

type AssetStatusMeta ¶

type AssetStatusMeta struct {
	AssetResource string `json:"assetResource,omitempty"`
}

AssetStatusMeta struct for AssetStatusMeta

type AssetStatusReasons ¶

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

AssetStatusReasons struct for AssetStatusReasons

type AuthorizationProfile ¶

type AuthorizationProfile struct {
	apiv1.ResourceMeta
	Owner      *apiv1.Owner                   `json:"owner"`
	Policies   AuthorizationProfilePolicies   `json:"policies"`
	References AuthorizationProfileReferences `json:"references"`
	Spec       AuthorizationProfileSpec       `json:"spec"`
}

AuthorizationProfile Resource

func AuthorizationProfileFromInstanceArray ¶

func AuthorizationProfileFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*AuthorizationProfile, error)

AuthorizationProfileFromInstanceArray converts a []*ResourceInstance to a []*AuthorizationProfile

func NewAuthorizationProfile ¶

func NewAuthorizationProfile(name string) *AuthorizationProfile

NewAuthorizationProfile creates an empty *AuthorizationProfile

func (*AuthorizationProfile) AsInstance ¶

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

AsInstance converts a AuthorizationProfile to a ResourceInstance

func (*AuthorizationProfile) FromInstance ¶

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

FromInstance converts a ResourceInstance to a AuthorizationProfile

func (*AuthorizationProfile) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*AuthorizationProfile) PluralName ¶

func (res *AuthorizationProfile) PluralName() string

PluralName returns the plural name of the resource

func (*AuthorizationProfile) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type AuthorizationProfilePolicies ¶ added in v1.1.52

type AuthorizationProfilePolicies struct {
	Credentials AuthorizationProfilePoliciesCredentials `json:"credentials,omitempty"`
}

AuthorizationProfilePolicies struct for AuthorizationProfilePolicies

type AuthorizationProfilePoliciesCredentials ¶ added in v1.1.52

type AuthorizationProfilePoliciesCredentials struct {
	Expiry AuthorizationProfilePoliciesCredentialsExpiry `json:"expiry,omitempty"`
}

AuthorizationProfilePoliciesCredentials Defines the policies for the AuthorizationProfile's Credentials generated with the profiles CredentialRequestDefinitions.

type AuthorizationProfilePoliciesCredentialsExpiry ¶ added in v1.1.52

type AuthorizationProfilePoliciesCredentialsExpiry struct {
	Notifications AuthorizationProfilePoliciesCredentialsExpiryNotifications `json:"notifications,omitempty"`
}

AuthorizationProfilePoliciesCredentialsExpiry Expiry properties for Credentials linked to this definition.

type AuthorizationProfilePoliciesCredentialsExpiryNotifications ¶ added in v1.1.52

type AuthorizationProfilePoliciesCredentialsExpiryNotifications struct {
	// The days interval at which to send notifications before the Credentials are to expire.
	DaysBefore []int32 `json:"daysBefore,omitempty"`
}

AuthorizationProfilePoliciesCredentialsExpiryNotifications Notifications properties for Credentials expiry.

type AuthorizationProfileReferences ¶

type AuthorizationProfileReferences struct {
	Environment string `json:"environment,omitempty"`
}

AuthorizationProfileReferences struct for AuthorizationProfileReferences

type AuthorizationProfileSpec ¶

type AuthorizationProfileSpec struct {
	// Description of AuthorizationProfile that can be used to access Asset.
	Description string `json:"description,omitempty"`
}

AuthorizationProfileSpec struct for AuthorizationProfileSpec

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 struct for CategorySpec

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 struct for CategoryVisibilitySpec

type ConsumerProductVisibility ¶ added in v1.1.44

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

ConsumerProductVisibility Resource

func ConsumerProductVisibilityFromInstanceArray ¶ added in v1.1.44

func ConsumerProductVisibilityFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ConsumerProductVisibility, error)

ConsumerProductVisibilityFromInstanceArray converts a []*ResourceInstance to a []*ConsumerProductVisibility

func NewConsumerProductVisibility ¶ added in v1.1.44

func NewConsumerProductVisibility(name, scopeName string) *ConsumerProductVisibility

NewConsumerProductVisibility creates an empty *ConsumerProductVisibility

func (*ConsumerProductVisibility) AsInstance ¶ added in v1.1.44

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

AsInstance converts a ConsumerProductVisibility to a ResourceInstance

func (*ConsumerProductVisibility) FromInstance ¶ added in v1.1.44

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

FromInstance converts a ResourceInstance to a ConsumerProductVisibility

func (*ConsumerProductVisibility) MarshalJSON ¶ added in v1.1.44

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

MarshalJSON custom marshaller to handle sub resources

func (*ConsumerProductVisibility) PluralName ¶ added in v1.1.44

func (res *ConsumerProductVisibility) PluralName() string

PluralName returns the plural name of the resource

func (*ConsumerProductVisibility) UnmarshalJSON ¶ added in v1.1.44

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

UnmarshalJSON custom unmarshaller to handle sub resources

type ConsumerProductVisibilitySpec ¶ added in v1.1.44

type ConsumerProductVisibilitySpec struct {
	// Defines where the visibility settings apply.
	Products []ProductVisibilitySpecProducts `json:"products"`
	// GENERATE: The following code has been modified after code generation
	Subjects []interface{} `json:"subjects,omitempty"`
}

ConsumerProductVisibilitySpec struct for ConsumerProductVisibilitySpec

type ConsumerProductVisibilitySpecAuthenticatedRef ¶ added in v1.1.52

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

ConsumerProductVisibilitySpecAuthenticatedRef struct for ConsumerProductVisibilitySpecAuthenticatedRef

type ConsumerProductVisibilitySpecOrgRef ¶ added in v1.1.44

type ConsumerProductVisibilitySpecOrgRef struct {
	Type string `json:"type"`
	// ID of the consumer organization.
	Id string `json:"id"`
}

ConsumerProductVisibilitySpecOrgRef struct for ConsumerProductVisibilitySpecOrgRef

type ConsumerStageVisibility ¶ added in v1.1.78

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

ConsumerStageVisibility Resource

func ConsumerStageVisibilityFromInstanceArray ¶ added in v1.1.78

func ConsumerStageVisibilityFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ConsumerStageVisibility, error)

ConsumerStageVisibilityFromInstanceArray converts a []*ResourceInstance to a []*ConsumerStageVisibility

func NewConsumerStageVisibility ¶ added in v1.1.78

func NewConsumerStageVisibility(name, scopeName string) *ConsumerStageVisibility

NewConsumerStageVisibility creates an empty *ConsumerStageVisibility

func (*ConsumerStageVisibility) AsInstance ¶ added in v1.1.78

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

AsInstance converts a ConsumerStageVisibility to a ResourceInstance

func (*ConsumerStageVisibility) FromInstance ¶ added in v1.1.78

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

FromInstance converts a ResourceInstance to a ConsumerStageVisibility

func (*ConsumerStageVisibility) MarshalJSON ¶ added in v1.1.78

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

MarshalJSON custom marshaller to handle sub resources

func (*ConsumerStageVisibility) PluralName ¶ added in v1.1.78

func (res *ConsumerStageVisibility) PluralName() string

PluralName returns the plural name of the resource

func (*ConsumerStageVisibility) UnmarshalJSON ¶ added in v1.1.78

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

UnmarshalJSON custom unmarshaller to handle sub resources

type ConsumerStageVisibilitySpec ¶ added in v1.1.78

type ConsumerStageVisibilitySpec struct {
	// Defines where the visibility settings apply.
	Stages []StageVisibilitySpecStages `json:"stages"`
	// GENERATE: The following code has been modified after code generation
	Subjects []interface{} `json:"subjects,omitempty"`
}

ConsumerStageVisibilitySpec struct for ConsumerStageVisibilitySpec

type ConsumerStageVisibilitySpecAuthenticatedRef ¶ added in v1.1.78

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

ConsumerStageVisibilitySpecAuthenticatedRef struct for ConsumerStageVisibilitySpecAuthenticatedRef

type ConsumerStageVisibilitySpecOrgRef ¶ added in v1.1.78

type ConsumerStageVisibilitySpecOrgRef struct {
	Type string `json:"type"`
	// ID of the consumer organization.
	Id string `json:"id"`
}

ConsumerStageVisibilitySpecOrgRef struct for ConsumerStageVisibilitySpecOrgRef

type ConsumerStageVisibilitySpecStages ¶ added in v1.1.79

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

ConsumerStageVisibilitySpecStages (catalog.v1alpha1.ConsumerStageVisibility)

type Credential ¶

type Credential struct {
	apiv1.ResourceMeta
	Data        interface{}           `json:"data"`
	Expiration  CredentialExpiration  `json:"expiration"`
	Marketplace CredentialMarketplace `json:"marketplace"`
	Owner       *apiv1.Owner          `json:"owner"`
	Policies    CredentialPolicies    `json:"policies"`
	References  CredentialReferences  `json:"references"`
	Spec        CredentialSpec        `json:"spec"`
	State       CredentialState       `json:"state"`
	// Status      CredentialStatus      `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

Credential Resource

func CredentialFromInstanceArray ¶

func CredentialFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Credential, error)

CredentialFromInstanceArray converts a []*ResourceInstance to a []*Credential

func NewCredential ¶

func NewCredential(name, scopeName string) *Credential

NewCredential creates an empty *Credential

func (*Credential) AsInstance ¶

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

AsInstance converts a Credential to a ResourceInstance

func (*Credential) FromInstance ¶

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

FromInstance converts a ResourceInstance to a Credential

func (*Credential) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*Credential) PluralName ¶

func (res *Credential) PluralName() string

PluralName returns the plural name of the resource

func (*Credential) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type CredentialExpiration ¶ added in v1.1.49

type CredentialExpiration struct {
	Notification CredentialExpirationNotification `json:"notification,omitempty"`
}

CredentialExpiration Credential expiration properties.

type CredentialExpirationNotification ¶ added in v1.1.49

type CredentialExpirationNotification struct {
	// Latest scheduled command id for sending notifications.
	CommandId string `json:"commandId"`
}

CredentialExpirationNotification Details about the scheduled notification job.

type CredentialMarketplace ¶ added in v1.1.35

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

CredentialMarketplace Details about the marketplace Application.

type CredentialMarketplaceResource ¶ added in v1.1.35

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

CredentialMarketplaceResource The Marketplace Credential resource details.

type CredentialMarketplaceResourceOwner ¶ added in v1.1.35

type CredentialMarketplaceResourceOwner struct {
	// The type of the owner.
	Type string `json:"type,omitempty"`
	// Id of the owner of the resource.
	Id           string                                          `json:"id,omitempty"`
	Organization ApplicationMarketplaceResourceOwnerOrganization `json:"organization"`
}

CredentialMarketplaceResourceOwner Owner of the Credential.

type CredentialPolicies ¶ added in v1.1.35

type CredentialPolicies struct {
	Expiry CredentialPoliciesExpiry `json:"expiry,omitempty"`
}

CredentialPolicies struct for CredentialPolicies

type CredentialPoliciesExpiry ¶ added in v1.1.35

type CredentialPoliciesExpiry struct {
	// Time when the Credential is set to be expired.
	Timestamp time.Time `json:"timestamp"`
}

CredentialPoliciesExpiry struct for CredentialPoliciesExpiry

type CredentialReferences ¶

type CredentialReferences struct {
	// Reference to the Credential for managed app that got created from this catalog credential.
	Credential string `json:"credential,omitempty"`
}

CredentialReferences struct for CredentialReferences

type CredentialRequestDefinition ¶

type CredentialRequestDefinition struct {
	apiv1.ResourceMeta
	Owner      *apiv1.Owner                          `json:"owner"`
	References CredentialRequestDefinitionReferences `json:"references"`
	Spec       CredentialRequestDefinitionSpec       `json:"spec"`
	Webhooks   interface{}                           `json:"webhooks"`
}

CredentialRequestDefinition Resource

func CredentialRequestDefinitionFromInstanceArray ¶

func CredentialRequestDefinitionFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*CredentialRequestDefinition, error)

CredentialRequestDefinitionFromInstanceArray converts a []*ResourceInstance to a []*CredentialRequestDefinition

func NewCredentialRequestDefinition ¶

func NewCredentialRequestDefinition(name, scopeName string) *CredentialRequestDefinition

NewCredentialRequestDefinition creates an empty *CredentialRequestDefinition

func (*CredentialRequestDefinition) AsInstance ¶

AsInstance converts a CredentialRequestDefinition to a ResourceInstance

func (*CredentialRequestDefinition) FromInstance ¶

FromInstance converts a ResourceInstance to a CredentialRequestDefinition

func (*CredentialRequestDefinition) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*CredentialRequestDefinition) PluralName ¶

func (res *CredentialRequestDefinition) PluralName() string

PluralName returns the plural name of the resource

func (*CredentialRequestDefinition) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type CredentialRequestDefinitionReferences ¶

type CredentialRequestDefinitionReferences struct {
	// The name of the CredentialRequestDefinition from an Environment.
	CredentialReqDef string `json:"credentialReqDef,omitempty"`
}

CredentialRequestDefinitionReferences struct for CredentialRequestDefinitionReferences

type CredentialRequestDefinitionSpec ¶

type CredentialRequestDefinitionSpec struct {
	// JSON Schema draft \\#7 for describing the fields needed to provision Credentials of that type.
	Schema    map[string]interface{}                   `json:"schema"`
	Provision CredentialRequestDefinitionSpecProvision `json:"provision"`
}

CredentialRequestDefinitionSpec struct for CredentialRequestDefinitionSpec

type CredentialRequestDefinitionSpecProvision ¶

type CredentialRequestDefinitionSpecProvision struct {
	// JSON Schema draft \\#7 for describing the generated credentials format.
	Schema   map[string]interface{}                           `json:"schema"`
	Policies CredentialRequestDefinitionSpecProvisionPolicies `json:"policies,omitempty"`
}

CredentialRequestDefinitionSpecProvision struct for CredentialRequestDefinitionSpecProvision

type CredentialRequestDefinitionSpecProvisionPolicies ¶ added in v1.1.35

type CredentialRequestDefinitionSpecProvisionPolicies struct {
	// Defines on if Credentials using this definitions can be renewed.
	Renewable bool `json:"renewable,omitempty"`
	// Defines on if Credentials can be suspended.
	Suspendable bool                                                   `json:"suspendable,omitempty"`
	Expiry      CredentialRequestDefinitionSpecProvisionPoliciesExpiry `json:"expiry,omitempty"`
}

CredentialRequestDefinitionSpecProvisionPolicies Defines the policies applied on the Credentials generated using this definition.

type CredentialRequestDefinitionSpecProvisionPoliciesExpiry ¶ added in v1.1.35

type CredentialRequestDefinitionSpecProvisionPoliciesExpiry struct {
	// The number of days after the Credentials are considered to be expired.
	Period int32 `json:"period"`
	// The actions taken when the Credentials expire.
	Actions []CredentialRequestDefinitionSpecProvisionPoliciesExpiryActions `json:"actions,omitempty"`
}

CredentialRequestDefinitionSpecProvisionPoliciesExpiry Expiry properties for Credentials linked to this definition.

type CredentialRequestDefinitionSpecProvisionPoliciesExpiryActions ¶ added in v1.1.35

type CredentialRequestDefinitionSpecProvisionPoliciesExpiryActions struct {
	// The type of the action taken when the Credential using this definition expires.
	Type string `json:"type,omitempty"`
}

CredentialRequestDefinitionSpecProvisionPoliciesExpiryActions struct for CredentialRequestDefinitionSpecProvisionPoliciesExpiryActions

type CredentialSpec ¶

type CredentialSpec struct {
	// Reference to Credential Request Definition resource
	CredentialRequestDefinition string `json:"credentialRequestDefinition"`
	// data matching the credential request definition schema.
	Data  map[string]interface{} `json:"data"`
	State CredentialSpecState    `json:"state,omitempty"`
}

CredentialSpec struct for CredentialSpec

type CredentialSpecState ¶ added in v1.1.35

type CredentialSpecState struct {
	Name string `json:"name"`
	// Additional info on the state.
	Reason string `json:"reason,omitempty"`
	// Defines if credential needs to be rotated.
	Rotate bool `json:"rotate,omitempty"`
}

CredentialSpecState Desired state of the Credential.

type CredentialState ¶ added in v1.1.35

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

CredentialState Current state of the Credential.

type CredentialStatus ¶

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

CredentialStatus struct for CredentialStatus

type CredentialStatusReasons ¶

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

CredentialStatusReasons struct for CredentialStatusReasons

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 struct for DocumentResourceReferences

type DocumentResourceReferencesMarketplaceSettings ¶ added in v1.1.62

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

DocumentResourceReferencesMarketplaceSettings struct for DocumentResourceReferencesMarketplaceSettings

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 struct for DocumentResourceReferencesPlatformSettings

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 struct for DocumentResourceSpec

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.

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 struct for DocumentResourceSpecUsageMarketplaceSettings

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 struct for DocumentResourceSpecUsageProducts

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.

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 struct for DocumentSpec

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 struct for DocumentSpecSections

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 struct for DocumentStatus

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.

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.

type MarketplaceSpec ¶

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

MarketplaceSpec struct for MarketplaceSpec

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.

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 struct for ProductOverviewSpec

type ProductOverviewSpecDocuments ¶

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

ProductOverviewSpecDocuments struct for ProductOverviewSpecDocuments

type ProductPlan ¶

type ProductPlan struct {
	apiv1.ResourceMeta
	Owner      *apiv1.Owner          `json:"owner"`
	References ProductPlanReferences `json:"references"`
	Spec       ProductPlanSpec       `json:"spec"`
	State      ProductPlanState      `json:"state"`
	// Status     ProductPlanStatus     `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

ProductPlan Resource

func NewProductPlan ¶

func NewProductPlan(name string) *ProductPlan

NewProductPlan creates an empty *ProductPlan

func ProductPlanFromInstanceArray ¶

func ProductPlanFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ProductPlan, error)

ProductPlanFromInstanceArray converts a []*ResourceInstance to a []*ProductPlan

func (*ProductPlan) AsInstance ¶

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

AsInstance converts a ProductPlan to a ResourceInstance

func (*ProductPlan) FromInstance ¶

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

FromInstance converts a ResourceInstance to a ProductPlan

func (*ProductPlan) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*ProductPlan) PluralName ¶

func (res *ProductPlan) PluralName() string

PluralName returns the plural name of the resource

func (*ProductPlan) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type ProductPlanJob ¶ added in v1.1.49

type ProductPlanJob struct {
	apiv1.ResourceMeta
	Owner *apiv1.Owner       `json:"owner"`
	Spec  ProductPlanJobSpec `json:"spec"`
	// Status ProductPlanJobStatus `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

ProductPlanJob Resource

func NewProductPlanJob ¶ added in v1.1.49

func NewProductPlanJob(name, scopeName string) *ProductPlanJob

NewProductPlanJob creates an empty *ProductPlanJob

func ProductPlanJobFromInstanceArray ¶ added in v1.1.49

func ProductPlanJobFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ProductPlanJob, error)

ProductPlanJobFromInstanceArray converts a []*ResourceInstance to a []*ProductPlanJob

func (*ProductPlanJob) AsInstance ¶ added in v1.1.49

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

AsInstance converts a ProductPlanJob to a ResourceInstance

func (*ProductPlanJob) FromInstance ¶ added in v1.1.49

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

FromInstance converts a ResourceInstance to a ProductPlanJob

func (*ProductPlanJob) MarshalJSON ¶ added in v1.1.49

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

MarshalJSON custom marshaller to handle sub resources

func (*ProductPlanJob) PluralName ¶ added in v1.1.49

func (res *ProductPlanJob) PluralName() string

PluralName returns the plural name of the resource

func (*ProductPlanJob) UnmarshalJSON ¶ added in v1.1.49

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

UnmarshalJSON custom unmarshaller to handle sub resources

type ProductPlanJobSpec ¶ added in v1.1.49

type ProductPlanJobSpec struct {
	// GENERATE: The following code has been modified after code generation
	Action interface{}             `json:"action"`
	When   SubscriptionJobSpecWhen `json:"when,omitempty"`
}

ProductPlanJobSpec struct for ProductPlanJobSpec

type ProductPlanJobSpecSubscriptionsArchive ¶ added in v1.1.49

type ProductPlanJobSpecSubscriptionsArchive struct {
	Type string `json:"type"`
	// Description on why the subscriptions are being archived.
	Reason string `json:"reason,omitempty"`
}

ProductPlanJobSpecSubscriptionsArchive struct for ProductPlanJobSpecSubscriptionsArchive

type ProductPlanJobSpecSubscriptionsMigration ¶ added in v1.1.49

type ProductPlanJobSpecSubscriptionsMigration struct {
	Type string `json:"type"`
	// The Product Plan to which to migrate the existing Product Subscriptions.
	ProductPlan string `json:"productPlan"`
	// Description on why the subscriptions was migrated.
	Reason string `json:"reason,omitempty"`
	// Filter the subscriptions that are wanted to be migrated.
	Filters []ProductPlanJobSpecSubscriptionsMigrationFilters `json:"filters,omitempty"`
}

ProductPlanJobSpecSubscriptionsMigration struct for ProductPlanJobSpecSubscriptionsMigration

type ProductPlanJobSpecSubscriptionsMigrationFilters ¶ added in v1.1.57

type ProductPlanJobSpecSubscriptionsMigrationFilters struct {
	// Reference to the Subscription wanted to be migrated.
	Subscription string `json:"subscription,omitempty"`
}

ProductPlanJobSpecSubscriptionsMigrationFilters struct for ProductPlanJobSpecSubscriptionsMigrationFilters

type ProductPlanJobStatus ¶ added in v1.1.49

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

ProductPlanJobStatus struct for ProductPlanJobStatus

type ProductPlanReferences ¶

type ProductPlanReferences struct {
	Product ProductPlanReferencesProduct `json:"product,omitempty"`
}

ProductPlanReferences struct for ProductPlanReferences

type ProductPlanReferencesProduct ¶

type ProductPlanReferencesProduct struct {
	// The latest active Product Release that corresponds to the Product referenced in the Plan.
	Release string `json:"release,omitempty"`
}

ProductPlanReferencesProduct struct for ProductPlanReferencesProduct

type ProductPlanSpec ¶

type ProductPlanSpec struct {
	Product string `json:"product"`
	// description of the Plan.
	Description string `json:"description,omitempty"`
	// The type of the Plan.
	Type    string                 `json:"type"`
	Billing ProductPlanSpecBilling `json:"billing,omitempty"`
	// Defines all features supported by the Plan.
	Features     []ProductPlanSpecFeatures   `json:"features,omitempty"`
	Subscription ProductPlanSpecSubscription `json:"subscription,omitempty"`
}

ProductPlanSpec struct for ProductPlanSpec

type ProductPlanSpecBilling ¶

type ProductPlanSpecBilling struct {
	Currency string `json:"currency"`
	// The base price for the plan.
	Price float64 `json:"price,omitempty"`
	// The billing cycle type.
	Cycle    string                      `json:"cycle,omitempty"`
	Interval string                      `json:"interval"`
	Setup    ProductPlanSpecBillingSetup `json:"setup,omitempty"`
}

ProductPlanSpecBilling Paid plan billing details.

type ProductPlanSpecBillingSetup ¶ added in v1.1.78

type ProductPlanSpecBillingSetup struct {
	// One time charge for the setup of the subscription.
	Price float64 `json:"price"`
}

ProductPlanSpecBillingSetup Defines the properties for the setup of the plan's subscriptions.

type ProductPlanSpecFeatures ¶

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

ProductPlanSpecFeatures struct for ProductPlanSpecFeatures

type ProductPlanSpecSubscription ¶

type ProductPlanSpecSubscription struct {
	// Defines properties required from a consumer to subscribe to the plan.
	Definition string                              `json:"definition,omitempty"`
	Interval   ProductPlanSpecSubscriptionInterval `json:"interval,omitempty"`
	Renewal    string                              `json:"renewal,omitempty"`
	Approval   string                              `json:"approval,omitempty"`
	// Optional number of cycles after which the subscription will be archived. Cycles start once the subscription has been approved.
	Cycles int32 `json:"cycles,omitempty"`
}

ProductPlanSpecSubscription Defines Plan's subscription information

type ProductPlanSpecSubscriptionInterval ¶

type ProductPlanSpecSubscriptionInterval struct {
	// The type of the interval
	Type string `json:"type,omitempty"`
	// The subscription interval length
	// GENERATE: The following code has been modified after code generation
	Length float64 `json:"length,omitempty"`
}

ProductPlanSpecSubscriptionInterval The subscription interval

type ProductPlanState ¶

type ProductPlanState string

ProductPlanState the model 'ProductPlanState'

const (
	// GENERATE: The following code has been modified after code generation
	ProductPlanStateDRAFT ProductPlanState = "draft"
	// GENERATE: The following code has been modified after code generation
	ProductPlanStateACTIVE ProductPlanState = "active"
	// GENERATE: The following code has been modified after code generation
	ProductPlanStateDEPRECATED ProductPlanState = "deprecated"
	// GENERATE: The following code has been modified after code generation
	ProductPlanStateARCHIVED ProductPlanState = "archived"
)

List of ProductPlanState

type ProductPlanStatus ¶

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

ProductPlanStatus struct for ProductPlanStatus

type ProductPlanUnit ¶

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

ProductPlanUnit Resource

func NewProductPlanUnit ¶

func NewProductPlanUnit(name string) *ProductPlanUnit

NewProductPlanUnit creates an empty *ProductPlanUnit

func ProductPlanUnitFromInstanceArray ¶

func ProductPlanUnitFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ProductPlanUnit, error)

ProductPlanUnitFromInstanceArray converts a []*ResourceInstance to a []*ProductPlanUnit

func (*ProductPlanUnit) AsInstance ¶

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

AsInstance converts a ProductPlanUnit to a ResourceInstance

func (*ProductPlanUnit) FromInstance ¶

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

FromInstance converts a ResourceInstance to a ProductPlanUnit

func (*ProductPlanUnit) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*ProductPlanUnit) PluralName ¶

func (res *ProductPlanUnit) PluralName() string

PluralName returns the plural name of the resource

func (*ProductPlanUnit) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type ProductPlanUnitSpec ¶

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

ProductPlanUnitSpec struct for ProductPlanUnitSpec

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 struct for ProductReferences

type ProductReferencesAssets ¶

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

ProductReferencesAssets struct for ProductReferencesAssets

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 struct for ProductReferencesMarketplaces

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 struct for ProductReferencesRatings

type ProductReferencesRatingsDistribution ¶ added in v1.1.78

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

ProductReferencesRatingsDistribution struct for ProductReferencesRatingsDistribution

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 struct for ProductReferencesRelease

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 struct for ProductReleaseReferences

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 struct for ProductReleaseSpec

type ProductReleaseSpecAssets ¶

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

ProductReleaseSpecAssets struct for ProductReleaseSpecAssets

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 struct for ProductReleaseSpecRelease

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.

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 struct for ProductReleaseStatus

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      ProductStatusMeta `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   ProductStatusMeta `json:"meta,omitempty"`
}

ProductReleaseStatusPending struct for ProductReleaseStatusPending

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   ProductStatusMeta `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.

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.

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.

type ProductReviewMarketplaceResourceOwner ¶ added in v1.1.78

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

ProductReviewMarketplaceResourceOwner Owner of the Subscription.

type ProductReviewMarketplaceResourceOwnerOrganization ¶ added in v1.1.79

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

ProductReviewMarketplaceResourceOwnerOrganization Organization details. (catalog.v1alpha1.ProductReview)

type ProductReviewSpec ¶ added in v1.1.78

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

ProductReviewSpec struct for ProductReviewSpec

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 struct for ProductReviewState

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 struct for ProductSpec

type ProductSpecAssets ¶

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

ProductSpecAssets struct for ProductSpecAssets

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.

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 struct for ProductSpecAutoReleasePreviousReleases

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.

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.

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 struct for ProductStatus

type ProductStatusMeta ¶ added in v1.1.35

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

ProductStatusMeta struct for ProductStatusMeta

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 struct for ProductStatusReasons

type ProductVisibility ¶

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

ProductVisibility Resource

func NewProductVisibility ¶

func NewProductVisibility(name, scopeName string) *ProductVisibility

NewProductVisibility creates an empty *ProductVisibility

func ProductVisibilityFromInstanceArray ¶

func ProductVisibilityFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ProductVisibility, error)

ProductVisibilityFromInstanceArray converts a []*ResourceInstance to a []*ProductVisibility

func (*ProductVisibility) AsInstance ¶

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

AsInstance converts a ProductVisibility to a ResourceInstance

func (*ProductVisibility) FromInstance ¶

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

FromInstance converts a ResourceInstance to a ProductVisibility

func (*ProductVisibility) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*ProductVisibility) PluralName ¶

func (res *ProductVisibility) PluralName() string

PluralName returns the plural name of the resource

func (*ProductVisibility) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type ProductVisibilitySpec ¶

type ProductVisibilitySpec struct {
	// Defines where the visibility settings apply.
	Products []ProductVisibilitySpecProducts `json:"products"`
	// Determines if the list of subjects should be excluded from the product visibility.
	Exclude bool `json:"exclude,omitempty"`
	// GENERATE: The following code has been modified after code generation
	Subjects []interface{} `json:"subjects,omitempty"`
}

ProductVisibilitySpec struct for ProductVisibilitySpec

type ProductVisibilitySpecAuthenticatedRef ¶ added in v1.1.52

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

ProductVisibilitySpecAuthenticatedRef struct for ProductVisibilitySpecAuthenticatedRef

type ProductVisibilitySpecProducts ¶

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

ProductVisibilitySpecProducts struct for ProductVisibilitySpecProducts

type ProductVisibilitySpecTagRef ¶ added in v1.1.35

type ProductVisibilitySpecTagRef struct {
	Type string `json:"type"`
	// Value of a platform team tag.
	Value string `json:"value"`
}

ProductVisibilitySpecTagRef struct for ProductVisibilitySpecTagRef

type ProductVisibilitySpecTeamRef ¶ added in v1.1.35

type ProductVisibilitySpecTeamRef struct {
	Type string `json:"type"`
	// ID of the subject
	Id string `json:"id"`
}

ProductVisibilitySpecTeamRef struct for ProductVisibilitySpecTeamRef

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 struct for PublishedDocumentResourceSpec

type PublishedDocumentResourceSpecDocumentResource ¶ added in v1.1.62

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

PublishedDocumentResourceSpecDocumentResource struct for PublishedDocumentResourceSpecDocumentResource

type PublishedProduct ¶

type PublishedProduct struct {
	apiv1.ResourceMeta
	Owner      *apiv1.Owner               `json:"owner"`
	References PublishedProductReferences `json:"references"`
	Spec       PublishedProductSpec       `json:"spec"`
}

PublishedProduct Resource

func NewPublishedProduct ¶

func NewPublishedProduct(name, scopeName string) *PublishedProduct

NewPublishedProduct creates an empty *PublishedProduct

func PublishedProductFromInstanceArray ¶

func PublishedProductFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*PublishedProduct, error)

PublishedProductFromInstanceArray converts a []*ResourceInstance to a []*PublishedProduct

func (*PublishedProduct) AsInstance ¶

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

AsInstance converts a PublishedProduct to a ResourceInstance

func (*PublishedProduct) FromInstance ¶

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

FromInstance converts a ResourceInstance to a PublishedProduct

func (*PublishedProduct) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*PublishedProduct) PluralName ¶

func (res *PublishedProduct) PluralName() string

PluralName returns the plural name of the resource

func (*PublishedProduct) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type PublishedProductReferences ¶

type PublishedProductReferences struct {
	Release PublishedProductReferencesRelease `json:"release"`
}

PublishedProductReferences struct for PublishedProductReferences

type PublishedProductReferencesRelease ¶

type PublishedProductReferencesRelease struct {
	// Reference to product release
	Name string `json:"name,omitempty"`
	// Product release version
	Version string `json:"version,omitempty"`
	// Product release state
	State string `json:"state,omitempty"`
}

PublishedProductReferencesRelease The Product release that was published to the marketplace

type PublishedProductSpec ¶

type PublishedProductSpec struct {
	Product   PublishedProductSpecProduct   `json:"product,omitempty"`
	Resources PublishedProductSpecResources `json:"resources,omitempty"`
}

PublishedProductSpec struct for PublishedProductSpec

type PublishedProductSpecGroupByAssetTitle ¶ added in v1.1.57

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

PublishedProductSpecGroupByAssetTitle struct for PublishedProductSpecGroupByAssetTitle

type PublishedProductSpecProduct ¶

type PublishedProductSpecProduct struct {
	Name string `json:"name,omitempty"`
}

PublishedProductSpecProduct struct for PublishedProductSpecProduct

type PublishedProductSpecResources ¶ added in v1.1.57

type PublishedProductSpecResources struct {
	// GENERATE: The following code has been modified after code generation
	GroupBy interface{} `json:"groupBy,omitempty"`
}

PublishedProductSpecResources struct for PublishedProductSpecResources

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 struct for PublishedStageSpec

type PublishedStageSpecStage ¶ added in v1.1.78

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

PublishedStageSpecStage struct for PublishedStageSpecStage

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 struct for QuotaSpec

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 struct for QuotaStatus

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 ReleaseTag ¶

type ReleaseTag struct {
	apiv1.ResourceMeta
	Owner *apiv1.Owner   `json:"owner"`
	Spec  ReleaseTagSpec `json:"spec"`
	State interface{}    `json:"state"`
	// Status ReleaseTagStatus `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

ReleaseTag Resource

func NewReleaseTag ¶

func NewReleaseTag(name, scopeKind, scopeName string) (*ReleaseTag, error)

NewReleaseTag creates an empty *ReleaseTag

func ReleaseTagFromInstanceArray ¶

func ReleaseTagFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ReleaseTag, error)

ReleaseTagFromInstanceArray converts a []*ResourceInstance to a []*ReleaseTag

func (*ReleaseTag) AsInstance ¶

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

AsInstance converts a ReleaseTag to a ResourceInstance

func (*ReleaseTag) FromInstance ¶

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

FromInstance converts a ResourceInstance to a ReleaseTag

func (*ReleaseTag) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*ReleaseTag) PluralName ¶

func (res *ReleaseTag) PluralName() string

PluralName returns the plural name of the resource

func (*ReleaseTag) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type ReleaseTagSpec ¶

type ReleaseTagSpec struct {
	// Description of the Release Tag.
	Description              string                                 `json:"description,omitempty"`
	ReleaseType              string                                 `json:"releaseType"`
	ReleaseVersionProperties ReleaseTagSpecReleaseVersionProperties `json:"releaseVersionProperties,omitempty"`
	PreviousReleases         ReleaseTagSpecPreviousReleases         `json:"previousReleases,omitempty"`
}

ReleaseTagSpec struct for ReleaseTagSpec

type ReleaseTagSpecPreviousReleases ¶ added in v1.1.44

type ReleaseTagSpecPreviousReleases struct {
	// Updates all prior non-archived releases to the desired state.  The 'archived' state is currently available only for Product ReleaseTags.
	UpdateState string `json:"updateState,omitempty"`
}

ReleaseTagSpecPreviousReleases struct for ReleaseTagSpecPreviousReleases

type ReleaseTagSpecReleaseVersionProperties ¶ added in v1.1.78

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

ReleaseTagSpecReleaseVersionProperties Version properties for the generated releases. Currently supported only for Products.

type ReleaseTagStatus ¶

type ReleaseTagStatus 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"`
}

ReleaseTagStatus struct for ReleaseTagStatus

type ReleaseTagStatusError ¶

type ReleaseTagStatusError 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"`
}

ReleaseTagStatusError struct for ReleaseTagStatusError

type ReleaseTagStatusPending ¶

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

ReleaseTagStatusPending struct for ReleaseTagStatusPending

type ReleaseTagStatusReference ¶

type ReleaseTagStatusReference struct {
	// message of the status of the reference
	Message string `json:"message,omitempty"`
	Kind    string `json:"kind,omitempty"`
	// The name of the resource that got created.
	Name      string `json:"name,omitempty"`
	ScopeKind string `json:"scopeKind,omitempty"`
	ScopeName string `json:"scopeName,omitempty"`
}

ReleaseTagStatusReference The resource reference that was created/updated.

type ReleaseTagStatusSuccess ¶

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

ReleaseTagStatusSuccess struct for ReleaseTagStatusSuccess

type ReleaseTagStatusSuccessMeta ¶

type ReleaseTagStatusSuccessMeta struct {
	// GENERATE: The following code has been modified after code generation
	Reference []ReleaseTagStatusReference `json:"reference,omitempty"`
}

ReleaseTagStatusSuccessMeta struct for ReleaseTagStatusSuccessMeta

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 struct for ResourceSpec

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 Secret ¶

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

Secret Resource

func NewSecret ¶

func NewSecret(name, scopeName string) *Secret

NewSecret creates an empty *Secret

func SecretFromInstanceArray ¶

func SecretFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Secret, error)

SecretFromInstanceArray converts a []*ResourceInstance to a []*Secret

func (*Secret) AsInstance ¶

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

AsInstance converts a Secret to a ResourceInstance

func (*Secret) FromInstance ¶

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

FromInstance converts a ResourceInstance to a Secret

func (*Secret) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*Secret) PluralName ¶

func (res *Secret) PluralName() string

PluralName returns the plural name of the resource

func (*Secret) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type SecretSpec ¶

type SecretSpec struct {
	// Key value pairs. The value will be stored encrypted.
	Data map[string]string `json:"data,omitempty"`
}

SecretSpec struct for SecretSpec

type Stage ¶

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

Stage Resource

func NewStage ¶

func NewStage(name string) *Stage

NewStage creates an empty *Stage

func StageFromInstanceArray ¶

func StageFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Stage, error)

StageFromInstanceArray converts a []*ResourceInstance to a []*Stage

func (*Stage) AsInstance ¶

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

AsInstance converts a Stage to a ResourceInstance

func (*Stage) FromInstance ¶

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

FromInstance converts a ResourceInstance to a Stage

func (*Stage) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*Stage) PluralName ¶

func (res *Stage) PluralName() string

PluralName returns the plural name of the resource

func (*Stage) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type StageSpec ¶

type StageSpec struct {
	// description of the stage
	Description string `json:"description,omitempty"`
}

StageSpec struct for StageSpec

type StageVisibility ¶ added in v1.1.78

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

StageVisibility Resource

func NewStageVisibility ¶ added in v1.1.78

func NewStageVisibility(name, scopeName string) *StageVisibility

NewStageVisibility creates an empty *StageVisibility

func StageVisibilityFromInstanceArray ¶ added in v1.1.78

func StageVisibilityFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*StageVisibility, error)

StageVisibilityFromInstanceArray converts a []*ResourceInstance to a []*StageVisibility

func (*StageVisibility) AsInstance ¶ added in v1.1.78

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

AsInstance converts a StageVisibility to a ResourceInstance

func (*StageVisibility) FromInstance ¶ added in v1.1.78

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

FromInstance converts a ResourceInstance to a StageVisibility

func (*StageVisibility) MarshalJSON ¶ added in v1.1.78

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

MarshalJSON custom marshaller to handle sub resources

func (*StageVisibility) PluralName ¶ added in v1.1.78

func (res *StageVisibility) PluralName() string

PluralName returns the plural name of the resource

func (*StageVisibility) UnmarshalJSON ¶ added in v1.1.78

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

UnmarshalJSON custom unmarshaller to handle sub resources

type StageVisibilitySpec ¶ added in v1.1.78

type StageVisibilitySpec struct {
	// Defines where the visibility settings apply.
	Stages []StageVisibilitySpecStages `json:"stages"`
	// Determines if the list of subjects should be excluded from the stage visibility.
	Exclude bool `json:"exclude,omitempty"`
	// GENERATE: The following code has been modified after code generation
	Subjects []interface{} `json:"subjects,omitempty"`
}

StageVisibilitySpec struct for StageVisibilitySpec

type StageVisibilitySpecAuthenticatedRef ¶ added in v1.1.78

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

StageVisibilitySpecAuthenticatedRef struct for StageVisibilitySpecAuthenticatedRef

type StageVisibilitySpecStages ¶ added in v1.1.78

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

StageVisibilitySpecStages struct for StageVisibilitySpecStages

type StageVisibilitySpecTagRef ¶ added in v1.1.78

type StageVisibilitySpecTagRef struct {
	Type string `json:"type"`
	// Value of a platform team tag.
	Value string `json:"value"`
}

StageVisibilitySpecTagRef struct for StageVisibilitySpecTagRef

type StageVisibilitySpecTeamRef ¶ added in v1.1.78

type StageVisibilitySpecTeamRef struct {
	Type string `json:"type"`
	// ID of the subject
	Id string `json:"id"`
}

StageVisibilitySpecTeamRef struct for StageVisibilitySpecTeamRef

type Subscription ¶

type Subscription struct {
	apiv1.ResourceMeta
	Approval    SubscriptionApproval    `json:"approval"`
	Billing     SubscriptionBilling     `json:"billing"`
	Marketplace SubscriptionMarketplace `json:"marketplace"`
	Owner       *apiv1.Owner            `json:"owner"`
	References  SubscriptionReferences  `json:"references"`
	Spec        SubscriptionSpec        `json:"spec"`
	State       SubscriptionState       `json:"state"`
	// Status      SubscriptionStatus      `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

Subscription Resource

func NewSubscription ¶

func NewSubscription(name string) *Subscription

NewSubscription creates an empty *Subscription

func SubscriptionFromInstanceArray ¶

func SubscriptionFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Subscription, error)

SubscriptionFromInstanceArray converts a []*ResourceInstance to a []*Subscription

func (*Subscription) AsInstance ¶

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

AsInstance converts a Subscription to a ResourceInstance

func (*Subscription) FromInstance ¶

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

FromInstance converts a ResourceInstance to a Subscription

func (*Subscription) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*Subscription) PluralName ¶

func (res *Subscription) PluralName() string

PluralName returns the plural name of the resource

func (*Subscription) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type SubscriptionApproval ¶

type SubscriptionApproval struct {
	State string `json:"state"`
	// Reason for the state.
	Reason string `json:"reason,omitempty"`
	// Id of the user that approved or reject the subscription.
	UserId string `json:"userId,omitempty"`
}

SubscriptionApproval struct for SubscriptionApproval

type SubscriptionBilling ¶ added in v1.1.52

type SubscriptionBilling struct {
	// GENERATE: The following code has been modified after code generation
	Payment interface{} `json:"payment,omitempty"`
}

SubscriptionBilling Details about the Subscription billing.

type SubscriptionBillingPaymentTypeStripe ¶ added in v1.1.52

type SubscriptionBillingPaymentTypeStripe struct {
	Type string `json:"type,omitempty"`
}

SubscriptionBillingPaymentTypeStripe struct for SubscriptionBillingPaymentTypeStripe

type SubscriptionInvoice ¶ added in v1.1.52

type SubscriptionInvoice struct {
	apiv1.ResourceMeta
	Billing     SubscriptionInvoiceBilling     `json:"billing"`
	Marketplace SubscriptionInvoiceMarketplace `json:"marketplace"`
	Owner       *apiv1.Owner                   `json:"owner"`
	Spec        SubscriptionInvoiceSpec        `json:"spec"`
	State       SubscriptionInvoiceState       `json:"state"`
	// Status      SubscriptionInvoiceStatus      `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

SubscriptionInvoice Resource

func NewSubscriptionInvoice ¶ added in v1.1.52

func NewSubscriptionInvoice(name, scopeName string) *SubscriptionInvoice

NewSubscriptionInvoice creates an empty *SubscriptionInvoice

func SubscriptionInvoiceFromInstanceArray ¶ added in v1.1.52

func SubscriptionInvoiceFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*SubscriptionInvoice, error)

SubscriptionInvoiceFromInstanceArray converts a []*ResourceInstance to a []*SubscriptionInvoice

func (*SubscriptionInvoice) AsInstance ¶ added in v1.1.52

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

AsInstance converts a SubscriptionInvoice to a ResourceInstance

func (*SubscriptionInvoice) FromInstance ¶ added in v1.1.52

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

FromInstance converts a ResourceInstance to a SubscriptionInvoice

func (*SubscriptionInvoice) MarshalJSON ¶ added in v1.1.52

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

MarshalJSON custom marshaller to handle sub resources

func (*SubscriptionInvoice) PluralName ¶ added in v1.1.52

func (res *SubscriptionInvoice) PluralName() string

PluralName returns the plural name of the resource

func (*SubscriptionInvoice) UnmarshalJSON ¶ added in v1.1.52

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

UnmarshalJSON custom unmarshaller to handle sub resources

type SubscriptionInvoiceBilling ¶ added in v1.1.52

type SubscriptionInvoiceBilling struct {
	// GENERATE: The following code has been modified after code generation
	Payment interface{} `json:"payment,omitempty"`
}

SubscriptionInvoiceBilling struct for SubscriptionInvoiceBilling

type SubscriptionInvoiceBillingPaymentTypeStripe ¶ added in v1.1.52

type SubscriptionInvoiceBillingPaymentTypeStripe struct {
	Type string `json:"type"`
	// Stripe Invoice id.
	Id string `json:"id,omitempty"`
	// Stripe Invoice number.
	Number string `json:"number,omitempty"`
	// Due date of the invoice.
	DueDate time.Time `json:"dueDate,omitempty"`
	// Issue date of the invoice.
	IssueDate time.Time                                         `json:"issueDate,omitempty"`
	Amount    SubscriptionInvoiceBillingPaymentTypeStripeAmount `json:"amount,omitempty"`
	// Link where the payment can be done.
	Link string `json:"link,omitempty"`
	// Link from where the invoice can be downloaded.
	DocumentLink string                                              `json:"documentLink,omitempty"`
	Customer     SubscriptionInvoiceBillingPaymentTypeStripeCustomer `json:"customer,omitempty"`
}

SubscriptionInvoiceBillingPaymentTypeStripe Defines Stripe type invoice payment details.

type SubscriptionInvoiceBillingPaymentTypeStripeAmount ¶ added in v1.1.52

type SubscriptionInvoiceBillingPaymentTypeStripeAmount struct {
	// Currency for the billed amount.
	Currency string `json:"currency"`
	// Total amount after discounts and taxes.
	Total float64 `json:"total"`
	// Final amount due at this time for this invoice.
	Due float64 `json:"due"`
}

SubscriptionInvoiceBillingPaymentTypeStripeAmount struct for SubscriptionInvoiceBillingPaymentTypeStripeAmount

type SubscriptionInvoiceBillingPaymentTypeStripeCustomer ¶ added in v1.1.52

type SubscriptionInvoiceBillingPaymentTypeStripeCustomer struct {
	Id string `json:"id"`
}

SubscriptionInvoiceBillingPaymentTypeStripeCustomer struct for SubscriptionInvoiceBillingPaymentTypeStripeCustomer

type SubscriptionInvoiceMarketplace ¶ added in v1.1.52

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

SubscriptionInvoiceMarketplace Details about the marketplace Subscription invoice.

type SubscriptionInvoiceMarketplaceResource ¶ added in v1.1.52

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

SubscriptionInvoiceMarketplaceResource The Marketplace Subscription Invoice resource details.

type SubscriptionInvoiceMarketplaceResourceOwner ¶ added in v1.1.52

type SubscriptionInvoiceMarketplaceResourceOwner struct {
	// The type of the owner.
	Type string `json:"type,omitempty"`
	// Id of the owner of the resource.
	Id           string                                          `json:"id,omitempty"`
	Organization ApplicationMarketplaceResourceOwnerOrganization `json:"organization"`
}

SubscriptionInvoiceMarketplaceResourceOwner Owner of the Subscription Invoice.

type SubscriptionInvoiceSpec ¶ added in v1.1.52

type SubscriptionInvoiceSpec struct {
	Period SubscriptionInvoiceSpecPeriod   `json:"period,omitempty"`
	Quotas []SubscriptionInvoiceSpecQuotas `json:"quotas,omitempty"`
}

SubscriptionInvoiceSpec struct for SubscriptionInvoiceSpec

type SubscriptionInvoiceSpecIntervals ¶ added in v1.1.57

type SubscriptionInvoiceSpecIntervals struct {
	// The start of the interval.
	From time.Time `json:"from"`
	// Number of consumed units in the interval.
	Units int32 `json:"units"`
	// In case the item is from a prior invoice for the same quota. Prior invoice items are included if the first item is not for the complete quota interval.
	PreviousInvoiceItem bool `json:"previousInvoiceItem,omitempty"`
}

SubscriptionInvoiceSpecIntervals struct for SubscriptionInvoiceSpecIntervals

type SubscriptionInvoiceSpecPeriod ¶ added in v1.1.52

type SubscriptionInvoiceSpecPeriod struct {
	// Start time of the invoice.
	From time.Time `json:"from"`
	// End time of the invoice.
	To time.Time `json:"to"`
}

SubscriptionInvoiceSpecPeriod Describes the period for which the invoice was created.

type SubscriptionInvoiceSpecQuotas ¶ added in v1.1.52

type SubscriptionInvoiceSpecQuotas struct {
	Name string `json:"name,omitempty"`
	// Number of consumed units.
	Units int32 `json:"units,omitempty"`
	// Defined for quotas with overages per specific time period.
	Intervals []SubscriptionInvoiceSpecIntervals `json:"intervals,omitempty"`
}

SubscriptionInvoiceSpecQuotas struct for SubscriptionInvoiceSpecQuotas

type SubscriptionInvoiceState ¶ added in v1.1.52

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

SubscriptionInvoiceState struct for SubscriptionInvoiceState

type SubscriptionInvoiceStatus ¶ added in v1.1.52

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

SubscriptionInvoiceStatus struct for SubscriptionInvoiceStatus

type SubscriptionJob ¶ added in v1.1.49

type SubscriptionJob struct {
	apiv1.ResourceMeta
	Owner *apiv1.Owner        `json:"owner"`
	Spec  SubscriptionJobSpec `json:"spec"`
	// Status SubscriptionJobStatus `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

SubscriptionJob Resource

func NewSubscriptionJob ¶ added in v1.1.49

func NewSubscriptionJob(name, scopeName string) *SubscriptionJob

NewSubscriptionJob creates an empty *SubscriptionJob

func SubscriptionJobFromInstanceArray ¶ added in v1.1.49

func SubscriptionJobFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*SubscriptionJob, error)

SubscriptionJobFromInstanceArray converts a []*ResourceInstance to a []*SubscriptionJob

func (*SubscriptionJob) AsInstance ¶ added in v1.1.49

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

AsInstance converts a SubscriptionJob to a ResourceInstance

func (*SubscriptionJob) FromInstance ¶ added in v1.1.49

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

FromInstance converts a ResourceInstance to a SubscriptionJob

func (*SubscriptionJob) MarshalJSON ¶ added in v1.1.49

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

MarshalJSON custom marshaller to handle sub resources

func (*SubscriptionJob) PluralName ¶ added in v1.1.49

func (res *SubscriptionJob) PluralName() string

PluralName returns the plural name of the resource

func (*SubscriptionJob) UnmarshalJSON ¶ added in v1.1.49

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

UnmarshalJSON custom unmarshaller to handle sub resources

type SubscriptionJobSpec ¶ added in v1.1.49

type SubscriptionJobSpec struct {
	// GENERATE: The following code has been modified after code generation
	Action      interface{}                    `json:"action"`
	When        SubscriptionJobSpecWhen        `json:"when,omitempty"`
	PostExecute SubscriptionJobSpecPostExecute `json:"postExecute,omitempty"`
}

SubscriptionJobSpec struct for SubscriptionJobSpec

type SubscriptionJobSpecApprovalStateChange ¶ added in v1.1.49

type SubscriptionJobSpecApprovalStateChange struct {
	Type string `json:"type"`
	// Used to override the migrated Subscription approval state.
	State string `json:"state"`
}

SubscriptionJobSpecApprovalStateChange struct for SubscriptionJobSpecApprovalStateChange

type SubscriptionJobSpecArchive ¶ added in v1.1.49

type SubscriptionJobSpecArchive struct {
	Type string `json:"type"`
	// Description on why the subscription was archived.
	Reason string `json:"reason,omitempty"`
	// The Product Plan Job which triggered the archival.
	ProductPlanJob string `json:"productPlanJob,omitempty"`
}

SubscriptionJobSpecArchive struct for SubscriptionJobSpecArchive

type SubscriptionJobSpecMigrateAssetRequests ¶ added in v1.1.49

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

SubscriptionJobSpecMigrateAssetRequests struct for SubscriptionJobSpecMigrateAssetRequests

type SubscriptionJobSpecPlanMigration ¶ added in v1.1.49

type SubscriptionJobSpecPlanMigration struct {
	Type string `json:"type"`
	// The Product Plan to which to migrate the Subscription.
	ProductPlan string `json:"productPlan"`
	// Description on why the subscription was migrated.
	Reason string `json:"reason,omitempty"`
	// The Product Plan Job which triggered the migration.
	ProductPlanJob string `json:"productPlanJob,omitempty"`
}

SubscriptionJobSpecPlanMigration struct for SubscriptionJobSpecPlanMigration

type SubscriptionJobSpecPostExecute ¶ added in v1.1.49

type SubscriptionJobSpecPostExecute struct {
	// Actions to be executed after the new Subscription was created.
	OnSuccess []map[string]interface{} `json:"onSuccess,omitempty"`
}

SubscriptionJobSpecPostExecute struct for SubscriptionJobSpecPostExecute

type SubscriptionJobSpecWhen ¶ added in v1.1.49

type SubscriptionJobSpecWhen struct {
	// Time when the migration should execute.
	Timestamp time.Time `json:"timestamp,omitempty"`
}

SubscriptionJobSpecWhen Describes when to execute the action.

type SubscriptionJobStatus ¶ added in v1.1.49

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

SubscriptionJobStatus struct for SubscriptionJobStatus

type SubscriptionMarketplace ¶

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

SubscriptionMarketplace Details about the marketplace Subscription.

type SubscriptionMarketplaceResource ¶

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

SubscriptionMarketplaceResource The Marketplace Subscription resource details.

type SubscriptionMarketplaceResourceMetadata ¶

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

SubscriptionMarketplaceResourceMetadata Marketplace Subscription metadata.

type SubscriptionMarketplaceResourceOwner ¶

type SubscriptionMarketplaceResourceOwner struct {
	// The type of the owner.
	Type string `json:"type,omitempty"`
	// Id of the owner of the resource.
	Id           string                                          `json:"id,omitempty"`
	Organization ApplicationMarketplaceResourceOwnerOrganization `json:"organization"`
}

SubscriptionMarketplaceResourceOwner Owner of the Subscription.

type SubscriptionReferences ¶ added in v1.1.49

type SubscriptionReferences struct {
	// Reference a source Subscription if the Subscription was generated from a Subscription migration to a new Product Plan.
	Subscription string `json:"subscription,omitempty"`
}

SubscriptionReferences struct for SubscriptionReferences

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.
	Schema map[string]interface{} `json:"schema"`
}

SubscriptionRequestDefinitionSpec struct for SubscriptionRequestDefinitionSpec

type SubscriptionSpec ¶

type SubscriptionSpec struct {
	// Data matching the subscription definition schema set on the subscribed plan.
	Data map[string]interface{} `json:"data,omitempty"`
	// Schema snapshot from the subscription definition when the subscription got created.
	Schema map[string]interface{} `json:"schema,omitempty"`
	// Reference to Product resource
	Product string               `json:"product"`
	Plan    SubscriptionSpecPlan `json:"plan"`
}

SubscriptionSpec struct for SubscriptionSpec

type SubscriptionSpecPlan ¶

type SubscriptionSpecPlan struct {
	// Reference to Product resource
	Name string `json:"name"`
}

SubscriptionSpecPlan struct for SubscriptionSpecPlan

type SubscriptionState ¶ added in v1.1.49

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

SubscriptionState struct for SubscriptionState

type SubscriptionStateWhen ¶ added in v1.1.78

type SubscriptionStateWhen struct {
	// Time when the scheduled action should execute or was executed.
	Timestamp time.Time `json:"timestamp,omitempty"`
}

SubscriptionStateWhen Describes when to execute the scheduled action or when it was executed. Only valid for scheduled actions.

type SubscriptionStatus ¶

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

SubscriptionStatus struct for SubscriptionStatus

type SubscriptionStatusReasons ¶

type SubscriptionStatusReasons 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"`
}

SubscriptionStatusReasons struct for SubscriptionStatusReasons

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 struct for SupportContactSpec

type SupportContactSpecAlternativeContacts ¶ added in v1.1.44

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

SupportContactSpecAlternativeContacts struct for SupportContactSpecAlternativeContacts

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 struct for SupportContactSpecAlternativeContactsUrls

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 struct for SupportContactSpecOfficeHours

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 struct for SupportContactSpecOfficeHoursPeriods

type Webhook ¶

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

Webhook Resource

func NewWebhook ¶

func NewWebhook(name, scopeName string) *Webhook

NewWebhook creates an empty *Webhook

func WebhookFromInstanceArray ¶

func WebhookFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Webhook, error)

WebhookFromInstanceArray converts a []*ResourceInstance to a []*Webhook

func (*Webhook) AsInstance ¶

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

AsInstance converts a Webhook to a ResourceInstance

func (*Webhook) FromInstance ¶

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

FromInstance converts a ResourceInstance to a Webhook

func (*Webhook) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*Webhook) PluralName ¶

func (res *Webhook) PluralName() string

PluralName returns the plural name of the resource

func (*Webhook) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type WebhookSpec ¶

type WebhookSpec struct {
	Auth    WebhookSpecAuth `json:"auth,omitempty"`
	Enabled bool            `json:"enabled,omitempty"`
	Url     string          `json:"url"`
	// A list of headers that will be sent as par of the http call to the webhook endpoint.
	Headers map[string]string `json:"headers,omitempty"`
}

WebhookSpec struct for WebhookSpec

type WebhookSpecAuth ¶

type WebhookSpecAuth struct {
	Secret WebhookSpecAuthSecret `json:"secret,omitempty"`
}

WebhookSpecAuth Defines the authentication used to invoke the webhook. When invoking the webhook, the value from the secret/key will be sent in the Authorization header.

type WebhookSpecAuthSecret ¶

type WebhookSpecAuthSecret struct {
	// Secret name to be used as a reference. If the secret is removed, the reference gets removed and the webhook invocation will be done with no Authorization header.
	Name string `json:"name,omitempty"`
	// Key to be used from the referenced secret.
	Key string `json:"key,omitempty"`
}

WebhookSpecAuthSecret struct for WebhookSpecAuthSecret

Source Files ¶

Jump to

Keyboard shortcuts

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