From e26c79eca27ce6a74f1aca4d50298b48bc34c811 Mon Sep 17 00:00:00 2001 From: michaeljguarino Date: Sun, 26 May 2024 16:43:07 -0400 Subject: [PATCH] Add a few more fields to stack/stack run schemas Needed to add state management and workdir support --- client.go | 1410 +++++++++++++++++++++++++++++-------- graph/stack_model.graphql | 5 + models_gen.go | 138 +++- schema/schema.graphql | 105 ++- 4 files changed, 1345 insertions(+), 313 deletions(-) diff --git a/client.go b/client.go index ae455e7..a872ddc 100644 --- a/client.go +++ b/client.go @@ -2612,6 +2612,8 @@ type InfrastructureStackFragment struct { Configuration *StackConfigurationFragment "json:\"configuration\" graphql:\"configuration\"" Cluster *TinyClusterFragment "json:\"cluster,omitempty\" graphql:\"cluster\"" Approval *bool "json:\"approval,omitempty\" graphql:\"approval\"" + Workdir *string "json:\"workdir,omitempty\" graphql:\"workdir\"" + ManageState *bool "json:\"manageState,omitempty\" graphql:\"manageState\"" DeletedAt *string "json:\"deletedAt,omitempty\" graphql:\"deletedAt\"" Files []*StackFileFragment "json:\"files,omitempty\" graphql:\"files\"" Environment []*StackEnvironmentFragment "json:\"environment,omitempty\" graphql:\"environment\"" @@ -2670,6 +2672,18 @@ func (t *InfrastructureStackFragment) GetApproval() *bool { } return t.Approval } +func (t *InfrastructureStackFragment) GetWorkdir() *string { + if t == nil { + t = &InfrastructureStackFragment{} + } + return t.Workdir +} +func (t *InfrastructureStackFragment) GetManageState() *bool { + if t == nil { + t = &InfrastructureStackFragment{} + } + return t.ManageState +} func (t *InfrastructureStackFragment) GetDeletedAt() *string { if t == nil { t = &InfrastructureStackFragment{} @@ -2720,23 +2734,26 @@ func (t *InfrastructureStackFragment) GetReadBindings() []*PolicyBindingFragment } type StackRunFragment struct { - ID string "json:\"id\" graphql:\"id\"" - Type StackType "json:\"type\" graphql:\"type\"" - Status StackStatus "json:\"status\" graphql:\"status\"" - Approval *bool "json:\"approval,omitempty\" graphql:\"approval\"" - ApprovedAt *string "json:\"approvedAt,omitempty\" graphql:\"approvedAt\"" - Tarball string "json:\"tarball\" graphql:\"tarball\"" - State *StackStateFragment "json:\"state,omitempty\" graphql:\"state\"" - Steps []*RunStepFragment "json:\"steps,omitempty\" graphql:\"steps\"" - Files []*StackFileFragment "json:\"files,omitempty\" graphql:\"files\"" - Git *GitRefFragment "json:\"git\" graphql:\"git\"" - Repository *GitRepositoryFragment "json:\"repository,omitempty\" graphql:\"repository\"" - JobSpec *JobSpecFragment "json:\"jobSpec,omitempty\" graphql:\"jobSpec\"" - Configuration *StackConfigurationFragment "json:\"configuration\" graphql:\"configuration\"" - Environment []*StackEnvironmentFragment "json:\"environment,omitempty\" graphql:\"environment\"" - Output []*StackOutputFragment "json:\"output,omitempty\" graphql:\"output\"" - Errors []*ServiceErrorFragment "json:\"errors,omitempty\" graphql:\"errors\"" - Approver *UserFragment "json:\"approver,omitempty\" graphql:\"approver\"" + ID string "json:\"id\" graphql:\"id\"" + Type StackType "json:\"type\" graphql:\"type\"" + Status StackStatus "json:\"status\" graphql:\"status\"" + Approval *bool "json:\"approval,omitempty\" graphql:\"approval\"" + ApprovedAt *string "json:\"approvedAt,omitempty\" graphql:\"approvedAt\"" + Tarball string "json:\"tarball\" graphql:\"tarball\"" + Workdir *string "json:\"workdir,omitempty\" graphql:\"workdir\"" + ManageState *bool "json:\"manageState,omitempty\" graphql:\"manageState\"" + Stack *InfrastructureStackFragment "json:\"stack,omitempty\" graphql:\"stack\"" + State *StackStateFragment "json:\"state,omitempty\" graphql:\"state\"" + Steps []*RunStepFragment "json:\"steps,omitempty\" graphql:\"steps\"" + Files []*StackFileFragment "json:\"files,omitempty\" graphql:\"files\"" + Git *GitRefFragment "json:\"git\" graphql:\"git\"" + Repository *GitRepositoryFragment "json:\"repository,omitempty\" graphql:\"repository\"" + JobSpec *JobSpecFragment "json:\"jobSpec,omitempty\" graphql:\"jobSpec\"" + Configuration *StackConfigurationFragment "json:\"configuration\" graphql:\"configuration\"" + Environment []*StackEnvironmentFragment "json:\"environment,omitempty\" graphql:\"environment\"" + Output []*StackOutputFragment "json:\"output,omitempty\" graphql:\"output\"" + Errors []*ServiceErrorFragment "json:\"errors,omitempty\" graphql:\"errors\"" + Approver *UserFragment "json:\"approver,omitempty\" graphql:\"approver\"" } func (t *StackRunFragment) GetID() string { @@ -2775,6 +2792,24 @@ func (t *StackRunFragment) GetTarball() string { } return t.Tarball } +func (t *StackRunFragment) GetWorkdir() *string { + if t == nil { + t = &StackRunFragment{} + } + return t.Workdir +} +func (t *StackRunFragment) GetManageState() *bool { + if t == nil { + t = &StackRunFragment{} + } + return t.ManageState +} +func (t *StackRunFragment) GetStack() *InfrastructureStackFragment { + if t == nil { + t = &StackRunFragment{} + } + return t.Stack +} func (t *StackRunFragment) GetState() *StackStateFragment { if t == nil { t = &StackRunFragment{} @@ -2843,22 +2878,25 @@ func (t *StackRunFragment) GetApprover() *UserFragment { } type StackRunBaseFragment struct { - ID string "json:\"id\" graphql:\"id\"" - Type StackType "json:\"type\" graphql:\"type\"" - Status StackStatus "json:\"status\" graphql:\"status\"" - Approval *bool "json:\"approval,omitempty\" graphql:\"approval\"" - ApprovedAt *string "json:\"approvedAt,omitempty\" graphql:\"approvedAt\"" - Tarball string "json:\"tarball\" graphql:\"tarball\"" - State *StackStateFragment "json:\"state,omitempty\" graphql:\"state\"" - Steps []*RunStepFragment "json:\"steps,omitempty\" graphql:\"steps\"" - Files []*StackFileFragment "json:\"files,omitempty\" graphql:\"files\"" - Git *GitRefFragment "json:\"git\" graphql:\"git\"" - Repository *GitRepositoryFragment "json:\"repository,omitempty\" graphql:\"repository\"" - JobSpec *JobSpecFragment "json:\"jobSpec,omitempty\" graphql:\"jobSpec\"" - Configuration *StackConfigurationFragment "json:\"configuration\" graphql:\"configuration\"" - Environment []*StackEnvironmentFragment "json:\"environment,omitempty\" graphql:\"environment\"" - Output []*StackOutputFragment "json:\"output,omitempty\" graphql:\"output\"" - Errors []*ServiceErrorFragment "json:\"errors,omitempty\" graphql:\"errors\"" + ID string "json:\"id\" graphql:\"id\"" + Type StackType "json:\"type\" graphql:\"type\"" + Status StackStatus "json:\"status\" graphql:\"status\"" + Approval *bool "json:\"approval,omitempty\" graphql:\"approval\"" + ApprovedAt *string "json:\"approvedAt,omitempty\" graphql:\"approvedAt\"" + Tarball string "json:\"tarball\" graphql:\"tarball\"" + Workdir *string "json:\"workdir,omitempty\" graphql:\"workdir\"" + ManageState *bool "json:\"manageState,omitempty\" graphql:\"manageState\"" + Stack *InfrastructureStackFragment "json:\"stack,omitempty\" graphql:\"stack\"" + State *StackStateFragment "json:\"state,omitempty\" graphql:\"state\"" + Steps []*RunStepFragment "json:\"steps,omitempty\" graphql:\"steps\"" + Files []*StackFileFragment "json:\"files,omitempty\" graphql:\"files\"" + Git *GitRefFragment "json:\"git\" graphql:\"git\"" + Repository *GitRepositoryFragment "json:\"repository,omitempty\" graphql:\"repository\"" + JobSpec *JobSpecFragment "json:\"jobSpec,omitempty\" graphql:\"jobSpec\"" + Configuration *StackConfigurationFragment "json:\"configuration\" graphql:\"configuration\"" + Environment []*StackEnvironmentFragment "json:\"environment,omitempty\" graphql:\"environment\"" + Output []*StackOutputFragment "json:\"output,omitempty\" graphql:\"output\"" + Errors []*ServiceErrorFragment "json:\"errors,omitempty\" graphql:\"errors\"" } func (t *StackRunBaseFragment) GetID() string { @@ -2897,6 +2935,24 @@ func (t *StackRunBaseFragment) GetTarball() string { } return t.Tarball } +func (t *StackRunBaseFragment) GetWorkdir() *string { + if t == nil { + t = &StackRunBaseFragment{} + } + return t.Workdir +} +func (t *StackRunBaseFragment) GetManageState() *bool { + if t == nil { + t = &StackRunBaseFragment{} + } + return t.ManageState +} +func (t *StackRunBaseFragment) GetStack() *InfrastructureStackFragment { + if t == nil { + t = &StackRunBaseFragment{} + } + return t.Stack +} func (t *StackRunBaseFragment) GetState() *StackStateFragment { if t == nil { t = &StackRunBaseFragment{} @@ -4416,6 +4472,42 @@ func (t *InfrastructureStackEdgeFragment_Node_InfrastructureStackFragment_JobSpe return t.Secret } +type StackRunEdgeFragment_Node_StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { + Name string "json:\"name\" graphql:\"name\"" + Value string "json:\"value\" graphql:\"value\"" +} + +func (t *StackRunEdgeFragment_Node_StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetName() string { + if t == nil { + t = &StackRunEdgeFragment_Node_StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + } + return t.Name +} +func (t *StackRunEdgeFragment_Node_StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetValue() string { + if t == nil { + t = &StackRunEdgeFragment_Node_StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + } + return t.Value +} + +type StackRunEdgeFragment_Node_StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom struct { + ConfigMap string "json:\"configMap\" graphql:\"configMap\"" + Secret string "json:\"secret\" graphql:\"secret\"" +} + +func (t *StackRunEdgeFragment_Node_StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetConfigMap() string { + if t == nil { + t = &StackRunEdgeFragment_Node_StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + } + return t.ConfigMap +} +func (t *StackRunEdgeFragment_Node_StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetSecret() string { + if t == nil { + t = &StackRunEdgeFragment_Node_StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + } + return t.Secret +} + type StackRunEdgeFragment_Node_StackRunFragment_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { Name string "json:\"name\" graphql:\"name\"" Value string "json:\"value\" graphql:\"value\"" @@ -4488,6 +4580,42 @@ func (t *InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_Containe return t.Secret } +type StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { + Name string "json:\"name\" graphql:\"name\"" + Value string "json:\"value\" graphql:\"value\"" +} + +func (t *StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetName() string { + if t == nil { + t = &StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + } + return t.Name +} +func (t *StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetValue() string { + if t == nil { + t = &StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + } + return t.Value +} + +type StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom struct { + ConfigMap string "json:\"configMap\" graphql:\"configMap\"" + Secret string "json:\"secret\" graphql:\"secret\"" +} + +func (t *StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetConfigMap() string { + if t == nil { + t = &StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + } + return t.ConfigMap +} +func (t *StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetSecret() string { + if t == nil { + t = &StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + } + return t.Secret +} + type StackRunFragment_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { Name string "json:\"name\" graphql:\"name\"" Value string "json:\"value\" graphql:\"value\"" @@ -4524,6 +4652,42 @@ func (t *StackRunFragment_StackRunBaseFragment_JobSpec_JobSpecFragment_Container return t.Secret } +type StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { + Name string "json:\"name\" graphql:\"name\"" + Value string "json:\"value\" graphql:\"value\"" +} + +func (t *StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetName() string { + if t == nil { + t = &StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + } + return t.Name +} +func (t *StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetValue() string { + if t == nil { + t = &StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + } + return t.Value +} + +type StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom struct { + ConfigMap string "json:\"configMap\" graphql:\"configMap\"" + Secret string "json:\"secret\" graphql:\"secret\"" +} + +func (t *StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetConfigMap() string { + if t == nil { + t = &StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + } + return t.ConfigMap +} +func (t *StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetSecret() string { + if t == nil { + t = &StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + } + return t.Secret +} + type StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { Name string "json:\"name\" graphql:\"name\"" Value string "json:\"value\" graphql:\"value\"" @@ -8881,6 +9045,42 @@ func (t *ListProviders_ClusterProviders_ClusterProviderConnectionFragment_Edges_ return t.Value } +type ListClusterStacks_ClusterStackRuns_Edges_StackRunEdgeFragment_Node_StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { + Name string "json:\"name\" graphql:\"name\"" + Value string "json:\"value\" graphql:\"value\"" +} + +func (t *ListClusterStacks_ClusterStackRuns_Edges_StackRunEdgeFragment_Node_StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetName() string { + if t == nil { + t = &ListClusterStacks_ClusterStackRuns_Edges_StackRunEdgeFragment_Node_StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + } + return t.Name +} +func (t *ListClusterStacks_ClusterStackRuns_Edges_StackRunEdgeFragment_Node_StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetValue() string { + if t == nil { + t = &ListClusterStacks_ClusterStackRuns_Edges_StackRunEdgeFragment_Node_StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + } + return t.Value +} + +type ListClusterStacks_ClusterStackRuns_Edges_StackRunEdgeFragment_Node_StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom struct { + ConfigMap string "json:\"configMap\" graphql:\"configMap\"" + Secret string "json:\"secret\" graphql:\"secret\"" +} + +func (t *ListClusterStacks_ClusterStackRuns_Edges_StackRunEdgeFragment_Node_StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetConfigMap() string { + if t == nil { + t = &ListClusterStacks_ClusterStackRuns_Edges_StackRunEdgeFragment_Node_StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + } + return t.ConfigMap +} +func (t *ListClusterStacks_ClusterStackRuns_Edges_StackRunEdgeFragment_Node_StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetSecret() string { + if t == nil { + t = &ListClusterStacks_ClusterStackRuns_Edges_StackRunEdgeFragment_Node_StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + } + return t.Secret +} + type ListClusterStacks_ClusterStackRuns_Edges_StackRunEdgeFragment_Node_StackRunFragment_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { Name string "json:\"name\" graphql:\"name\"" Value string "json:\"value\" graphql:\"value\"" @@ -8989,254 +9189,398 @@ func (t *ListInfrastructureStacks_InfrastructureStacks) GetEdges() []*Infrastruc return t.Edges } -type GetStackRun_StackRun_StackRunFragment_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { +type GetStackRun_StackRun_StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { Name string "json:\"name\" graphql:\"name\"" Value string "json:\"value\" graphql:\"value\"" } -func (t *GetStackRun_StackRun_StackRunFragment_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetName() string { +func (t *GetStackRun_StackRun_StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetName() string { if t == nil { - t = &GetStackRun_StackRun_StackRunFragment_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + t = &GetStackRun_StackRun_StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} } return t.Name } -func (t *GetStackRun_StackRun_StackRunFragment_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetValue() string { +func (t *GetStackRun_StackRun_StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetValue() string { if t == nil { - t = &GetStackRun_StackRun_StackRunFragment_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + t = &GetStackRun_StackRun_StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} } return t.Value } -type GetStackRun_StackRun_StackRunFragment_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom struct { +type GetStackRun_StackRun_StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom struct { ConfigMap string "json:\"configMap\" graphql:\"configMap\"" Secret string "json:\"secret\" graphql:\"secret\"" } -func (t *GetStackRun_StackRun_StackRunFragment_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetConfigMap() string { +func (t *GetStackRun_StackRun_StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetConfigMap() string { if t == nil { - t = &GetStackRun_StackRun_StackRunFragment_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + t = &GetStackRun_StackRun_StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} } return t.ConfigMap } -func (t *GetStackRun_StackRun_StackRunFragment_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetSecret() string { +func (t *GetStackRun_StackRun_StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetSecret() string { if t == nil { - t = &GetStackRun_StackRun_StackRunFragment_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + t = &GetStackRun_StackRun_StackRunFragment_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} } return t.Secret } -type GetStackRunBase_StackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { +type GetStackRun_StackRun_StackRunFragment_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { Name string "json:\"name\" graphql:\"name\"" Value string "json:\"value\" graphql:\"value\"" } -func (t *GetStackRunBase_StackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetName() string { +func (t *GetStackRun_StackRun_StackRunFragment_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetName() string { if t == nil { - t = &GetStackRunBase_StackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + t = &GetStackRun_StackRun_StackRunFragment_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} } return t.Name } -func (t *GetStackRunBase_StackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetValue() string { +func (t *GetStackRun_StackRun_StackRunFragment_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetValue() string { if t == nil { - t = &GetStackRunBase_StackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + t = &GetStackRun_StackRun_StackRunFragment_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} } return t.Value } -type GetStackRunBase_StackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom struct { +type GetStackRun_StackRun_StackRunFragment_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom struct { ConfigMap string "json:\"configMap\" graphql:\"configMap\"" Secret string "json:\"secret\" graphql:\"secret\"" } -func (t *GetStackRunBase_StackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetConfigMap() string { +func (t *GetStackRun_StackRun_StackRunFragment_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetConfigMap() string { if t == nil { - t = &GetStackRunBase_StackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + t = &GetStackRun_StackRun_StackRunFragment_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} } return t.ConfigMap } -func (t *GetStackRunBase_StackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetSecret() string { +func (t *GetStackRun_StackRun_StackRunFragment_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetSecret() string { if t == nil { - t = &GetStackRunBase_StackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + t = &GetStackRun_StackRun_StackRunFragment_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} } return t.Secret } -type UpdateStackRun_UpdateStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { +type GetStackRunBase_StackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { Name string "json:\"name\" graphql:\"name\"" Value string "json:\"value\" graphql:\"value\"" } -func (t *UpdateStackRun_UpdateStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetName() string { +func (t *GetStackRunBase_StackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetName() string { if t == nil { - t = &UpdateStackRun_UpdateStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + t = &GetStackRunBase_StackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} } return t.Name } -func (t *UpdateStackRun_UpdateStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetValue() string { +func (t *GetStackRunBase_StackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetValue() string { if t == nil { - t = &UpdateStackRun_UpdateStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + t = &GetStackRunBase_StackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} } return t.Value } -type UpdateStackRun_UpdateStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom struct { +type GetStackRunBase_StackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom struct { ConfigMap string "json:\"configMap\" graphql:\"configMap\"" Secret string "json:\"secret\" graphql:\"secret\"" } -func (t *UpdateStackRun_UpdateStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetConfigMap() string { +func (t *GetStackRunBase_StackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetConfigMap() string { if t == nil { - t = &UpdateStackRun_UpdateStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + t = &GetStackRunBase_StackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} } return t.ConfigMap } -func (t *UpdateStackRun_UpdateStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetSecret() string { +func (t *GetStackRunBase_StackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetSecret() string { if t == nil { - t = &UpdateStackRun_UpdateStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + t = &GetStackRunBase_StackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} } return t.Secret } -type ApproveStackRun_ApproveStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { +type GetStackRunBase_StackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { Name string "json:\"name\" graphql:\"name\"" Value string "json:\"value\" graphql:\"value\"" } -func (t *ApproveStackRun_ApproveStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetName() string { +func (t *GetStackRunBase_StackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetName() string { if t == nil { - t = &ApproveStackRun_ApproveStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + t = &GetStackRunBase_StackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} } return t.Name } -func (t *ApproveStackRun_ApproveStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetValue() string { +func (t *GetStackRunBase_StackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetValue() string { if t == nil { - t = &ApproveStackRun_ApproveStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + t = &GetStackRunBase_StackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} } return t.Value } -type ApproveStackRun_ApproveStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom struct { +type GetStackRunBase_StackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom struct { ConfigMap string "json:\"configMap\" graphql:\"configMap\"" Secret string "json:\"secret\" graphql:\"secret\"" } -func (t *ApproveStackRun_ApproveStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetConfigMap() string { +func (t *GetStackRunBase_StackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetConfigMap() string { if t == nil { - t = &ApproveStackRun_ApproveStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + t = &GetStackRunBase_StackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} } return t.ConfigMap } -func (t *ApproveStackRun_ApproveStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetSecret() string { +func (t *GetStackRunBase_StackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetSecret() string { if t == nil { - t = &ApproveStackRun_ApproveStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + t = &GetStackRunBase_StackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} } return t.Secret } -type CreateStack_CreateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { +type UpdateStackRun_UpdateStackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { Name string "json:\"name\" graphql:\"name\"" Value string "json:\"value\" graphql:\"value\"" } -func (t *CreateStack_CreateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetName() string { +func (t *UpdateStackRun_UpdateStackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetName() string { if t == nil { - t = &CreateStack_CreateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + t = &UpdateStackRun_UpdateStackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} } return t.Name } -func (t *CreateStack_CreateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetValue() string { +func (t *UpdateStackRun_UpdateStackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetValue() string { if t == nil { - t = &CreateStack_CreateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + t = &UpdateStackRun_UpdateStackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} } return t.Value } -type CreateStack_CreateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom struct { +type UpdateStackRun_UpdateStackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom struct { ConfigMap string "json:\"configMap\" graphql:\"configMap\"" Secret string "json:\"secret\" graphql:\"secret\"" } -func (t *CreateStack_CreateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetConfigMap() string { +func (t *UpdateStackRun_UpdateStackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetConfigMap() string { if t == nil { - t = &CreateStack_CreateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + t = &UpdateStackRun_UpdateStackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} } return t.ConfigMap } -func (t *CreateStack_CreateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetSecret() string { +func (t *UpdateStackRun_UpdateStackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetSecret() string { if t == nil { - t = &CreateStack_CreateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + t = &UpdateStackRun_UpdateStackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} } return t.Secret } -type UpdateStack_UpdateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { +type UpdateStackRun_UpdateStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { Name string "json:\"name\" graphql:\"name\"" Value string "json:\"value\" graphql:\"value\"" } -func (t *UpdateStack_UpdateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetName() string { +func (t *UpdateStackRun_UpdateStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetName() string { if t == nil { - t = &UpdateStack_UpdateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + t = &UpdateStackRun_UpdateStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} } return t.Name } -func (t *UpdateStack_UpdateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetValue() string { +func (t *UpdateStackRun_UpdateStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetValue() string { if t == nil { - t = &UpdateStack_UpdateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + t = &UpdateStackRun_UpdateStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} } return t.Value } -type UpdateStack_UpdateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom struct { +type UpdateStackRun_UpdateStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom struct { ConfigMap string "json:\"configMap\" graphql:\"configMap\"" Secret string "json:\"secret\" graphql:\"secret\"" } -func (t *UpdateStack_UpdateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetConfigMap() string { +func (t *UpdateStackRun_UpdateStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetConfigMap() string { if t == nil { - t = &UpdateStack_UpdateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + t = &UpdateStackRun_UpdateStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} } return t.ConfigMap } -func (t *UpdateStack_UpdateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetSecret() string { +func (t *UpdateStackRun_UpdateStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetSecret() string { if t == nil { - t = &UpdateStack_UpdateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + t = &UpdateStackRun_UpdateStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} } return t.Secret } -type DetachStack_DetachStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { +type ApproveStackRun_ApproveStackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { Name string "json:\"name\" graphql:\"name\"" Value string "json:\"value\" graphql:\"value\"" } -func (t *DetachStack_DetachStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetName() string { +func (t *ApproveStackRun_ApproveStackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetName() string { if t == nil { - t = &DetachStack_DetachStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + t = &ApproveStackRun_ApproveStackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} } return t.Name } -func (t *DetachStack_DetachStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetValue() string { +func (t *ApproveStackRun_ApproveStackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetValue() string { if t == nil { - t = &DetachStack_DetachStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + t = &ApproveStackRun_ApproveStackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} } return t.Value } -type DetachStack_DetachStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom struct { +type ApproveStackRun_ApproveStackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom struct { ConfigMap string "json:\"configMap\" graphql:\"configMap\"" Secret string "json:\"secret\" graphql:\"secret\"" } -func (t *DetachStack_DetachStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetConfigMap() string { +func (t *ApproveStackRun_ApproveStackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetConfigMap() string { if t == nil { - t = &DetachStack_DetachStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + t = &ApproveStackRun_ApproveStackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} } return t.ConfigMap } -func (t *DetachStack_DetachStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetSecret() string { +func (t *ApproveStackRun_ApproveStackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetSecret() string { if t == nil { - t = &DetachStack_DetachStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + t = &ApproveStackRun_ApproveStackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + } + return t.Secret +} + +type ApproveStackRun_ApproveStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { + Name string "json:\"name\" graphql:\"name\"" + Value string "json:\"value\" graphql:\"value\"" +} + +func (t *ApproveStackRun_ApproveStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetName() string { + if t == nil { + t = &ApproveStackRun_ApproveStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + } + return t.Name +} +func (t *ApproveStackRun_ApproveStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetValue() string { + if t == nil { + t = &ApproveStackRun_ApproveStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + } + return t.Value +} + +type ApproveStackRun_ApproveStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom struct { + ConfigMap string "json:\"configMap\" graphql:\"configMap\"" + Secret string "json:\"secret\" graphql:\"secret\"" +} + +func (t *ApproveStackRun_ApproveStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetConfigMap() string { + if t == nil { + t = &ApproveStackRun_ApproveStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + } + return t.ConfigMap +} +func (t *ApproveStackRun_ApproveStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetSecret() string { + if t == nil { + t = &ApproveStackRun_ApproveStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + } + return t.Secret +} + +type CreateStack_CreateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { + Name string "json:\"name\" graphql:\"name\"" + Value string "json:\"value\" graphql:\"value\"" +} + +func (t *CreateStack_CreateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetName() string { + if t == nil { + t = &CreateStack_CreateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + } + return t.Name +} +func (t *CreateStack_CreateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetValue() string { + if t == nil { + t = &CreateStack_CreateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + } + return t.Value +} + +type CreateStack_CreateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom struct { + ConfigMap string "json:\"configMap\" graphql:\"configMap\"" + Secret string "json:\"secret\" graphql:\"secret\"" +} + +func (t *CreateStack_CreateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetConfigMap() string { + if t == nil { + t = &CreateStack_CreateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + } + return t.ConfigMap +} +func (t *CreateStack_CreateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetSecret() string { + if t == nil { + t = &CreateStack_CreateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + } + return t.Secret +} + +type UpdateStack_UpdateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { + Name string "json:\"name\" graphql:\"name\"" + Value string "json:\"value\" graphql:\"value\"" +} + +func (t *UpdateStack_UpdateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetName() string { + if t == nil { + t = &UpdateStack_UpdateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + } + return t.Name +} +func (t *UpdateStack_UpdateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetValue() string { + if t == nil { + t = &UpdateStack_UpdateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + } + return t.Value +} + +type UpdateStack_UpdateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom struct { + ConfigMap string "json:\"configMap\" graphql:\"configMap\"" + Secret string "json:\"secret\" graphql:\"secret\"" +} + +func (t *UpdateStack_UpdateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetConfigMap() string { + if t == nil { + t = &UpdateStack_UpdateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + } + return t.ConfigMap +} +func (t *UpdateStack_UpdateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetSecret() string { + if t == nil { + t = &UpdateStack_UpdateStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + } + return t.Secret +} + +type DetachStack_DetachStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { + Name string "json:\"name\" graphql:\"name\"" + Value string "json:\"value\" graphql:\"value\"" +} + +func (t *DetachStack_DetachStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetName() string { + if t == nil { + t = &DetachStack_DetachStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + } + return t.Name +} +func (t *DetachStack_DetachStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetValue() string { + if t == nil { + t = &DetachStack_DetachStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + } + return t.Value +} + +type DetachStack_DetachStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom struct { + ConfigMap string "json:\"configMap\" graphql:\"configMap\"" + Secret string "json:\"secret\" graphql:\"secret\"" +} + +func (t *DetachStack_DetachStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetConfigMap() string { + if t == nil { + t = &DetachStack_DetachStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + } + return t.ConfigMap +} +func (t *DetachStack_DetachStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetSecret() string { + if t == nil { + t = &DetachStack_DetachStack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} } return t.Secret } @@ -9313,6 +9657,42 @@ func (t *GetInfrastructureStack_InfrastructureStack_InfrastructureStackFragment_ return t.Secret } +type CompletesStackRun_CompleteStackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { + Name string "json:\"name\" graphql:\"name\"" + Value string "json:\"value\" graphql:\"value\"" +} + +func (t *CompletesStackRun_CompleteStackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetName() string { + if t == nil { + t = &CompletesStackRun_CompleteStackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + } + return t.Name +} +func (t *CompletesStackRun_CompleteStackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetValue() string { + if t == nil { + t = &CompletesStackRun_CompleteStackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + } + return t.Value +} + +type CompletesStackRun_CompleteStackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom struct { + ConfigMap string "json:\"configMap\" graphql:\"configMap\"" + Secret string "json:\"secret\" graphql:\"secret\"" +} + +func (t *CompletesStackRun_CompleteStackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetConfigMap() string { + if t == nil { + t = &CompletesStackRun_CompleteStackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + } + return t.ConfigMap +} +func (t *CompletesStackRun_CompleteStackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetSecret() string { + if t == nil { + t = &CompletesStackRun_CompleteStackRun_StackRunBaseFragment_Stack_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + } + return t.Secret +} + type CompletesStackRun_CompleteStackRun_StackRunBaseFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { Name string "json:\"name\" graphql:\"name\"" Value string "json:\"value\" graphql:\"value\"" @@ -18810,6 +19190,11 @@ fragment StackRunBaseFragment on StackRun { approval approvedAt tarball + workdir + manageState + stack { + ... InfrastructureStackFragment + } state { ... StackStateFragment } @@ -18841,45 +19226,52 @@ fragment StackRunBaseFragment on StackRun { ... ServiceErrorFragment } } -fragment StackStateFragment on StackState { +fragment InfrastructureStackFragment on InfrastructureStack { id - plan + name + type + git { + ... GitRefFragment + } + jobSpec { + ... JobSpecFragment + } + configuration { + ... StackConfigurationFragment + } + cluster { + ... TinyClusterFragment + } + approval + workdir + manageState + deletedAt + files { + ... StackFileFragment + } + environment { + ... StackEnvironmentFragment + } + output { + ... StackOutputFragment + } state { - ... StackStateResourceFragment + ... StackStateFragment + } + repository { + ... GitRepositoryFragment + } + writeBindings { + ... PolicyBindingFragment + } + readBindings { + ... PolicyBindingFragment } -} -fragment StackStateResourceFragment on StackStateResource { - identifier - resource - name - configuration - links -} -fragment RunStepFragment on RunStep { - id - status - name - cmd - args - index - stage -} -fragment StackFileFragment on StackFile { - path - content } fragment GitRefFragment on GitRef { folder ref } -fragment GitRepositoryFragment on GitRepository { - id - error - health - authMethod - url - decrypt -} fragment JobSpecFragment on JobGateSpec { namespace raw @@ -18906,6 +19298,16 @@ fragment StackConfigurationFragment on StackConfiguration { image version } +fragment TinyClusterFragment on Cluster { + id + name + handle + self +} +fragment StackFileFragment on StackFile { + path + content +} fragment StackEnvironmentFragment on StackEnvironment { name value @@ -18916,15 +19318,60 @@ fragment StackOutputFragment on StackOutput { value secret } -fragment ServiceErrorFragment on ServiceError { - source - message -} -fragment UserFragment on User { - name +fragment StackStateFragment on StackState { + id + plan + state { + ... StackStateResourceFragment + } +} +fragment StackStateResourceFragment on StackStateResource { + identifier + resource + name + configuration + links +} +fragment GitRepositoryFragment on GitRepository { + id + error + health + authMethod + url + decrypt +} +fragment PolicyBindingFragment on PolicyBinding { + id + group { + ... GroupFragment + } + user { + ... UserFragment + } +} +fragment GroupFragment on Group { + id + name + description +} +fragment UserFragment on User { + name id email } +fragment RunStepFragment on RunStep { + id + status + name + cmd + args + index + stage +} +fragment ServiceErrorFragment on ServiceError { + source + message +} ` func (c *Client) ListClusterStacks(ctx context.Context, after *string, first *int64, before *string, last *int64, interceptors ...clientv2.RequestInterceptor) (*ListClusterStacks, error) { @@ -18983,6 +19430,8 @@ fragment InfrastructureStackFragment on InfrastructureStack { ... TinyClusterFragment } approval + workdir + manageState deletedAt files { ... StackFileFragment @@ -19137,6 +19586,11 @@ fragment StackRunBaseFragment on StackRun { approval approvedAt tarball + workdir + manageState + stack { + ... InfrastructureStackFragment + } state { ... StackStateFragment } @@ -19168,45 +19622,52 @@ fragment StackRunBaseFragment on StackRun { ... ServiceErrorFragment } } -fragment StackStateFragment on StackState { +fragment InfrastructureStackFragment on InfrastructureStack { id - plan + name + type + git { + ... GitRefFragment + } + jobSpec { + ... JobSpecFragment + } + configuration { + ... StackConfigurationFragment + } + cluster { + ... TinyClusterFragment + } + approval + workdir + manageState + deletedAt + files { + ... StackFileFragment + } + environment { + ... StackEnvironmentFragment + } + output { + ... StackOutputFragment + } state { - ... StackStateResourceFragment + ... StackStateFragment + } + repository { + ... GitRepositoryFragment + } + writeBindings { + ... PolicyBindingFragment + } + readBindings { + ... PolicyBindingFragment } -} -fragment StackStateResourceFragment on StackStateResource { - identifier - resource - name - configuration - links -} -fragment RunStepFragment on RunStep { - id - status - name - cmd - args - index - stage -} -fragment StackFileFragment on StackFile { - path - content } fragment GitRefFragment on GitRef { folder ref } -fragment GitRepositoryFragment on GitRepository { - id - error - health - authMethod - url - decrypt -} fragment JobSpecFragment on JobGateSpec { namespace raw @@ -19233,6 +19694,16 @@ fragment StackConfigurationFragment on StackConfiguration { image version } +fragment TinyClusterFragment on Cluster { + id + name + handle + self +} +fragment StackFileFragment on StackFile { + path + content +} fragment StackEnvironmentFragment on StackEnvironment { name value @@ -19243,15 +19714,60 @@ fragment StackOutputFragment on StackOutput { value secret } -fragment ServiceErrorFragment on ServiceError { - source - message +fragment StackStateFragment on StackState { + id + plan + state { + ... StackStateResourceFragment + } +} +fragment StackStateResourceFragment on StackStateResource { + identifier + resource + name + configuration + links +} +fragment GitRepositoryFragment on GitRepository { + id + error + health + authMethod + url + decrypt +} +fragment PolicyBindingFragment on PolicyBinding { + id + group { + ... GroupFragment + } + user { + ... UserFragment + } +} +fragment GroupFragment on Group { + id + name + description } fragment UserFragment on User { name id email } +fragment RunStepFragment on RunStep { + id + status + name + cmd + args + index + stage +} +fragment ServiceErrorFragment on ServiceError { + source + message +} ` func (c *Client) GetStackRun(ctx context.Context, id string, interceptors ...clientv2.RequestInterceptor) (*GetStackRun, error) { @@ -19283,6 +19799,11 @@ fragment StackRunBaseFragment on StackRun { approval approvedAt tarball + workdir + manageState + stack { + ... InfrastructureStackFragment + } state { ... StackStateFragment } @@ -19314,45 +19835,52 @@ fragment StackRunBaseFragment on StackRun { ... ServiceErrorFragment } } -fragment StackStateFragment on StackState { +fragment InfrastructureStackFragment on InfrastructureStack { id - plan + name + type + git { + ... GitRefFragment + } + jobSpec { + ... JobSpecFragment + } + configuration { + ... StackConfigurationFragment + } + cluster { + ... TinyClusterFragment + } + approval + workdir + manageState + deletedAt + files { + ... StackFileFragment + } + environment { + ... StackEnvironmentFragment + } + output { + ... StackOutputFragment + } state { - ... StackStateResourceFragment + ... StackStateFragment + } + repository { + ... GitRepositoryFragment + } + writeBindings { + ... PolicyBindingFragment + } + readBindings { + ... PolicyBindingFragment } -} -fragment StackStateResourceFragment on StackStateResource { - identifier - resource - name - configuration - links -} -fragment RunStepFragment on RunStep { - id - status - name - cmd - args - index - stage -} -fragment StackFileFragment on StackFile { - path - content } fragment GitRefFragment on GitRef { folder ref } -fragment GitRepositoryFragment on GitRepository { - id - error - health - authMethod - url - decrypt -} fragment JobSpecFragment on JobGateSpec { namespace raw @@ -19379,6 +19907,16 @@ fragment StackConfigurationFragment on StackConfiguration { image version } +fragment TinyClusterFragment on Cluster { + id + name + handle + self +} +fragment StackFileFragment on StackFile { + path + content +} fragment StackEnvironmentFragment on StackEnvironment { name value @@ -19389,6 +19927,56 @@ fragment StackOutputFragment on StackOutput { value secret } +fragment StackStateFragment on StackState { + id + plan + state { + ... StackStateResourceFragment + } +} +fragment StackStateResourceFragment on StackStateResource { + identifier + resource + name + configuration + links +} +fragment GitRepositoryFragment on GitRepository { + id + error + health + authMethod + url + decrypt +} +fragment PolicyBindingFragment on PolicyBinding { + id + group { + ... GroupFragment + } + user { + ... UserFragment + } +} +fragment GroupFragment on Group { + id + name + description +} +fragment UserFragment on User { + name + id + email +} +fragment RunStepFragment on RunStep { + id + status + name + cmd + args + index + stage +} fragment ServiceErrorFragment on ServiceError { source message @@ -19424,6 +20012,11 @@ fragment StackRunBaseFragment on StackRun { approval approvedAt tarball + workdir + manageState + stack { + ... InfrastructureStackFragment + } state { ... StackStateFragment } @@ -19455,45 +20048,52 @@ fragment StackRunBaseFragment on StackRun { ... ServiceErrorFragment } } -fragment StackStateFragment on StackState { +fragment InfrastructureStackFragment on InfrastructureStack { id - plan + name + type + git { + ... GitRefFragment + } + jobSpec { + ... JobSpecFragment + } + configuration { + ... StackConfigurationFragment + } + cluster { + ... TinyClusterFragment + } + approval + workdir + manageState + deletedAt + files { + ... StackFileFragment + } + environment { + ... StackEnvironmentFragment + } + output { + ... StackOutputFragment + } state { - ... StackStateResourceFragment + ... StackStateFragment + } + repository { + ... GitRepositoryFragment + } + writeBindings { + ... PolicyBindingFragment + } + readBindings { + ... PolicyBindingFragment } -} -fragment StackStateResourceFragment on StackStateResource { - identifier - resource - name - configuration - links -} -fragment RunStepFragment on RunStep { - id - status - name - cmd - args - index - stage -} -fragment StackFileFragment on StackFile { - path - content } fragment GitRefFragment on GitRef { folder ref } -fragment GitRepositoryFragment on GitRepository { - id - error - health - authMethod - url - decrypt -} fragment JobSpecFragment on JobGateSpec { namespace raw @@ -19520,6 +20120,16 @@ fragment StackConfigurationFragment on StackConfiguration { image version } +fragment TinyClusterFragment on Cluster { + id + name + handle + self +} +fragment StackFileFragment on StackFile { + path + content +} fragment StackEnvironmentFragment on StackEnvironment { name value @@ -19530,6 +20140,56 @@ fragment StackOutputFragment on StackOutput { value secret } +fragment StackStateFragment on StackState { + id + plan + state { + ... StackStateResourceFragment + } +} +fragment StackStateResourceFragment on StackStateResource { + identifier + resource + name + configuration + links +} +fragment GitRepositoryFragment on GitRepository { + id + error + health + authMethod + url + decrypt +} +fragment PolicyBindingFragment on PolicyBinding { + id + group { + ... GroupFragment + } + user { + ... UserFragment + } +} +fragment GroupFragment on Group { + id + name + description +} +fragment UserFragment on User { + name + id + email +} +fragment RunStepFragment on RunStep { + id + status + name + cmd + args + index + stage +} fragment ServiceErrorFragment on ServiceError { source message @@ -19566,6 +20226,11 @@ fragment StackRunBaseFragment on StackRun { approval approvedAt tarball + workdir + manageState + stack { + ... InfrastructureStackFragment + } state { ... StackStateFragment } @@ -19597,45 +20262,52 @@ fragment StackRunBaseFragment on StackRun { ... ServiceErrorFragment } } -fragment StackStateFragment on StackState { +fragment InfrastructureStackFragment on InfrastructureStack { id - plan + name + type + git { + ... GitRefFragment + } + jobSpec { + ... JobSpecFragment + } + configuration { + ... StackConfigurationFragment + } + cluster { + ... TinyClusterFragment + } + approval + workdir + manageState + deletedAt + files { + ... StackFileFragment + } + environment { + ... StackEnvironmentFragment + } + output { + ... StackOutputFragment + } state { - ... StackStateResourceFragment + ... StackStateFragment + } + repository { + ... GitRepositoryFragment + } + writeBindings { + ... PolicyBindingFragment + } + readBindings { + ... PolicyBindingFragment } -} -fragment StackStateResourceFragment on StackStateResource { - identifier - resource - name - configuration - links -} -fragment RunStepFragment on RunStep { - id - status - name - cmd - args - index - stage -} -fragment StackFileFragment on StackFile { - path - content } fragment GitRefFragment on GitRef { folder ref } -fragment GitRepositoryFragment on GitRepository { - id - error - health - authMethod - url - decrypt -} fragment JobSpecFragment on JobGateSpec { namespace raw @@ -19662,6 +20334,16 @@ fragment StackConfigurationFragment on StackConfiguration { image version } +fragment TinyClusterFragment on Cluster { + id + name + handle + self +} +fragment StackFileFragment on StackFile { + path + content +} fragment StackEnvironmentFragment on StackEnvironment { name value @@ -19672,6 +20354,56 @@ fragment StackOutputFragment on StackOutput { value secret } +fragment StackStateFragment on StackState { + id + plan + state { + ... StackStateResourceFragment + } +} +fragment StackStateResourceFragment on StackStateResource { + identifier + resource + name + configuration + links +} +fragment GitRepositoryFragment on GitRepository { + id + error + health + authMethod + url + decrypt +} +fragment PolicyBindingFragment on PolicyBinding { + id + group { + ... GroupFragment + } + user { + ... UserFragment + } +} +fragment GroupFragment on Group { + id + name + description +} +fragment UserFragment on User { + name + id + email +} +fragment RunStepFragment on RunStep { + id + status + name + cmd + args + index + stage +} fragment ServiceErrorFragment on ServiceError { source message @@ -19717,6 +20449,8 @@ fragment InfrastructureStackFragment on InfrastructureStack { ... TinyClusterFragment } approval + workdir + manageState deletedAt files { ... StackFileFragment @@ -19872,6 +20606,8 @@ fragment InfrastructureStackFragment on InfrastructureStack { ... TinyClusterFragment } approval + workdir + manageState deletedAt files { ... StackFileFragment @@ -20028,6 +20764,8 @@ fragment InfrastructureStackFragment on InfrastructureStack { ... TinyClusterFragment } approval + workdir + manageState deletedAt files { ... StackFileFragment @@ -20183,6 +20921,8 @@ fragment InfrastructureStackFragment on InfrastructureStack { ... TinyClusterFragment } approval + workdir + manageState deletedAt files { ... StackFileFragment @@ -20338,6 +21078,8 @@ fragment InfrastructureStackFragment on InfrastructureStack { ... TinyClusterFragment } approval + workdir + manageState deletedAt files { ... StackFileFragment @@ -20483,6 +21225,11 @@ fragment StackRunBaseFragment on StackRun { approval approvedAt tarball + workdir + manageState + stack { + ... InfrastructureStackFragment + } state { ... StackStateFragment } @@ -20514,45 +21261,52 @@ fragment StackRunBaseFragment on StackRun { ... ServiceErrorFragment } } -fragment StackStateFragment on StackState { +fragment InfrastructureStackFragment on InfrastructureStack { id - plan + name + type + git { + ... GitRefFragment + } + jobSpec { + ... JobSpecFragment + } + configuration { + ... StackConfigurationFragment + } + cluster { + ... TinyClusterFragment + } + approval + workdir + manageState + deletedAt + files { + ... StackFileFragment + } + environment { + ... StackEnvironmentFragment + } + output { + ... StackOutputFragment + } state { - ... StackStateResourceFragment + ... StackStateFragment + } + repository { + ... GitRepositoryFragment + } + writeBindings { + ... PolicyBindingFragment + } + readBindings { + ... PolicyBindingFragment } -} -fragment StackStateResourceFragment on StackStateResource { - identifier - resource - name - configuration - links -} -fragment RunStepFragment on RunStep { - id - status - name - cmd - args - index - stage -} -fragment StackFileFragment on StackFile { - path - content } fragment GitRefFragment on GitRef { folder ref } -fragment GitRepositoryFragment on GitRepository { - id - error - health - authMethod - url - decrypt -} fragment JobSpecFragment on JobGateSpec { namespace raw @@ -20579,6 +21333,16 @@ fragment StackConfigurationFragment on StackConfiguration { image version } +fragment TinyClusterFragment on Cluster { + id + name + handle + self +} +fragment StackFileFragment on StackFile { + path + content +} fragment StackEnvironmentFragment on StackEnvironment { name value @@ -20589,6 +21353,56 @@ fragment StackOutputFragment on StackOutput { value secret } +fragment StackStateFragment on StackState { + id + plan + state { + ... StackStateResourceFragment + } +} +fragment StackStateResourceFragment on StackStateResource { + identifier + resource + name + configuration + links +} +fragment GitRepositoryFragment on GitRepository { + id + error + health + authMethod + url + decrypt +} +fragment PolicyBindingFragment on PolicyBinding { + id + group { + ... GroupFragment + } + user { + ... UserFragment + } +} +fragment GroupFragment on Group { + id + name + description +} +fragment UserFragment on User { + name + id + email +} +fragment RunStepFragment on RunStep { + id + status + name + cmd + args + index + stage +} fragment ServiceErrorFragment on ServiceError { source message diff --git a/graph/stack_model.graphql b/graph/stack_model.graphql index 6ace0d7..453ed2e 100644 --- a/graph/stack_model.graphql +++ b/graph/stack_model.graphql @@ -15,6 +15,8 @@ fragment InfrastructureStackFragment on InfrastructureStack { configuration { ...StackConfigurationFragment} cluster { ...TinyClusterFragment } approval + workdir + manageState deletedAt files { ...StackFileFragment} environment { ...StackEnvironmentFragment} @@ -43,6 +45,9 @@ fragment StackRunBaseFragment on StackRun { approval approvedAt tarball + workdir + manageState + stack { ...InfrastructureStackFragment } state { ...StackStateFragment} steps { ...RunStepFragment} files { ...StackFileFragment} diff --git a/models_gen.go b/models_gen.go index bc4a070..166a272 100644 --- a/models_gen.go +++ b/models_gen.go @@ -1619,9 +1619,13 @@ type InfrastructureStack struct { // whether this stack was previously deleted and is pending cleanup DeletedAt *string `json:"deletedAt,omitempty"` // why this run was cancelled - CancellationReason *string `json:"cancellationReason,omitempty"` - Runs *StackRunConnection `json:"runs,omitempty"` - PullRequests *PullRequestConnection `json:"pullRequests,omitempty"` + CancellationReason *string `json:"cancellationReason,omitempty"` + // the subdirectory you want to run the stack's commands w/in + Workdir *string `json:"workdir,omitempty"` + // whether you want Plural to manage the state of this stack + ManageState *bool `json:"manageState,omitempty"` + Runs *StackRunConnection `json:"runs,omitempty"` + PullRequests *PullRequestConnection `json:"pullRequests,omitempty"` // files bound to a run of this stack Files []*StackFile `json:"files,omitempty"` // environment variables for this stack @@ -1988,6 +1992,10 @@ type NamespacedName struct { Namespace string `json:"namespace"` } +type NewRelicCredentialsAttributes struct { + APIKey string `json:"apiKey"` +} + type Node struct { Status NodeStatus `json:"status"` Spec NodeSpec `json:"spec"` @@ -2228,7 +2236,8 @@ type ObservabilityProviderConnection struct { } type ObservabilityProviderCredentialsAttributes struct { - Datadog *DatadogCredentialsAttributes `json:"datadog,omitempty"` + Datadog *DatadogCredentialsAttributes `json:"datadog,omitempty"` + Newrelic *NewRelicCredentialsAttributes `json:"newrelic,omitempty"` } type ObservabilityProviderEdge struct { @@ -2294,6 +2303,8 @@ type PersonaAttributes struct { type PersonaConfiguration struct { // enable full ui for this persona All *bool `json:"all,omitempty"` + // settings for the home page for this persona + Home *PersonaHome `json:"home,omitempty"` // enable individual parts of the deployments views Deployments *PersonaDeployment `json:"deployments,omitempty"` // enable individual aspects of the sidebar @@ -2303,6 +2314,8 @@ type PersonaConfiguration struct { type PersonaConfigurationAttributes struct { // enable full ui for this persona All *bool `json:"all,omitempty"` + // configuration for the homepage for the given persona + Home *PersonaHomeAttributes `json:"home,omitempty"` // enable individual parts of the deployments views Deployments *PersonaDeploymentAttributes `json:"deployments,omitempty"` // enable individual aspects of the sidebar @@ -2339,6 +2352,16 @@ type PersonaEdge struct { Cursor *string `json:"cursor,omitempty"` } +type PersonaHome struct { + Manager *bool `json:"manager,omitempty"` + Security *bool `json:"security,omitempty"` +} + +type PersonaHomeAttributes struct { + Manager *bool `json:"manager,omitempty"` + Security *bool `json:"security,omitempty"` +} + type PersonaSidebar struct { Audits *bool `json:"audits,omitempty"` Kubernetes *bool `json:"kubernetes,omitempty"` @@ -2722,6 +2745,14 @@ type PolicyConstraintEdge struct { Cursor *string `json:"cursor,omitempty"` } +// Aggregate statistics for policies across your fleet +type PolicyStatistic struct { + // the field you're computing this statistic on + Aggregate *string `json:"aggregate,omitempty"` + // the count for this aggregate + Count *int64 `json:"count,omitempty"` +} + type Port struct { HostPort *int64 `json:"hostPort,omitempty"` ContainerPort *int64 `json:"containerPort,omitempty"` @@ -3875,7 +3906,11 @@ type StackAttributes struct { // version/image config for the tool you're using Configuration StackConfigurationAttributes `json:"configuration"` // whether to require approval - Approval *bool `json:"approval,omitempty"` + Approval *bool `json:"approval,omitempty"` + // whether you want Plural to manage your terraform state for this stack + ManageState *bool `json:"manageState,omitempty"` + // the subdirectory you want to run the stack's commands w/in + Workdir *string `json:"workdir,omitempty"` ReadBindings []*PolicyBindingAttributes `json:"readBindings,omitempty"` WriteBindings []*PolicyBindingAttributes `json:"writeBindings,omitempty"` Files []*StackFileAttributes `json:"files,omitempty"` @@ -3888,13 +3923,21 @@ type StackConfiguration struct { Image *string `json:"image,omitempty"` // the semver of the tool you wish to use Version string `json:"version"` + // the docker image tag you wish to use if you're customizing the version + Tag *string `json:"tag,omitempty"` + // the hooks to customize execution for this stack + Hooks []*StackHook `json:"hooks,omitempty"` } type StackConfigurationAttributes struct { // optional custom image you might want to use Image *string `json:"image,omitempty"` // the semver of the tool you wish to use - Version string `json:"version"` + Version *string `json:"version,omitempty"` + // the docker image tag you wish to use if you're customizing the version + Tag *string `json:"tag,omitempty"` + // the hooks to customize execution for this stack + Hooks []*StackHookAttributes `json:"hooks,omitempty"` } type StackEnvironment struct { @@ -3919,6 +3962,24 @@ type StackFileAttributes struct { Content string `json:"content"` } +type StackHook struct { + // a script hook to run at a stage + Cmd string `json:"cmd"` + // args for `cmd` + Args []*string `json:"args,omitempty"` + // the stage to run this hook before + AfterStage StepStage `json:"afterStage"` +} + +type StackHookAttributes struct { + // a script hook to run at a stage + Cmd string `json:"cmd"` + // args for `cmd` + Args []*string `json:"args,omitempty"` + // the stage to run this hook before + AfterStage StepStage `json:"afterStage"` +} + type StackOutput struct { Name string `json:"name"` Value string `json:"value"` @@ -3949,6 +4010,10 @@ type StackRun struct { Message *string `json:"message,omitempty"` // when this run was approved ApprovedAt *string `json:"approvedAt,omitempty"` + // the subdirectory you want to run the stack's commands w/in + Workdir *string `json:"workdir,omitempty"` + // whether you want Plural to manage the state of this stack + ManageState *bool `json:"manageState,omitempty"` // https url to fetch the latest tarball of stack IaC Tarball string `json:"tarball"` // the approver of this job @@ -3959,6 +4024,8 @@ type StackRun struct { Files []*StackFile `json:"files,omitempty"` // environment variables for this stack Environment []*StackEnvironment `json:"environment,omitempty"` + // the stack attached to this run + Stack *InfrastructureStack `json:"stack,omitempty"` // the most recent output for this stack Output []*StackOutput `json:"output,omitempty"` // the most recent state of this stack @@ -5308,6 +5375,49 @@ func (e Permission) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +type PolicyAggregate string + +const ( + PolicyAggregateCluster PolicyAggregate = "CLUSTER" + PolicyAggregateEnforcement PolicyAggregate = "ENFORCEMENT" + PolicyAggregateInstalled PolicyAggregate = "INSTALLED" +) + +var AllPolicyAggregate = []PolicyAggregate{ + PolicyAggregateCluster, + PolicyAggregateEnforcement, + PolicyAggregateInstalled, +} + +func (e PolicyAggregate) IsValid() bool { + switch e { + case PolicyAggregateCluster, PolicyAggregateEnforcement, PolicyAggregateInstalled: + return true + } + return false +} + +func (e PolicyAggregate) String() string { + return string(e) +} + +func (e *PolicyAggregate) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = PolicyAggregate(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid PolicyAggregate", str) + } + return nil +} + +func (e PolicyAggregate) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + type PrRole string const ( @@ -5706,12 +5816,13 @@ func (e SinkType) MarshalGQL(w io.Writer) { type StackStatus string const ( - StackStatusQueued StackStatus = "QUEUED" - StackStatusPending StackStatus = "PENDING" - StackStatusRunning StackStatus = "RUNNING" - StackStatusSuccessful StackStatus = "SUCCESSFUL" - StackStatusFailed StackStatus = "FAILED" - StackStatusCancelled StackStatus = "CANCELLED" + StackStatusQueued StackStatus = "QUEUED" + StackStatusPending StackStatus = "PENDING" + StackStatusRunning StackStatus = "RUNNING" + StackStatusSuccessful StackStatus = "SUCCESSFUL" + StackStatusFailed StackStatus = "FAILED" + StackStatusCancelled StackStatus = "CANCELLED" + StackStatusPendingApproval StackStatus = "PENDING_APPROVAL" ) var AllStackStatus = []StackStatus{ @@ -5721,11 +5832,12 @@ var AllStackStatus = []StackStatus{ StackStatusSuccessful, StackStatusFailed, StackStatusCancelled, + StackStatusPendingApproval, } func (e StackStatus) IsValid() bool { switch e { - case StackStatusQueued, StackStatusPending, StackStatusRunning, StackStatusSuccessful, StackStatusFailed, StackStatusCancelled: + case StackStatusQueued, StackStatusPending, StackStatusRunning, StackStatusSuccessful, StackStatusFailed, StackStatusCancelled, StackStatusPendingApproval: return true } return false diff --git a/schema/schema.graphql b/schema/schema.graphql index a6783ef..37cf77a 100644 --- a/schema/schema.graphql +++ b/schema/schema.graphql @@ -335,6 +335,10 @@ type RootQueryType { violationStatistics(field: ConstraintViolationField!): [ViolationStatistic] + policyStatistics( + aggregate: PolicyAggregate!, kind: String, namespace: String, kinds: [String], namespaces: [String], clusters: [ID], q: String + ): [PolicyStatistic] + policyConstraint(id: ID!): PolicyConstraint managedNamespaces(after: String, first: Int, before: String, last: Int): ManagedNamespaceConnection @@ -353,7 +357,7 @@ type RootQueryType { infrastructureStack(id: ID!): InfrastructureStack - infrastructureStacks(after: String, first: Int, before: String, last: Int): InfrastructureStackConnection + infrastructureStacks(after: String, first: Int, before: String, last: Int, q: String): InfrastructureStackConnection observabilityProvider(id: ID!): ObservabilityProvider @@ -711,8 +715,13 @@ type RootMutationType { detachStack(id: ID!): InfrastructureStack + "refresh the source repo of this stack, and potentially create a fresh run" + kickStack(id: ID!): StackRun + approveStackRun(id: ID!): StackRun + restartStackRun(id: ID!): StackRun + upsertObservabilityProvider(attributes: ObservabilityProviderAttributes!): ObservabilityProvider deleteObservabilityProvider(id: ID!): ObservabilityProvider @@ -883,6 +892,7 @@ input ObservabilityProviderAttributes { input ObservabilityProviderCredentialsAttributes { datadog: DatadogCredentialsAttributes + newrelic: NewRelicCredentialsAttributes } input DatadogCredentialsAttributes { @@ -890,6 +900,10 @@ input DatadogCredentialsAttributes { appKey: String! } +input NewRelicCredentialsAttributes { + apiKey: String! +} + input ObservableMetricAttributes { identifier: String! providerId: ID! @@ -923,6 +937,7 @@ enum StackStatus { SUCCESSFUL FAILED CANCELLED + PENDING_APPROVAL } enum StackType { @@ -969,6 +984,12 @@ input StackAttributes { "whether to require approval" approval: Boolean + "whether you want Plural to manage your terraform state for this stack" + manageState: Boolean + + "the subdirectory you want to run the stack's commands w\/in" + workdir: String + readBindings: [PolicyBindingAttributes] writeBindings: [PolicyBindingAttributes] @@ -985,7 +1006,24 @@ input StackConfigurationAttributes { image: String "the semver of the tool you wish to use" - version: String! + version: String + + "the docker image tag you wish to use if you're customizing the version" + tag: String + + "the hooks to customize execution for this stack" + hooks: [StackHookAttributes] +} + +input StackHookAttributes { + "a script hook to run at a stage" + cmd: String! + + "args for `cmd`" + args: [String] + + "the stage to run this hook before" + afterStage: StepStage! } input StackRunAttributes { @@ -1082,6 +1120,12 @@ type InfrastructureStack { "why this run was cancelled" cancellationReason: String + "the subdirectory you want to run the stack's commands w\/in" + workdir: String + + "whether you want Plural to manage the state of this stack" + manageState: Boolean + runs(after: String, first: Int, before: String, last: Int, pullRequestId: ID): StackRunConnection pullRequests(after: String, first: Int, before: String, last: Int): PullRequestConnection @@ -1122,6 +1166,23 @@ type StackConfiguration { "the semver of the tool you wish to use" version: String! + + "the docker image tag you wish to use if you're customizing the version" + tag: String + + "the hooks to customize execution for this stack" + hooks: [StackHook] +} + +type StackHook { + "a script hook to run at a stage" + cmd: String! + + "args for `cmd`" + args: [String] + + "the stage to run this hook before" + afterStage: StepStage! } type StackRun { @@ -1151,6 +1212,12 @@ type StackRun { "when this run was approved" approvedAt: DateTime + "the subdirectory you want to run the stack's commands w\/in" + workdir: String + + "whether you want Plural to manage the state of this stack" + manageState: Boolean + "https url to fetch the latest tarball of stack IaC" tarball: String! @@ -1166,6 +1233,9 @@ type StackRun { "environment variables for this stack" environment: [StackEnvironment] + "the stack attached to this run" + stack: InfrastructureStack + "the most recent output for this stack" output: [StackOutput] @@ -1503,6 +1573,12 @@ enum ConstraintEnforcement { DRY_RUN } +enum PolicyAggregate { + CLUSTER + ENFORCEMENT + INSTALLED +} + enum ConstraintViolationField { NAMESPACE KIND @@ -1586,6 +1662,15 @@ type ViolationStatistic { count: Int } +"Aggregate statistics for policies across your fleet" +type PolicyStatistic { + "the field you're computing this statistic on" + aggregate: String + + "the count for this aggregate" + count: Int +} + "A violation of a given OPA Gatekeeper constraint" type Violation { id: ID! @@ -5381,6 +5466,9 @@ input PersonaConfigurationAttributes { "enable full ui for this persona" all: Boolean + "configuration for the homepage for the given persona" + home: PersonaHomeAttributes + "enable individual parts of the deployments views" deployments: PersonaDeploymentAttributes @@ -5407,6 +5495,11 @@ input PersonaSidebarAttributes { stacks: Boolean } +input PersonaHomeAttributes { + manager: Boolean + security: Boolean +} + type User { id: ID! name: String! @@ -5558,6 +5651,9 @@ type PersonaConfiguration { "enable full ui for this persona" all: Boolean + "settings for the home page for this persona" + home: PersonaHome + "enable individual parts of the deployments views" deployments: PersonaDeployment @@ -5584,6 +5680,11 @@ type PersonaSidebar { stacks: Boolean } +type PersonaHome { + manager: Boolean + security: Boolean +} + type UserConnection { pageInfo: PageInfo! edges: [UserEdge]