github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/internal/model/formation_template.go (about)

     1  package model
     2  
     3  import (
     4  	"github.com/kyma-incubator/compass/components/director/pkg/pagination"
     5  )
     6  
     7  // RuntimeArtifactKind missing godoc
     8  type RuntimeArtifactKind string
     9  
    10  const (
    11  	// RuntimeArtifactKindSubscription missing godoc
    12  	RuntimeArtifactKindSubscription RuntimeArtifactKind = "SUBSCRIPTION"
    13  	// RuntimeArtifactKindServiceInstance missing godoc
    14  	RuntimeArtifactKindServiceInstance RuntimeArtifactKind = "SERVICE_INSTANCE"
    15  	// RuntimeArtifactKindEnvironmentInstance missing godoc
    16  	RuntimeArtifactKindEnvironmentInstance RuntimeArtifactKind = "ENVIRONMENT_INSTANCE"
    17  )
    18  
    19  // FormationTemplate missing godoc
    20  type FormationTemplate struct {
    21  	ID                     string               `json:"id"`
    22  	Name                   string               `json:"name"`
    23  	ApplicationTypes       []string             `json:"applicationTypes"`
    24  	RuntimeTypes           []string             `json:"runtimeTypes"`
    25  	RuntimeTypeDisplayName *string              `json:"runtimeTypeDisplayName"`
    26  	RuntimeArtifactKind    *RuntimeArtifactKind `json:"runtimeArtifactKind"`
    27  	TenantID               *string              `json:"tenant_id"`
    28  	Webhooks               []*Webhook           `json:"webhooks"`
    29  	LeadingProductIDs      []string             `json:"leadingProductIDs"`
    30  }
    31  
    32  // FormationTemplateInput missing godoc
    33  type FormationTemplateInput struct {
    34  	Name                   string               `json:"name"`
    35  	ApplicationTypes       []string             `json:"applicationTypes"`
    36  	RuntimeTypes           []string             `json:"runtimeTypes"`
    37  	RuntimeTypeDisplayName *string              `json:"runtimeTypeDisplayName"`
    38  	RuntimeArtifactKind    *RuntimeArtifactKind `json:"runtimeArtifactKind"`
    39  	Webhooks               []*WebhookInput      `json:"webhooks"`
    40  	LeadingProductIDs      []string             `json:"leadingProductIDs"`
    41  }
    42  
    43  // FormationTemplatePage missing godoc
    44  type FormationTemplatePage struct {
    45  	Data       []*FormationTemplate
    46  	PageInfo   *pagination.Page
    47  	TotalCount int
    48  }