github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/pkg/formationconstraint/formation_constraint_input.go (about)

     1  package formationconstraint
     2  
     3  import (
     4  	"github.com/kyma-incubator/compass/components/director/internal/model"
     5  )
     6  
     7  // IsNotAssignedToAnyFormationOfTypeInput input for IsNotAssignedToAnyFormationOfType operator
     8  type IsNotAssignedToAnyFormationOfTypeInput struct {
     9  	FormationTemplateID string             `json:"formation_template_id"`
    10  	ResourceType        model.ResourceType `json:"resource_type"`
    11  	ResourceSubtype     string             `json:"resource_subtype"`
    12  	ResourceID          string             `json:"resource_id"`
    13  	Tenant              string             `json:"tenant"`
    14  	ExceptSystemTypes   []string           `json:"exceptSystemTypes"`
    15  }
    16  
    17  // DoesNotContainResourceOfSubtypeInput input for DoesNotContainResourceOfSubtype operator
    18  type DoesNotContainResourceOfSubtypeInput struct {
    19  	FormationName   string             `json:"formation_name"`
    20  	ResourceType    model.ResourceType `json:"resource_type"`
    21  	ResourceSubtype string             `json:"resource_subtype"`
    22  	ResourceID      string             `json:"resource_id"`
    23  	Tenant          string             `json:"tenant"`
    24  }
    25  
    26  // DoNotGenerateFormationAssignmentNotificationInput input for DoNotGenerateFormationAssignmentNotification operator
    27  type DoNotGenerateFormationAssignmentNotificationInput struct {
    28  	ResourceType         model.ResourceType `json:"resource_type"`
    29  	ResourceSubtype      string             `json:"resource_subtype"`
    30  	ResourceID           string             `json:"resource_id"`
    31  	SourceResourceType   model.ResourceType `json:"source_resource_type"`
    32  	SourceResourceID     string             `json:"source_resource_id"`
    33  	Tenant               string             `json:"tenant"`
    34  	FormationTemplateID  string             `json:"formation_template_id"`
    35  	ExceptSubtypes       []string           `json:"except_subtypes"`
    36  	ExceptFormationTypes []string           `json:"except_formation_types"`
    37  }
    38  
    39  // DestinationCreatorInput input for DestinationCreator operator
    40  type DestinationCreatorInput struct {
    41  	Operation                               model.FormationOperation   `json:"operation"`
    42  	ResourceType                            model.ResourceType         `json:"resource_type"`
    43  	ResourceSubtype                         string                     `json:"resource_subtype"`
    44  	FormationAssignment                     *model.FormationAssignment `json:"formation_assignment"`
    45  	JointPointDetailsFAMemoryAddress        uintptr                    `json:"details_formation_assignment_memory_address"` // contains the memory address of the joint point details' formation assignment in form of an integer
    46  	ReverseFormationAssignment              *model.FormationAssignment `json:"reverse_formation_assignment"`
    47  	JointPointDetailsReverseFAMemoryAddress uintptr                    `json:"details_reverse_formation_assignment_memory_address"` // contains the memory address of the joint point details' reverse formation assignment in form of an integer
    48  	Location                                JoinPointLocation          `json:"join_point_location"`
    49  }