diff --git a/models_gen.go b/models_gen.go index 21b52c4..6075fb3 100644 --- a/models_gen.go +++ b/models_gen.go @@ -1448,6 +1448,16 @@ type GitStatus struct { Output *string `json:"output,omitempty"` } +// Requirements to perform Github App authentication +type GithubAppAttributes struct { + // Github App ID + AppID string `json:"appId"` + // ID of this github app installation + InstallationID string `json:"installationId"` + // PEM-encoded private key for this app + PrivateKey string `json:"privateKey"` +} + // a rules based mechanism to redeploy a service across a fleet of clusters type GlobalService struct { // internal id of this global service @@ -2997,6 +3007,7 @@ type PrConfigurationAttributes struct { Placeholder *string `json:"placeholder,omitempty"` Optional *bool `json:"optional,omitempty"` Condition *ConditionAttributes `json:"condition,omitempty"` + Values []*string `json:"values,omitempty"` } // declaritive spec for whether a config item is relevant given prior config @@ -3614,6 +3625,9 @@ type ScmConnectionAttributes struct { Token *string `json:"token,omitempty"` BaseURL *string `json:"baseUrl,omitempty"` APIURL *string `json:"apiUrl,omitempty"` + // id of a scm connection to use for authentication + ConnectionID *string `json:"connectionId,omitempty"` + Github *GithubAppAttributes `json:"github,omitempty"` // a ssh private key to be used for commit signing SigningPrivateKey *string `json:"signingPrivateKey,omitempty"` } @@ -5001,6 +5015,7 @@ const ( ConfigurationTypeFile ConfigurationType = "FILE" ConfigurationTypeFunction ConfigurationType = "FUNCTION" ConfigurationTypePassword ConfigurationType = "PASSWORD" + ConfigurationTypeEnum ConfigurationType = "ENUM" ) var AllConfigurationType = []ConfigurationType{ @@ -5012,11 +5027,12 @@ var AllConfigurationType = []ConfigurationType{ ConfigurationTypeFile, ConfigurationTypeFunction, ConfigurationTypePassword, + ConfigurationTypeEnum, } func (e ConfigurationType) IsValid() bool { switch e { - case ConfigurationTypeString, ConfigurationTypeInt, ConfigurationTypeBool, ConfigurationTypeDomain, ConfigurationTypeBucket, ConfigurationTypeFile, ConfigurationTypeFunction, ConfigurationTypePassword: + case ConfigurationTypeString, ConfigurationTypeInt, ConfigurationTypeBool, ConfigurationTypeDomain, ConfigurationTypeBucket, ConfigurationTypeFile, ConfigurationTypeFunction, ConfigurationTypePassword, ConfigurationTypeEnum: return true } return false diff --git a/schema/schema.graphql b/schema/schema.graphql index b66d591..496ab5f 100644 --- a/schema/schema.graphql +++ b/schema/schema.graphql @@ -3941,6 +3941,7 @@ enum ConfigurationType { FILE FUNCTION PASSWORD + ENUM } enum Operation { @@ -3997,10 +3998,27 @@ input ScmConnectionAttributes { apiUrl: String + "id of a scm connection to use for authentication" + connectionId: ID + + github: GithubAppAttributes + "a ssh private key to be used for commit signing" signingPrivateKey: String } +"Requirements to perform Github App authentication" +input GithubAppAttributes { + "Github App ID" + appId: String! + + "ID of this github app installation" + installationId: String! + + "PEM-encoded private key for this app" + privateKey: String! +} + "A way to create a self-service means of generating PRs against an IaC repo" input PrAutomationAttributes { name: String @@ -4056,6 +4074,7 @@ input PrConfigurationAttributes { placeholder: String optional: Boolean condition: ConditionAttributes + values: [String] } "attributes for declaratively specifying whether a config item is relevant given prior config"