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

     1  // Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
     2  
     3  package graphql
     4  
     5  import (
     6  	"fmt"
     7  	"io"
     8  	"strconv"
     9  )
    10  
    11  type CredentialData interface {
    12  	IsCredentialData()
    13  }
    14  
    15  type OneTimeToken interface {
    16  	IsOneTimeToken()
    17  }
    18  
    19  // Every query that implements pagination returns object that implements Pageable interface.
    20  // To specify page details, query specify two parameters: `first` and `after`.
    21  // `first` specify page size, `after` is a cursor for the next page. When requesting first page, set `after` to empty value.
    22  // For requesting next page, set `after` to `pageInfo.endCursor` returned from previous query.
    23  type Pageable interface {
    24  	IsPageable()
    25  }
    26  
    27  type SystemAuth interface {
    28  	IsSystemAuth()
    29  }
    30  
    31  type APIDefinitionInput struct {
    32  	// **Validation:** ASCII printable characters, max=100
    33  	Name string `json:"name"`
    34  	// **Validation:** max=2000
    35  	Description *string `json:"description"`
    36  	// **Validation:** valid URL, max=256
    37  	TargetURL string `json:"targetURL"`
    38  	// **Validation:** max=100
    39  	Group   *string       `json:"group"`
    40  	Spec    *APISpecInput `json:"spec"`
    41  	Version *VersionInput `json:"version"`
    42  }
    43  
    44  type APIDefinitionPage struct {
    45  	Data       []*APIDefinition `json:"data"`
    46  	PageInfo   *PageInfo        `json:"pageInfo"`
    47  	TotalCount int              `json:"totalCount"`
    48  }
    49  
    50  func (APIDefinitionPage) IsPageable() {}
    51  
    52  // **Validation:**
    53  // - for ODATA type, accepted formats are XML and JSON, for OPEN_API accepted formats are YAML and JSON
    54  // - data or fetchRequest required
    55  type APISpecInput struct {
    56  	Data         *CLOB              `json:"data"`
    57  	Type         APISpecType        `json:"type"`
    58  	Format       SpecFormat         `json:"format"`
    59  	FetchRequest *FetchRequestInput `json:"fetchRequest"`
    60  }
    61  
    62  type AppSystemAuth struct {
    63  	ID                string                   `json:"id"`
    64  	Auth              *Auth                    `json:"auth"`
    65  	Type              *SystemAuthReferenceType `json:"type"`
    66  	TenantID          *string                  `json:"tenantId"`
    67  	ReferenceObjectID *string                  `json:"referenceObjectId"`
    68  }
    69  
    70  func (AppSystemAuth) IsSystemAuth() {}
    71  
    72  type ApplicationEventingConfiguration struct {
    73  	DefaultURL string `json:"defaultURL"`
    74  }
    75  
    76  // **Validation:** provided placeholders' names are unique
    77  type ApplicationFromTemplateInput struct {
    78  	ID *string `json:"id"`
    79  	// **Validation:** ASCII printable characters, max=100
    80  	TemplateName string `json:"templateName"`
    81  	// **Validation:** if provided, placeholdersPayload not required
    82  	Values []*TemplateValueInput `json:"values"`
    83  	// **Validation:** if provided, values not required
    84  	PlaceholdersPayload *string `json:"placeholdersPayload"`
    85  	Labels              Labels  `json:"labels"`
    86  }
    87  
    88  type ApplicationJSONInput struct {
    89  	// **Validation:**  Up to 36 characters long. Cannot start with a digit. The characters allowed in names are: digits (0-9), lower case letters (a-z),-, and .
    90  	Name string `json:"name"`
    91  	// **Validation:** max=256
    92  	ProviderName *string `json:"providerName"`
    93  	// **Validation:** max=2000
    94  	Description *string `json:"description"`
    95  	// **Validation:** label key is alphanumeric with underscore
    96  	Labels   Labels          `json:"labels"`
    97  	Webhooks []*WebhookInput `json:"webhooks"`
    98  	// **Validation:** valid URL, max=256
    99  	HealthCheckURL *string `json:"healthCheckURL"`
   100  	// **Validation:** valid URL, max=256
   101  	BaseURL              *string                     `json:"baseUrl"`
   102  	ApplicationNamespace *string                     `json:"applicationNamespace"`
   103  	IntegrationSystemID  *string                     `json:"integrationSystemID"`
   104  	StatusCondition      *ApplicationStatusCondition `json:"statusCondition"`
   105  	LocalTenantID        *string                     `json:"localTenantID"`
   106  	Bundles              []*BundleCreateInput        `json:"bundles"`
   107  }
   108  
   109  type ApplicationPage struct {
   110  	Data       []*Application `json:"data"`
   111  	PageInfo   *PageInfo      `json:"pageInfo"`
   112  	TotalCount int            `json:"totalCount"`
   113  }
   114  
   115  func (ApplicationPage) IsPageable() {}
   116  
   117  type ApplicationRegisterInput struct {
   118  	// **Validation:**  Up to 36 characters long. Cannot start with a digit. The characters allowed in names are: digits (0-9), lower case letters (a-z),-, and .
   119  	Name string `json:"name"`
   120  	// **Validation:** max=256
   121  	ProviderName *string `json:"providerName"`
   122  	// **Validation:** max=2000
   123  	Description *string `json:"description"`
   124  	// **Validation:** label key is alphanumeric with underscore
   125  	Labels   Labels          `json:"labels"`
   126  	Webhooks []*WebhookInput `json:"webhooks"`
   127  	// **Validation:** valid URL, max=256
   128  	HealthCheckURL *string `json:"healthCheckURL"`
   129  	// **Validation:** valid URL, max=256
   130  	BaseURL              *string                     `json:"baseUrl"`
   131  	ApplicationNamespace *string                     `json:"applicationNamespace"`
   132  	IntegrationSystemID  *string                     `json:"integrationSystemID"`
   133  	StatusCondition      *ApplicationStatusCondition `json:"statusCondition"`
   134  	LocalTenantID        *string                     `json:"localTenantID"`
   135  	Bundles              []*BundleCreateInput        `json:"bundles"`
   136  }
   137  
   138  type ApplicationStatus struct {
   139  	Condition ApplicationStatusCondition `json:"condition"`
   140  	Timestamp Timestamp                  `json:"timestamp"`
   141  }
   142  
   143  // **Validation:** provided placeholders' names are unique and used in applicationInput
   144  type ApplicationTemplateInput struct {
   145  	// **Validation:** ASCII printable characters, max=100
   146  	Name string `json:"name"`
   147  	// **Validation:** max=2000
   148  	Webhooks    []*WebhookInput `json:"webhooks"`
   149  	Description *string         `json:"description"`
   150  	// **Validation:** label key is alphanumeric with underscore
   151  	Labels               Labels                         `json:"labels"`
   152  	ApplicationInput     *ApplicationJSONInput          `json:"applicationInput"`
   153  	Placeholders         []*PlaceholderDefinitionInput  `json:"placeholders"`
   154  	AccessLevel          ApplicationTemplateAccessLevel `json:"accessLevel"`
   155  	ApplicationNamespace *string                        `json:"applicationNamespace"`
   156  }
   157  
   158  type ApplicationTemplatePage struct {
   159  	Data       []*ApplicationTemplate `json:"data"`
   160  	PageInfo   *PageInfo              `json:"pageInfo"`
   161  	TotalCount int                    `json:"totalCount"`
   162  }
   163  
   164  func (ApplicationTemplatePage) IsPageable() {}
   165  
   166  type ApplicationTemplateUpdateInput struct {
   167  	// **Validation:** ASCII printable characters, max=100
   168  	Name string `json:"name"`
   169  	// **Validation:** max=2000
   170  	Webhooks             []*WebhookInput                `json:"webhooks"`
   171  	Description          *string                        `json:"description"`
   172  	ApplicationInput     *ApplicationJSONInput          `json:"applicationInput"`
   173  	Placeholders         []*PlaceholderDefinitionInput  `json:"placeholders"`
   174  	Labels               Labels                         `json:"labels"`
   175  	AccessLevel          ApplicationTemplateAccessLevel `json:"accessLevel"`
   176  	ApplicationNamespace *string                        `json:"applicationNamespace"`
   177  }
   178  
   179  type ApplicationUpdateInput struct {
   180  	// **Validation:** max=256
   181  	ProviderName *string `json:"providerName"`
   182  	// **Validation:** max=2000
   183  	Description *string `json:"description"`
   184  	// **Validation:** valid URL, max=256
   185  	HealthCheckURL       *string                     `json:"healthCheckURL"`
   186  	BaseURL              *string                     `json:"baseUrl"`
   187  	ApplicationNamespace *string                     `json:"applicationNamespace"`
   188  	IntegrationSystemID  *string                     `json:"integrationSystemID"`
   189  	StatusCondition      *ApplicationStatusCondition `json:"statusCondition"`
   190  	LocalTenantID        *string                     `json:"localTenantID"`
   191  }
   192  
   193  type Auth struct {
   194  	Credential                      CredentialData         `json:"credential"`
   195  	AccessStrategy                  *string                `json:"accessStrategy"`
   196  	AdditionalHeaders               HTTPHeaders            `json:"additionalHeaders"`
   197  	AdditionalHeadersSerialized     *HTTPHeadersSerialized `json:"additionalHeadersSerialized"`
   198  	AdditionalQueryParams           QueryParams            `json:"additionalQueryParams"`
   199  	AdditionalQueryParamsSerialized *QueryParamsSerialized `json:"additionalQueryParamsSerialized"`
   200  	RequestAuth                     *CredentialRequestAuth `json:"requestAuth"`
   201  	OneTimeToken                    OneTimeToken           `json:"oneTimeToken"`
   202  	CertCommonName                  *string                `json:"certCommonName"`
   203  }
   204  
   205  type AuthInput struct {
   206  	Credential     *CredentialDataInput `json:"credential"`
   207  	AccessStrategy *string              `json:"accessStrategy"`
   208  	// **Validation:** if provided, headers name and value required
   209  	AdditionalHeaders           HTTPHeaders            `json:"additionalHeaders"`
   210  	AdditionalHeadersSerialized *HTTPHeadersSerialized `json:"additionalHeadersSerialized"`
   211  	// **Validation:** if provided, query parameters name and value required
   212  	AdditionalQueryParams           QueryParams                 `json:"additionalQueryParams"`
   213  	AdditionalQueryParamsSerialized *QueryParamsSerialized      `json:"additionalQueryParamsSerialized"`
   214  	RequestAuth                     *CredentialRequestAuthInput `json:"requestAuth"`
   215  	CertCommonName                  *string                     `json:"certCommonName"`
   216  	OneTimeToken                    *OneTimeTokenInput          `json:"oneTimeToken"`
   217  }
   218  
   219  type AutomaticScenarioAssignment struct {
   220  	ScenarioName string `json:"scenarioName"`
   221  	Selector     *Label `json:"selector"`
   222  }
   223  
   224  type AutomaticScenarioAssignmentPage struct {
   225  	Data       []*AutomaticScenarioAssignment `json:"data"`
   226  	PageInfo   *PageInfo                      `json:"pageInfo"`
   227  	TotalCount int                            `json:"totalCount"`
   228  }
   229  
   230  func (AutomaticScenarioAssignmentPage) IsPageable() {}
   231  
   232  type BasicCredentialData struct {
   233  	Username string `json:"username"`
   234  	Password string `json:"password"`
   235  }
   236  
   237  func (BasicCredentialData) IsCredentialData() {}
   238  
   239  type BasicCredentialDataInput struct {
   240  	Username string `json:"username"`
   241  	Password string `json:"password"`
   242  }
   243  
   244  type BundleCreateInput struct {
   245  	// **Validation:** ASCII printable characters, max=100
   246  	Name string `json:"name"`
   247  	// **Validation:** max=2000
   248  	Description                    *string                 `json:"description"`
   249  	InstanceAuthRequestInputSchema *JSONSchema             `json:"instanceAuthRequestInputSchema"`
   250  	DefaultInstanceAuth            *AuthInput              `json:"defaultInstanceAuth"`
   251  	APIDefinitions                 []*APIDefinitionInput   `json:"apiDefinitions"`
   252  	EventDefinitions               []*EventDefinitionInput `json:"eventDefinitions"`
   253  	Documents                      []*DocumentInput        `json:"documents"`
   254  	CorrelationIDs                 []string                `json:"correlationIDs"`
   255  }
   256  
   257  type BundleInstanceAuth struct {
   258  	ID string `json:"id"`
   259  	// Context of BundleInstanceAuth - such as Runtime ID, namespace
   260  	Context *JSON `json:"context"`
   261  	// User input while requesting Bundle Instance Auth
   262  	InputParams *JSON `json:"inputParams"`
   263  	// It may be empty if status is PENDING.
   264  	// Populated with `bundle.defaultAuth` value if `bundle.defaultAuth` is defined. If not, Compass notifies Application/Integration System about the Auth request.
   265  	Auth             *Auth                     `json:"auth"`
   266  	Status           *BundleInstanceAuthStatus `json:"status"`
   267  	RuntimeID        *string                   `json:"runtimeID"`
   268  	RuntimeContextID *string                   `json:"runtimeContextID"`
   269  }
   270  
   271  type BundleInstanceAuthCreateInput struct {
   272  	Context          *JSON      `json:"context"`
   273  	InputParams      *JSON      `json:"inputParams"`
   274  	Auth             *AuthInput `json:"auth"`
   275  	RuntimeID        *string    `json:"runtimeID"`
   276  	RuntimeContextID *string    `json:"runtimeContextID"`
   277  }
   278  
   279  type BundleInstanceAuthRequestInput struct {
   280  	ID *string `json:"id"`
   281  	// Context of BundleInstanceAuth - such as Runtime ID, namespace, etc.
   282  	Context *JSON `json:"context"`
   283  	// **Validation:** JSON validated against bundle.instanceAuthRequestInputSchema
   284  	InputParams *JSON `json:"inputParams"`
   285  }
   286  
   287  type BundleInstanceAuthSetInput struct {
   288  	// **Validation:** If not provided, the status has to be set. If provided, the status condition  must be "SUCCEEDED".
   289  	Auth *AuthInput `json:"auth"`
   290  	// **Validation:** Optional if the auth is provided.
   291  	// If the status condition is "FAILED", auth must be empty.
   292  	Status *BundleInstanceAuthStatusInput `json:"status"`
   293  }
   294  
   295  type BundleInstanceAuthStatus struct {
   296  	Condition BundleInstanceAuthStatusCondition `json:"condition"`
   297  	Timestamp Timestamp                         `json:"timestamp"`
   298  	Message   string                            `json:"message"`
   299  	// Possible reasons:
   300  	// - PendingNotification
   301  	// - NotificationSent
   302  	// - CredentialsProvided
   303  	// - CredentialsNotProvided
   304  	// - PendingDeletion
   305  	Reason string `json:"reason"`
   306  }
   307  
   308  type BundleInstanceAuthStatusInput struct {
   309  	Condition BundleInstanceAuthSetStatusConditionInput `json:"condition"`
   310  	// **Validation:** required, if condition is FAILED
   311  	Message string `json:"message"`
   312  	// Example reasons:
   313  	// - PendingNotification
   314  	// - NotificationSent
   315  	// - CredentialsProvided
   316  	// - CredentialsNotProvided
   317  	// - PendingDeletion
   318  	//
   319  	// **Validation**: required, if condition is FAILED
   320  	Reason string `json:"reason"`
   321  }
   322  
   323  type BundleInstanceAuthUpdateInput struct {
   324  	Context     *JSON      `json:"context"`
   325  	InputParams *JSON      `json:"inputParams"`
   326  	Auth        *AuthInput `json:"auth"`
   327  }
   328  
   329  type BundlePage struct {
   330  	Data       []*Bundle `json:"data"`
   331  	PageInfo   *PageInfo `json:"pageInfo"`
   332  	TotalCount int       `json:"totalCount"`
   333  }
   334  
   335  func (BundlePage) IsPageable() {}
   336  
   337  type BundleUpdateInput struct {
   338  	// **Validation:** ASCII printable characters, max=100
   339  	Name string `json:"name"`
   340  	// **Validation:** max=2000
   341  	Description                    *string     `json:"description"`
   342  	InstanceAuthRequestInputSchema *JSONSchema `json:"instanceAuthRequestInputSchema"`
   343  	// While updating defaultInstanceAuth, existing BundleInstanceAuths are NOT updated.
   344  	DefaultInstanceAuth *AuthInput `json:"defaultInstanceAuth"`
   345  }
   346  
   347  type BusinessTenantMappingInput struct {
   348  	Name           string  `json:"name"`
   349  	ExternalTenant string  `json:"externalTenant"`
   350  	Parent         *string `json:"parent"`
   351  	Subdomain      *string `json:"subdomain"`
   352  	Region         *string `json:"region"`
   353  	Type           string  `json:"type"`
   354  	Provider       string  `json:"provider"`
   355  	LicenseType    *string `json:"licenseType"`
   356  }
   357  
   358  type CSRFTokenCredentialRequestAuth struct {
   359  	TokenEndpointURL                string                 `json:"tokenEndpointURL"`
   360  	Credential                      CredentialData         `json:"credential"`
   361  	AdditionalHeaders               HTTPHeaders            `json:"additionalHeaders"`
   362  	AdditionalHeadersSerialized     *HTTPHeadersSerialized `json:"additionalHeadersSerialized"`
   363  	AdditionalQueryParams           QueryParams            `json:"additionalQueryParams"`
   364  	AdditionalQueryParamsSerialized *QueryParamsSerialized `json:"additionalQueryParamsSerialized"`
   365  }
   366  
   367  type CSRFTokenCredentialRequestAuthInput struct {
   368  	// **Validation:** valid URL
   369  	TokenEndpointURL string               `json:"tokenEndpointURL"`
   370  	Credential       *CredentialDataInput `json:"credential"`
   371  	// **Validation:** if provided, headers name and value required
   372  	AdditionalHeaders           HTTPHeaders            `json:"additionalHeaders"`
   373  	AdditionalHeadersSerialized *HTTPHeadersSerialized `json:"additionalHeadersSerialized"`
   374  	// **Validation:** if provided, query parameters name and value required
   375  	AdditionalQueryParams           QueryParams            `json:"additionalQueryParams"`
   376  	AdditionalQueryParamsSerialized *QueryParamsSerialized `json:"additionalQueryParamsSerialized"`
   377  }
   378  
   379  type CertificateOAuthCredentialData struct {
   380  	ClientID    string `json:"clientId"`
   381  	Certificate string `json:"certificate"`
   382  	URL         string `json:"url"`
   383  }
   384  
   385  func (CertificateOAuthCredentialData) IsCredentialData() {}
   386  
   387  type CertificateOAuthCredentialDataInput struct {
   388  	ClientID    string `json:"clientId"`
   389  	Certificate string `json:"certificate"`
   390  	// **Validation:** valid URL
   391  	URL string `json:"url"`
   392  }
   393  
   394  type CertificateSubjectMapping struct {
   395  	ID                 string   `json:"id"`
   396  	Subject            string   `json:"subject"`
   397  	ConsumerType       string   `json:"consumerType"`
   398  	InternalConsumerID *string  `json:"internalConsumerID"`
   399  	TenantAccessLevels []string `json:"tenantAccessLevels"`
   400  }
   401  
   402  type CertificateSubjectMappingInput struct {
   403  	Subject            string   `json:"subject"`
   404  	ConsumerType       string   `json:"consumerType"`
   405  	InternalConsumerID *string  `json:"internalConsumerID"`
   406  	TenantAccessLevels []string `json:"tenantAccessLevels"`
   407  }
   408  
   409  type CertificateSubjectMappingPage struct {
   410  	Data       []*CertificateSubjectMapping `json:"data"`
   411  	PageInfo   *PageInfo                    `json:"pageInfo"`
   412  	TotalCount int                          `json:"totalCount"`
   413  }
   414  
   415  func (CertificateSubjectMappingPage) IsPageable() {}
   416  
   417  type ConstraintReference struct {
   418  	ConstraintID        string `json:"constraintID"`
   419  	FormationTemplateID string `json:"formationTemplateID"`
   420  }
   421  
   422  // **Validation:** basic or oauth or certificateOAuth field required
   423  type CredentialDataInput struct {
   424  	Basic            *BasicCredentialDataInput            `json:"basic"`
   425  	Oauth            *OAuthCredentialDataInput            `json:"oauth"`
   426  	CertificateOAuth *CertificateOAuthCredentialDataInput `json:"certificateOAuth"`
   427  }
   428  
   429  type CredentialRequestAuth struct {
   430  	Csrf *CSRFTokenCredentialRequestAuth `json:"csrf"`
   431  }
   432  
   433  type CredentialRequestAuthInput struct {
   434  	// **Validation:** required
   435  	Csrf *CSRFTokenCredentialRequestAuthInput `json:"csrf"`
   436  }
   437  
   438  type DocumentInput struct {
   439  	// **Validation:** max=128
   440  	Title string `json:"title"`
   441  	// **Validation:** max=128
   442  	DisplayName string `json:"displayName"`
   443  	// **Validation:** max=2000
   444  	Description string         `json:"description"`
   445  	Format      DocumentFormat `json:"format"`
   446  	// **Validation:** max=256
   447  	Kind         *string            `json:"kind"`
   448  	Data         *CLOB              `json:"data"`
   449  	FetchRequest *FetchRequestInput `json:"fetchRequest"`
   450  }
   451  
   452  type DocumentPage struct {
   453  	Data       []*Document `json:"data"`
   454  	PageInfo   *PageInfo   `json:"pageInfo"`
   455  	TotalCount int         `json:"totalCount"`
   456  }
   457  
   458  func (DocumentPage) IsPageable() {}
   459  
   460  type EventDefinitionInput struct {
   461  	// **Validation:** ASCII printable characters, max=100
   462  	Name string `json:"name"`
   463  	// **Validation:** max=2000
   464  	Description *string         `json:"description"`
   465  	Spec        *EventSpecInput `json:"spec"`
   466  	// **Validation:** max=36
   467  	Group   *string       `json:"group"`
   468  	Version *VersionInput `json:"version"`
   469  }
   470  
   471  type EventDefinitionPage struct {
   472  	Data       []*EventDefinition `json:"data"`
   473  	PageInfo   *PageInfo          `json:"pageInfo"`
   474  	TotalCount int                `json:"totalCount"`
   475  }
   476  
   477  func (EventDefinitionPage) IsPageable() {}
   478  
   479  // **Validation:**
   480  // - data or fetchRequest required
   481  // - for ASYNC_API type, accepted formats are YAML and JSON
   482  type EventSpecInput struct {
   483  	Data         *CLOB              `json:"data"`
   484  	Type         EventSpecType      `json:"type"`
   485  	Format       SpecFormat         `json:"format"`
   486  	FetchRequest *FetchRequestInput `json:"fetchRequest"`
   487  }
   488  
   489  // Compass performs fetch to validate if request is correct and stores a copy
   490  type FetchRequest struct {
   491  	URL    string              `json:"url"`
   492  	Auth   *Auth               `json:"auth"`
   493  	Mode   FetchMode           `json:"mode"`
   494  	Filter *string             `json:"filter"`
   495  	Status *FetchRequestStatus `json:"status"`
   496  }
   497  
   498  type FetchRequestInput struct {
   499  	// **Validation:** valid URL, max=256
   500  	URL string `json:"url"`
   501  	// Currently unsupported, providing it will result in a failure
   502  	Auth *AuthInput `json:"auth"`
   503  	// Currently unsupported, providing it will result in a failure
   504  	Mode *FetchMode `json:"mode"`
   505  	// **Validation:** max=256
   506  	// Currently unsupported, providing it will result in a failure
   507  	Filter *string `json:"filter"`
   508  }
   509  
   510  type FetchRequestStatus struct {
   511  	Condition FetchRequestStatusCondition `json:"condition"`
   512  	Message   *string                     `json:"message"`
   513  	Timestamp Timestamp                   `json:"timestamp"`
   514  }
   515  
   516  type FormationAssignment struct {
   517  	ID         string                  `json:"id"`
   518  	Source     string                  `json:"source"`
   519  	SourceType FormationAssignmentType `json:"sourceType"`
   520  	Target     string                  `json:"target"`
   521  	TargetType FormationAssignmentType `json:"targetType"`
   522  	State      string                  `json:"state"`
   523  	Value      *string                 `json:"value"`
   524  }
   525  
   526  type FormationAssignmentPage struct {
   527  	Data       []*FormationAssignment `json:"data"`
   528  	PageInfo   *PageInfo              `json:"pageInfo"`
   529  	TotalCount int                    `json:"totalCount"`
   530  }
   531  
   532  func (FormationAssignmentPage) IsPageable() {}
   533  
   534  type FormationConstraint struct {
   535  	ID              string `json:"id"`
   536  	Name            string `json:"name"`
   537  	ConstraintType  string `json:"constraintType"`
   538  	TargetOperation string `json:"targetOperation"`
   539  	Operator        string `json:"operator"`
   540  	ResourceType    string `json:"resourceType"`
   541  	ResourceSubtype string `json:"resourceSubtype"`
   542  	InputTemplate   string `json:"inputTemplate"`
   543  	ConstraintScope string `json:"constraintScope"`
   544  }
   545  
   546  type FormationConstraintInput struct {
   547  	Name            string          `json:"name"`
   548  	ConstraintType  ConstraintType  `json:"constraintType"`
   549  	TargetOperation TargetOperation `json:"targetOperation"`
   550  	Operator        string          `json:"operator"`
   551  	ResourceType    ResourceType    `json:"resourceType"`
   552  	ResourceSubtype string          `json:"resourceSubtype"`
   553  	InputTemplate   string          `json:"inputTemplate"`
   554  	ConstraintScope ConstraintScope `json:"constraintScope"`
   555  }
   556  
   557  type FormationConstraintUpdateInput struct {
   558  	InputTemplate string `json:"inputTemplate"`
   559  }
   560  
   561  type FormationError struct {
   562  	Message   string `json:"message"`
   563  	ErrorCode int    `json:"errorCode"`
   564  }
   565  
   566  type FormationInput struct {
   567  	Name         string  `json:"name"`
   568  	TemplateName *string `json:"templateName"`
   569  	// The initial state of the newly created formation.
   570  	// It is used in specific use-cases by internal components that need to manipulate the formation notification engine's logic and hold the tenant mapping notifications until a certain external event happens.
   571  	State *string `json:"state"`
   572  }
   573  
   574  type FormationPage struct {
   575  	Data       []*Formation `json:"data"`
   576  	PageInfo   *PageInfo    `json:"pageInfo"`
   577  	TotalCount int          `json:"totalCount"`
   578  }
   579  
   580  func (FormationPage) IsPageable() {}
   581  
   582  type FormationStatus struct {
   583  	Condition FormationStatusCondition `json:"condition"`
   584  	Errors    []*FormationStatusError  `json:"errors"`
   585  }
   586  
   587  type FormationStatusError struct {
   588  	AssignmentID *string `json:"assignmentID"`
   589  	Message      string  `json:"message"`
   590  	ErrorCode    int     `json:"errorCode"`
   591  }
   592  
   593  type FormationTemplateInput struct {
   594  	Name                   string          `json:"name"`
   595  	ApplicationTypes       []string        `json:"applicationTypes"`
   596  	RuntimeTypes           []string        `json:"runtimeTypes"`
   597  	RuntimeTypeDisplayName *string         `json:"runtimeTypeDisplayName"`
   598  	RuntimeArtifactKind    *ArtifactType   `json:"runtimeArtifactKind"`
   599  	Webhooks               []*WebhookInput `json:"webhooks"`
   600  	LeadingProductIDs      []string        `json:"leadingProductIDs"`
   601  }
   602  
   603  type FormationTemplatePage struct {
   604  	Data       []*FormationTemplate `json:"data"`
   605  	PageInfo   *PageInfo            `json:"pageInfo"`
   606  	TotalCount int                  `json:"totalCount"`
   607  }
   608  
   609  func (FormationTemplatePage) IsPageable() {}
   610  
   611  type HealthCheck struct {
   612  	Type      HealthCheckType            `json:"type"`
   613  	Condition HealthCheckStatusCondition `json:"condition"`
   614  	Origin    *string                    `json:"origin"`
   615  	Message   *string                    `json:"message"`
   616  	Timestamp Timestamp                  `json:"timestamp"`
   617  }
   618  
   619  type HealthCheckPage struct {
   620  	Data       []*HealthCheck `json:"data"`
   621  	PageInfo   *PageInfo      `json:"pageInfo"`
   622  	TotalCount int            `json:"totalCount"`
   623  }
   624  
   625  func (HealthCheckPage) IsPageable() {}
   626  
   627  type IntSysSystemAuth struct {
   628  	ID                string                   `json:"id"`
   629  	Auth              *Auth                    `json:"auth"`
   630  	Type              *SystemAuthReferenceType `json:"type"`
   631  	TenantID          *string                  `json:"tenantId"`
   632  	ReferenceObjectID *string                  `json:"referenceObjectId"`
   633  }
   634  
   635  func (IntSysSystemAuth) IsSystemAuth() {}
   636  
   637  type IntegrationSystemInput struct {
   638  	// **Validation:**  Up to 36 characters long. Cannot start with a digit. The characters allowed in names are: digits (0-9), lower case letters (a-z),-, and .
   639  	Name string `json:"name"`
   640  	// **Validation:** max=2000
   641  	Description *string `json:"description"`
   642  }
   643  
   644  type IntegrationSystemPage struct {
   645  	Data       []*IntegrationSystem `json:"data"`
   646  	PageInfo   *PageInfo            `json:"pageInfo"`
   647  	TotalCount int                  `json:"totalCount"`
   648  }
   649  
   650  func (IntegrationSystemPage) IsPageable() {}
   651  
   652  type Label struct {
   653  	Key   string      `json:"key"`
   654  	Value interface{} `json:"value"`
   655  }
   656  
   657  type LabelDefinition struct {
   658  	Key    string      `json:"key"`
   659  	Schema *JSONSchema `json:"schema"`
   660  }
   661  
   662  type LabelDefinitionInput struct {
   663  	// **Validation:** max=256, alphanumeric chartacters and underscore
   664  	Key    string      `json:"key"`
   665  	Schema *JSONSchema `json:"schema"`
   666  }
   667  
   668  type LabelFilter struct {
   669  	// Label key. If query for the filter is not provided, returns every object with given label key regardless of its value.
   670  	Key string `json:"key"`
   671  	// Optional SQL/JSON Path expression. If query is not provided, returns every object with given label key regardless of its value.
   672  	// Currently only a limited subset of expressions is supported.
   673  	Query *string `json:"query"`
   674  }
   675  
   676  type LabelInput struct {
   677  	// **Validation:** max=256, alphanumeric chartacters and underscore
   678  	Key   string      `json:"key"`
   679  	Value interface{} `json:"value"`
   680  }
   681  
   682  type LabelSelectorInput struct {
   683  	Key   string `json:"key"`
   684  	Value string `json:"value"`
   685  }
   686  
   687  type OAuthCredentialData struct {
   688  	ClientID     string `json:"clientId"`
   689  	ClientSecret string `json:"clientSecret"`
   690  	// URL for getting access token
   691  	URL string `json:"url"`
   692  }
   693  
   694  func (OAuthCredentialData) IsCredentialData() {}
   695  
   696  type OAuthCredentialDataInput struct {
   697  	ClientID     string `json:"clientId"`
   698  	ClientSecret string `json:"clientSecret"`
   699  	// **Validation:** valid URL
   700  	URL string `json:"url"`
   701  }
   702  
   703  type OneTimeTokenInput struct {
   704  	Token        string            `json:"token"`
   705  	ConnectorURL *string           `json:"connectorURL"`
   706  	Used         bool              `json:"used"`
   707  	ExpiresAt    Timestamp         `json:"expiresAt"`
   708  	CreatedAt    Timestamp         `json:"createdAt"`
   709  	UsedAt       Timestamp         `json:"usedAt"`
   710  	Raw          *string           `json:"raw"`
   711  	RawEncoded   *string           `json:"rawEncoded"`
   712  	Type         *OneTimeTokenType `json:"type"`
   713  }
   714  
   715  type PageInfo struct {
   716  	StartCursor PageCursor `json:"startCursor"`
   717  	EndCursor   PageCursor `json:"endCursor"`
   718  	HasNextPage bool       `json:"hasNextPage"`
   719  }
   720  
   721  type PlaceholderDefinition struct {
   722  	Name        string  `json:"name"`
   723  	Description *string `json:"description"`
   724  	JSONPath    *string `json:"jsonPath"`
   725  	Optional    *bool   `json:"optional"`
   726  }
   727  
   728  type PlaceholderDefinitionInput struct {
   729  	// **Validation:**  Up to 36 characters long. Cannot start with a digit. The characters allowed in names are: digits (0-9), lower case letters (a-z),-, and .
   730  	Name string `json:"name"`
   731  	// **Validation:**  max=2000
   732  	Description *string `json:"description"`
   733  	// **Validation:**  max=2000
   734  	JSONPath *string `json:"jsonPath"`
   735  	Optional *bool   `json:"optional"`
   736  }
   737  
   738  type RuntimeContextInput struct {
   739  	// **Validation:** required max=512, alphanumeric chartacters and underscore
   740  	Key   string `json:"key"`
   741  	Value string `json:"value"`
   742  }
   743  
   744  type RuntimeContextPage struct {
   745  	Data       []*RuntimeContext `json:"data"`
   746  	PageInfo   *PageInfo         `json:"pageInfo"`
   747  	TotalCount int               `json:"totalCount"`
   748  }
   749  
   750  func (RuntimeContextPage) IsPageable() {}
   751  
   752  type RuntimeEventingConfiguration struct {
   753  	DefaultURL string `json:"defaultURL"`
   754  }
   755  
   756  type RuntimeMetadata struct {
   757  	CreationTimestamp Timestamp `json:"creationTimestamp"`
   758  }
   759  
   760  type RuntimePage struct {
   761  	Data       []*Runtime `json:"data"`
   762  	PageInfo   *PageInfo  `json:"pageInfo"`
   763  	TotalCount int        `json:"totalCount"`
   764  }
   765  
   766  func (RuntimePage) IsPageable() {}
   767  
   768  type RuntimeRegisterInput struct {
   769  	// **Validation:**  Up to 36 characters long. Cannot start with a digit. The characters allowed in names are: digits (0-9), lower case letters (a-z),-, and .
   770  	Name string `json:"name"`
   771  	// **Validation:**  max=2000
   772  	Description *string `json:"description"`
   773  	// **Validation:** key: required, alphanumeric with underscore
   774  	Labels               Labels                  `json:"labels"`
   775  	Webhooks             []*WebhookInput         `json:"webhooks"`
   776  	StatusCondition      *RuntimeStatusCondition `json:"statusCondition"`
   777  	ApplicationNamespace *string                 `json:"applicationNamespace"`
   778  }
   779  
   780  type RuntimeStatus struct {
   781  	Condition RuntimeStatusCondition `json:"condition"`
   782  	Timestamp Timestamp              `json:"timestamp"`
   783  }
   784  
   785  type RuntimeSystemAuth struct {
   786  	ID                string                   `json:"id"`
   787  	Auth              *Auth                    `json:"auth"`
   788  	Type              *SystemAuthReferenceType `json:"type"`
   789  	TenantID          *string                  `json:"tenantId"`
   790  	ReferenceObjectID *string                  `json:"referenceObjectId"`
   791  }
   792  
   793  func (RuntimeSystemAuth) IsSystemAuth() {}
   794  
   795  type RuntimeUpdateInput struct {
   796  	// **Validation:**  Up to 36 characters long. Cannot start with a digit. The characters allowed in names are: digits (0-9), lower case letters (a-z),-, and .
   797  	Name string `json:"name"`
   798  	// **Validation:**  max=2000
   799  	Description *string `json:"description"`
   800  	// **Validation:** key: required, alphanumeric with underscore
   801  	Labels               Labels                  `json:"labels"`
   802  	StatusCondition      *RuntimeStatusCondition `json:"statusCondition"`
   803  	ApplicationNamespace *string                 `json:"applicationNamespace"`
   804  }
   805  
   806  type SystemAuthUpdateInput struct {
   807  	Auth *AuthInput `json:"auth"`
   808  }
   809  
   810  type TemplateValueInput struct {
   811  	// **Validation:**  Up to 36 characters long. Cannot start with a digit. The characters allowed in names are: digits (0-9), lower case letters (a-z),-, and .
   812  	Placeholder string `json:"placeholder"`
   813  	Value       string `json:"value"`
   814  }
   815  
   816  type TenantAccess struct {
   817  	TenantID     string                 `json:"tenantID"`
   818  	ResourceType TenantAccessObjectType `json:"resourceType"`
   819  	ResourceID   string                 `json:"resourceID"`
   820  	Owner        bool                   `json:"owner"`
   821  }
   822  
   823  type TenantAccessInput struct {
   824  	TenantID     string                 `json:"tenantID"`
   825  	ResourceType TenantAccessObjectType `json:"resourceType"`
   826  	ResourceID   string                 `json:"resourceID"`
   827  	Owner        bool                   `json:"owner"`
   828  }
   829  
   830  type TenantBusinessType struct {
   831  	ID   string `json:"id"`
   832  	Code string `json:"code"`
   833  	Name string `json:"name"`
   834  }
   835  
   836  type TenantPage struct {
   837  	Data       []*Tenant `json:"data"`
   838  	PageInfo   *PageInfo `json:"pageInfo"`
   839  	TotalCount int       `json:"totalCount"`
   840  }
   841  
   842  func (TenantPage) IsPageable() {}
   843  
   844  type Version struct {
   845  	// for example 4.6
   846  	Value      string `json:"value"`
   847  	Deprecated *bool  `json:"deprecated"`
   848  	// for example 4.5
   849  	DeprecatedSince *string `json:"deprecatedSince"`
   850  	// if true, will be removed in the next version
   851  	ForRemoval *bool `json:"forRemoval"`
   852  }
   853  
   854  type VersionInput struct {
   855  	// **Validation:** max=256
   856  	Value      string `json:"value"`
   857  	Deprecated *bool  `json:"deprecated"`
   858  	// **Validation:** max=256
   859  	DeprecatedSince *string `json:"deprecatedSince"`
   860  	ForRemoval      *bool   `json:"forRemoval"`
   861  }
   862  
   863  type Viewer struct {
   864  	ID   string     `json:"id"`
   865  	Type ViewerType `json:"type"`
   866  }
   867  
   868  type Webhook struct {
   869  	ID                    string       `json:"id"`
   870  	ApplicationID         *string      `json:"applicationID"`
   871  	ApplicationTemplateID *string      `json:"applicationTemplateID"`
   872  	RuntimeID             *string      `json:"runtimeID"`
   873  	IntegrationSystemID   *string      `json:"integrationSystemID"`
   874  	FormationTemplateID   *string      `json:"formationTemplateID"`
   875  	Type                  WebhookType  `json:"type"`
   876  	Mode                  *WebhookMode `json:"mode"`
   877  	CorrelationIDKey      *string      `json:"correlationIdKey"`
   878  	RetryInterval         *int         `json:"retryInterval"`
   879  	Timeout               *int         `json:"timeout"`
   880  	URL                   *string      `json:"url"`
   881  	Auth                  *Auth        `json:"auth"`
   882  	URLTemplate           *string      `json:"urlTemplate"`
   883  	InputTemplate         *string      `json:"inputTemplate"`
   884  	HeaderTemplate        *string      `json:"headerTemplate"`
   885  	OutputTemplate        *string      `json:"outputTemplate"`
   886  	StatusTemplate        *string      `json:"statusTemplate"`
   887  	CreatedAt             *Timestamp   `json:"createdAt"`
   888  }
   889  
   890  type WebhookInput struct {
   891  	Type WebhookType `json:"type"`
   892  	// **Validation:** valid URL, max=256
   893  	URL              *string      `json:"url"`
   894  	Auth             *AuthInput   `json:"auth"`
   895  	Mode             *WebhookMode `json:"mode"`
   896  	Version          *string      `json:"version"`
   897  	CorrelationIDKey *string      `json:"correlationIdKey"`
   898  	RetryInterval    *int         `json:"retryInterval"`
   899  	Timeout          *int         `json:"timeout"`
   900  	URLTemplate      *string      `json:"urlTemplate"`
   901  	InputTemplate    *string      `json:"inputTemplate"`
   902  	HeaderTemplate   *string      `json:"headerTemplate"`
   903  	OutputTemplate   *string      `json:"outputTemplate"`
   904  	StatusTemplate   *string      `json:"statusTemplate"`
   905  }
   906  
   907  type APISpecType string
   908  
   909  const (
   910  	APISpecTypeOdata   APISpecType = "ODATA"
   911  	APISpecTypeOpenAPI APISpecType = "OPEN_API"
   912  )
   913  
   914  var AllAPISpecType = []APISpecType{
   915  	APISpecTypeOdata,
   916  	APISpecTypeOpenAPI,
   917  }
   918  
   919  func (e APISpecType) IsValid() bool {
   920  	switch e {
   921  	case APISpecTypeOdata, APISpecTypeOpenAPI:
   922  		return true
   923  	}
   924  	return false
   925  }
   926  
   927  func (e APISpecType) String() string {
   928  	return string(e)
   929  }
   930  
   931  func (e *APISpecType) UnmarshalGQL(v interface{}) error {
   932  	str, ok := v.(string)
   933  	if !ok {
   934  		return fmt.Errorf("enums must be strings")
   935  	}
   936  
   937  	*e = APISpecType(str)
   938  	if !e.IsValid() {
   939  		return fmt.Errorf("%s is not a valid APISpecType", str)
   940  	}
   941  	return nil
   942  }
   943  
   944  func (e APISpecType) MarshalGQL(w io.Writer) {
   945  	fmt.Fprint(w, strconv.Quote(e.String()))
   946  }
   947  
   948  type ApplicationStatusCondition string
   949  
   950  const (
   951  	ApplicationStatusConditionInitial         ApplicationStatusCondition = "INITIAL"
   952  	ApplicationStatusConditionConnected       ApplicationStatusCondition = "CONNECTED"
   953  	ApplicationStatusConditionFailed          ApplicationStatusCondition = "FAILED"
   954  	ApplicationStatusConditionCreating        ApplicationStatusCondition = "CREATING"
   955  	ApplicationStatusConditionCreateFailed    ApplicationStatusCondition = "CREATE_FAILED"
   956  	ApplicationStatusConditionCreateSucceeded ApplicationStatusCondition = "CREATE_SUCCEEDED"
   957  	ApplicationStatusConditionUpdating        ApplicationStatusCondition = "UPDATING"
   958  	ApplicationStatusConditionUpdateFailed    ApplicationStatusCondition = "UPDATE_FAILED"
   959  	ApplicationStatusConditionUpdateSucceeded ApplicationStatusCondition = "UPDATE_SUCCEEDED"
   960  	ApplicationStatusConditionDeleting        ApplicationStatusCondition = "DELETING"
   961  	ApplicationStatusConditionDeleteFailed    ApplicationStatusCondition = "DELETE_FAILED"
   962  	ApplicationStatusConditionDeleteSucceeded ApplicationStatusCondition = "DELETE_SUCCEEDED"
   963  	ApplicationStatusConditionUnpairing       ApplicationStatusCondition = "UNPAIRING"
   964  	ApplicationStatusConditionUnpairFailed    ApplicationStatusCondition = "UNPAIR_FAILED"
   965  )
   966  
   967  var AllApplicationStatusCondition = []ApplicationStatusCondition{
   968  	ApplicationStatusConditionInitial,
   969  	ApplicationStatusConditionConnected,
   970  	ApplicationStatusConditionFailed,
   971  	ApplicationStatusConditionCreating,
   972  	ApplicationStatusConditionCreateFailed,
   973  	ApplicationStatusConditionCreateSucceeded,
   974  	ApplicationStatusConditionUpdating,
   975  	ApplicationStatusConditionUpdateFailed,
   976  	ApplicationStatusConditionUpdateSucceeded,
   977  	ApplicationStatusConditionDeleting,
   978  	ApplicationStatusConditionDeleteFailed,
   979  	ApplicationStatusConditionDeleteSucceeded,
   980  	ApplicationStatusConditionUnpairing,
   981  	ApplicationStatusConditionUnpairFailed,
   982  }
   983  
   984  func (e ApplicationStatusCondition) IsValid() bool {
   985  	switch e {
   986  	case ApplicationStatusConditionInitial, ApplicationStatusConditionConnected, ApplicationStatusConditionFailed, ApplicationStatusConditionCreating, ApplicationStatusConditionCreateFailed, ApplicationStatusConditionCreateSucceeded, ApplicationStatusConditionUpdating, ApplicationStatusConditionUpdateFailed, ApplicationStatusConditionUpdateSucceeded, ApplicationStatusConditionDeleting, ApplicationStatusConditionDeleteFailed, ApplicationStatusConditionDeleteSucceeded, ApplicationStatusConditionUnpairing, ApplicationStatusConditionUnpairFailed:
   987  		return true
   988  	}
   989  	return false
   990  }
   991  
   992  func (e ApplicationStatusCondition) String() string {
   993  	return string(e)
   994  }
   995  
   996  func (e *ApplicationStatusCondition) UnmarshalGQL(v interface{}) error {
   997  	str, ok := v.(string)
   998  	if !ok {
   999  		return fmt.Errorf("enums must be strings")
  1000  	}
  1001  
  1002  	*e = ApplicationStatusCondition(str)
  1003  	if !e.IsValid() {
  1004  		return fmt.Errorf("%s is not a valid ApplicationStatusCondition", str)
  1005  	}
  1006  	return nil
  1007  }
  1008  
  1009  func (e ApplicationStatusCondition) MarshalGQL(w io.Writer) {
  1010  	fmt.Fprint(w, strconv.Quote(e.String()))
  1011  }
  1012  
  1013  type ApplicationTemplateAccessLevel string
  1014  
  1015  const (
  1016  	ApplicationTemplateAccessLevelGlobal ApplicationTemplateAccessLevel = "GLOBAL"
  1017  )
  1018  
  1019  var AllApplicationTemplateAccessLevel = []ApplicationTemplateAccessLevel{
  1020  	ApplicationTemplateAccessLevelGlobal,
  1021  }
  1022  
  1023  func (e ApplicationTemplateAccessLevel) IsValid() bool {
  1024  	switch e {
  1025  	case ApplicationTemplateAccessLevelGlobal:
  1026  		return true
  1027  	}
  1028  	return false
  1029  }
  1030  
  1031  func (e ApplicationTemplateAccessLevel) String() string {
  1032  	return string(e)
  1033  }
  1034  
  1035  func (e *ApplicationTemplateAccessLevel) UnmarshalGQL(v interface{}) error {
  1036  	str, ok := v.(string)
  1037  	if !ok {
  1038  		return fmt.Errorf("enums must be strings")
  1039  	}
  1040  
  1041  	*e = ApplicationTemplateAccessLevel(str)
  1042  	if !e.IsValid() {
  1043  		return fmt.Errorf("%s is not a valid ApplicationTemplateAccessLevel", str)
  1044  	}
  1045  	return nil
  1046  }
  1047  
  1048  func (e ApplicationTemplateAccessLevel) MarshalGQL(w io.Writer) {
  1049  	fmt.Fprint(w, strconv.Quote(e.String()))
  1050  }
  1051  
  1052  type ArtifactType string
  1053  
  1054  const (
  1055  	ArtifactTypeSubscription        ArtifactType = "SUBSCRIPTION"
  1056  	ArtifactTypeServiceInstance     ArtifactType = "SERVICE_INSTANCE"
  1057  	ArtifactTypeEnvironmentInstance ArtifactType = "ENVIRONMENT_INSTANCE"
  1058  )
  1059  
  1060  var AllArtifactType = []ArtifactType{
  1061  	ArtifactTypeSubscription,
  1062  	ArtifactTypeServiceInstance,
  1063  	ArtifactTypeEnvironmentInstance,
  1064  }
  1065  
  1066  func (e ArtifactType) IsValid() bool {
  1067  	switch e {
  1068  	case ArtifactTypeSubscription, ArtifactTypeServiceInstance, ArtifactTypeEnvironmentInstance:
  1069  		return true
  1070  	}
  1071  	return false
  1072  }
  1073  
  1074  func (e ArtifactType) String() string {
  1075  	return string(e)
  1076  }
  1077  
  1078  func (e *ArtifactType) UnmarshalGQL(v interface{}) error {
  1079  	str, ok := v.(string)
  1080  	if !ok {
  1081  		return fmt.Errorf("enums must be strings")
  1082  	}
  1083  
  1084  	*e = ArtifactType(str)
  1085  	if !e.IsValid() {
  1086  		return fmt.Errorf("%s is not a valid ArtifactType", str)
  1087  	}
  1088  	return nil
  1089  }
  1090  
  1091  func (e ArtifactType) MarshalGQL(w io.Writer) {
  1092  	fmt.Fprint(w, strconv.Quote(e.String()))
  1093  }
  1094  
  1095  type BundleInstanceAuthSetStatusConditionInput string
  1096  
  1097  const (
  1098  	BundleInstanceAuthSetStatusConditionInputSucceeded BundleInstanceAuthSetStatusConditionInput = "SUCCEEDED"
  1099  	BundleInstanceAuthSetStatusConditionInputFailed    BundleInstanceAuthSetStatusConditionInput = "FAILED"
  1100  )
  1101  
  1102  var AllBundleInstanceAuthSetStatusConditionInput = []BundleInstanceAuthSetStatusConditionInput{
  1103  	BundleInstanceAuthSetStatusConditionInputSucceeded,
  1104  	BundleInstanceAuthSetStatusConditionInputFailed,
  1105  }
  1106  
  1107  func (e BundleInstanceAuthSetStatusConditionInput) IsValid() bool {
  1108  	switch e {
  1109  	case BundleInstanceAuthSetStatusConditionInputSucceeded, BundleInstanceAuthSetStatusConditionInputFailed:
  1110  		return true
  1111  	}
  1112  	return false
  1113  }
  1114  
  1115  func (e BundleInstanceAuthSetStatusConditionInput) String() string {
  1116  	return string(e)
  1117  }
  1118  
  1119  func (e *BundleInstanceAuthSetStatusConditionInput) UnmarshalGQL(v interface{}) error {
  1120  	str, ok := v.(string)
  1121  	if !ok {
  1122  		return fmt.Errorf("enums must be strings")
  1123  	}
  1124  
  1125  	*e = BundleInstanceAuthSetStatusConditionInput(str)
  1126  	if !e.IsValid() {
  1127  		return fmt.Errorf("%s is not a valid BundleInstanceAuthSetStatusConditionInput", str)
  1128  	}
  1129  	return nil
  1130  }
  1131  
  1132  func (e BundleInstanceAuthSetStatusConditionInput) MarshalGQL(w io.Writer) {
  1133  	fmt.Fprint(w, strconv.Quote(e.String()))
  1134  }
  1135  
  1136  type BundleInstanceAuthStatusCondition string
  1137  
  1138  const (
  1139  	// When creating, before Application sets the credentials
  1140  	BundleInstanceAuthStatusConditionPending   BundleInstanceAuthStatusCondition = "PENDING"
  1141  	BundleInstanceAuthStatusConditionSucceeded BundleInstanceAuthStatusCondition = "SUCCEEDED"
  1142  	BundleInstanceAuthStatusConditionFailed    BundleInstanceAuthStatusCondition = "FAILED"
  1143  	// When Runtime requests deletion and Application has to revoke the credentials
  1144  	BundleInstanceAuthStatusConditionUnused BundleInstanceAuthStatusCondition = "UNUSED"
  1145  )
  1146  
  1147  var AllBundleInstanceAuthStatusCondition = []BundleInstanceAuthStatusCondition{
  1148  	BundleInstanceAuthStatusConditionPending,
  1149  	BundleInstanceAuthStatusConditionSucceeded,
  1150  	BundleInstanceAuthStatusConditionFailed,
  1151  	BundleInstanceAuthStatusConditionUnused,
  1152  }
  1153  
  1154  func (e BundleInstanceAuthStatusCondition) IsValid() bool {
  1155  	switch e {
  1156  	case BundleInstanceAuthStatusConditionPending, BundleInstanceAuthStatusConditionSucceeded, BundleInstanceAuthStatusConditionFailed, BundleInstanceAuthStatusConditionUnused:
  1157  		return true
  1158  	}
  1159  	return false
  1160  }
  1161  
  1162  func (e BundleInstanceAuthStatusCondition) String() string {
  1163  	return string(e)
  1164  }
  1165  
  1166  func (e *BundleInstanceAuthStatusCondition) UnmarshalGQL(v interface{}) error {
  1167  	str, ok := v.(string)
  1168  	if !ok {
  1169  		return fmt.Errorf("enums must be strings")
  1170  	}
  1171  
  1172  	*e = BundleInstanceAuthStatusCondition(str)
  1173  	if !e.IsValid() {
  1174  		return fmt.Errorf("%s is not a valid BundleInstanceAuthStatusCondition", str)
  1175  	}
  1176  	return nil
  1177  }
  1178  
  1179  func (e BundleInstanceAuthStatusCondition) MarshalGQL(w io.Writer) {
  1180  	fmt.Fprint(w, strconv.Quote(e.String()))
  1181  }
  1182  
  1183  type ConstraintScope string
  1184  
  1185  const (
  1186  	ConstraintScopeGlobal        ConstraintScope = "GLOBAL"
  1187  	ConstraintScopeFormationType ConstraintScope = "FORMATION_TYPE"
  1188  )
  1189  
  1190  var AllConstraintScope = []ConstraintScope{
  1191  	ConstraintScopeGlobal,
  1192  	ConstraintScopeFormationType,
  1193  }
  1194  
  1195  func (e ConstraintScope) IsValid() bool {
  1196  	switch e {
  1197  	case ConstraintScopeGlobal, ConstraintScopeFormationType:
  1198  		return true
  1199  	}
  1200  	return false
  1201  }
  1202  
  1203  func (e ConstraintScope) String() string {
  1204  	return string(e)
  1205  }
  1206  
  1207  func (e *ConstraintScope) UnmarshalGQL(v interface{}) error {
  1208  	str, ok := v.(string)
  1209  	if !ok {
  1210  		return fmt.Errorf("enums must be strings")
  1211  	}
  1212  
  1213  	*e = ConstraintScope(str)
  1214  	if !e.IsValid() {
  1215  		return fmt.Errorf("%s is not a valid ConstraintScope", str)
  1216  	}
  1217  	return nil
  1218  }
  1219  
  1220  func (e ConstraintScope) MarshalGQL(w io.Writer) {
  1221  	fmt.Fprint(w, strconv.Quote(e.String()))
  1222  }
  1223  
  1224  type ConstraintType string
  1225  
  1226  const (
  1227  	ConstraintTypePre  ConstraintType = "PRE"
  1228  	ConstraintTypePost ConstraintType = "POST"
  1229  	ConstraintTypeUI   ConstraintType = "UI"
  1230  )
  1231  
  1232  var AllConstraintType = []ConstraintType{
  1233  	ConstraintTypePre,
  1234  	ConstraintTypePost,
  1235  	ConstraintTypeUI,
  1236  }
  1237  
  1238  func (e ConstraintType) IsValid() bool {
  1239  	switch e {
  1240  	case ConstraintTypePre, ConstraintTypePost, ConstraintTypeUI:
  1241  		return true
  1242  	}
  1243  	return false
  1244  }
  1245  
  1246  func (e ConstraintType) String() string {
  1247  	return string(e)
  1248  }
  1249  
  1250  func (e *ConstraintType) UnmarshalGQL(v interface{}) error {
  1251  	str, ok := v.(string)
  1252  	if !ok {
  1253  		return fmt.Errorf("enums must be strings")
  1254  	}
  1255  
  1256  	*e = ConstraintType(str)
  1257  	if !e.IsValid() {
  1258  		return fmt.Errorf("%s is not a valid ConstraintType", str)
  1259  	}
  1260  	return nil
  1261  }
  1262  
  1263  func (e ConstraintType) MarshalGQL(w io.Writer) {
  1264  	fmt.Fprint(w, strconv.Quote(e.String()))
  1265  }
  1266  
  1267  type DocumentFormat string
  1268  
  1269  const (
  1270  	DocumentFormatMarkdown DocumentFormat = "MARKDOWN"
  1271  )
  1272  
  1273  var AllDocumentFormat = []DocumentFormat{
  1274  	DocumentFormatMarkdown,
  1275  }
  1276  
  1277  func (e DocumentFormat) IsValid() bool {
  1278  	switch e {
  1279  	case DocumentFormatMarkdown:
  1280  		return true
  1281  	}
  1282  	return false
  1283  }
  1284  
  1285  func (e DocumentFormat) String() string {
  1286  	return string(e)
  1287  }
  1288  
  1289  func (e *DocumentFormat) UnmarshalGQL(v interface{}) error {
  1290  	str, ok := v.(string)
  1291  	if !ok {
  1292  		return fmt.Errorf("enums must be strings")
  1293  	}
  1294  
  1295  	*e = DocumentFormat(str)
  1296  	if !e.IsValid() {
  1297  		return fmt.Errorf("%s is not a valid DocumentFormat", str)
  1298  	}
  1299  	return nil
  1300  }
  1301  
  1302  func (e DocumentFormat) MarshalGQL(w io.Writer) {
  1303  	fmt.Fprint(w, strconv.Quote(e.String()))
  1304  }
  1305  
  1306  type EventSpecType string
  1307  
  1308  const (
  1309  	EventSpecTypeAsyncAPI EventSpecType = "ASYNC_API"
  1310  )
  1311  
  1312  var AllEventSpecType = []EventSpecType{
  1313  	EventSpecTypeAsyncAPI,
  1314  }
  1315  
  1316  func (e EventSpecType) IsValid() bool {
  1317  	switch e {
  1318  	case EventSpecTypeAsyncAPI:
  1319  		return true
  1320  	}
  1321  	return false
  1322  }
  1323  
  1324  func (e EventSpecType) String() string {
  1325  	return string(e)
  1326  }
  1327  
  1328  func (e *EventSpecType) UnmarshalGQL(v interface{}) error {
  1329  	str, ok := v.(string)
  1330  	if !ok {
  1331  		return fmt.Errorf("enums must be strings")
  1332  	}
  1333  
  1334  	*e = EventSpecType(str)
  1335  	if !e.IsValid() {
  1336  		return fmt.Errorf("%s is not a valid EventSpecType", str)
  1337  	}
  1338  	return nil
  1339  }
  1340  
  1341  func (e EventSpecType) MarshalGQL(w io.Writer) {
  1342  	fmt.Fprint(w, strconv.Quote(e.String()))
  1343  }
  1344  
  1345  type EventType string
  1346  
  1347  const (
  1348  	EventTypeNewApplication     EventType = "NEW_APPLICATION"
  1349  	EventTypeNewSingleTenant    EventType = "NEW_SINGLE_TENANT"
  1350  	EventTypeNewMultipleTenants EventType = "NEW_MULTIPLE_TENANTS"
  1351  )
  1352  
  1353  var AllEventType = []EventType{
  1354  	EventTypeNewApplication,
  1355  	EventTypeNewSingleTenant,
  1356  	EventTypeNewMultipleTenants,
  1357  }
  1358  
  1359  func (e EventType) IsValid() bool {
  1360  	switch e {
  1361  	case EventTypeNewApplication, EventTypeNewSingleTenant, EventTypeNewMultipleTenants:
  1362  		return true
  1363  	}
  1364  	return false
  1365  }
  1366  
  1367  func (e EventType) String() string {
  1368  	return string(e)
  1369  }
  1370  
  1371  func (e *EventType) UnmarshalGQL(v interface{}) error {
  1372  	str, ok := v.(string)
  1373  	if !ok {
  1374  		return fmt.Errorf("enums must be strings")
  1375  	}
  1376  
  1377  	*e = EventType(str)
  1378  	if !e.IsValid() {
  1379  		return fmt.Errorf("%s is not a valid EventType", str)
  1380  	}
  1381  	return nil
  1382  }
  1383  
  1384  func (e EventType) MarshalGQL(w io.Writer) {
  1385  	fmt.Fprint(w, strconv.Quote(e.String()))
  1386  }
  1387  
  1388  type FetchMode string
  1389  
  1390  const (
  1391  	FetchModeSingle FetchMode = "SINGLE"
  1392  	FetchModeBundle FetchMode = "BUNDLE"
  1393  	FetchModeIndex  FetchMode = "INDEX"
  1394  )
  1395  
  1396  var AllFetchMode = []FetchMode{
  1397  	FetchModeSingle,
  1398  	FetchModeBundle,
  1399  	FetchModeIndex,
  1400  }
  1401  
  1402  func (e FetchMode) IsValid() bool {
  1403  	switch e {
  1404  	case FetchModeSingle, FetchModeBundle, FetchModeIndex:
  1405  		return true
  1406  	}
  1407  	return false
  1408  }
  1409  
  1410  func (e FetchMode) String() string {
  1411  	return string(e)
  1412  }
  1413  
  1414  func (e *FetchMode) UnmarshalGQL(v interface{}) error {
  1415  	str, ok := v.(string)
  1416  	if !ok {
  1417  		return fmt.Errorf("enums must be strings")
  1418  	}
  1419  
  1420  	*e = FetchMode(str)
  1421  	if !e.IsValid() {
  1422  		return fmt.Errorf("%s is not a valid FetchMode", str)
  1423  	}
  1424  	return nil
  1425  }
  1426  
  1427  func (e FetchMode) MarshalGQL(w io.Writer) {
  1428  	fmt.Fprint(w, strconv.Quote(e.String()))
  1429  }
  1430  
  1431  type FetchRequestStatusCondition string
  1432  
  1433  const (
  1434  	FetchRequestStatusConditionInitial   FetchRequestStatusCondition = "INITIAL"
  1435  	FetchRequestStatusConditionSucceeded FetchRequestStatusCondition = "SUCCEEDED"
  1436  	FetchRequestStatusConditionFailed    FetchRequestStatusCondition = "FAILED"
  1437  )
  1438  
  1439  var AllFetchRequestStatusCondition = []FetchRequestStatusCondition{
  1440  	FetchRequestStatusConditionInitial,
  1441  	FetchRequestStatusConditionSucceeded,
  1442  	FetchRequestStatusConditionFailed,
  1443  }
  1444  
  1445  func (e FetchRequestStatusCondition) IsValid() bool {
  1446  	switch e {
  1447  	case FetchRequestStatusConditionInitial, FetchRequestStatusConditionSucceeded, FetchRequestStatusConditionFailed:
  1448  		return true
  1449  	}
  1450  	return false
  1451  }
  1452  
  1453  func (e FetchRequestStatusCondition) String() string {
  1454  	return string(e)
  1455  }
  1456  
  1457  func (e *FetchRequestStatusCondition) UnmarshalGQL(v interface{}) error {
  1458  	str, ok := v.(string)
  1459  	if !ok {
  1460  		return fmt.Errorf("enums must be strings")
  1461  	}
  1462  
  1463  	*e = FetchRequestStatusCondition(str)
  1464  	if !e.IsValid() {
  1465  		return fmt.Errorf("%s is not a valid FetchRequestStatusCondition", str)
  1466  	}
  1467  	return nil
  1468  }
  1469  
  1470  func (e FetchRequestStatusCondition) MarshalGQL(w io.Writer) {
  1471  	fmt.Fprint(w, strconv.Quote(e.String()))
  1472  }
  1473  
  1474  type FormationAssignmentType string
  1475  
  1476  const (
  1477  	FormationAssignmentTypeApplication    FormationAssignmentType = "APPLICATION"
  1478  	FormationAssignmentTypeRuntime        FormationAssignmentType = "RUNTIME"
  1479  	FormationAssignmentTypeRuntimeContext FormationAssignmentType = "RUNTIME_CONTEXT"
  1480  )
  1481  
  1482  var AllFormationAssignmentType = []FormationAssignmentType{
  1483  	FormationAssignmentTypeApplication,
  1484  	FormationAssignmentTypeRuntime,
  1485  	FormationAssignmentTypeRuntimeContext,
  1486  }
  1487  
  1488  func (e FormationAssignmentType) IsValid() bool {
  1489  	switch e {
  1490  	case FormationAssignmentTypeApplication, FormationAssignmentTypeRuntime, FormationAssignmentTypeRuntimeContext:
  1491  		return true
  1492  	}
  1493  	return false
  1494  }
  1495  
  1496  func (e FormationAssignmentType) String() string {
  1497  	return string(e)
  1498  }
  1499  
  1500  func (e *FormationAssignmentType) UnmarshalGQL(v interface{}) error {
  1501  	str, ok := v.(string)
  1502  	if !ok {
  1503  		return fmt.Errorf("enums must be strings")
  1504  	}
  1505  
  1506  	*e = FormationAssignmentType(str)
  1507  	if !e.IsValid() {
  1508  		return fmt.Errorf("%s is not a valid FormationAssignmentType", str)
  1509  	}
  1510  	return nil
  1511  }
  1512  
  1513  func (e FormationAssignmentType) MarshalGQL(w io.Writer) {
  1514  	fmt.Fprint(w, strconv.Quote(e.String()))
  1515  }
  1516  
  1517  type FormationObjectType string
  1518  
  1519  const (
  1520  	FormationObjectTypeApplication    FormationObjectType = "APPLICATION"
  1521  	FormationObjectTypeTenant         FormationObjectType = "TENANT"
  1522  	FormationObjectTypeRuntime        FormationObjectType = "RUNTIME"
  1523  	FormationObjectTypeRuntimeContext FormationObjectType = "RUNTIME_CONTEXT"
  1524  )
  1525  
  1526  var AllFormationObjectType = []FormationObjectType{
  1527  	FormationObjectTypeApplication,
  1528  	FormationObjectTypeTenant,
  1529  	FormationObjectTypeRuntime,
  1530  	FormationObjectTypeRuntimeContext,
  1531  }
  1532  
  1533  func (e FormationObjectType) IsValid() bool {
  1534  	switch e {
  1535  	case FormationObjectTypeApplication, FormationObjectTypeTenant, FormationObjectTypeRuntime, FormationObjectTypeRuntimeContext:
  1536  		return true
  1537  	}
  1538  	return false
  1539  }
  1540  
  1541  func (e FormationObjectType) String() string {
  1542  	return string(e)
  1543  }
  1544  
  1545  func (e *FormationObjectType) UnmarshalGQL(v interface{}) error {
  1546  	str, ok := v.(string)
  1547  	if !ok {
  1548  		return fmt.Errorf("enums must be strings")
  1549  	}
  1550  
  1551  	*e = FormationObjectType(str)
  1552  	if !e.IsValid() {
  1553  		return fmt.Errorf("%s is not a valid FormationObjectType", str)
  1554  	}
  1555  	return nil
  1556  }
  1557  
  1558  func (e FormationObjectType) MarshalGQL(w io.Writer) {
  1559  	fmt.Fprint(w, strconv.Quote(e.String()))
  1560  }
  1561  
  1562  type FormationStatusCondition string
  1563  
  1564  const (
  1565  	FormationStatusConditionInProgress FormationStatusCondition = "IN_PROGRESS"
  1566  	FormationStatusConditionError      FormationStatusCondition = "ERROR"
  1567  	FormationStatusConditionReady      FormationStatusCondition = "READY"
  1568  )
  1569  
  1570  var AllFormationStatusCondition = []FormationStatusCondition{
  1571  	FormationStatusConditionInProgress,
  1572  	FormationStatusConditionError,
  1573  	FormationStatusConditionReady,
  1574  }
  1575  
  1576  func (e FormationStatusCondition) IsValid() bool {
  1577  	switch e {
  1578  	case FormationStatusConditionInProgress, FormationStatusConditionError, FormationStatusConditionReady:
  1579  		return true
  1580  	}
  1581  	return false
  1582  }
  1583  
  1584  func (e FormationStatusCondition) String() string {
  1585  	return string(e)
  1586  }
  1587  
  1588  func (e *FormationStatusCondition) UnmarshalGQL(v interface{}) error {
  1589  	str, ok := v.(string)
  1590  	if !ok {
  1591  		return fmt.Errorf("enums must be strings")
  1592  	}
  1593  
  1594  	*e = FormationStatusCondition(str)
  1595  	if !e.IsValid() {
  1596  		return fmt.Errorf("%s is not a valid FormationStatusCondition", str)
  1597  	}
  1598  	return nil
  1599  }
  1600  
  1601  func (e FormationStatusCondition) MarshalGQL(w io.Writer) {
  1602  	fmt.Fprint(w, strconv.Quote(e.String()))
  1603  }
  1604  
  1605  type HealthCheckStatusCondition string
  1606  
  1607  const (
  1608  	HealthCheckStatusConditionSucceeded HealthCheckStatusCondition = "SUCCEEDED"
  1609  	HealthCheckStatusConditionFailed    HealthCheckStatusCondition = "FAILED"
  1610  )
  1611  
  1612  var AllHealthCheckStatusCondition = []HealthCheckStatusCondition{
  1613  	HealthCheckStatusConditionSucceeded,
  1614  	HealthCheckStatusConditionFailed,
  1615  }
  1616  
  1617  func (e HealthCheckStatusCondition) IsValid() bool {
  1618  	switch e {
  1619  	case HealthCheckStatusConditionSucceeded, HealthCheckStatusConditionFailed:
  1620  		return true
  1621  	}
  1622  	return false
  1623  }
  1624  
  1625  func (e HealthCheckStatusCondition) String() string {
  1626  	return string(e)
  1627  }
  1628  
  1629  func (e *HealthCheckStatusCondition) UnmarshalGQL(v interface{}) error {
  1630  	str, ok := v.(string)
  1631  	if !ok {
  1632  		return fmt.Errorf("enums must be strings")
  1633  	}
  1634  
  1635  	*e = HealthCheckStatusCondition(str)
  1636  	if !e.IsValid() {
  1637  		return fmt.Errorf("%s is not a valid HealthCheckStatusCondition", str)
  1638  	}
  1639  	return nil
  1640  }
  1641  
  1642  func (e HealthCheckStatusCondition) MarshalGQL(w io.Writer) {
  1643  	fmt.Fprint(w, strconv.Quote(e.String()))
  1644  }
  1645  
  1646  type HealthCheckType string
  1647  
  1648  const (
  1649  	HealthCheckTypeManagementPlaneApplicationHealthcheck HealthCheckType = "MANAGEMENT_PLANE_APPLICATION_HEALTHCHECK"
  1650  )
  1651  
  1652  var AllHealthCheckType = []HealthCheckType{
  1653  	HealthCheckTypeManagementPlaneApplicationHealthcheck,
  1654  }
  1655  
  1656  func (e HealthCheckType) IsValid() bool {
  1657  	switch e {
  1658  	case HealthCheckTypeManagementPlaneApplicationHealthcheck:
  1659  		return true
  1660  	}
  1661  	return false
  1662  }
  1663  
  1664  func (e HealthCheckType) String() string {
  1665  	return string(e)
  1666  }
  1667  
  1668  func (e *HealthCheckType) UnmarshalGQL(v interface{}) error {
  1669  	str, ok := v.(string)
  1670  	if !ok {
  1671  		return fmt.Errorf("enums must be strings")
  1672  	}
  1673  
  1674  	*e = HealthCheckType(str)
  1675  	if !e.IsValid() {
  1676  		return fmt.Errorf("%s is not a valid HealthCheckType", str)
  1677  	}
  1678  	return nil
  1679  }
  1680  
  1681  func (e HealthCheckType) MarshalGQL(w io.Writer) {
  1682  	fmt.Fprint(w, strconv.Quote(e.String()))
  1683  }
  1684  
  1685  type OneTimeTokenType string
  1686  
  1687  const (
  1688  	OneTimeTokenTypeRuntime     OneTimeTokenType = "Runtime"
  1689  	OneTimeTokenTypeApplication OneTimeTokenType = "Application"
  1690  )
  1691  
  1692  var AllOneTimeTokenType = []OneTimeTokenType{
  1693  	OneTimeTokenTypeRuntime,
  1694  	OneTimeTokenTypeApplication,
  1695  }
  1696  
  1697  func (e OneTimeTokenType) IsValid() bool {
  1698  	switch e {
  1699  	case OneTimeTokenTypeRuntime, OneTimeTokenTypeApplication:
  1700  		return true
  1701  	}
  1702  	return false
  1703  }
  1704  
  1705  func (e OneTimeTokenType) String() string {
  1706  	return string(e)
  1707  }
  1708  
  1709  func (e *OneTimeTokenType) UnmarshalGQL(v interface{}) error {
  1710  	str, ok := v.(string)
  1711  	if !ok {
  1712  		return fmt.Errorf("enums must be strings")
  1713  	}
  1714  
  1715  	*e = OneTimeTokenType(str)
  1716  	if !e.IsValid() {
  1717  		return fmt.Errorf("%s is not a valid OneTimeTokenType", str)
  1718  	}
  1719  	return nil
  1720  }
  1721  
  1722  func (e OneTimeTokenType) MarshalGQL(w io.Writer) {
  1723  	fmt.Fprint(w, strconv.Quote(e.String()))
  1724  }
  1725  
  1726  type OperationMode string
  1727  
  1728  const (
  1729  	OperationModeSync  OperationMode = "SYNC"
  1730  	OperationModeAsync OperationMode = "ASYNC"
  1731  )
  1732  
  1733  var AllOperationMode = []OperationMode{
  1734  	OperationModeSync,
  1735  	OperationModeAsync,
  1736  }
  1737  
  1738  func (e OperationMode) IsValid() bool {
  1739  	switch e {
  1740  	case OperationModeSync, OperationModeAsync:
  1741  		return true
  1742  	}
  1743  	return false
  1744  }
  1745  
  1746  func (e OperationMode) String() string {
  1747  	return string(e)
  1748  }
  1749  
  1750  func (e *OperationMode) UnmarshalGQL(v interface{}) error {
  1751  	str, ok := v.(string)
  1752  	if !ok {
  1753  		return fmt.Errorf("enums must be strings")
  1754  	}
  1755  
  1756  	*e = OperationMode(str)
  1757  	if !e.IsValid() {
  1758  		return fmt.Errorf("%s is not a valid OperationMode", str)
  1759  	}
  1760  	return nil
  1761  }
  1762  
  1763  func (e OperationMode) MarshalGQL(w io.Writer) {
  1764  	fmt.Fprint(w, strconv.Quote(e.String()))
  1765  }
  1766  
  1767  type OperationType string
  1768  
  1769  const (
  1770  	OperationTypeCreate OperationType = "CREATE"
  1771  	OperationTypeUpdate OperationType = "UPDATE"
  1772  	OperationTypeDelete OperationType = "DELETE"
  1773  )
  1774  
  1775  var AllOperationType = []OperationType{
  1776  	OperationTypeCreate,
  1777  	OperationTypeUpdate,
  1778  	OperationTypeDelete,
  1779  }
  1780  
  1781  func (e OperationType) IsValid() bool {
  1782  	switch e {
  1783  	case OperationTypeCreate, OperationTypeUpdate, OperationTypeDelete:
  1784  		return true
  1785  	}
  1786  	return false
  1787  }
  1788  
  1789  func (e OperationType) String() string {
  1790  	return string(e)
  1791  }
  1792  
  1793  func (e *OperationType) UnmarshalGQL(v interface{}) error {
  1794  	str, ok := v.(string)
  1795  	if !ok {
  1796  		return fmt.Errorf("enums must be strings")
  1797  	}
  1798  
  1799  	*e = OperationType(str)
  1800  	if !e.IsValid() {
  1801  		return fmt.Errorf("%s is not a valid OperationType", str)
  1802  	}
  1803  	return nil
  1804  }
  1805  
  1806  func (e OperationType) MarshalGQL(w io.Writer) {
  1807  	fmt.Fprint(w, strconv.Quote(e.String()))
  1808  }
  1809  
  1810  type ResourceType string
  1811  
  1812  const (
  1813  	ResourceTypeApplication    ResourceType = "APPLICATION"
  1814  	ResourceTypeRuntime        ResourceType = "RUNTIME"
  1815  	ResourceTypeRuntimeContext ResourceType = "RUNTIME_CONTEXT"
  1816  	ResourceTypeTenant         ResourceType = "TENANT"
  1817  	ResourceTypeFormation      ResourceType = "FORMATION"
  1818  )
  1819  
  1820  var AllResourceType = []ResourceType{
  1821  	ResourceTypeApplication,
  1822  	ResourceTypeRuntime,
  1823  	ResourceTypeRuntimeContext,
  1824  	ResourceTypeTenant,
  1825  	ResourceTypeFormation,
  1826  }
  1827  
  1828  func (e ResourceType) IsValid() bool {
  1829  	switch e {
  1830  	case ResourceTypeApplication, ResourceTypeRuntime, ResourceTypeRuntimeContext, ResourceTypeTenant, ResourceTypeFormation:
  1831  		return true
  1832  	}
  1833  	return false
  1834  }
  1835  
  1836  func (e ResourceType) String() string {
  1837  	return string(e)
  1838  }
  1839  
  1840  func (e *ResourceType) UnmarshalGQL(v interface{}) error {
  1841  	str, ok := v.(string)
  1842  	if !ok {
  1843  		return fmt.Errorf("enums must be strings")
  1844  	}
  1845  
  1846  	*e = ResourceType(str)
  1847  	if !e.IsValid() {
  1848  		return fmt.Errorf("%s is not a valid ResourceType", str)
  1849  	}
  1850  	return nil
  1851  }
  1852  
  1853  func (e ResourceType) MarshalGQL(w io.Writer) {
  1854  	fmt.Fprint(w, strconv.Quote(e.String()))
  1855  }
  1856  
  1857  type RuntimeStatusCondition string
  1858  
  1859  const (
  1860  	RuntimeStatusConditionInitial      RuntimeStatusCondition = "INITIAL"
  1861  	RuntimeStatusConditionProvisioning RuntimeStatusCondition = "PROVISIONING"
  1862  	RuntimeStatusConditionConnected    RuntimeStatusCondition = "CONNECTED"
  1863  	RuntimeStatusConditionFailed       RuntimeStatusCondition = "FAILED"
  1864  )
  1865  
  1866  var AllRuntimeStatusCondition = []RuntimeStatusCondition{
  1867  	RuntimeStatusConditionInitial,
  1868  	RuntimeStatusConditionProvisioning,
  1869  	RuntimeStatusConditionConnected,
  1870  	RuntimeStatusConditionFailed,
  1871  }
  1872  
  1873  func (e RuntimeStatusCondition) IsValid() bool {
  1874  	switch e {
  1875  	case RuntimeStatusConditionInitial, RuntimeStatusConditionProvisioning, RuntimeStatusConditionConnected, RuntimeStatusConditionFailed:
  1876  		return true
  1877  	}
  1878  	return false
  1879  }
  1880  
  1881  func (e RuntimeStatusCondition) String() string {
  1882  	return string(e)
  1883  }
  1884  
  1885  func (e *RuntimeStatusCondition) UnmarshalGQL(v interface{}) error {
  1886  	str, ok := v.(string)
  1887  	if !ok {
  1888  		return fmt.Errorf("enums must be strings")
  1889  	}
  1890  
  1891  	*e = RuntimeStatusCondition(str)
  1892  	if !e.IsValid() {
  1893  		return fmt.Errorf("%s is not a valid RuntimeStatusCondition", str)
  1894  	}
  1895  	return nil
  1896  }
  1897  
  1898  func (e RuntimeStatusCondition) MarshalGQL(w io.Writer) {
  1899  	fmt.Fprint(w, strconv.Quote(e.String()))
  1900  }
  1901  
  1902  type SpecFormat string
  1903  
  1904  const (
  1905  	SpecFormatYaml SpecFormat = "YAML"
  1906  	SpecFormatJSON SpecFormat = "JSON"
  1907  	SpecFormatXML  SpecFormat = "XML"
  1908  )
  1909  
  1910  var AllSpecFormat = []SpecFormat{
  1911  	SpecFormatYaml,
  1912  	SpecFormatJSON,
  1913  	SpecFormatXML,
  1914  }
  1915  
  1916  func (e SpecFormat) IsValid() bool {
  1917  	switch e {
  1918  	case SpecFormatYaml, SpecFormatJSON, SpecFormatXML:
  1919  		return true
  1920  	}
  1921  	return false
  1922  }
  1923  
  1924  func (e SpecFormat) String() string {
  1925  	return string(e)
  1926  }
  1927  
  1928  func (e *SpecFormat) UnmarshalGQL(v interface{}) error {
  1929  	str, ok := v.(string)
  1930  	if !ok {
  1931  		return fmt.Errorf("enums must be strings")
  1932  	}
  1933  
  1934  	*e = SpecFormat(str)
  1935  	if !e.IsValid() {
  1936  		return fmt.Errorf("%s is not a valid SpecFormat", str)
  1937  	}
  1938  	return nil
  1939  }
  1940  
  1941  func (e SpecFormat) MarshalGQL(w io.Writer) {
  1942  	fmt.Fprint(w, strconv.Quote(e.String()))
  1943  }
  1944  
  1945  type SystemAuthReferenceType string
  1946  
  1947  const (
  1948  	SystemAuthReferenceTypeApplication       SystemAuthReferenceType = "APPLICATION"
  1949  	SystemAuthReferenceTypeRuntime           SystemAuthReferenceType = "RUNTIME"
  1950  	SystemAuthReferenceTypeIntegrationSystem SystemAuthReferenceType = "INTEGRATION_SYSTEM"
  1951  )
  1952  
  1953  var AllSystemAuthReferenceType = []SystemAuthReferenceType{
  1954  	SystemAuthReferenceTypeApplication,
  1955  	SystemAuthReferenceTypeRuntime,
  1956  	SystemAuthReferenceTypeIntegrationSystem,
  1957  }
  1958  
  1959  func (e SystemAuthReferenceType) IsValid() bool {
  1960  	switch e {
  1961  	case SystemAuthReferenceTypeApplication, SystemAuthReferenceTypeRuntime, SystemAuthReferenceTypeIntegrationSystem:
  1962  		return true
  1963  	}
  1964  	return false
  1965  }
  1966  
  1967  func (e SystemAuthReferenceType) String() string {
  1968  	return string(e)
  1969  }
  1970  
  1971  func (e *SystemAuthReferenceType) UnmarshalGQL(v interface{}) error {
  1972  	str, ok := v.(string)
  1973  	if !ok {
  1974  		return fmt.Errorf("enums must be strings")
  1975  	}
  1976  
  1977  	*e = SystemAuthReferenceType(str)
  1978  	if !e.IsValid() {
  1979  		return fmt.Errorf("%s is not a valid SystemAuthReferenceType", str)
  1980  	}
  1981  	return nil
  1982  }
  1983  
  1984  func (e SystemAuthReferenceType) MarshalGQL(w io.Writer) {
  1985  	fmt.Fprint(w, strconv.Quote(e.String()))
  1986  }
  1987  
  1988  type TargetOperation string
  1989  
  1990  const (
  1991  	TargetOperationAssignFormation                         TargetOperation = "ASSIGN_FORMATION"
  1992  	TargetOperationUnassignFormation                       TargetOperation = "UNASSIGN_FORMATION"
  1993  	TargetOperationCreateFormation                         TargetOperation = "CREATE_FORMATION"
  1994  	TargetOperationDeleteFormation                         TargetOperation = "DELETE_FORMATION"
  1995  	TargetOperationGenerateFormationAssignmentNotification TargetOperation = "GENERATE_FORMATION_ASSIGNMENT_NOTIFICATION"
  1996  	TargetOperationGenerateFormationNotification           TargetOperation = "GENERATE_FORMATION_NOTIFICATION"
  1997  	TargetOperationLoadFormations                          TargetOperation = "LOAD_FORMATIONS"
  1998  	TargetOperationSelectSystemsForFormation               TargetOperation = "SELECT_SYSTEMS_FOR_FORMATION"
  1999  	TargetOperationSendNotification                        TargetOperation = "SEND_NOTIFICATION"
  2000  	TargetOperationNotificationStatusReturned              TargetOperation = "NOTIFICATION_STATUS_RETURNED"
  2001  )
  2002  
  2003  var AllTargetOperation = []TargetOperation{
  2004  	TargetOperationAssignFormation,
  2005  	TargetOperationUnassignFormation,
  2006  	TargetOperationCreateFormation,
  2007  	TargetOperationDeleteFormation,
  2008  	TargetOperationGenerateFormationAssignmentNotification,
  2009  	TargetOperationGenerateFormationNotification,
  2010  	TargetOperationLoadFormations,
  2011  	TargetOperationSelectSystemsForFormation,
  2012  	TargetOperationSendNotification,
  2013  	TargetOperationNotificationStatusReturned,
  2014  }
  2015  
  2016  func (e TargetOperation) IsValid() bool {
  2017  	switch e {
  2018  	case TargetOperationAssignFormation, TargetOperationUnassignFormation, TargetOperationCreateFormation, TargetOperationDeleteFormation, TargetOperationGenerateFormationAssignmentNotification, TargetOperationGenerateFormationNotification, TargetOperationLoadFormations, TargetOperationSelectSystemsForFormation, TargetOperationSendNotification, TargetOperationNotificationStatusReturned:
  2019  		return true
  2020  	}
  2021  	return false
  2022  }
  2023  
  2024  func (e TargetOperation) String() string {
  2025  	return string(e)
  2026  }
  2027  
  2028  func (e *TargetOperation) UnmarshalGQL(v interface{}) error {
  2029  	str, ok := v.(string)
  2030  	if !ok {
  2031  		return fmt.Errorf("enums must be strings")
  2032  	}
  2033  
  2034  	*e = TargetOperation(str)
  2035  	if !e.IsValid() {
  2036  		return fmt.Errorf("%s is not a valid TargetOperation", str)
  2037  	}
  2038  	return nil
  2039  }
  2040  
  2041  func (e TargetOperation) MarshalGQL(w io.Writer) {
  2042  	fmt.Fprint(w, strconv.Quote(e.String()))
  2043  }
  2044  
  2045  type TenantAccessObjectType string
  2046  
  2047  const (
  2048  	TenantAccessObjectTypeApplication    TenantAccessObjectType = "APPLICATION"
  2049  	TenantAccessObjectTypeRuntime        TenantAccessObjectType = "RUNTIME"
  2050  	TenantAccessObjectTypeRuntimeContext TenantAccessObjectType = "RUNTIME_CONTEXT"
  2051  )
  2052  
  2053  var AllTenantAccessObjectType = []TenantAccessObjectType{
  2054  	TenantAccessObjectTypeApplication,
  2055  	TenantAccessObjectTypeRuntime,
  2056  	TenantAccessObjectTypeRuntimeContext,
  2057  }
  2058  
  2059  func (e TenantAccessObjectType) IsValid() bool {
  2060  	switch e {
  2061  	case TenantAccessObjectTypeApplication, TenantAccessObjectTypeRuntime, TenantAccessObjectTypeRuntimeContext:
  2062  		return true
  2063  	}
  2064  	return false
  2065  }
  2066  
  2067  func (e TenantAccessObjectType) String() string {
  2068  	return string(e)
  2069  }
  2070  
  2071  func (e *TenantAccessObjectType) UnmarshalGQL(v interface{}) error {
  2072  	str, ok := v.(string)
  2073  	if !ok {
  2074  		return fmt.Errorf("enums must be strings")
  2075  	}
  2076  
  2077  	*e = TenantAccessObjectType(str)
  2078  	if !e.IsValid() {
  2079  		return fmt.Errorf("%s is not a valid TenantAccessObjectType", str)
  2080  	}
  2081  	return nil
  2082  }
  2083  
  2084  func (e TenantAccessObjectType) MarshalGQL(w io.Writer) {
  2085  	fmt.Fprint(w, strconv.Quote(e.String()))
  2086  }
  2087  
  2088  type ViewerType string
  2089  
  2090  const (
  2091  	ViewerTypeRuntime           ViewerType = "RUNTIME"
  2092  	ViewerTypeApplication       ViewerType = "APPLICATION"
  2093  	ViewerTypeIntegrationSystem ViewerType = "INTEGRATION_SYSTEM"
  2094  	ViewerTypeUser              ViewerType = "USER"
  2095  )
  2096  
  2097  var AllViewerType = []ViewerType{
  2098  	ViewerTypeRuntime,
  2099  	ViewerTypeApplication,
  2100  	ViewerTypeIntegrationSystem,
  2101  	ViewerTypeUser,
  2102  }
  2103  
  2104  func (e ViewerType) IsValid() bool {
  2105  	switch e {
  2106  	case ViewerTypeRuntime, ViewerTypeApplication, ViewerTypeIntegrationSystem, ViewerTypeUser:
  2107  		return true
  2108  	}
  2109  	return false
  2110  }
  2111  
  2112  func (e ViewerType) String() string {
  2113  	return string(e)
  2114  }
  2115  
  2116  func (e *ViewerType) UnmarshalGQL(v interface{}) error {
  2117  	str, ok := v.(string)
  2118  	if !ok {
  2119  		return fmt.Errorf("enums must be strings")
  2120  	}
  2121  
  2122  	*e = ViewerType(str)
  2123  	if !e.IsValid() {
  2124  		return fmt.Errorf("%s is not a valid ViewerType", str)
  2125  	}
  2126  	return nil
  2127  }
  2128  
  2129  func (e ViewerType) MarshalGQL(w io.Writer) {
  2130  	fmt.Fprint(w, strconv.Quote(e.String()))
  2131  }
  2132  
  2133  type WebhookMode string
  2134  
  2135  const (
  2136  	WebhookModeSync          WebhookMode = "SYNC"
  2137  	WebhookModeAsync         WebhookMode = "ASYNC"
  2138  	WebhookModeAsyncCallback WebhookMode = "ASYNC_CALLBACK"
  2139  )
  2140  
  2141  var AllWebhookMode = []WebhookMode{
  2142  	WebhookModeSync,
  2143  	WebhookModeAsync,
  2144  	WebhookModeAsyncCallback,
  2145  }
  2146  
  2147  func (e WebhookMode) IsValid() bool {
  2148  	switch e {
  2149  	case WebhookModeSync, WebhookModeAsync, WebhookModeAsyncCallback:
  2150  		return true
  2151  	}
  2152  	return false
  2153  }
  2154  
  2155  func (e WebhookMode) String() string {
  2156  	return string(e)
  2157  }
  2158  
  2159  func (e *WebhookMode) UnmarshalGQL(v interface{}) error {
  2160  	str, ok := v.(string)
  2161  	if !ok {
  2162  		return fmt.Errorf("enums must be strings")
  2163  	}
  2164  
  2165  	*e = WebhookMode(str)
  2166  	if !e.IsValid() {
  2167  		return fmt.Errorf("%s is not a valid WebhookMode", str)
  2168  	}
  2169  	return nil
  2170  }
  2171  
  2172  func (e WebhookMode) MarshalGQL(w io.Writer) {
  2173  	fmt.Fprint(w, strconv.Quote(e.String()))
  2174  }
  2175  
  2176  type WebhookType string
  2177  
  2178  const (
  2179  	WebhookTypeConfigurationChanged     WebhookType = "CONFIGURATION_CHANGED"
  2180  	WebhookTypeApplicationTenantMapping WebhookType = "APPLICATION_TENANT_MAPPING"
  2181  	WebhookTypeRegisterApplication      WebhookType = "REGISTER_APPLICATION"
  2182  	WebhookTypeUnregisterApplication    WebhookType = "UNREGISTER_APPLICATION"
  2183  	WebhookTypeOpenResourceDiscovery    WebhookType = "OPEN_RESOURCE_DISCOVERY"
  2184  	WebhookTypeFormationLifecycle       WebhookType = "FORMATION_LIFECYCLE"
  2185  )
  2186  
  2187  var AllWebhookType = []WebhookType{
  2188  	WebhookTypeConfigurationChanged,
  2189  	WebhookTypeApplicationTenantMapping,
  2190  	WebhookTypeRegisterApplication,
  2191  	WebhookTypeUnregisterApplication,
  2192  	WebhookTypeOpenResourceDiscovery,
  2193  	WebhookTypeFormationLifecycle,
  2194  }
  2195  
  2196  func (e WebhookType) IsValid() bool {
  2197  	switch e {
  2198  	case WebhookTypeConfigurationChanged, WebhookTypeApplicationTenantMapping, WebhookTypeRegisterApplication, WebhookTypeUnregisterApplication, WebhookTypeOpenResourceDiscovery, WebhookTypeFormationLifecycle:
  2199  		return true
  2200  	}
  2201  	return false
  2202  }
  2203  
  2204  func (e WebhookType) String() string {
  2205  	return string(e)
  2206  }
  2207  
  2208  func (e *WebhookType) UnmarshalGQL(v interface{}) error {
  2209  	str, ok := v.(string)
  2210  	if !ok {
  2211  		return fmt.Errorf("enums must be strings")
  2212  	}
  2213  
  2214  	*e = WebhookType(str)
  2215  	if !e.IsValid() {
  2216  		return fmt.Errorf("%s is not a valid WebhookType", str)
  2217  	}
  2218  	return nil
  2219  }
  2220  
  2221  func (e WebhookType) MarshalGQL(w io.Writer) {
  2222  	fmt.Fprint(w, strconv.Quote(e.String()))
  2223  }