diff --git a/client.go b/client.go index b44c782..2d0e2cb 100644 --- a/client.go +++ b/client.go @@ -87,12 +87,12 @@ type ConsoleClient interface { UpdatePrAutomation(ctx context.Context, id string, attributes PrAutomationAttributes, interceptors ...clientv2.RequestInterceptor) (*UpdatePrAutomation, error) DeletePrAutomation(ctx context.Context, id string, interceptors ...clientv2.RequestInterceptor) (*DeletePrAutomation, error) CreatePullRequest(ctx context.Context, id string, branch *string, context *string, interceptors ...clientv2.RequestInterceptor) (*CreatePullRequest, error) - CreateNamespace(ctx context.Context, attributes ManagedNamespaceAttributes, interceptors ...clientv2.RequestInterceptor) (*CreateNamespace, error) - UpdateNamespace(ctx context.Context, id string, attributes ManagedNamespaceAttributes, interceptors ...clientv2.RequestInterceptor) (*UpdateNamespace, error) - DeleteNamespace(ctx context.Context, id string, interceptors ...clientv2.RequestInterceptor) (*DeleteNamespace, error) ListNamespaces(ctx context.Context, after *string, first *int64, before *string, last *int64, interceptors ...clientv2.RequestInterceptor) (*ListNamespaces, error) ListClusterNamespaces(ctx context.Context, after *string, first *int64, before *string, last *int64, interceptors ...clientv2.RequestInterceptor) (*ListClusterNamespaces, error) GetNamespace(ctx context.Context, id string, interceptors ...clientv2.RequestInterceptor) (*GetNamespace, error) + CreateNamespace(ctx context.Context, attributes ManagedNamespaceAttributes, interceptors ...clientv2.RequestInterceptor) (*CreateNamespace, error) + UpdateNamespace(ctx context.Context, id string, attributes ManagedNamespaceAttributes, interceptors ...clientv2.RequestInterceptor) (*UpdateNamespace, error) + DeleteNamespace(ctx context.Context, id string, interceptors ...clientv2.RequestInterceptor) (*DeleteNamespace, error) UpsertNotificationSink(ctx context.Context, attributes NotificationSinkAttributes, interceptors ...clientv2.RequestInterceptor) (*UpsertNotificationSink, error) DeleteNotificationSink(ctx context.Context, id string, interceptors ...clientv2.RequestInterceptor) (*DeleteNotificationSink, error) GetNotificationSink(ctx context.Context, id string, interceptors ...clientv2.RequestInterceptor) (*GetNotificationSink, error) @@ -137,11 +137,11 @@ type ConsoleClient interface { CreateCustomStackRun(ctx context.Context, attributes CustomStackRunAttributes, interceptors ...clientv2.RequestInterceptor) (*CreateCustomStackRun, error) DeleteCustomStackRun(ctx context.Context, id string, interceptors ...clientv2.RequestInterceptor) (*DeleteCustomStackRun, error) GetCustomStackRun(ctx context.Context, id string, interceptors ...clientv2.RequestInterceptor) (*GetCustomStackRun, error) - CreateAccessToken(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*CreateAccessToken, error) - DeleteAccessToken(ctx context.Context, token string, interceptors ...clientv2.RequestInterceptor) (*DeleteAccessToken, error) ListAccessTokens(ctx context.Context, cursor *string, before *string, last *int64, interceptors ...clientv2.RequestInterceptor) (*ListAccessTokens, error) GetAccessToken(ctx context.Context, id string, interceptors ...clientv2.RequestInterceptor) (*GetAccessToken, error) TokenExchange(ctx context.Context, token string, interceptors ...clientv2.RequestInterceptor) (*TokenExchange, error) + CreateAccessToken(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*CreateAccessToken, error) + DeleteAccessToken(ctx context.Context, token string, interceptors ...clientv2.RequestInterceptor) (*DeleteAccessToken, error) GetUser(ctx context.Context, email string, interceptors ...clientv2.RequestInterceptor) (*GetUser, error) GetGroup(ctx context.Context, name string, interceptors ...clientv2.RequestInterceptor) (*GetGroup, error) AddGroupMember(ctx context.Context, groupID string, userID string, interceptors ...clientv2.RequestInterceptor) (*AddGroupMember, error) @@ -156,710 +156,621 @@ func NewClient(cli *http.Client, baseURL string, options *clientv2.Options, inte return &Client{Client: clientv2.NewClient(cli, baseURL, options, interceptors...)} } -type PipelineGateEdgeFragment struct { - Node *PipelineGateFragment "json:\"node,omitempty\" graphql:\"node\"" -} - -func (t *PipelineGateEdgeFragment) GetNode() *PipelineGateFragment { - if t == nil { - t = &PipelineGateEdgeFragment{} - } - return t.Node -} - -type PipelineGateFragment struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - Type GateType "json:\"type\" graphql:\"type\"" - State GateState "json:\"state\" graphql:\"state\"" - UpdatedAt *string "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - Spec *GateSpecFragment "json:\"spec,omitempty\" graphql:\"spec\"" - Status *GateStatusFragment "json:\"status,omitempty\" graphql:\"status\"" +type ClusterBackupFragment struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Cluster *ClusterBackupFragment_Cluster "json:\"cluster,omitempty\" graphql:\"cluster\"" + GarbageCollected *bool "json:\"garbageCollected,omitempty\" graphql:\"garbageCollected\"" } -func (t *PipelineGateFragment) GetID() string { +func (t *ClusterBackupFragment) GetID() string { if t == nil { - t = &PipelineGateFragment{} + t = &ClusterBackupFragment{} } return t.ID } -func (t *PipelineGateFragment) GetName() string { +func (t *ClusterBackupFragment) GetName() string { if t == nil { - t = &PipelineGateFragment{} + t = &ClusterBackupFragment{} } return t.Name } -func (t *PipelineGateFragment) GetType() *GateType { +func (t *ClusterBackupFragment) GetCluster() *ClusterBackupFragment_Cluster { if t == nil { - t = &PipelineGateFragment{} + t = &ClusterBackupFragment{} } - return &t.Type + return t.Cluster } -func (t *PipelineGateFragment) GetState() *GateState { +func (t *ClusterBackupFragment) GetGarbageCollected() *bool { if t == nil { - t = &PipelineGateFragment{} + t = &ClusterBackupFragment{} } - return &t.State + return t.GarbageCollected } -func (t *PipelineGateFragment) GetUpdatedAt() *string { + +type ClusterRestoreFragment struct { + ID string "json:\"id\" graphql:\"id\"" + Status RestoreStatus "json:\"status\" graphql:\"status\"" + Backup *ClusterBackupFragment "json:\"backup,omitempty\" graphql:\"backup\"" +} + +func (t *ClusterRestoreFragment) GetID() string { if t == nil { - t = &PipelineGateFragment{} + t = &ClusterRestoreFragment{} } - return t.UpdatedAt + return t.ID } -func (t *PipelineGateFragment) GetSpec() *GateSpecFragment { +func (t *ClusterRestoreFragment) GetStatus() *RestoreStatus { if t == nil { - t = &PipelineGateFragment{} + t = &ClusterRestoreFragment{} } - return t.Spec + return &t.Status } -func (t *PipelineGateFragment) GetStatus() *GateStatusFragment { +func (t *ClusterRestoreFragment) GetBackup() *ClusterBackupFragment { if t == nil { - t = &PipelineGateFragment{} + t = &ClusterRestoreFragment{} } - return t.Status + return t.Backup } -type GateSpecFragment struct { - Job *JobSpecFragment "json:\"job,omitempty\" graphql:\"job\"" +type ClusterFragment struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Handle *string "json:\"handle,omitempty\" graphql:\"handle\"" + Self *bool "json:\"self,omitempty\" graphql:\"self\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" + InsertedAt *string "json:\"insertedAt,omitempty\" graphql:\"insertedAt\"" + PingedAt *string "json:\"pingedAt,omitempty\" graphql:\"pingedAt\"" + Protect *bool "json:\"protect,omitempty\" graphql:\"protect\"" + CurrentVersion *string "json:\"currentVersion,omitempty\" graphql:\"currentVersion\"" + KasURL *string "json:\"kasUrl,omitempty\" graphql:\"kasUrl\"" + DeletedAt *string "json:\"deletedAt,omitempty\" graphql:\"deletedAt\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Tags []*ClusterTags "json:\"tags,omitempty\" graphql:\"tags\"" + Credential *ProviderCredentialFragment "json:\"credential,omitempty\" graphql:\"credential\"" + Provider *ClusterProviderFragment "json:\"provider,omitempty\" graphql:\"provider\"" + NodePools []*NodePoolFragment "json:\"nodePools,omitempty\" graphql:\"nodePools\"" + Status *ClusterStatusFragment "json:\"status,omitempty\" graphql:\"status\"" + Project *TinyProjectFragment "json:\"project,omitempty\" graphql:\"project\"" } -func (t *GateSpecFragment) GetJob() *JobSpecFragment { +func (t *ClusterFragment) GetID() string { if t == nil { - t = &GateSpecFragment{} + t = &ClusterFragment{} } - return t.Job -} - -type GateStatusFragment struct { - JobRef *JobReferenceFragment "json:\"jobRef,omitempty\" graphql:\"jobRef\"" + return t.ID } - -func (t *GateStatusFragment) GetJobRef() *JobReferenceFragment { +func (t *ClusterFragment) GetName() string { if t == nil { - t = &GateStatusFragment{} + t = &ClusterFragment{} } - return t.JobRef -} - -type JobSpecFragment struct { - Namespace string "json:\"namespace\" graphql:\"namespace\"" - Raw *string "json:\"raw,omitempty\" graphql:\"raw\"" - Containers []*ContainerSpecFragment "json:\"containers,omitempty\" graphql:\"containers\"" - Labels map[string]interface{} "json:\"labels,omitempty\" graphql:\"labels\"" - Annotations map[string]interface{} "json:\"annotations,omitempty\" graphql:\"annotations\"" - ServiceAccount *string "json:\"serviceAccount,omitempty\" graphql:\"serviceAccount\"" + return t.Name } - -func (t *JobSpecFragment) GetNamespace() string { +func (t *ClusterFragment) GetHandle() *string { if t == nil { - t = &JobSpecFragment{} + t = &ClusterFragment{} } - return t.Namespace + return t.Handle } -func (t *JobSpecFragment) GetRaw() *string { +func (t *ClusterFragment) GetSelf() *bool { if t == nil { - t = &JobSpecFragment{} + t = &ClusterFragment{} } - return t.Raw + return t.Self } -func (t *JobSpecFragment) GetContainers() []*ContainerSpecFragment { +func (t *ClusterFragment) GetVersion() *string { if t == nil { - t = &JobSpecFragment{} + t = &ClusterFragment{} } - return t.Containers + return t.Version } -func (t *JobSpecFragment) GetLabels() map[string]interface{} { +func (t *ClusterFragment) GetInsertedAt() *string { if t == nil { - t = &JobSpecFragment{} + t = &ClusterFragment{} } - return t.Labels + return t.InsertedAt } -func (t *JobSpecFragment) GetAnnotations() map[string]interface{} { +func (t *ClusterFragment) GetPingedAt() *string { if t == nil { - t = &JobSpecFragment{} + t = &ClusterFragment{} } - return t.Annotations + return t.PingedAt } -func (t *JobSpecFragment) GetServiceAccount() *string { +func (t *ClusterFragment) GetProtect() *bool { if t == nil { - t = &JobSpecFragment{} + t = &ClusterFragment{} } - return t.ServiceAccount + return t.Protect } - -type JobReferenceFragment struct { - Name string "json:\"name\" graphql:\"name\"" - Namespace string "json:\"namespace\" graphql:\"namespace\"" +func (t *ClusterFragment) GetCurrentVersion() *string { + if t == nil { + t = &ClusterFragment{} + } + return t.CurrentVersion } - -func (t *JobReferenceFragment) GetName() string { +func (t *ClusterFragment) GetKasURL() *string { if t == nil { - t = &JobReferenceFragment{} + t = &ClusterFragment{} } - return t.Name + return t.KasURL } -func (t *JobReferenceFragment) GetNamespace() string { +func (t *ClusterFragment) GetDeletedAt() *string { if t == nil { - t = &JobReferenceFragment{} + t = &ClusterFragment{} } - return t.Namespace + return t.DeletedAt } - -type ContainerSpecFragment struct { - Image string "json:\"image\" graphql:\"image\"" - Args []*string "json:\"args,omitempty\" graphql:\"args\"" - Env []*ContainerSpecFragment_Env "json:\"env,omitempty\" graphql:\"env\"" - EnvFrom []*ContainerSpecFragment_EnvFrom "json:\"envFrom,omitempty\" graphql:\"envFrom\"" +func (t *ClusterFragment) GetMetadata() map[string]interface{} { + if t == nil { + t = &ClusterFragment{} + } + return t.Metadata } - -func (t *ContainerSpecFragment) GetImage() string { +func (t *ClusterFragment) GetTags() []*ClusterTags { if t == nil { - t = &ContainerSpecFragment{} + t = &ClusterFragment{} } - return t.Image + return t.Tags } -func (t *ContainerSpecFragment) GetArgs() []*string { +func (t *ClusterFragment) GetCredential() *ProviderCredentialFragment { if t == nil { - t = &ContainerSpecFragment{} + t = &ClusterFragment{} } - return t.Args + return t.Credential } -func (t *ContainerSpecFragment) GetEnv() []*ContainerSpecFragment_Env { +func (t *ClusterFragment) GetProvider() *ClusterProviderFragment { if t == nil { - t = &ContainerSpecFragment{} + t = &ClusterFragment{} } - return t.Env + return t.Provider } -func (t *ContainerSpecFragment) GetEnvFrom() []*ContainerSpecFragment_EnvFrom { +func (t *ClusterFragment) GetNodePools() []*NodePoolFragment { if t == nil { - t = &ContainerSpecFragment{} + t = &ClusterFragment{} } - return t.EnvFrom + return t.NodePools } - -type KustomizeFragment struct { - Path string "json:\"path\" graphql:\"path\"" +func (t *ClusterFragment) GetStatus() *ClusterStatusFragment { + if t == nil { + t = &ClusterFragment{} + } + return t.Status } - -func (t *KustomizeFragment) GetPath() string { +func (t *ClusterFragment) GetProject() *TinyProjectFragment { if t == nil { - t = &KustomizeFragment{} + t = &ClusterFragment{} } - return t.Path + return t.Project } -type ServiceDeploymentBaseFragment struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - Namespace string "json:\"namespace\" graphql:\"namespace\"" - Version string "json:\"version\" graphql:\"version\"" - Kustomize *KustomizeFragment "json:\"kustomize,omitempty\" graphql:\"kustomize\"" - Git *GitRefFragment "json:\"git,omitempty\" graphql:\"git\"" - Helm *HelmSpecFragment "json:\"helm,omitempty\" graphql:\"helm\"" - Repository *GitRepositoryFragment "json:\"repository,omitempty\" graphql:\"repository\"" +type ClusterTags struct { + Name string "json:\"name\" graphql:\"name\"" + Value string "json:\"value\" graphql:\"value\"" } -func (t *ServiceDeploymentBaseFragment) GetID() string { +func (t *ClusterTags) GetName() string { if t == nil { - t = &ServiceDeploymentBaseFragment{} + t = &ClusterTags{} } - return t.ID + return t.Name } -func (t *ServiceDeploymentBaseFragment) GetName() string { +func (t *ClusterTags) GetValue() string { if t == nil { - t = &ServiceDeploymentBaseFragment{} + t = &ClusterTags{} } - return t.Name -} -func (t *ServiceDeploymentBaseFragment) GetNamespace() string { - if t == nil { - t = &ServiceDeploymentBaseFragment{} - } - return t.Namespace -} -func (t *ServiceDeploymentBaseFragment) GetVersion() string { - if t == nil { - t = &ServiceDeploymentBaseFragment{} - } - return t.Version -} -func (t *ServiceDeploymentBaseFragment) GetKustomize() *KustomizeFragment { - if t == nil { - t = &ServiceDeploymentBaseFragment{} - } - return t.Kustomize -} -func (t *ServiceDeploymentBaseFragment) GetGit() *GitRefFragment { - if t == nil { - t = &ServiceDeploymentBaseFragment{} - } - return t.Git -} -func (t *ServiceDeploymentBaseFragment) GetHelm() *HelmSpecFragment { - if t == nil { - t = &ServiceDeploymentBaseFragment{} - } - return t.Helm -} -func (t *ServiceDeploymentBaseFragment) GetRepository() *GitRepositoryFragment { - if t == nil { - t = &ServiceDeploymentBaseFragment{} - } - return t.Repository + return t.Value } -type ServiceContextFragment struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - Configuration map[string]interface{} "json:\"configuration,omitempty\" graphql:\"configuration\"" +type ClusterProviderFragment struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Namespace string "json:\"namespace\" graphql:\"namespace\"" + Cloud string "json:\"cloud\" graphql:\"cloud\"" + Editable *bool "json:\"editable,omitempty\" graphql:\"editable\"" + DeletedAt *string "json:\"deletedAt,omitempty\" graphql:\"deletedAt\"" + Repository *GitRepositoryFragment "json:\"repository,omitempty\" graphql:\"repository\"" + Service *ServiceDeploymentFragment "json:\"service,omitempty\" graphql:\"service\"" + Credentials []*ProviderCredentialFragment "json:\"credentials,omitempty\" graphql:\"credentials\"" } -func (t *ServiceContextFragment) GetID() string { +func (t *ClusterProviderFragment) GetID() string { if t == nil { - t = &ServiceContextFragment{} + t = &ClusterProviderFragment{} } return t.ID } -func (t *ServiceContextFragment) GetName() string { +func (t *ClusterProviderFragment) GetName() string { if t == nil { - t = &ServiceContextFragment{} + t = &ClusterProviderFragment{} } return t.Name } -func (t *ServiceContextFragment) GetConfiguration() map[string]interface{} { - if t == nil { - t = &ServiceContextFragment{} - } - return t.Configuration -} - -type ComponentContentFragment struct { - ID string "json:\"id\" graphql:\"id\"" - Live *string "json:\"live,omitempty\" graphql:\"live\"" - Desired *string "json:\"desired,omitempty\" graphql:\"desired\"" -} - -func (t *ComponentContentFragment) GetID() string { +func (t *ClusterProviderFragment) GetNamespace() string { if t == nil { - t = &ComponentContentFragment{} + t = &ClusterProviderFragment{} } - return t.ID + return t.Namespace } -func (t *ComponentContentFragment) GetLive() *string { +func (t *ClusterProviderFragment) GetCloud() string { if t == nil { - t = &ComponentContentFragment{} + t = &ClusterProviderFragment{} } - return t.Live + return t.Cloud } -func (t *ComponentContentFragment) GetDesired() *string { +func (t *ClusterProviderFragment) GetEditable() *bool { if t == nil { - t = &ComponentContentFragment{} + t = &ClusterProviderFragment{} } - return t.Desired -} - -type ServiceDeploymentFragment struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - Namespace string "json:\"namespace\" graphql:\"namespace\"" - Version string "json:\"version\" graphql:\"version\"" - Kustomize *KustomizeFragment "json:\"kustomize,omitempty\" graphql:\"kustomize\"" - Git *GitRefFragment "json:\"git,omitempty\" graphql:\"git\"" - Helm *HelmSpecFragment "json:\"helm,omitempty\" graphql:\"helm\"" - Repository *GitRepositoryFragment "json:\"repository,omitempty\" graphql:\"repository\"" - Components []*ServiceDeploymentFragment_Components "json:\"components,omitempty\" graphql:\"components\"" - Protect *bool "json:\"protect,omitempty\" graphql:\"protect\"" - DeletedAt *string "json:\"deletedAt,omitempty\" graphql:\"deletedAt\"" - Sha *string "json:\"sha,omitempty\" graphql:\"sha\"" - Tarball *string "json:\"tarball,omitempty\" graphql:\"tarball\"" - DryRun *bool "json:\"dryRun,omitempty\" graphql:\"dryRun\"" - Templated *bool "json:\"templated,omitempty\" graphql:\"templated\"" - Configuration []*ServiceDeploymentFragment_Configuration "json:\"configuration,omitempty\" graphql:\"configuration\"" + return t.Editable } - -func (t *ServiceDeploymentFragment) GetID() string { +func (t *ClusterProviderFragment) GetDeletedAt() *string { if t == nil { - t = &ServiceDeploymentFragment{} + t = &ClusterProviderFragment{} } - return t.ID + return t.DeletedAt } -func (t *ServiceDeploymentFragment) GetName() string { +func (t *ClusterProviderFragment) GetRepository() *GitRepositoryFragment { if t == nil { - t = &ServiceDeploymentFragment{} + t = &ClusterProviderFragment{} } - return t.Name + return t.Repository } -func (t *ServiceDeploymentFragment) GetNamespace() string { +func (t *ClusterProviderFragment) GetService() *ServiceDeploymentFragment { if t == nil { - t = &ServiceDeploymentFragment{} + t = &ClusterProviderFragment{} } - return t.Namespace + return t.Service } -func (t *ServiceDeploymentFragment) GetVersion() string { +func (t *ClusterProviderFragment) GetCredentials() []*ProviderCredentialFragment { if t == nil { - t = &ServiceDeploymentFragment{} + t = &ClusterProviderFragment{} } - return t.Version + return t.Credentials } -func (t *ServiceDeploymentFragment) GetKustomize() *KustomizeFragment { - if t == nil { - t = &ServiceDeploymentFragment{} - } - return t.Kustomize + +type NodePoolFragment struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + MinSize int64 "json:\"minSize\" graphql:\"minSize\"" + MaxSize int64 "json:\"maxSize\" graphql:\"maxSize\"" + InstanceType string "json:\"instanceType\" graphql:\"instanceType\"" + Labels map[string]interface{} "json:\"labels,omitempty\" graphql:\"labels\"" + Taints []*NodePoolTaintFragment "json:\"taints,omitempty\" graphql:\"taints\"" } -func (t *ServiceDeploymentFragment) GetGit() *GitRefFragment { + +func (t *NodePoolFragment) GetID() string { if t == nil { - t = &ServiceDeploymentFragment{} + t = &NodePoolFragment{} } - return t.Git + return t.ID } -func (t *ServiceDeploymentFragment) GetHelm() *HelmSpecFragment { +func (t *NodePoolFragment) GetName() string { if t == nil { - t = &ServiceDeploymentFragment{} + t = &NodePoolFragment{} } - return t.Helm + return t.Name } -func (t *ServiceDeploymentFragment) GetRepository() *GitRepositoryFragment { +func (t *NodePoolFragment) GetMinSize() int64 { if t == nil { - t = &ServiceDeploymentFragment{} + t = &NodePoolFragment{} } - return t.Repository + return t.MinSize } -func (t *ServiceDeploymentFragment) GetComponents() []*ServiceDeploymentFragment_Components { +func (t *NodePoolFragment) GetMaxSize() int64 { if t == nil { - t = &ServiceDeploymentFragment{} + t = &NodePoolFragment{} } - return t.Components + return t.MaxSize } -func (t *ServiceDeploymentFragment) GetProtect() *bool { +func (t *NodePoolFragment) GetInstanceType() string { if t == nil { - t = &ServiceDeploymentFragment{} + t = &NodePoolFragment{} } - return t.Protect + return t.InstanceType } -func (t *ServiceDeploymentFragment) GetDeletedAt() *string { +func (t *NodePoolFragment) GetLabels() map[string]interface{} { if t == nil { - t = &ServiceDeploymentFragment{} + t = &NodePoolFragment{} } - return t.DeletedAt + return t.Labels } -func (t *ServiceDeploymentFragment) GetSha() *string { +func (t *NodePoolFragment) GetTaints() []*NodePoolTaintFragment { if t == nil { - t = &ServiceDeploymentFragment{} + t = &NodePoolFragment{} } - return t.Sha + return t.Taints } -func (t *ServiceDeploymentFragment) GetTarball() *string { - if t == nil { - t = &ServiceDeploymentFragment{} - } - return t.Tarball + +type NodePoolTaintFragment struct { + Key string "json:\"key\" graphql:\"key\"" + Value string "json:\"value\" graphql:\"value\"" + Effect string "json:\"effect\" graphql:\"effect\"" } -func (t *ServiceDeploymentFragment) GetDryRun() *bool { + +func (t *NodePoolTaintFragment) GetKey() string { if t == nil { - t = &ServiceDeploymentFragment{} + t = &NodePoolTaintFragment{} } - return t.DryRun + return t.Key } -func (t *ServiceDeploymentFragment) GetTemplated() *bool { +func (t *NodePoolTaintFragment) GetValue() string { if t == nil { - t = &ServiceDeploymentFragment{} + t = &NodePoolTaintFragment{} } - return t.Templated + return t.Value } -func (t *ServiceDeploymentFragment) GetConfiguration() []*ServiceDeploymentFragment_Configuration { +func (t *NodePoolTaintFragment) GetEffect() string { if t == nil { - t = &ServiceDeploymentFragment{} + t = &NodePoolTaintFragment{} } - return t.Configuration + return t.Effect } -type ServiceDeploymentExtended struct { - Cluster *BaseClusterFragment "json:\"cluster,omitempty\" graphql:\"cluster\"" - Errors []*ErrorFragment "json:\"errors,omitempty\" graphql:\"errors\"" - Revision *RevisionFragment "json:\"revision,omitempty\" graphql:\"revision\"" - Contexts []*ServiceContextFragment "json:\"contexts,omitempty\" graphql:\"contexts\"" - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - Namespace string "json:\"namespace\" graphql:\"namespace\"" - Version string "json:\"version\" graphql:\"version\"" - Kustomize *KustomizeFragment "json:\"kustomize,omitempty\" graphql:\"kustomize\"" - Git *GitRefFragment "json:\"git,omitempty\" graphql:\"git\"" - Helm *HelmSpecFragment "json:\"helm,omitempty\" graphql:\"helm\"" - Repository *GitRepositoryFragment "json:\"repository,omitempty\" graphql:\"repository\"" - Components []*ServiceDeploymentExtended_ServiceDeploymentFragment_Components "json:\"components,omitempty\" graphql:\"components\"" - Protect *bool "json:\"protect,omitempty\" graphql:\"protect\"" - DeletedAt *string "json:\"deletedAt,omitempty\" graphql:\"deletedAt\"" - Sha *string "json:\"sha,omitempty\" graphql:\"sha\"" - Tarball *string "json:\"tarball,omitempty\" graphql:\"tarball\"" - DryRun *bool "json:\"dryRun,omitempty\" graphql:\"dryRun\"" - Templated *bool "json:\"templated,omitempty\" graphql:\"templated\"" - Configuration []*ServiceDeploymentExtended_ServiceDeploymentFragment_Configuration "json:\"configuration,omitempty\" graphql:\"configuration\"" +type ClusterStatusFragment struct { + Conditions []*ClusterConditionFragment "json:\"conditions,omitempty\" graphql:\"conditions\"" + ControlPlaneReady *bool "json:\"controlPlaneReady,omitempty\" graphql:\"controlPlaneReady\"" + FailureMessage *string "json:\"failureMessage,omitempty\" graphql:\"failureMessage\"" + FailureReason *string "json:\"failureReason,omitempty\" graphql:\"failureReason\"" + Phase *string "json:\"phase,omitempty\" graphql:\"phase\"" } -func (t *ServiceDeploymentExtended) GetCluster() *BaseClusterFragment { - if t == nil { - t = &ServiceDeploymentExtended{} - } - return t.Cluster -} -func (t *ServiceDeploymentExtended) GetErrors() []*ErrorFragment { - if t == nil { - t = &ServiceDeploymentExtended{} - } - return t.Errors -} -func (t *ServiceDeploymentExtended) GetRevision() *RevisionFragment { +func (t *ClusterStatusFragment) GetConditions() []*ClusterConditionFragment { if t == nil { - t = &ServiceDeploymentExtended{} + t = &ClusterStatusFragment{} } - return t.Revision + return t.Conditions } -func (t *ServiceDeploymentExtended) GetContexts() []*ServiceContextFragment { +func (t *ClusterStatusFragment) GetControlPlaneReady() *bool { if t == nil { - t = &ServiceDeploymentExtended{} + t = &ClusterStatusFragment{} } - return t.Contexts + return t.ControlPlaneReady } -func (t *ServiceDeploymentExtended) GetID() string { +func (t *ClusterStatusFragment) GetFailureMessage() *string { if t == nil { - t = &ServiceDeploymentExtended{} + t = &ClusterStatusFragment{} } - return t.ID + return t.FailureMessage } -func (t *ServiceDeploymentExtended) GetName() string { +func (t *ClusterStatusFragment) GetFailureReason() *string { if t == nil { - t = &ServiceDeploymentExtended{} + t = &ClusterStatusFragment{} } - return t.Name + return t.FailureReason } -func (t *ServiceDeploymentExtended) GetNamespace() string { +func (t *ClusterStatusFragment) GetPhase() *string { if t == nil { - t = &ServiceDeploymentExtended{} + t = &ClusterStatusFragment{} } - return t.Namespace + return t.Phase } -func (t *ServiceDeploymentExtended) GetVersion() string { - if t == nil { - t = &ServiceDeploymentExtended{} - } - return t.Version + +type ClusterConditionFragment struct { + LastTransitionTime *string "json:\"lastTransitionTime,omitempty\" graphql:\"lastTransitionTime\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Type *string "json:\"type,omitempty\" graphql:\"type\"" + Message *string "json:\"message,omitempty\" graphql:\"message\"" + Reason *string "json:\"reason,omitempty\" graphql:\"reason\"" + Severity *string "json:\"severity,omitempty\" graphql:\"severity\"" } -func (t *ServiceDeploymentExtended) GetKustomize() *KustomizeFragment { + +func (t *ClusterConditionFragment) GetLastTransitionTime() *string { if t == nil { - t = &ServiceDeploymentExtended{} + t = &ClusterConditionFragment{} } - return t.Kustomize + return t.LastTransitionTime } -func (t *ServiceDeploymentExtended) GetGit() *GitRefFragment { +func (t *ClusterConditionFragment) GetStatus() *string { if t == nil { - t = &ServiceDeploymentExtended{} + t = &ClusterConditionFragment{} } - return t.Git + return t.Status } -func (t *ServiceDeploymentExtended) GetHelm() *HelmSpecFragment { +func (t *ClusterConditionFragment) GetType() *string { if t == nil { - t = &ServiceDeploymentExtended{} + t = &ClusterConditionFragment{} } - return t.Helm + return t.Type } -func (t *ServiceDeploymentExtended) GetRepository() *GitRepositoryFragment { +func (t *ClusterConditionFragment) GetMessage() *string { if t == nil { - t = &ServiceDeploymentExtended{} + t = &ClusterConditionFragment{} } - return t.Repository + return t.Message } -func (t *ServiceDeploymentExtended) GetComponents() []*ServiceDeploymentExtended_ServiceDeploymentFragment_Components { +func (t *ClusterConditionFragment) GetReason() *string { if t == nil { - t = &ServiceDeploymentExtended{} + t = &ClusterConditionFragment{} } - return t.Components + return t.Reason } -func (t *ServiceDeploymentExtended) GetProtect() *bool { +func (t *ClusterConditionFragment) GetSeverity() *string { if t == nil { - t = &ServiceDeploymentExtended{} + t = &ClusterConditionFragment{} } - return t.Protect + return t.Severity } -func (t *ServiceDeploymentExtended) GetDeletedAt() *string { + +type PipelineGateEdgeFragment struct { + Node *PipelineGateFragment "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *PipelineGateEdgeFragment) GetNode() *PipelineGateFragment { if t == nil { - t = &ServiceDeploymentExtended{} + t = &PipelineGateEdgeFragment{} } - return t.DeletedAt + return t.Node } -func (t *ServiceDeploymentExtended) GetSha() *string { + +type PipelineGateFragment struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Type GateType "json:\"type\" graphql:\"type\"" + State GateState "json:\"state\" graphql:\"state\"" + UpdatedAt *string "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + Spec *GateSpecFragment "json:\"spec,omitempty\" graphql:\"spec\"" + Status *GateStatusFragment "json:\"status,omitempty\" graphql:\"status\"" +} + +func (t *PipelineGateFragment) GetID() string { if t == nil { - t = &ServiceDeploymentExtended{} + t = &PipelineGateFragment{} } - return t.Sha + return t.ID } -func (t *ServiceDeploymentExtended) GetTarball() *string { +func (t *PipelineGateFragment) GetName() string { if t == nil { - t = &ServiceDeploymentExtended{} + t = &PipelineGateFragment{} } - return t.Tarball + return t.Name } -func (t *ServiceDeploymentExtended) GetDryRun() *bool { +func (t *PipelineGateFragment) GetType() *GateType { if t == nil { - t = &ServiceDeploymentExtended{} + t = &PipelineGateFragment{} } - return t.DryRun + return &t.Type } -func (t *ServiceDeploymentExtended) GetTemplated() *bool { +func (t *PipelineGateFragment) GetState() *GateState { if t == nil { - t = &ServiceDeploymentExtended{} + t = &PipelineGateFragment{} } - return t.Templated + return &t.State } -func (t *ServiceDeploymentExtended) GetConfiguration() []*ServiceDeploymentExtended_ServiceDeploymentFragment_Configuration { +func (t *PipelineGateFragment) GetUpdatedAt() *string { if t == nil { - t = &ServiceDeploymentExtended{} + t = &PipelineGateFragment{} } - return t.Configuration -} - -type ErrorFragment struct { - Source string "json:\"source\" graphql:\"source\"" - Message string "json:\"message\" graphql:\"message\"" + return t.UpdatedAt } - -func (t *ErrorFragment) GetSource() string { +func (t *PipelineGateFragment) GetSpec() *GateSpecFragment { if t == nil { - t = &ErrorFragment{} + t = &PipelineGateFragment{} } - return t.Source + return t.Spec } -func (t *ErrorFragment) GetMessage() string { +func (t *PipelineGateFragment) GetStatus() *GateStatusFragment { if t == nil { - t = &ErrorFragment{} + t = &PipelineGateFragment{} } - return t.Message + return t.Status } -type RevisionFragment struct { - ID string "json:\"id\" graphql:\"id\"" - Sha *string "json:\"sha,omitempty\" graphql:\"sha\"" - Git *RevisionFragment_Git "json:\"git,omitempty\" graphql:\"git\"" +type GateSpecFragment struct { + Job *JobSpecFragment "json:\"job,omitempty\" graphql:\"job\"" } -func (t *RevisionFragment) GetID() string { +func (t *GateSpecFragment) GetJob() *JobSpecFragment { if t == nil { - t = &RevisionFragment{} + t = &GateSpecFragment{} } - return t.ID + return t.Job } -func (t *RevisionFragment) GetSha() *string { - if t == nil { - t = &RevisionFragment{} - } - return t.Sha + +type GateStatusFragment struct { + JobRef *JobReferenceFragment "json:\"jobRef,omitempty\" graphql:\"jobRef\"" } -func (t *RevisionFragment) GetGit() *RevisionFragment_Git { + +func (t *GateStatusFragment) GetJobRef() *JobReferenceFragment { if t == nil { - t = &RevisionFragment{} + t = &GateStatusFragment{} } - return t.Git + return t.JobRef } -type PolicyBindingFragment struct { - ID *string "json:\"id,omitempty\" graphql:\"id\"" - Group *GroupFragment "json:\"group,omitempty\" graphql:\"group\"" - User *UserFragment "json:\"user,omitempty\" graphql:\"user\"" +type JobSpecFragment struct { + Namespace string "json:\"namespace\" graphql:\"namespace\"" + Raw *string "json:\"raw,omitempty\" graphql:\"raw\"" + Containers []*ContainerSpecFragment "json:\"containers,omitempty\" graphql:\"containers\"" + Labels map[string]interface{} "json:\"labels,omitempty\" graphql:\"labels\"" + Annotations map[string]interface{} "json:\"annotations,omitempty\" graphql:\"annotations\"" + ServiceAccount *string "json:\"serviceAccount,omitempty\" graphql:\"serviceAccount\"" } -func (t *PolicyBindingFragment) GetID() *string { +func (t *JobSpecFragment) GetNamespace() string { if t == nil { - t = &PolicyBindingFragment{} + t = &JobSpecFragment{} } - return t.ID + return t.Namespace } -func (t *PolicyBindingFragment) GetGroup() *GroupFragment { +func (t *JobSpecFragment) GetRaw() *string { if t == nil { - t = &PolicyBindingFragment{} + t = &JobSpecFragment{} } - return t.Group + return t.Raw } -func (t *PolicyBindingFragment) GetUser() *UserFragment { +func (t *JobSpecFragment) GetContainers() []*ContainerSpecFragment { if t == nil { - t = &PolicyBindingFragment{} + t = &JobSpecFragment{} } - return t.User -} - -type UserFragment struct { - Name string "json:\"name\" graphql:\"name\"" - ID string "json:\"id\" graphql:\"id\"" - Email string "json:\"email\" graphql:\"email\"" + return t.Containers } - -func (t *UserFragment) GetName() string { +func (t *JobSpecFragment) GetLabels() map[string]interface{} { if t == nil { - t = &UserFragment{} + t = &JobSpecFragment{} } - return t.Name + return t.Labels } -func (t *UserFragment) GetID() string { +func (t *JobSpecFragment) GetAnnotations() map[string]interface{} { if t == nil { - t = &UserFragment{} + t = &JobSpecFragment{} } - return t.ID + return t.Annotations } -func (t *UserFragment) GetEmail() string { +func (t *JobSpecFragment) GetServiceAccount() *string { if t == nil { - t = &UserFragment{} + t = &JobSpecFragment{} } - return t.Email + return t.ServiceAccount } -type GroupFragment struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" +type JobReferenceFragment struct { + Name string "json:\"name\" graphql:\"name\"" + Namespace string "json:\"namespace\" graphql:\"namespace\"" } -func (t *GroupFragment) GetID() string { - if t == nil { - t = &GroupFragment{} - } - return t.ID -} -func (t *GroupFragment) GetName() string { +func (t *JobReferenceFragment) GetName() string { if t == nil { - t = &GroupFragment{} + t = &JobReferenceFragment{} } return t.Name } -func (t *GroupFragment) GetDescription() *string { +func (t *JobReferenceFragment) GetNamespace() string { if t == nil { - t = &GroupFragment{} + t = &JobReferenceFragment{} } - return t.Description + return t.Namespace } -type GroupMemberFragment struct { - ID string "json:\"id\" graphql:\"id\"" - User *GroupMemberFragment_User "json:\"user,omitempty\" graphql:\"user\"" - Group *GroupMemberFragment_Group "json:\"group,omitempty\" graphql:\"group\"" +type ContainerSpecFragment struct { + Image string "json:\"image\" graphql:\"image\"" + Args []*string "json:\"args,omitempty\" graphql:\"args\"" + Env []*ContainerSpecFragment_Env "json:\"env,omitempty\" graphql:\"env\"" + EnvFrom []*ContainerSpecFragment_EnvFrom "json:\"envFrom,omitempty\" graphql:\"envFrom\"" } -func (t *GroupMemberFragment) GetID() string { +func (t *ContainerSpecFragment) GetImage() string { if t == nil { - t = &GroupMemberFragment{} + t = &ContainerSpecFragment{} } - return t.ID + return t.Image } -func (t *GroupMemberFragment) GetUser() *GroupMemberFragment_User { +func (t *ContainerSpecFragment) GetArgs() []*string { if t == nil { - t = &GroupMemberFragment{} + t = &ContainerSpecFragment{} } - return t.User + return t.Args } -func (t *GroupMemberFragment) GetGroup() *GroupMemberFragment_Group { +func (t *ContainerSpecFragment) GetEnv() []*ContainerSpecFragment_Env { if t == nil { - t = &GroupMemberFragment{} + t = &ContainerSpecFragment{} } - return t.Group + return t.Env +} +func (t *ContainerSpecFragment) GetEnvFrom() []*ContainerSpecFragment_EnvFrom { + if t == nil { + t = &ContainerSpecFragment{} + } + return t.EnvFrom } type GitRepositoryFragment struct { @@ -908,851 +819,842 @@ func (t *GitRepositoryFragment) GetDecrypt() *bool { return t.Decrypt } -type GitRefFragment struct { - Folder string "json:\"folder\" graphql:\"folder\"" - Ref string "json:\"ref\" graphql:\"ref\"" -} - -func (t *GitRefFragment) GetFolder() string { - if t == nil { - t = &GitRefFragment{} - } - return t.Folder -} -func (t *GitRefFragment) GetRef() string { - if t == nil { - t = &GitRefFragment{} - } - return t.Ref -} - -type HelmSpecFragment struct { - ValuesFiles []*string "json:\"valuesFiles,omitempty\" graphql:\"valuesFiles\"" +type KustomizeFragment struct { + Path string "json:\"path\" graphql:\"path\"" } -func (t *HelmSpecFragment) GetValuesFiles() []*string { +func (t *KustomizeFragment) GetPath() string { if t == nil { - t = &HelmSpecFragment{} + t = &KustomizeFragment{} } - return t.ValuesFiles + return t.Path } -type TinyClusterFragment struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - Handle *string "json:\"handle,omitempty\" graphql:\"handle\"" - Self *bool "json:\"self,omitempty\" graphql:\"self\"" +type ServiceDeploymentBaseFragment struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Namespace string "json:\"namespace\" graphql:\"namespace\"" + Version string "json:\"version\" graphql:\"version\"" + Kustomize *KustomizeFragment "json:\"kustomize,omitempty\" graphql:\"kustomize\"" + Git *GitRefFragment "json:\"git,omitempty\" graphql:\"git\"" + Helm *HelmSpecFragment "json:\"helm,omitempty\" graphql:\"helm\"" + Repository *GitRepositoryFragment "json:\"repository,omitempty\" graphql:\"repository\"" } -func (t *TinyClusterFragment) GetID() string { +func (t *ServiceDeploymentBaseFragment) GetID() string { if t == nil { - t = &TinyClusterFragment{} + t = &ServiceDeploymentBaseFragment{} } return t.ID } -func (t *TinyClusterFragment) GetName() string { +func (t *ServiceDeploymentBaseFragment) GetName() string { if t == nil { - t = &TinyClusterFragment{} + t = &ServiceDeploymentBaseFragment{} } return t.Name } -func (t *TinyClusterFragment) GetHandle() *string { +func (t *ServiceDeploymentBaseFragment) GetNamespace() string { if t == nil { - t = &TinyClusterFragment{} + t = &ServiceDeploymentBaseFragment{} } - return t.Handle + return t.Namespace } -func (t *TinyClusterFragment) GetSelf() *bool { +func (t *ServiceDeploymentBaseFragment) GetVersion() string { if t == nil { - t = &TinyClusterFragment{} + t = &ServiceDeploymentBaseFragment{} } - return t.Self -} - -type BaseClusterFragment struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - Handle *string "json:\"handle,omitempty\" graphql:\"handle\"" - Self *bool "json:\"self,omitempty\" graphql:\"self\"" - Version *string "json:\"version,omitempty\" graphql:\"version\"" - PingedAt *string "json:\"pingedAt,omitempty\" graphql:\"pingedAt\"" - CurrentVersion *string "json:\"currentVersion,omitempty\" graphql:\"currentVersion\"" - KasURL *string "json:\"kasUrl,omitempty\" graphql:\"kasUrl\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Credential *ProviderCredentialFragment "json:\"credential,omitempty\" graphql:\"credential\"" - Provider *BaseClusterProviderFragment "json:\"provider,omitempty\" graphql:\"provider\"" - NodePools []*NodePoolFragment "json:\"nodePools,omitempty\" graphql:\"nodePools\"" + return t.Version } - -func (t *BaseClusterFragment) GetID() string { +func (t *ServiceDeploymentBaseFragment) GetKustomize() *KustomizeFragment { if t == nil { - t = &BaseClusterFragment{} + t = &ServiceDeploymentBaseFragment{} } - return t.ID + return t.Kustomize } -func (t *BaseClusterFragment) GetName() string { +func (t *ServiceDeploymentBaseFragment) GetGit() *GitRefFragment { if t == nil { - t = &BaseClusterFragment{} + t = &ServiceDeploymentBaseFragment{} } - return t.Name + return t.Git } -func (t *BaseClusterFragment) GetHandle() *string { +func (t *ServiceDeploymentBaseFragment) GetHelm() *HelmSpecFragment { if t == nil { - t = &BaseClusterFragment{} + t = &ServiceDeploymentBaseFragment{} } - return t.Handle + return t.Helm } -func (t *BaseClusterFragment) GetSelf() *bool { +func (t *ServiceDeploymentBaseFragment) GetRepository() *GitRepositoryFragment { if t == nil { - t = &BaseClusterFragment{} + t = &ServiceDeploymentBaseFragment{} } - return t.Self + return t.Repository } -func (t *BaseClusterFragment) GetVersion() *string { - if t == nil { - t = &BaseClusterFragment{} - } - return t.Version + +type ServiceContextFragment struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Configuration map[string]interface{} "json:\"configuration,omitempty\" graphql:\"configuration\"" } -func (t *BaseClusterFragment) GetPingedAt() *string { + +func (t *ServiceContextFragment) GetID() string { if t == nil { - t = &BaseClusterFragment{} + t = &ServiceContextFragment{} } - return t.PingedAt + return t.ID } -func (t *BaseClusterFragment) GetCurrentVersion() *string { +func (t *ServiceContextFragment) GetName() string { if t == nil { - t = &BaseClusterFragment{} + t = &ServiceContextFragment{} } - return t.CurrentVersion + return t.Name } -func (t *BaseClusterFragment) GetKasURL() *string { +func (t *ServiceContextFragment) GetConfiguration() map[string]interface{} { if t == nil { - t = &BaseClusterFragment{} + t = &ServiceContextFragment{} } - return t.KasURL + return t.Configuration } -func (t *BaseClusterFragment) GetMetadata() map[string]interface{} { - if t == nil { - t = &BaseClusterFragment{} - } - return t.Metadata + +type ComponentContentFragment struct { + ID string "json:\"id\" graphql:\"id\"" + Live *string "json:\"live,omitempty\" graphql:\"live\"" + Desired *string "json:\"desired,omitempty\" graphql:\"desired\"" } -func (t *BaseClusterFragment) GetCredential() *ProviderCredentialFragment { + +func (t *ComponentContentFragment) GetID() string { if t == nil { - t = &BaseClusterFragment{} + t = &ComponentContentFragment{} } - return t.Credential + return t.ID } -func (t *BaseClusterFragment) GetProvider() *BaseClusterProviderFragment { +func (t *ComponentContentFragment) GetLive() *string { if t == nil { - t = &BaseClusterFragment{} + t = &ComponentContentFragment{} } - return t.Provider + return t.Live } -func (t *BaseClusterFragment) GetNodePools() []*NodePoolFragment { +func (t *ComponentContentFragment) GetDesired() *string { if t == nil { - t = &BaseClusterFragment{} + t = &ComponentContentFragment{} } - return t.NodePools + return t.Desired } -type ClusterFragment struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - Handle *string "json:\"handle,omitempty\" graphql:\"handle\"" - Self *bool "json:\"self,omitempty\" graphql:\"self\"" - Version *string "json:\"version,omitempty\" graphql:\"version\"" - InsertedAt *string "json:\"insertedAt,omitempty\" graphql:\"insertedAt\"" - PingedAt *string "json:\"pingedAt,omitempty\" graphql:\"pingedAt\"" - Protect *bool "json:\"protect,omitempty\" graphql:\"protect\"" - CurrentVersion *string "json:\"currentVersion,omitempty\" graphql:\"currentVersion\"" - KasURL *string "json:\"kasUrl,omitempty\" graphql:\"kasUrl\"" - DeletedAt *string "json:\"deletedAt,omitempty\" graphql:\"deletedAt\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Tags []*ClusterTags "json:\"tags,omitempty\" graphql:\"tags\"" - Credential *ProviderCredentialFragment "json:\"credential,omitempty\" graphql:\"credential\"" - Provider *ClusterProviderFragment "json:\"provider,omitempty\" graphql:\"provider\"" - NodePools []*NodePoolFragment "json:\"nodePools,omitempty\" graphql:\"nodePools\"" - Status *ClusterStatusFragment "json:\"status,omitempty\" graphql:\"status\"" +type ServiceDeploymentFragment struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Namespace string "json:\"namespace\" graphql:\"namespace\"" + Version string "json:\"version\" graphql:\"version\"" + Kustomize *KustomizeFragment "json:\"kustomize,omitempty\" graphql:\"kustomize\"" + Git *GitRefFragment "json:\"git,omitempty\" graphql:\"git\"" + Helm *HelmSpecFragment "json:\"helm,omitempty\" graphql:\"helm\"" + Repository *GitRepositoryFragment "json:\"repository,omitempty\" graphql:\"repository\"" + Components []*ServiceDeploymentFragment_Components "json:\"components,omitempty\" graphql:\"components\"" + Protect *bool "json:\"protect,omitempty\" graphql:\"protect\"" + DeletedAt *string "json:\"deletedAt,omitempty\" graphql:\"deletedAt\"" + Sha *string "json:\"sha,omitempty\" graphql:\"sha\"" + Tarball *string "json:\"tarball,omitempty\" graphql:\"tarball\"" + DryRun *bool "json:\"dryRun,omitempty\" graphql:\"dryRun\"" + Templated *bool "json:\"templated,omitempty\" graphql:\"templated\"" + Configuration []*ServiceDeploymentFragment_Configuration "json:\"configuration,omitempty\" graphql:\"configuration\"" } -func (t *ClusterFragment) GetID() string { +func (t *ServiceDeploymentFragment) GetID() string { if t == nil { - t = &ClusterFragment{} + t = &ServiceDeploymentFragment{} } return t.ID } -func (t *ClusterFragment) GetName() string { +func (t *ServiceDeploymentFragment) GetName() string { if t == nil { - t = &ClusterFragment{} + t = &ServiceDeploymentFragment{} } return t.Name } -func (t *ClusterFragment) GetHandle() *string { +func (t *ServiceDeploymentFragment) GetNamespace() string { if t == nil { - t = &ClusterFragment{} + t = &ServiceDeploymentFragment{} } - return t.Handle + return t.Namespace } -func (t *ClusterFragment) GetSelf() *bool { +func (t *ServiceDeploymentFragment) GetVersion() string { if t == nil { - t = &ClusterFragment{} + t = &ServiceDeploymentFragment{} } - return t.Self + return t.Version } -func (t *ClusterFragment) GetVersion() *string { +func (t *ServiceDeploymentFragment) GetKustomize() *KustomizeFragment { if t == nil { - t = &ClusterFragment{} + t = &ServiceDeploymentFragment{} } - return t.Version + return t.Kustomize } -func (t *ClusterFragment) GetInsertedAt() *string { +func (t *ServiceDeploymentFragment) GetGit() *GitRefFragment { if t == nil { - t = &ClusterFragment{} + t = &ServiceDeploymentFragment{} } - return t.InsertedAt + return t.Git } -func (t *ClusterFragment) GetPingedAt() *string { +func (t *ServiceDeploymentFragment) GetHelm() *HelmSpecFragment { if t == nil { - t = &ClusterFragment{} + t = &ServiceDeploymentFragment{} } - return t.PingedAt + return t.Helm } -func (t *ClusterFragment) GetProtect() *bool { +func (t *ServiceDeploymentFragment) GetRepository() *GitRepositoryFragment { if t == nil { - t = &ClusterFragment{} + t = &ServiceDeploymentFragment{} } - return t.Protect + return t.Repository } -func (t *ClusterFragment) GetCurrentVersion() *string { +func (t *ServiceDeploymentFragment) GetComponents() []*ServiceDeploymentFragment_Components { if t == nil { - t = &ClusterFragment{} + t = &ServiceDeploymentFragment{} } - return t.CurrentVersion + return t.Components } -func (t *ClusterFragment) GetKasURL() *string { +func (t *ServiceDeploymentFragment) GetProtect() *bool { if t == nil { - t = &ClusterFragment{} + t = &ServiceDeploymentFragment{} } - return t.KasURL + return t.Protect } -func (t *ClusterFragment) GetDeletedAt() *string { +func (t *ServiceDeploymentFragment) GetDeletedAt() *string { if t == nil { - t = &ClusterFragment{} + t = &ServiceDeploymentFragment{} } return t.DeletedAt } -func (t *ClusterFragment) GetMetadata() map[string]interface{} { +func (t *ServiceDeploymentFragment) GetSha() *string { if t == nil { - t = &ClusterFragment{} + t = &ServiceDeploymentFragment{} } - return t.Metadata + return t.Sha } -func (t *ClusterFragment) GetTags() []*ClusterTags { +func (t *ServiceDeploymentFragment) GetTarball() *string { if t == nil { - t = &ClusterFragment{} + t = &ServiceDeploymentFragment{} } - return t.Tags + return t.Tarball } -func (t *ClusterFragment) GetCredential() *ProviderCredentialFragment { +func (t *ServiceDeploymentFragment) GetDryRun() *bool { if t == nil { - t = &ClusterFragment{} + t = &ServiceDeploymentFragment{} } - return t.Credential + return t.DryRun +} +func (t *ServiceDeploymentFragment) GetTemplated() *bool { + if t == nil { + t = &ServiceDeploymentFragment{} + } + return t.Templated +} +func (t *ServiceDeploymentFragment) GetConfiguration() []*ServiceDeploymentFragment_Configuration { + if t == nil { + t = &ServiceDeploymentFragment{} + } + return t.Configuration +} + +type ServiceDeploymentExtended struct { + Cluster *BaseClusterFragment "json:\"cluster,omitempty\" graphql:\"cluster\"" + Errors []*ErrorFragment "json:\"errors,omitempty\" graphql:\"errors\"" + Revision *RevisionFragment "json:\"revision,omitempty\" graphql:\"revision\"" + Contexts []*ServiceContextFragment "json:\"contexts,omitempty\" graphql:\"contexts\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Namespace string "json:\"namespace\" graphql:\"namespace\"" + Version string "json:\"version\" graphql:\"version\"" + Kustomize *KustomizeFragment "json:\"kustomize,omitempty\" graphql:\"kustomize\"" + Git *GitRefFragment "json:\"git,omitempty\" graphql:\"git\"" + Helm *HelmSpecFragment "json:\"helm,omitempty\" graphql:\"helm\"" + Repository *GitRepositoryFragment "json:\"repository,omitempty\" graphql:\"repository\"" + Components []*ServiceDeploymentExtended_ServiceDeploymentFragment_Components "json:\"components,omitempty\" graphql:\"components\"" + Protect *bool "json:\"protect,omitempty\" graphql:\"protect\"" + DeletedAt *string "json:\"deletedAt,omitempty\" graphql:\"deletedAt\"" + Sha *string "json:\"sha,omitempty\" graphql:\"sha\"" + Tarball *string "json:\"tarball,omitempty\" graphql:\"tarball\"" + DryRun *bool "json:\"dryRun,omitempty\" graphql:\"dryRun\"" + Templated *bool "json:\"templated,omitempty\" graphql:\"templated\"" + Configuration []*ServiceDeploymentExtended_ServiceDeploymentFragment_Configuration "json:\"configuration,omitempty\" graphql:\"configuration\"" } -func (t *ClusterFragment) GetProvider() *ClusterProviderFragment { + +func (t *ServiceDeploymentExtended) GetCluster() *BaseClusterFragment { if t == nil { - t = &ClusterFragment{} + t = &ServiceDeploymentExtended{} } - return t.Provider + return t.Cluster } -func (t *ClusterFragment) GetNodePools() []*NodePoolFragment { +func (t *ServiceDeploymentExtended) GetErrors() []*ErrorFragment { if t == nil { - t = &ClusterFragment{} + t = &ServiceDeploymentExtended{} } - return t.NodePools + return t.Errors } -func (t *ClusterFragment) GetStatus() *ClusterStatusFragment { +func (t *ServiceDeploymentExtended) GetRevision() *RevisionFragment { if t == nil { - t = &ClusterFragment{} + t = &ServiceDeploymentExtended{} } - return t.Status -} - -type ClusterStatusFragment struct { - Conditions []*ClusterConditionFragment "json:\"conditions,omitempty\" graphql:\"conditions\"" - ControlPlaneReady *bool "json:\"controlPlaneReady,omitempty\" graphql:\"controlPlaneReady\"" - FailureMessage *string "json:\"failureMessage,omitempty\" graphql:\"failureMessage\"" - FailureReason *string "json:\"failureReason,omitempty\" graphql:\"failureReason\"" - Phase *string "json:\"phase,omitempty\" graphql:\"phase\"" + return t.Revision } - -func (t *ClusterStatusFragment) GetConditions() []*ClusterConditionFragment { +func (t *ServiceDeploymentExtended) GetContexts() []*ServiceContextFragment { if t == nil { - t = &ClusterStatusFragment{} + t = &ServiceDeploymentExtended{} } - return t.Conditions + return t.Contexts } -func (t *ClusterStatusFragment) GetControlPlaneReady() *bool { +func (t *ServiceDeploymentExtended) GetID() string { if t == nil { - t = &ClusterStatusFragment{} + t = &ServiceDeploymentExtended{} } - return t.ControlPlaneReady + return t.ID } -func (t *ClusterStatusFragment) GetFailureMessage() *string { +func (t *ServiceDeploymentExtended) GetName() string { if t == nil { - t = &ClusterStatusFragment{} + t = &ServiceDeploymentExtended{} } - return t.FailureMessage + return t.Name } -func (t *ClusterStatusFragment) GetFailureReason() *string { +func (t *ServiceDeploymentExtended) GetNamespace() string { if t == nil { - t = &ClusterStatusFragment{} + t = &ServiceDeploymentExtended{} } - return t.FailureReason + return t.Namespace } -func (t *ClusterStatusFragment) GetPhase() *string { +func (t *ServiceDeploymentExtended) GetVersion() string { if t == nil { - t = &ClusterStatusFragment{} + t = &ServiceDeploymentExtended{} } - return t.Phase -} - -type ClusterConditionFragment struct { - LastTransitionTime *string "json:\"lastTransitionTime,omitempty\" graphql:\"lastTransitionTime\"" - Status *string "json:\"status,omitempty\" graphql:\"status\"" - Type *string "json:\"type,omitempty\" graphql:\"type\"" - Message *string "json:\"message,omitempty\" graphql:\"message\"" - Reason *string "json:\"reason,omitempty\" graphql:\"reason\"" - Severity *string "json:\"severity,omitempty\" graphql:\"severity\"" + return t.Version } - -func (t *ClusterConditionFragment) GetLastTransitionTime() *string { +func (t *ServiceDeploymentExtended) GetKustomize() *KustomizeFragment { if t == nil { - t = &ClusterConditionFragment{} + t = &ServiceDeploymentExtended{} } - return t.LastTransitionTime + return t.Kustomize } -func (t *ClusterConditionFragment) GetStatus() *string { +func (t *ServiceDeploymentExtended) GetGit() *GitRefFragment { if t == nil { - t = &ClusterConditionFragment{} + t = &ServiceDeploymentExtended{} } - return t.Status + return t.Git } -func (t *ClusterConditionFragment) GetType() *string { +func (t *ServiceDeploymentExtended) GetHelm() *HelmSpecFragment { if t == nil { - t = &ClusterConditionFragment{} + t = &ServiceDeploymentExtended{} } - return t.Type + return t.Helm } -func (t *ClusterConditionFragment) GetMessage() *string { +func (t *ServiceDeploymentExtended) GetRepository() *GitRepositoryFragment { if t == nil { - t = &ClusterConditionFragment{} + t = &ServiceDeploymentExtended{} } - return t.Message + return t.Repository } -func (t *ClusterConditionFragment) GetReason() *string { +func (t *ServiceDeploymentExtended) GetComponents() []*ServiceDeploymentExtended_ServiceDeploymentFragment_Components { if t == nil { - t = &ClusterConditionFragment{} + t = &ServiceDeploymentExtended{} } - return t.Reason + return t.Components } -func (t *ClusterConditionFragment) GetSeverity() *string { +func (t *ServiceDeploymentExtended) GetProtect() *bool { if t == nil { - t = &ClusterConditionFragment{} + t = &ServiceDeploymentExtended{} } - return t.Severity -} - -type ClusterTags struct { - Name string "json:\"name\" graphql:\"name\"" - Value string "json:\"value\" graphql:\"value\"" + return t.Protect } - -func (t *ClusterTags) GetName() string { +func (t *ServiceDeploymentExtended) GetDeletedAt() *string { if t == nil { - t = &ClusterTags{} + t = &ServiceDeploymentExtended{} } - return t.Name + return t.DeletedAt } -func (t *ClusterTags) GetValue() string { +func (t *ServiceDeploymentExtended) GetSha() *string { if t == nil { - t = &ClusterTags{} + t = &ServiceDeploymentExtended{} } - return t.Value -} - -type NodePoolFragment struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - MinSize int64 "json:\"minSize\" graphql:\"minSize\"" - MaxSize int64 "json:\"maxSize\" graphql:\"maxSize\"" - InstanceType string "json:\"instanceType\" graphql:\"instanceType\"" - Labels map[string]interface{} "json:\"labels,omitempty\" graphql:\"labels\"" - Taints []*NodePoolTaintFragment "json:\"taints,omitempty\" graphql:\"taints\"" + return t.Sha } - -func (t *NodePoolFragment) GetID() string { +func (t *ServiceDeploymentExtended) GetTarball() *string { if t == nil { - t = &NodePoolFragment{} + t = &ServiceDeploymentExtended{} } - return t.ID + return t.Tarball } -func (t *NodePoolFragment) GetName() string { +func (t *ServiceDeploymentExtended) GetDryRun() *bool { if t == nil { - t = &NodePoolFragment{} + t = &ServiceDeploymentExtended{} } - return t.Name + return t.DryRun } -func (t *NodePoolFragment) GetMinSize() int64 { +func (t *ServiceDeploymentExtended) GetTemplated() *bool { if t == nil { - t = &NodePoolFragment{} + t = &ServiceDeploymentExtended{} } - return t.MinSize + return t.Templated } -func (t *NodePoolFragment) GetMaxSize() int64 { +func (t *ServiceDeploymentExtended) GetConfiguration() []*ServiceDeploymentExtended_ServiceDeploymentFragment_Configuration { if t == nil { - t = &NodePoolFragment{} + t = &ServiceDeploymentExtended{} } - return t.MaxSize + return t.Configuration } -func (t *NodePoolFragment) GetInstanceType() string { - if t == nil { - t = &NodePoolFragment{} - } - return t.InstanceType + +type ErrorFragment struct { + Source string "json:\"source\" graphql:\"source\"" + Message string "json:\"message\" graphql:\"message\"" } -func (t *NodePoolFragment) GetLabels() map[string]interface{} { + +func (t *ErrorFragment) GetSource() string { if t == nil { - t = &NodePoolFragment{} + t = &ErrorFragment{} } - return t.Labels + return t.Source } -func (t *NodePoolFragment) GetTaints() []*NodePoolTaintFragment { +func (t *ErrorFragment) GetMessage() string { if t == nil { - t = &NodePoolFragment{} + t = &ErrorFragment{} } - return t.Taints + return t.Message } -type NodePoolTaintFragment struct { - Key string "json:\"key\" graphql:\"key\"" - Value string "json:\"value\" graphql:\"value\"" - Effect string "json:\"effect\" graphql:\"effect\"" +type RevisionFragment struct { + ID string "json:\"id\" graphql:\"id\"" + Sha *string "json:\"sha,omitempty\" graphql:\"sha\"" + Git *RevisionFragment_Git "json:\"git,omitempty\" graphql:\"git\"" } -func (t *NodePoolTaintFragment) GetKey() string { +func (t *RevisionFragment) GetID() string { if t == nil { - t = &NodePoolTaintFragment{} + t = &RevisionFragment{} } - return t.Key + return t.ID } -func (t *NodePoolTaintFragment) GetValue() string { +func (t *RevisionFragment) GetSha() *string { if t == nil { - t = &NodePoolTaintFragment{} + t = &RevisionFragment{} } - return t.Value + return t.Sha } -func (t *NodePoolTaintFragment) GetEffect() string { +func (t *RevisionFragment) GetGit() *RevisionFragment_Git { if t == nil { - t = &NodePoolTaintFragment{} + t = &RevisionFragment{} } - return t.Effect + return t.Git } -type BaseClusterProviderFragment struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - Namespace string "json:\"namespace\" graphql:\"namespace\"" - Cloud string "json:\"cloud\" graphql:\"cloud\"" - Editable *bool "json:\"editable,omitempty\" graphql:\"editable\"" - Repository *GitRepositoryFragment "json:\"repository,omitempty\" graphql:\"repository\"" +type PolicyBindingFragment struct { + ID *string "json:\"id,omitempty\" graphql:\"id\"" + Group *GroupFragment "json:\"group,omitempty\" graphql:\"group\"" + User *UserFragment "json:\"user,omitempty\" graphql:\"user\"" } -func (t *BaseClusterProviderFragment) GetID() string { +func (t *PolicyBindingFragment) GetID() *string { if t == nil { - t = &BaseClusterProviderFragment{} + t = &PolicyBindingFragment{} } return t.ID } -func (t *BaseClusterProviderFragment) GetName() string { +func (t *PolicyBindingFragment) GetGroup() *GroupFragment { if t == nil { - t = &BaseClusterProviderFragment{} + t = &PolicyBindingFragment{} } - return t.Name + return t.Group } -func (t *BaseClusterProviderFragment) GetNamespace() string { +func (t *PolicyBindingFragment) GetUser() *UserFragment { if t == nil { - t = &BaseClusterProviderFragment{} + t = &PolicyBindingFragment{} } - return t.Namespace + return t.User } -func (t *BaseClusterProviderFragment) GetCloud() string { + +type UserFragment struct { + Name string "json:\"name\" graphql:\"name\"" + ID string "json:\"id\" graphql:\"id\"" + Email string "json:\"email\" graphql:\"email\"" +} + +func (t *UserFragment) GetName() string { if t == nil { - t = &BaseClusterProviderFragment{} + t = &UserFragment{} } - return t.Cloud + return t.Name } -func (t *BaseClusterProviderFragment) GetEditable() *bool { +func (t *UserFragment) GetID() string { if t == nil { - t = &BaseClusterProviderFragment{} + t = &UserFragment{} } - return t.Editable + return t.ID } -func (t *BaseClusterProviderFragment) GetRepository() *GitRepositoryFragment { +func (t *UserFragment) GetEmail() string { if t == nil { - t = &BaseClusterProviderFragment{} + t = &UserFragment{} } - return t.Repository + return t.Email } -type ClusterProviderFragment struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - Namespace string "json:\"namespace\" graphql:\"namespace\"" - Cloud string "json:\"cloud\" graphql:\"cloud\"" - Editable *bool "json:\"editable,omitempty\" graphql:\"editable\"" - DeletedAt *string "json:\"deletedAt,omitempty\" graphql:\"deletedAt\"" - Repository *GitRepositoryFragment "json:\"repository,omitempty\" graphql:\"repository\"" - Service *ServiceDeploymentFragment "json:\"service,omitempty\" graphql:\"service\"" - Credentials []*ProviderCredentialFragment "json:\"credentials,omitempty\" graphql:\"credentials\"" +type GroupFragment struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" } -func (t *ClusterProviderFragment) GetID() string { +func (t *GroupFragment) GetID() string { if t == nil { - t = &ClusterProviderFragment{} + t = &GroupFragment{} } return t.ID } -func (t *ClusterProviderFragment) GetName() string { +func (t *GroupFragment) GetName() string { if t == nil { - t = &ClusterProviderFragment{} + t = &GroupFragment{} } return t.Name } -func (t *ClusterProviderFragment) GetNamespace() string { +func (t *GroupFragment) GetDescription() *string { if t == nil { - t = &ClusterProviderFragment{} + t = &GroupFragment{} } - return t.Namespace + return t.Description } -func (t *ClusterProviderFragment) GetCloud() string { + +type GroupMemberFragment struct { + ID string "json:\"id\" graphql:\"id\"" + User *GroupMemberFragment_User "json:\"user,omitempty\" graphql:\"user\"" + Group *GroupMemberFragment_Group "json:\"group,omitempty\" graphql:\"group\"" +} + +func (t *GroupMemberFragment) GetID() string { if t == nil { - t = &ClusterProviderFragment{} + t = &GroupMemberFragment{} } - return t.Cloud + return t.ID } -func (t *ClusterProviderFragment) GetEditable() *bool { +func (t *GroupMemberFragment) GetUser() *GroupMemberFragment_User { if t == nil { - t = &ClusterProviderFragment{} + t = &GroupMemberFragment{} } - return t.Editable + return t.User } -func (t *ClusterProviderFragment) GetDeletedAt() *string { +func (t *GroupMemberFragment) GetGroup() *GroupMemberFragment_Group { if t == nil { - t = &ClusterProviderFragment{} + t = &GroupMemberFragment{} } - return t.DeletedAt + return t.Group } -func (t *ClusterProviderFragment) GetRepository() *GitRepositoryFragment { + +type GitRefFragment struct { + Folder string "json:\"folder\" graphql:\"folder\"" + Ref string "json:\"ref\" graphql:\"ref\"" +} + +func (t *GitRefFragment) GetFolder() string { if t == nil { - t = &ClusterProviderFragment{} + t = &GitRefFragment{} } - return t.Repository + return t.Folder } -func (t *ClusterProviderFragment) GetService() *ServiceDeploymentFragment { +func (t *GitRefFragment) GetRef() string { if t == nil { - t = &ClusterProviderFragment{} + t = &GitRefFragment{} } - return t.Service + return t.Ref } -func (t *ClusterProviderFragment) GetCredentials() []*ProviderCredentialFragment { + +type HelmSpecFragment struct { + ValuesFiles []*string "json:\"valuesFiles,omitempty\" graphql:\"valuesFiles\"" +} + +func (t *HelmSpecFragment) GetValuesFiles() []*string { if t == nil { - t = &ClusterProviderFragment{} + t = &HelmSpecFragment{} } - return t.Credentials + return t.ValuesFiles } -type AccessTokenFragment struct { - ID *string "json:\"id,omitempty\" graphql:\"id\"" - Token *string "json:\"token,omitempty\" graphql:\"token\"" +type TinyClusterFragment struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Handle *string "json:\"handle,omitempty\" graphql:\"handle\"" + Self *bool "json:\"self,omitempty\" graphql:\"self\"" + Project *TinyProjectFragment "json:\"project,omitempty\" graphql:\"project\"" } -func (t *AccessTokenFragment) GetID() *string { +func (t *TinyClusterFragment) GetID() string { if t == nil { - t = &AccessTokenFragment{} + t = &TinyClusterFragment{} } return t.ID } -func (t *AccessTokenFragment) GetToken() *string { +func (t *TinyClusterFragment) GetName() string { if t == nil { - t = &AccessTokenFragment{} + t = &TinyClusterFragment{} } - return t.Token -} - -type AccessTokenEdgeFragment struct { - Node *AccessTokenFragment "json:\"node,omitempty\" graphql:\"node\"" + return t.Name } - -func (t *AccessTokenEdgeFragment) GetNode() *AccessTokenFragment { +func (t *TinyClusterFragment) GetHandle() *string { if t == nil { - t = &AccessTokenEdgeFragment{} + t = &TinyClusterFragment{} } - return t.Node -} - -type GitRepositoryEdgeFragment struct { - Node *GitRepositoryFragment "json:\"node,omitempty\" graphql:\"node\"" - Cursor *string "json:\"cursor,omitempty\" graphql:\"cursor\"" + return t.Handle } - -func (t *GitRepositoryEdgeFragment) GetNode() *GitRepositoryFragment { +func (t *TinyClusterFragment) GetSelf() *bool { if t == nil { - t = &GitRepositoryEdgeFragment{} + t = &TinyClusterFragment{} } - return t.Node + return t.Self } -func (t *GitRepositoryEdgeFragment) GetCursor() *string { +func (t *TinyClusterFragment) GetProject() *TinyProjectFragment { if t == nil { - t = &GitRepositoryEdgeFragment{} + t = &TinyClusterFragment{} } - return t.Cursor + return t.Project } -type DeploymentSettingsFragment struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - AgentHelmValues *string "json:\"agentHelmValues,omitempty\" graphql:\"agentHelmValues\"" - AgentVsn string "json:\"agentVsn\" graphql:\"agentVsn\"" - WriteBindings []*PolicyBindingFragment "json:\"writeBindings,omitempty\" graphql:\"writeBindings\"" - ReadBindings []*PolicyBindingFragment "json:\"readBindings,omitempty\" graphql:\"readBindings\"" - CreateBindings []*PolicyBindingFragment "json:\"createBindings,omitempty\" graphql:\"createBindings\"" - ArtifactRepository *GitRepositoryFragment "json:\"artifactRepository,omitempty\" graphql:\"artifactRepository\"" - DeployerRepository *GitRepositoryFragment "json:\"deployerRepository,omitempty\" graphql:\"deployerRepository\"" +type BaseClusterFragment struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Handle *string "json:\"handle,omitempty\" graphql:\"handle\"" + Self *bool "json:\"self,omitempty\" graphql:\"self\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" + PingedAt *string "json:\"pingedAt,omitempty\" graphql:\"pingedAt\"" + CurrentVersion *string "json:\"currentVersion,omitempty\" graphql:\"currentVersion\"" + KasURL *string "json:\"kasUrl,omitempty\" graphql:\"kasUrl\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Credential *ProviderCredentialFragment "json:\"credential,omitempty\" graphql:\"credential\"" + Provider *BaseClusterProviderFragment "json:\"provider,omitempty\" graphql:\"provider\"" + NodePools []*NodePoolFragment "json:\"nodePools,omitempty\" graphql:\"nodePools\"" + Project *TinyProjectFragment "json:\"project,omitempty\" graphql:\"project\"" } -func (t *DeploymentSettingsFragment) GetID() string { +func (t *BaseClusterFragment) GetID() string { if t == nil { - t = &DeploymentSettingsFragment{} + t = &BaseClusterFragment{} } return t.ID } -func (t *DeploymentSettingsFragment) GetName() string { +func (t *BaseClusterFragment) GetName() string { if t == nil { - t = &DeploymentSettingsFragment{} + t = &BaseClusterFragment{} } return t.Name } -func (t *DeploymentSettingsFragment) GetAgentHelmValues() *string { +func (t *BaseClusterFragment) GetHandle() *string { if t == nil { - t = &DeploymentSettingsFragment{} + t = &BaseClusterFragment{} } - return t.AgentHelmValues + return t.Handle } -func (t *DeploymentSettingsFragment) GetAgentVsn() string { +func (t *BaseClusterFragment) GetSelf() *bool { if t == nil { - t = &DeploymentSettingsFragment{} + t = &BaseClusterFragment{} } - return t.AgentVsn + return t.Self } -func (t *DeploymentSettingsFragment) GetWriteBindings() []*PolicyBindingFragment { +func (t *BaseClusterFragment) GetVersion() *string { if t == nil { - t = &DeploymentSettingsFragment{} + t = &BaseClusterFragment{} } - return t.WriteBindings + return t.Version } -func (t *DeploymentSettingsFragment) GetReadBindings() []*PolicyBindingFragment { +func (t *BaseClusterFragment) GetPingedAt() *string { if t == nil { - t = &DeploymentSettingsFragment{} + t = &BaseClusterFragment{} } - return t.ReadBindings + return t.PingedAt } -func (t *DeploymentSettingsFragment) GetCreateBindings() []*PolicyBindingFragment { +func (t *BaseClusterFragment) GetCurrentVersion() *string { if t == nil { - t = &DeploymentSettingsFragment{} + t = &BaseClusterFragment{} } - return t.CreateBindings + return t.CurrentVersion } -func (t *DeploymentSettingsFragment) GetArtifactRepository() *GitRepositoryFragment { +func (t *BaseClusterFragment) GetKasURL() *string { if t == nil { - t = &DeploymentSettingsFragment{} + t = &BaseClusterFragment{} } - return t.ArtifactRepository + return t.KasURL } -func (t *DeploymentSettingsFragment) GetDeployerRepository() *GitRepositoryFragment { +func (t *BaseClusterFragment) GetMetadata() map[string]interface{} { if t == nil { - t = &DeploymentSettingsFragment{} + t = &BaseClusterFragment{} } - return t.DeployerRepository + return t.Metadata } - -type ClusterEdgeFragment struct { - Node *ClusterFragment "json:\"node,omitempty\" graphql:\"node\"" +func (t *BaseClusterFragment) GetCredential() *ProviderCredentialFragment { + if t == nil { + t = &BaseClusterFragment{} + } + return t.Credential } - -func (t *ClusterEdgeFragment) GetNode() *ClusterFragment { +func (t *BaseClusterFragment) GetProvider() *BaseClusterProviderFragment { if t == nil { - t = &ClusterEdgeFragment{} + t = &BaseClusterFragment{} } - return t.Node + return t.Provider } - -type ServiceDeploymentEdgeFragment struct { - Node *ServiceDeploymentBaseFragment "json:\"node,omitempty\" graphql:\"node\"" +func (t *BaseClusterFragment) GetNodePools() []*NodePoolFragment { + if t == nil { + t = &BaseClusterFragment{} + } + return t.NodePools } - -func (t *ServiceDeploymentEdgeFragment) GetNode() *ServiceDeploymentBaseFragment { +func (t *BaseClusterFragment) GetProject() *TinyProjectFragment { if t == nil { - t = &ServiceDeploymentEdgeFragment{} + t = &BaseClusterFragment{} } - return t.Node + return t.Project } -type ProviderCredentialFragment struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - Namespace string "json:\"namespace\" graphql:\"namespace\"" - Kind string "json:\"kind\" graphql:\"kind\"" +type BaseClusterProviderFragment struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Namespace string "json:\"namespace\" graphql:\"namespace\"" + Cloud string "json:\"cloud\" graphql:\"cloud\"" + Editable *bool "json:\"editable,omitempty\" graphql:\"editable\"" + Repository *GitRepositoryFragment "json:\"repository,omitempty\" graphql:\"repository\"" } -func (t *ProviderCredentialFragment) GetID() string { +func (t *BaseClusterProviderFragment) GetID() string { if t == nil { - t = &ProviderCredentialFragment{} + t = &BaseClusterProviderFragment{} } return t.ID } -func (t *ProviderCredentialFragment) GetName() string { +func (t *BaseClusterProviderFragment) GetName() string { if t == nil { - t = &ProviderCredentialFragment{} + t = &BaseClusterProviderFragment{} } return t.Name } -func (t *ProviderCredentialFragment) GetNamespace() string { +func (t *BaseClusterProviderFragment) GetNamespace() string { if t == nil { - t = &ProviderCredentialFragment{} + t = &BaseClusterProviderFragment{} } return t.Namespace } -func (t *ProviderCredentialFragment) GetKind() string { +func (t *BaseClusterProviderFragment) GetCloud() string { if t == nil { - t = &ProviderCredentialFragment{} + t = &BaseClusterProviderFragment{} } - return t.Kind + return t.Cloud } - -type ClusterProviderConnectionFragment struct { - Edges []*ClusterProviderEdgeFragment "json:\"edges,omitempty\" graphql:\"edges\"" +func (t *BaseClusterProviderFragment) GetEditable() *bool { + if t == nil { + t = &BaseClusterProviderFragment{} + } + return t.Editable } - -func (t *ClusterProviderConnectionFragment) GetEdges() []*ClusterProviderEdgeFragment { +func (t *BaseClusterProviderFragment) GetRepository() *GitRepositoryFragment { if t == nil { - t = &ClusterProviderConnectionFragment{} + t = &BaseClusterProviderFragment{} } - return t.Edges + return t.Repository } -type ClusterProviderEdgeFragment struct { - Node *ClusterProviderFragment "json:\"node,omitempty\" graphql:\"node\"" +type GitRepositoryEdgeFragment struct { + Node *GitRepositoryFragment "json:\"node,omitempty\" graphql:\"node\"" + Cursor *string "json:\"cursor,omitempty\" graphql:\"cursor\"" } -func (t *ClusterProviderEdgeFragment) GetNode() *ClusterProviderFragment { +func (t *GitRepositoryEdgeFragment) GetNode() *GitRepositoryFragment { if t == nil { - t = &ClusterProviderEdgeFragment{} + t = &GitRepositoryEdgeFragment{} } return t.Node } +func (t *GitRepositoryEdgeFragment) GetCursor() *string { + if t == nil { + t = &GitRepositoryEdgeFragment{} + } + return t.Cursor +} -type PipelineStageFragment struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - Services []*PipelineStageFragment_Services "json:\"services,omitempty\" graphql:\"services\"" +type DeploymentSettingsFragment struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + AgentHelmValues *string "json:\"agentHelmValues,omitempty\" graphql:\"agentHelmValues\"" + AgentVsn string "json:\"agentVsn\" graphql:\"agentVsn\"" + WriteBindings []*PolicyBindingFragment "json:\"writeBindings,omitempty\" graphql:\"writeBindings\"" + ReadBindings []*PolicyBindingFragment "json:\"readBindings,omitempty\" graphql:\"readBindings\"" + CreateBindings []*PolicyBindingFragment "json:\"createBindings,omitempty\" graphql:\"createBindings\"" + ArtifactRepository *GitRepositoryFragment "json:\"artifactRepository,omitempty\" graphql:\"artifactRepository\"" + DeployerRepository *GitRepositoryFragment "json:\"deployerRepository,omitempty\" graphql:\"deployerRepository\"" } -func (t *PipelineStageFragment) GetID() string { +func (t *DeploymentSettingsFragment) GetID() string { if t == nil { - t = &PipelineStageFragment{} + t = &DeploymentSettingsFragment{} } return t.ID } -func (t *PipelineStageFragment) GetName() string { +func (t *DeploymentSettingsFragment) GetName() string { if t == nil { - t = &PipelineStageFragment{} + t = &DeploymentSettingsFragment{} } return t.Name } -func (t *PipelineStageFragment) GetServices() []*PipelineStageFragment_Services { +func (t *DeploymentSettingsFragment) GetAgentHelmValues() *string { if t == nil { - t = &PipelineStageFragment{} + t = &DeploymentSettingsFragment{} } - return t.Services -} - -type PipelineStageEdgeFragment struct { - ID string "json:\"id\" graphql:\"id\"" - From *PipelineStageFragment "json:\"from\" graphql:\"from\"" - To *PipelineStageFragment "json:\"to\" graphql:\"to\"" + return t.AgentHelmValues } - -func (t *PipelineStageEdgeFragment) GetID() string { +func (t *DeploymentSettingsFragment) GetAgentVsn() string { if t == nil { - t = &PipelineStageEdgeFragment{} + t = &DeploymentSettingsFragment{} } - return t.ID + return t.AgentVsn } -func (t *PipelineStageEdgeFragment) GetFrom() *PipelineStageFragment { +func (t *DeploymentSettingsFragment) GetWriteBindings() []*PolicyBindingFragment { if t == nil { - t = &PipelineStageEdgeFragment{} + t = &DeploymentSettingsFragment{} } - return t.From + return t.WriteBindings } -func (t *PipelineStageEdgeFragment) GetTo() *PipelineStageFragment { +func (t *DeploymentSettingsFragment) GetReadBindings() []*PolicyBindingFragment { if t == nil { - t = &PipelineStageEdgeFragment{} + t = &DeploymentSettingsFragment{} } - return t.To -} - -type PipelineFragment struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - Stages []*PipelineStageFragment "json:\"stages,omitempty\" graphql:\"stages\"" - Edges []*PipelineStageEdgeFragment "json:\"edges,omitempty\" graphql:\"edges\"" + return t.ReadBindings } - -func (t *PipelineFragment) GetID() string { +func (t *DeploymentSettingsFragment) GetCreateBindings() []*PolicyBindingFragment { if t == nil { - t = &PipelineFragment{} + t = &DeploymentSettingsFragment{} } - return t.ID + return t.CreateBindings } -func (t *PipelineFragment) GetName() string { +func (t *DeploymentSettingsFragment) GetArtifactRepository() *GitRepositoryFragment { if t == nil { - t = &PipelineFragment{} + t = &DeploymentSettingsFragment{} } - return t.Name + return t.ArtifactRepository } -func (t *PipelineFragment) GetStages() []*PipelineStageFragment { +func (t *DeploymentSettingsFragment) GetDeployerRepository() *GitRepositoryFragment { if t == nil { - t = &PipelineFragment{} + t = &DeploymentSettingsFragment{} } - return t.Stages + return t.DeployerRepository } -func (t *PipelineFragment) GetEdges() []*PipelineStageEdgeFragment { + +type ClusterEdgeFragment struct { + Node *ClusterFragment "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *ClusterEdgeFragment) GetNode() *ClusterFragment { if t == nil { - t = &PipelineFragment{} + t = &ClusterEdgeFragment{} } - return t.Edges + return t.Node } -type PipelineEdgeFragment struct { - Node *PipelineFragment "json:\"node,omitempty\" graphql:\"node\"" +type ServiceDeploymentEdgeFragment struct { + Node *ServiceDeploymentBaseFragment "json:\"node,omitempty\" graphql:\"node\"" } -func (t *PipelineEdgeFragment) GetNode() *PipelineFragment { +func (t *ServiceDeploymentEdgeFragment) GetNode() *ServiceDeploymentBaseFragment { if t == nil { - t = &PipelineEdgeFragment{} + t = &ServiceDeploymentEdgeFragment{} } return t.Node } @@ -1803,63 +1705,6 @@ func (t *GlobalServiceFragment) GetTags() []*ClusterTags { return t.Tags } -type ClusterBackupFragment struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - Cluster *ClusterBackupFragment_Cluster "json:\"cluster,omitempty\" graphql:\"cluster\"" - GarbageCollected *bool "json:\"garbageCollected,omitempty\" graphql:\"garbageCollected\"" -} - -func (t *ClusterBackupFragment) GetID() string { - if t == nil { - t = &ClusterBackupFragment{} - } - return t.ID -} -func (t *ClusterBackupFragment) GetName() string { - if t == nil { - t = &ClusterBackupFragment{} - } - return t.Name -} -func (t *ClusterBackupFragment) GetCluster() *ClusterBackupFragment_Cluster { - if t == nil { - t = &ClusterBackupFragment{} - } - return t.Cluster -} -func (t *ClusterBackupFragment) GetGarbageCollected() *bool { - if t == nil { - t = &ClusterBackupFragment{} - } - return t.GarbageCollected -} - -type ClusterRestoreFragment struct { - ID string "json:\"id\" graphql:\"id\"" - Status RestoreStatus "json:\"status\" graphql:\"status\"" - Backup *ClusterBackupFragment "json:\"backup,omitempty\" graphql:\"backup\"" -} - -func (t *ClusterRestoreFragment) GetID() string { - if t == nil { - t = &ClusterRestoreFragment{} - } - return t.ID -} -func (t *ClusterRestoreFragment) GetStatus() *RestoreStatus { - if t == nil { - t = &ClusterRestoreFragment{} - } - return &t.Status -} -func (t *ClusterRestoreFragment) GetBackup() *ClusterBackupFragment { - if t == nil { - t = &ClusterRestoreFragment{} - } - return t.Backup -} - type ScmConnectionFragment struct { ID string "json:\"id\" graphql:\"id\"" Name string "json:\"name\" graphql:\"name\"" @@ -2529,64 +2374,164 @@ func (t *ViolationFragment) GetID() string { } func (t *ViolationFragment) GetGroup() *string { if t == nil { - t = &ViolationFragment{} + t = &ViolationFragment{} + } + return t.Group +} +func (t *ViolationFragment) GetVersion() *string { + if t == nil { + t = &ViolationFragment{} + } + return t.Version +} +func (t *ViolationFragment) GetKind() *string { + if t == nil { + t = &ViolationFragment{} + } + return t.Kind +} +func (t *ViolationFragment) GetNamespace() *string { + if t == nil { + t = &ViolationFragment{} + } + return t.Namespace +} +func (t *ViolationFragment) GetName() *string { + if t == nil { + t = &ViolationFragment{} + } + return t.Name +} +func (t *ViolationFragment) GetMessage() *string { + if t == nil { + t = &ViolationFragment{} + } + return t.Message +} + +type ViolationStatisticFragment struct { + Value *string "json:\"value,omitempty\" graphql:\"value\"" + Violations *int64 "json:\"violations,omitempty\" graphql:\"violations\"" + Count *int64 "json:\"count,omitempty\" graphql:\"count\"" +} + +func (t *ViolationStatisticFragment) GetValue() *string { + if t == nil { + t = &ViolationStatisticFragment{} + } + return t.Value +} +func (t *ViolationStatisticFragment) GetViolations() *int64 { + if t == nil { + t = &ViolationStatisticFragment{} + } + return t.Violations +} +func (t *ViolationStatisticFragment) GetCount() *int64 { + if t == nil { + t = &ViolationStatisticFragment{} + } + return t.Count +} + +type PipelineFragment struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Stages []*PipelineStageFragment "json:\"stages,omitempty\" graphql:\"stages\"" + Edges []*PipelineStageEdgeFragment "json:\"edges,omitempty\" graphql:\"edges\"" + Project *TinyProjectFragment "json:\"project,omitempty\" graphql:\"project\"" +} + +func (t *PipelineFragment) GetID() string { + if t == nil { + t = &PipelineFragment{} + } + return t.ID +} +func (t *PipelineFragment) GetName() string { + if t == nil { + t = &PipelineFragment{} + } + return t.Name +} +func (t *PipelineFragment) GetStages() []*PipelineStageFragment { + if t == nil { + t = &PipelineFragment{} } - return t.Group + return t.Stages } -func (t *ViolationFragment) GetVersion() *string { +func (t *PipelineFragment) GetEdges() []*PipelineStageEdgeFragment { if t == nil { - t = &ViolationFragment{} + t = &PipelineFragment{} } - return t.Version + return t.Edges } -func (t *ViolationFragment) GetKind() *string { +func (t *PipelineFragment) GetProject() *TinyProjectFragment { if t == nil { - t = &ViolationFragment{} + t = &PipelineFragment{} } - return t.Kind + return t.Project } -func (t *ViolationFragment) GetNamespace() *string { + +type PipelineStageFragment struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Services []*PipelineStageFragment_Services "json:\"services,omitempty\" graphql:\"services\"" +} + +func (t *PipelineStageFragment) GetID() string { if t == nil { - t = &ViolationFragment{} + t = &PipelineStageFragment{} } - return t.Namespace + return t.ID } -func (t *ViolationFragment) GetName() *string { +func (t *PipelineStageFragment) GetName() string { if t == nil { - t = &ViolationFragment{} + t = &PipelineStageFragment{} } return t.Name } -func (t *ViolationFragment) GetMessage() *string { +func (t *PipelineStageFragment) GetServices() []*PipelineStageFragment_Services { if t == nil { - t = &ViolationFragment{} + t = &PipelineStageFragment{} } - return t.Message + return t.Services } -type ViolationStatisticFragment struct { - Value *string "json:\"value,omitempty\" graphql:\"value\"" - Violations *int64 "json:\"violations,omitempty\" graphql:\"violations\"" - Count *int64 "json:\"count,omitempty\" graphql:\"count\"" +type PipelineStageEdgeFragment struct { + ID string "json:\"id\" graphql:\"id\"" + From *PipelineStageFragment "json:\"from\" graphql:\"from\"" + To *PipelineStageFragment "json:\"to\" graphql:\"to\"" } -func (t *ViolationStatisticFragment) GetValue() *string { +func (t *PipelineStageEdgeFragment) GetID() string { if t == nil { - t = &ViolationStatisticFragment{} + t = &PipelineStageEdgeFragment{} } - return t.Value + return t.ID } -func (t *ViolationStatisticFragment) GetViolations() *int64 { +func (t *PipelineStageEdgeFragment) GetFrom() *PipelineStageFragment { if t == nil { - t = &ViolationStatisticFragment{} + t = &PipelineStageEdgeFragment{} } - return t.Violations + return t.From } -func (t *ViolationStatisticFragment) GetCount() *int64 { +func (t *PipelineStageEdgeFragment) GetTo() *PipelineStageFragment { if t == nil { - t = &ViolationStatisticFragment{} + t = &PipelineStageEdgeFragment{} } - return t.Count + return t.To +} + +type PipelineEdgeFragment struct { + Node *PipelineFragment "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *PipelineEdgeFragment) GetNode() *PipelineFragment { + if t == nil { + t = &PipelineEdgeFragment{} + } + return t.Node } type ProjectFragment struct { @@ -2649,6 +2594,63 @@ func (t *ProjectFragment) GetWriteBindings() []*PolicyBindingFragment { return t.WriteBindings } +type TinyProjectFragment struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Default *bool "json:\"default,omitempty\" graphql:\"default\"" +} + +func (t *TinyProjectFragment) GetID() string { + if t == nil { + t = &TinyProjectFragment{} + } + return t.ID +} +func (t *TinyProjectFragment) GetName() string { + if t == nil { + t = &TinyProjectFragment{} + } + return t.Name +} +func (t *TinyProjectFragment) GetDefault() *bool { + if t == nil { + t = &TinyProjectFragment{} + } + return t.Default +} + +type ProviderCredentialFragment struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Namespace string "json:\"namespace\" graphql:\"namespace\"" + Kind string "json:\"kind\" graphql:\"kind\"" +} + +func (t *ProviderCredentialFragment) GetID() string { + if t == nil { + t = &ProviderCredentialFragment{} + } + return t.ID +} +func (t *ProviderCredentialFragment) GetName() string { + if t == nil { + t = &ProviderCredentialFragment{} + } + return t.Name +} +func (t *ProviderCredentialFragment) GetNamespace() string { + if t == nil { + t = &ProviderCredentialFragment{} + } + return t.Namespace +} +func (t *ProviderCredentialFragment) GetKind() string { + if t == nil { + t = &ProviderCredentialFragment{} + } + return t.Kind +} + type InfrastructureStackEdgeFragment struct { Node *InfrastructureStackFragment "json:\"node,omitempty\" graphql:\"node\"" } @@ -2679,6 +2681,7 @@ type InfrastructureStackFragment struct { JobSpec *JobSpecFragment "json:\"jobSpec,omitempty\" graphql:\"jobSpec\"" Configuration *StackConfigurationFragment "json:\"configuration\" graphql:\"configuration\"" Cluster *TinyClusterFragment "json:\"cluster,omitempty\" graphql:\"cluster\"" + Project *TinyProjectFragment "json:\"project,omitempty\" graphql:\"project\"" Approval *bool "json:\"approval,omitempty\" graphql:\"approval\"" Workdir *string "json:\"workdir,omitempty\" graphql:\"workdir\"" ManageState *bool "json:\"manageState,omitempty\" graphql:\"manageState\"" @@ -2734,6 +2737,12 @@ func (t *InfrastructureStackFragment) GetCluster() *TinyClusterFragment { } return t.Cluster } +func (t *InfrastructureStackFragment) GetProject() *TinyProjectFragment { + if t == nil { + t = &InfrastructureStackFragment{} + } + return t.Project +} func (t *InfrastructureStackFragment) GetApproval() *bool { if t == nil { t = &InfrastructureStackFragment{} @@ -3519,201 +3528,61 @@ func (t *PrConfigurationConditionFragment) GetOperation() *Operation { t = &PrConfigurationConditionFragment{} } return &t.Operation -} -func (t *PrConfigurationConditionFragment) GetField() string { - if t == nil { - t = &PrConfigurationConditionFragment{} - } - return t.Field -} -func (t *PrConfigurationConditionFragment) GetValue() *string { - if t == nil { - t = &PrConfigurationConditionFragment{} - } - return t.Value -} - -type PipelineGateEdgeFragment_Node_PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { - Name string "json:\"name\" graphql:\"name\"" - Value string "json:\"value\" graphql:\"value\"" -} - -func (t *PipelineGateEdgeFragment_Node_PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetName() string { - if t == nil { - t = &PipelineGateEdgeFragment_Node_PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_Env{} - } - return t.Name -} -func (t *PipelineGateEdgeFragment_Node_PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetValue() string { - if t == nil { - t = &PipelineGateEdgeFragment_Node_PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_Env{} - } - return t.Value -} - -type PipelineGateEdgeFragment_Node_PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom struct { - ConfigMap string "json:\"configMap\" graphql:\"configMap\"" - Secret string "json:\"secret\" graphql:\"secret\"" -} - -func (t *PipelineGateEdgeFragment_Node_PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetConfigMap() string { - if t == nil { - t = &PipelineGateEdgeFragment_Node_PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} - } - return t.ConfigMap -} -func (t *PipelineGateEdgeFragment_Node_PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetSecret() string { - if t == nil { - t = &PipelineGateEdgeFragment_Node_PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} - } - return t.Secret -} - -type PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { - Name string "json:\"name\" graphql:\"name\"" - Value string "json:\"value\" graphql:\"value\"" -} - -func (t *PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetName() string { - if t == nil { - t = &PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_Env{} - } - return t.Name -} -func (t *PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetValue() string { - if t == nil { - t = &PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_Env{} - } - return t.Value -} - -type PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom struct { - ConfigMap string "json:\"configMap\" graphql:\"configMap\"" - Secret string "json:\"secret\" graphql:\"secret\"" -} - -func (t *PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetConfigMap() string { - if t == nil { - t = &PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} - } - return t.ConfigMap -} -func (t *PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetSecret() string { - if t == nil { - t = &PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} - } - return t.Secret -} - -type GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { - Name string "json:\"name\" graphql:\"name\"" - Value string "json:\"value\" graphql:\"value\"" -} - -func (t *GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetName() string { - if t == nil { - t = &GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_Env{} - } - return t.Name -} -func (t *GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetValue() string { - if t == nil { - t = &GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_Env{} - } - return t.Value -} - -type GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom struct { - ConfigMap string "json:\"configMap\" graphql:\"configMap\"" - Secret string "json:\"secret\" graphql:\"secret\"" -} - -func (t *GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetConfigMap() string { - if t == nil { - t = &GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} - } - return t.ConfigMap -} -func (t *GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetSecret() string { - if t == nil { - t = &GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} - } - return t.Secret -} - -type JobSpecFragment_Containers_ContainerSpecFragment_Env struct { - Name string "json:\"name\" graphql:\"name\"" - Value string "json:\"value\" graphql:\"value\"" -} - -func (t *JobSpecFragment_Containers_ContainerSpecFragment_Env) GetName() string { +} +func (t *PrConfigurationConditionFragment) GetField() string { if t == nil { - t = &JobSpecFragment_Containers_ContainerSpecFragment_Env{} + t = &PrConfigurationConditionFragment{} } - return t.Name + return t.Field } -func (t *JobSpecFragment_Containers_ContainerSpecFragment_Env) GetValue() string { +func (t *PrConfigurationConditionFragment) GetValue() *string { if t == nil { - t = &JobSpecFragment_Containers_ContainerSpecFragment_Env{} + t = &PrConfigurationConditionFragment{} } return t.Value } -type JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom struct { - ConfigMap string "json:\"configMap\" graphql:\"configMap\"" - Secret string "json:\"secret\" graphql:\"secret\"" +type AccessTokenFragment struct { + ID *string "json:\"id,omitempty\" graphql:\"id\"" + Token *string "json:\"token,omitempty\" graphql:\"token\"" } -func (t *JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetConfigMap() string { +func (t *AccessTokenFragment) GetID() *string { if t == nil { - t = &JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + t = &AccessTokenFragment{} } - return t.ConfigMap + return t.ID } -func (t *JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetSecret() string { +func (t *AccessTokenFragment) GetToken() *string { if t == nil { - t = &JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + t = &AccessTokenFragment{} } - return t.Secret + return t.Token } -type ContainerSpecFragment_Env struct { - Name string "json:\"name\" graphql:\"name\"" - Value string "json:\"value\" graphql:\"value\"" +type ClusterBackupFragment_Cluster struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *ContainerSpecFragment_Env) GetName() string { - if t == nil { - t = &ContainerSpecFragment_Env{} - } - return t.Name -} -func (t *ContainerSpecFragment_Env) GetValue() string { +func (t *ClusterBackupFragment_Cluster) GetID() string { if t == nil { - t = &ContainerSpecFragment_Env{} + t = &ClusterBackupFragment_Cluster{} } - return t.Value + return t.ID } -type ContainerSpecFragment_EnvFrom struct { - ConfigMap string "json:\"configMap\" graphql:\"configMap\"" - Secret string "json:\"secret\" graphql:\"secret\"" +type ClusterRestoreFragment_Backup_ClusterBackupFragment_Cluster struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *ContainerSpecFragment_EnvFrom) GetConfigMap() string { - if t == nil { - t = &ContainerSpecFragment_EnvFrom{} - } - return t.ConfigMap -} -func (t *ContainerSpecFragment_EnvFrom) GetSecret() string { +func (t *ClusterRestoreFragment_Backup_ClusterBackupFragment_Cluster) GetID() string { if t == nil { - t = &ContainerSpecFragment_EnvFrom{} + t = &ClusterRestoreFragment_Backup_ClusterBackupFragment_Cluster{} } - return t.Secret + return t.ID } -type ServiceDeploymentFragment_Components struct { +type ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components struct { ID string "json:\"id\" graphql:\"id\"" Name string "json:\"name\" graphql:\"name\"" Group *string "json:\"group,omitempty\" graphql:\"group\"" @@ -3725,98 +3594,80 @@ type ServiceDeploymentFragment_Components struct { Content *ComponentContentFragment "json:\"content,omitempty\" graphql:\"content\"" } -func (t *ServiceDeploymentFragment_Components) GetID() string { +func (t *ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetID() string { if t == nil { - t = &ServiceDeploymentFragment_Components{} + t = &ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.ID } -func (t *ServiceDeploymentFragment_Components) GetName() string { +func (t *ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetName() string { if t == nil { - t = &ServiceDeploymentFragment_Components{} + t = &ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.Name } -func (t *ServiceDeploymentFragment_Components) GetGroup() *string { +func (t *ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetGroup() *string { if t == nil { - t = &ServiceDeploymentFragment_Components{} + t = &ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.Group } -func (t *ServiceDeploymentFragment_Components) GetKind() string { +func (t *ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetKind() string { if t == nil { - t = &ServiceDeploymentFragment_Components{} + t = &ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.Kind } -func (t *ServiceDeploymentFragment_Components) GetNamespace() *string { +func (t *ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetNamespace() *string { if t == nil { - t = &ServiceDeploymentFragment_Components{} + t = &ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.Namespace } -func (t *ServiceDeploymentFragment_Components) GetState() *ComponentState { +func (t *ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetState() *ComponentState { if t == nil { - t = &ServiceDeploymentFragment_Components{} + t = &ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.State } -func (t *ServiceDeploymentFragment_Components) GetSynced() bool { +func (t *ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetSynced() bool { if t == nil { - t = &ServiceDeploymentFragment_Components{} + t = &ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.Synced } -func (t *ServiceDeploymentFragment_Components) GetVersion() *string { +func (t *ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetVersion() *string { if t == nil { - t = &ServiceDeploymentFragment_Components{} + t = &ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.Version } -func (t *ServiceDeploymentFragment_Components) GetContent() *ComponentContentFragment { +func (t *ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetContent() *ComponentContentFragment { if t == nil { - t = &ServiceDeploymentFragment_Components{} + t = &ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.Content } -type ServiceDeploymentFragment_Configuration struct { +type ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration struct { Name string "json:\"name\" graphql:\"name\"" Value string "json:\"value\" graphql:\"value\"" } -func (t *ServiceDeploymentFragment_Configuration) GetName() string { +func (t *ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration) GetName() string { if t == nil { - t = &ServiceDeploymentFragment_Configuration{} + t = &ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration{} } return t.Name } -func (t *ServiceDeploymentFragment_Configuration) GetValue() string { +func (t *ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration) GetValue() string { if t == nil { - t = &ServiceDeploymentFragment_Configuration{} + t = &ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration{} } return t.Value } -type ServiceDeploymentExtended_Revision_RevisionFragment_Git struct { - Ref string "json:\"ref\" graphql:\"ref\"" - Folder string "json:\"folder\" graphql:\"folder\"" -} - -func (t *ServiceDeploymentExtended_Revision_RevisionFragment_Git) GetRef() string { - if t == nil { - t = &ServiceDeploymentExtended_Revision_RevisionFragment_Git{} - } - return t.Ref -} -func (t *ServiceDeploymentExtended_Revision_RevisionFragment_Git) GetFolder() string { - if t == nil { - t = &ServiceDeploymentExtended_Revision_RevisionFragment_Git{} - } - return t.Folder -} - -type ServiceDeploymentExtended_ServiceDeploymentFragment_Components struct { +type ClusterProviderFragment_Service_ServiceDeploymentFragment_Components struct { ID string "json:\"id\" graphql:\"id\"" Name string "json:\"name\" graphql:\"name\"" Group *string "json:\"group,omitempty\" graphql:\"group\"" @@ -3828,205 +3679,260 @@ type ServiceDeploymentExtended_ServiceDeploymentFragment_Components struct { Content *ComponentContentFragment "json:\"content,omitempty\" graphql:\"content\"" } -func (t *ServiceDeploymentExtended_ServiceDeploymentFragment_Components) GetID() string { +func (t *ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetID() string { if t == nil { - t = &ServiceDeploymentExtended_ServiceDeploymentFragment_Components{} + t = &ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.ID } -func (t *ServiceDeploymentExtended_ServiceDeploymentFragment_Components) GetName() string { +func (t *ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetName() string { if t == nil { - t = &ServiceDeploymentExtended_ServiceDeploymentFragment_Components{} + t = &ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.Name } -func (t *ServiceDeploymentExtended_ServiceDeploymentFragment_Components) GetGroup() *string { +func (t *ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetGroup() *string { if t == nil { - t = &ServiceDeploymentExtended_ServiceDeploymentFragment_Components{} + t = &ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.Group } -func (t *ServiceDeploymentExtended_ServiceDeploymentFragment_Components) GetKind() string { +func (t *ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetKind() string { if t == nil { - t = &ServiceDeploymentExtended_ServiceDeploymentFragment_Components{} + t = &ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.Kind } -func (t *ServiceDeploymentExtended_ServiceDeploymentFragment_Components) GetNamespace() *string { +func (t *ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetNamespace() *string { if t == nil { - t = &ServiceDeploymentExtended_ServiceDeploymentFragment_Components{} + t = &ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.Namespace } -func (t *ServiceDeploymentExtended_ServiceDeploymentFragment_Components) GetState() *ComponentState { +func (t *ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetState() *ComponentState { if t == nil { - t = &ServiceDeploymentExtended_ServiceDeploymentFragment_Components{} + t = &ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.State } -func (t *ServiceDeploymentExtended_ServiceDeploymentFragment_Components) GetSynced() bool { +func (t *ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetSynced() bool { if t == nil { - t = &ServiceDeploymentExtended_ServiceDeploymentFragment_Components{} + t = &ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.Synced } -func (t *ServiceDeploymentExtended_ServiceDeploymentFragment_Components) GetVersion() *string { +func (t *ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetVersion() *string { if t == nil { - t = &ServiceDeploymentExtended_ServiceDeploymentFragment_Components{} + t = &ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.Version } -func (t *ServiceDeploymentExtended_ServiceDeploymentFragment_Components) GetContent() *ComponentContentFragment { +func (t *ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetContent() *ComponentContentFragment { if t == nil { - t = &ServiceDeploymentExtended_ServiceDeploymentFragment_Components{} + t = &ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.Content } -type ServiceDeploymentExtended_ServiceDeploymentFragment_Configuration struct { +type ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration struct { Name string "json:\"name\" graphql:\"name\"" Value string "json:\"value\" graphql:\"value\"" } -func (t *ServiceDeploymentExtended_ServiceDeploymentFragment_Configuration) GetName() string { +func (t *ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration) GetName() string { if t == nil { - t = &ServiceDeploymentExtended_ServiceDeploymentFragment_Configuration{} + t = &ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration{} } return t.Name } -func (t *ServiceDeploymentExtended_ServiceDeploymentFragment_Configuration) GetValue() string { +func (t *ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration) GetValue() string { if t == nil { - t = &ServiceDeploymentExtended_ServiceDeploymentFragment_Configuration{} + t = &ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration{} } return t.Value } -type RevisionFragment_Git struct { - Ref string "json:\"ref\" graphql:\"ref\"" - Folder string "json:\"folder\" graphql:\"folder\"" +type PipelineGateEdgeFragment_Node_PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { + Name string "json:\"name\" graphql:\"name\"" + Value string "json:\"value\" graphql:\"value\"" } -func (t *RevisionFragment_Git) GetRef() string { +func (t *PipelineGateEdgeFragment_Node_PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetName() string { if t == nil { - t = &RevisionFragment_Git{} + t = &PipelineGateEdgeFragment_Node_PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_Env{} } - return t.Ref + return t.Name } -func (t *RevisionFragment_Git) GetFolder() string { +func (t *PipelineGateEdgeFragment_Node_PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetValue() string { if t == nil { - t = &RevisionFragment_Git{} + t = &PipelineGateEdgeFragment_Node_PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_Env{} } - return t.Folder + return t.Value } -type GroupMemberFragment_User struct { - ID string "json:\"id\" graphql:\"id\"" +type PipelineGateEdgeFragment_Node_PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom struct { + ConfigMap string "json:\"configMap\" graphql:\"configMap\"" + Secret string "json:\"secret\" graphql:\"secret\"" } -func (t *GroupMemberFragment_User) GetID() string { +func (t *PipelineGateEdgeFragment_Node_PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetConfigMap() string { if t == nil { - t = &GroupMemberFragment_User{} + t = &PipelineGateEdgeFragment_Node_PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} } - return t.ID + return t.ConfigMap +} +func (t *PipelineGateEdgeFragment_Node_PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetSecret() string { + if t == nil { + t = &PipelineGateEdgeFragment_Node_PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + } + return t.Secret } -type GroupMemberFragment_Group struct { - ID string "json:\"id\" graphql:\"id\"" +type PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { + Name string "json:\"name\" graphql:\"name\"" + Value string "json:\"value\" graphql:\"value\"" } -func (t *GroupMemberFragment_Group) GetID() string { +func (t *PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetName() string { if t == nil { - t = &GroupMemberFragment_Group{} + t = &PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_Env{} } - return t.ID + return t.Name +} +func (t *PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetValue() string { + if t == nil { + t = &PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_Env{} + } + return t.Value } -type ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - Group *string "json:\"group,omitempty\" graphql:\"group\"" - Kind string "json:\"kind\" graphql:\"kind\"" - Namespace *string "json:\"namespace,omitempty\" graphql:\"namespace\"" - State *ComponentState "json:\"state,omitempty\" graphql:\"state\"" - Synced bool "json:\"synced\" graphql:\"synced\"" - Version *string "json:\"version,omitempty\" graphql:\"version\"" - Content *ComponentContentFragment "json:\"content,omitempty\" graphql:\"content\"" +type PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom struct { + ConfigMap string "json:\"configMap\" graphql:\"configMap\"" + Secret string "json:\"secret\" graphql:\"secret\"" } -func (t *ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetID() string { +func (t *PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetConfigMap() string { if t == nil { - t = &ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} } - return t.ID + return t.ConfigMap +} +func (t *PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetSecret() string { + if t == nil { + t = &PipelineGateFragment_Spec_GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} + } + return t.Secret +} + +type GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { + Name string "json:\"name\" graphql:\"name\"" + Value string "json:\"value\" graphql:\"value\"" } -func (t *ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetName() string { + +func (t *GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetName() string { if t == nil { - t = &ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_Env{} } return t.Name } -func (t *ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetGroup() *string { +func (t *GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_Env) GetValue() string { if t == nil { - t = &ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_Env{} } - return t.Group + return t.Value } -func (t *ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetKind() string { + +type GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom struct { + ConfigMap string "json:\"configMap\" graphql:\"configMap\"" + Secret string "json:\"secret\" graphql:\"secret\"" +} + +func (t *GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetConfigMap() string { if t == nil { - t = &ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} } - return t.Kind + return t.ConfigMap } -func (t *ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetNamespace() *string { +func (t *GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetSecret() string { if t == nil { - t = &ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &GateSpecFragment_Job_JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} } - return t.Namespace + return t.Secret } -func (t *ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetState() *ComponentState { + +type JobSpecFragment_Containers_ContainerSpecFragment_Env struct { + Name string "json:\"name\" graphql:\"name\"" + Value string "json:\"value\" graphql:\"value\"" +} + +func (t *JobSpecFragment_Containers_ContainerSpecFragment_Env) GetName() string { if t == nil { - t = &ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &JobSpecFragment_Containers_ContainerSpecFragment_Env{} } - return t.State + return t.Name } -func (t *ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetSynced() bool { +func (t *JobSpecFragment_Containers_ContainerSpecFragment_Env) GetValue() string { if t == nil { - t = &ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &JobSpecFragment_Containers_ContainerSpecFragment_Env{} } - return t.Synced + return t.Value } -func (t *ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetVersion() *string { + +type JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom struct { + ConfigMap string "json:\"configMap\" graphql:\"configMap\"" + Secret string "json:\"secret\" graphql:\"secret\"" +} + +func (t *JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetConfigMap() string { if t == nil { - t = &ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} } - return t.Version + return t.ConfigMap } -func (t *ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetContent() *ComponentContentFragment { +func (t *JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom) GetSecret() string { if t == nil { - t = &ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &JobSpecFragment_Containers_ContainerSpecFragment_EnvFrom{} } - return t.Content + return t.Secret } -type ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration struct { +type ContainerSpecFragment_Env struct { Name string "json:\"name\" graphql:\"name\"" Value string "json:\"value\" graphql:\"value\"" } -func (t *ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration) GetName() string { +func (t *ContainerSpecFragment_Env) GetName() string { if t == nil { - t = &ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration{} + t = &ContainerSpecFragment_Env{} } return t.Name } -func (t *ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration) GetValue() string { +func (t *ContainerSpecFragment_Env) GetValue() string { if t == nil { - t = &ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration{} + t = &ContainerSpecFragment_Env{} } return t.Value } -type ClusterProviderFragment_Service_ServiceDeploymentFragment_Components struct { +type ContainerSpecFragment_EnvFrom struct { + ConfigMap string "json:\"configMap\" graphql:\"configMap\"" + Secret string "json:\"secret\" graphql:\"secret\"" +} + +func (t *ContainerSpecFragment_EnvFrom) GetConfigMap() string { + if t == nil { + t = &ContainerSpecFragment_EnvFrom{} + } + return t.ConfigMap +} +func (t *ContainerSpecFragment_EnvFrom) GetSecret() string { + if t == nil { + t = &ContainerSpecFragment_EnvFrom{} + } + return t.Secret +} + +type ServiceDeploymentFragment_Components struct { ID string "json:\"id\" graphql:\"id\"" Name string "json:\"name\" graphql:\"name\"" Group *string "json:\"group,omitempty\" graphql:\"group\"" @@ -4038,80 +3944,98 @@ type ClusterProviderFragment_Service_ServiceDeploymentFragment_Components struct Content *ComponentContentFragment "json:\"content,omitempty\" graphql:\"content\"" } -func (t *ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetID() string { +func (t *ServiceDeploymentFragment_Components) GetID() string { if t == nil { - t = &ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ServiceDeploymentFragment_Components{} } return t.ID } -func (t *ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetName() string { +func (t *ServiceDeploymentFragment_Components) GetName() string { if t == nil { - t = &ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ServiceDeploymentFragment_Components{} } return t.Name } -func (t *ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetGroup() *string { +func (t *ServiceDeploymentFragment_Components) GetGroup() *string { if t == nil { - t = &ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ServiceDeploymentFragment_Components{} } return t.Group } -func (t *ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetKind() string { +func (t *ServiceDeploymentFragment_Components) GetKind() string { if t == nil { - t = &ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ServiceDeploymentFragment_Components{} } return t.Kind } -func (t *ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetNamespace() *string { +func (t *ServiceDeploymentFragment_Components) GetNamespace() *string { if t == nil { - t = &ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ServiceDeploymentFragment_Components{} } return t.Namespace } -func (t *ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetState() *ComponentState { +func (t *ServiceDeploymentFragment_Components) GetState() *ComponentState { if t == nil { - t = &ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ServiceDeploymentFragment_Components{} } return t.State } -func (t *ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetSynced() bool { +func (t *ServiceDeploymentFragment_Components) GetSynced() bool { if t == nil { - t = &ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ServiceDeploymentFragment_Components{} } return t.Synced } -func (t *ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetVersion() *string { +func (t *ServiceDeploymentFragment_Components) GetVersion() *string { if t == nil { - t = &ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ServiceDeploymentFragment_Components{} } return t.Version } -func (t *ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetContent() *ComponentContentFragment { +func (t *ServiceDeploymentFragment_Components) GetContent() *ComponentContentFragment { if t == nil { - t = &ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ServiceDeploymentFragment_Components{} } return t.Content } -type ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration struct { +type ServiceDeploymentFragment_Configuration struct { Name string "json:\"name\" graphql:\"name\"" Value string "json:\"value\" graphql:\"value\"" } -func (t *ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration) GetName() string { +func (t *ServiceDeploymentFragment_Configuration) GetName() string { if t == nil { - t = &ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration{} + t = &ServiceDeploymentFragment_Configuration{} } return t.Name } -func (t *ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration) GetValue() string { +func (t *ServiceDeploymentFragment_Configuration) GetValue() string { if t == nil { - t = &ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration{} + t = &ServiceDeploymentFragment_Configuration{} } return t.Value } -type ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components struct { +type ServiceDeploymentExtended_Revision_RevisionFragment_Git struct { + Ref string "json:\"ref\" graphql:\"ref\"" + Folder string "json:\"folder\" graphql:\"folder\"" +} + +func (t *ServiceDeploymentExtended_Revision_RevisionFragment_Git) GetRef() string { + if t == nil { + t = &ServiceDeploymentExtended_Revision_RevisionFragment_Git{} + } + return t.Ref +} +func (t *ServiceDeploymentExtended_Revision_RevisionFragment_Git) GetFolder() string { + if t == nil { + t = &ServiceDeploymentExtended_Revision_RevisionFragment_Git{} + } + return t.Folder +} + +type ServiceDeploymentExtended_ServiceDeploymentFragment_Components struct { ID string "json:\"id\" graphql:\"id\"" Name string "json:\"name\" graphql:\"name\"" Group *string "json:\"group,omitempty\" graphql:\"group\"" @@ -4123,165 +4047,120 @@ type ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_S Content *ComponentContentFragment "json:\"content,omitempty\" graphql:\"content\"" } -func (t *ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetID() string { +func (t *ServiceDeploymentExtended_ServiceDeploymentFragment_Components) GetID() string { if t == nil { - t = &ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ServiceDeploymentExtended_ServiceDeploymentFragment_Components{} } return t.ID } -func (t *ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetName() string { +func (t *ServiceDeploymentExtended_ServiceDeploymentFragment_Components) GetName() string { if t == nil { - t = &ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ServiceDeploymentExtended_ServiceDeploymentFragment_Components{} } return t.Name } -func (t *ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetGroup() *string { +func (t *ServiceDeploymentExtended_ServiceDeploymentFragment_Components) GetGroup() *string { if t == nil { - t = &ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ServiceDeploymentExtended_ServiceDeploymentFragment_Components{} } return t.Group } -func (t *ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetKind() string { +func (t *ServiceDeploymentExtended_ServiceDeploymentFragment_Components) GetKind() string { if t == nil { - t = &ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ServiceDeploymentExtended_ServiceDeploymentFragment_Components{} } return t.Kind } -func (t *ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetNamespace() *string { +func (t *ServiceDeploymentExtended_ServiceDeploymentFragment_Components) GetNamespace() *string { if t == nil { - t = &ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ServiceDeploymentExtended_ServiceDeploymentFragment_Components{} } return t.Namespace } -func (t *ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetState() *ComponentState { +func (t *ServiceDeploymentExtended_ServiceDeploymentFragment_Components) GetState() *ComponentState { if t == nil { - t = &ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ServiceDeploymentExtended_ServiceDeploymentFragment_Components{} } return t.State } -func (t *ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetSynced() bool { +func (t *ServiceDeploymentExtended_ServiceDeploymentFragment_Components) GetSynced() bool { if t == nil { - t = &ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ServiceDeploymentExtended_ServiceDeploymentFragment_Components{} } return t.Synced } -func (t *ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetVersion() *string { +func (t *ServiceDeploymentExtended_ServiceDeploymentFragment_Components) GetVersion() *string { if t == nil { - t = &ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ServiceDeploymentExtended_ServiceDeploymentFragment_Components{} } return t.Version } -func (t *ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetContent() *ComponentContentFragment { +func (t *ServiceDeploymentExtended_ServiceDeploymentFragment_Components) GetContent() *ComponentContentFragment { if t == nil { - t = &ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ServiceDeploymentExtended_ServiceDeploymentFragment_Components{} } return t.Content } -type ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration struct { +type ServiceDeploymentExtended_ServiceDeploymentFragment_Configuration struct { Name string "json:\"name\" graphql:\"name\"" Value string "json:\"value\" graphql:\"value\"" } -func (t *ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration) GetName() string { +func (t *ServiceDeploymentExtended_ServiceDeploymentFragment_Configuration) GetName() string { if t == nil { - t = &ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration{} + t = &ServiceDeploymentExtended_ServiceDeploymentFragment_Configuration{} } return t.Name } -func (t *ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration) GetValue() string { +func (t *ServiceDeploymentExtended_ServiceDeploymentFragment_Configuration) GetValue() string { if t == nil { - t = &ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration{} + t = &ServiceDeploymentExtended_ServiceDeploymentFragment_Configuration{} } return t.Value } -type ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - Group *string "json:\"group,omitempty\" graphql:\"group\"" - Kind string "json:\"kind\" graphql:\"kind\"" - Namespace *string "json:\"namespace,omitempty\" graphql:\"namespace\"" - State *ComponentState "json:\"state,omitempty\" graphql:\"state\"" - Synced bool "json:\"synced\" graphql:\"synced\"" - Version *string "json:\"version,omitempty\" graphql:\"version\"" - Content *ComponentContentFragment "json:\"content,omitempty\" graphql:\"content\"" +type RevisionFragment_Git struct { + Ref string "json:\"ref\" graphql:\"ref\"" + Folder string "json:\"folder\" graphql:\"folder\"" } -func (t *ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetID() string { - if t == nil { - t = &ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} - } - return t.ID -} -func (t *ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetName() string { - if t == nil { - t = &ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} - } - return t.Name -} -func (t *ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetGroup() *string { - if t == nil { - t = &ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} - } - return t.Group -} -func (t *ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetKind() string { - if t == nil { - t = &ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} - } - return t.Kind -} -func (t *ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetNamespace() *string { - if t == nil { - t = &ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} - } - return t.Namespace -} -func (t *ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetState() *ComponentState { - if t == nil { - t = &ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} - } - return t.State -} -func (t *ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetSynced() bool { - if t == nil { - t = &ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} - } - return t.Synced -} -func (t *ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetVersion() *string { +func (t *RevisionFragment_Git) GetRef() string { if t == nil { - t = &ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &RevisionFragment_Git{} } - return t.Version + return t.Ref } -func (t *ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetContent() *ComponentContentFragment { +func (t *RevisionFragment_Git) GetFolder() string { if t == nil { - t = &ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &RevisionFragment_Git{} } - return t.Content + return t.Folder } -type ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration struct { - Name string "json:\"name\" graphql:\"name\"" - Value string "json:\"value\" graphql:\"value\"" +type GroupMemberFragment_User struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration) GetName() string { +func (t *GroupMemberFragment_User) GetID() string { if t == nil { - t = &ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration{} + t = &GroupMemberFragment_User{} } - return t.Name + return t.ID +} + +type GroupMemberFragment_Group struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration) GetValue() string { + +func (t *GroupMemberFragment_Group) GetID() string { if t == nil { - t = &ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration{} + t = &GroupMemberFragment_Group{} } - return t.Value + return t.ID } -type ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components struct { +type ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components struct { ID string "json:\"id\" graphql:\"id\"" Name string "json:\"name\" graphql:\"name\"" Group *string "json:\"group,omitempty\" graphql:\"group\"" @@ -4293,291 +4172,313 @@ type ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDep Content *ComponentContentFragment "json:\"content,omitempty\" graphql:\"content\"" } -func (t *ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetID() string { +func (t *ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetID() string { if t == nil { - t = &ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.ID } -func (t *ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetName() string { +func (t *ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetName() string { if t == nil { - t = &ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.Name } -func (t *ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetGroup() *string { +func (t *ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetGroup() *string { if t == nil { - t = &ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.Group } -func (t *ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetKind() string { +func (t *ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetKind() string { if t == nil { - t = &ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.Kind } -func (t *ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetNamespace() *string { +func (t *ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetNamespace() *string { if t == nil { - t = &ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.Namespace } -func (t *ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetState() *ComponentState { +func (t *ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetState() *ComponentState { if t == nil { - t = &ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.State } -func (t *ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetSynced() bool { +func (t *ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetSynced() bool { if t == nil { - t = &ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.Synced } -func (t *ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetVersion() *string { +func (t *ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetVersion() *string { if t == nil { - t = &ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.Version } -func (t *ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetContent() *ComponentContentFragment { +func (t *ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetContent() *ComponentContentFragment { if t == nil { - t = &ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.Content } -type ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration struct { +type ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration struct { Name string "json:\"name\" graphql:\"name\"" Value string "json:\"value\" graphql:\"value\"" } -func (t *ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration) GetName() string { +func (t *ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration) GetName() string { if t == nil { - t = &ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration{} + t = &ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration{} } return t.Name } -func (t *ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration) GetValue() string { +func (t *ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration) GetValue() string { if t == nil { - t = &ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration{} + t = &ClusterEdgeFragment_Node_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration{} } return t.Value } -type PipelineStageFragment_Services_Criteria struct { +type GlobalServiceFragment_Provider struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *GlobalServiceFragment_Provider) GetID() string { + if t == nil { + t = &GlobalServiceFragment_Provider{} + } + return t.ID +} + +type GlobalServiceFragment_Service struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *GlobalServiceFragment_Service) GetID() string { + if t == nil { + t = &GlobalServiceFragment_Service{} + } + return t.ID +} + +type PipelineFragment_Stages_PipelineStageFragment_Services_Criteria struct { Source *ServiceDeploymentBaseFragment "json:\"source,omitempty\" graphql:\"source\"" Secrets []*string "json:\"secrets,omitempty\" graphql:\"secrets\"" } -func (t *PipelineStageFragment_Services_Criteria) GetSource() *ServiceDeploymentBaseFragment { +func (t *PipelineFragment_Stages_PipelineStageFragment_Services_Criteria) GetSource() *ServiceDeploymentBaseFragment { if t == nil { - t = &PipelineStageFragment_Services_Criteria{} + t = &PipelineFragment_Stages_PipelineStageFragment_Services_Criteria{} } return t.Source } -func (t *PipelineStageFragment_Services_Criteria) GetSecrets() []*string { +func (t *PipelineFragment_Stages_PipelineStageFragment_Services_Criteria) GetSecrets() []*string { if t == nil { - t = &PipelineStageFragment_Services_Criteria{} + t = &PipelineFragment_Stages_PipelineStageFragment_Services_Criteria{} } return t.Secrets } -type PipelineStageFragment_Services struct { - Service *ServiceDeploymentBaseFragment "json:\"service,omitempty\" graphql:\"service\"" - Criteria *PipelineStageFragment_Services_Criteria "json:\"criteria,omitempty\" graphql:\"criteria\"" +type PipelineFragment_Stages_PipelineStageFragment_Services struct { + Service *ServiceDeploymentBaseFragment "json:\"service,omitempty\" graphql:\"service\"" + Criteria *PipelineFragment_Stages_PipelineStageFragment_Services_Criteria "json:\"criteria,omitempty\" graphql:\"criteria\"" } -func (t *PipelineStageFragment_Services) GetService() *ServiceDeploymentBaseFragment { +func (t *PipelineFragment_Stages_PipelineStageFragment_Services) GetService() *ServiceDeploymentBaseFragment { if t == nil { - t = &PipelineStageFragment_Services{} + t = &PipelineFragment_Stages_PipelineStageFragment_Services{} } return t.Service } -func (t *PipelineStageFragment_Services) GetCriteria() *PipelineStageFragment_Services_Criteria { +func (t *PipelineFragment_Stages_PipelineStageFragment_Services) GetCriteria() *PipelineFragment_Stages_PipelineStageFragment_Services_Criteria { if t == nil { - t = &PipelineStageFragment_Services{} + t = &PipelineFragment_Stages_PipelineStageFragment_Services{} } return t.Criteria } -type PipelineStageEdgeFragment_From_PipelineStageFragment_Services_Criteria struct { +type PipelineFragment_Edges_PipelineStageEdgeFragment_From_PipelineStageFragment_Services_Criteria struct { Source *ServiceDeploymentBaseFragment "json:\"source,omitempty\" graphql:\"source\"" Secrets []*string "json:\"secrets,omitempty\" graphql:\"secrets\"" } -func (t *PipelineStageEdgeFragment_From_PipelineStageFragment_Services_Criteria) GetSource() *ServiceDeploymentBaseFragment { +func (t *PipelineFragment_Edges_PipelineStageEdgeFragment_From_PipelineStageFragment_Services_Criteria) GetSource() *ServiceDeploymentBaseFragment { if t == nil { - t = &PipelineStageEdgeFragment_From_PipelineStageFragment_Services_Criteria{} + t = &PipelineFragment_Edges_PipelineStageEdgeFragment_From_PipelineStageFragment_Services_Criteria{} } return t.Source } -func (t *PipelineStageEdgeFragment_From_PipelineStageFragment_Services_Criteria) GetSecrets() []*string { +func (t *PipelineFragment_Edges_PipelineStageEdgeFragment_From_PipelineStageFragment_Services_Criteria) GetSecrets() []*string { if t == nil { - t = &PipelineStageEdgeFragment_From_PipelineStageFragment_Services_Criteria{} + t = &PipelineFragment_Edges_PipelineStageEdgeFragment_From_PipelineStageFragment_Services_Criteria{} } return t.Secrets } -type PipelineStageEdgeFragment_From_PipelineStageFragment_Services struct { - Service *ServiceDeploymentBaseFragment "json:\"service,omitempty\" graphql:\"service\"" - Criteria *PipelineStageEdgeFragment_From_PipelineStageFragment_Services_Criteria "json:\"criteria,omitempty\" graphql:\"criteria\"" +type PipelineFragment_Edges_PipelineStageEdgeFragment_From_PipelineStageFragment_Services struct { + Service *ServiceDeploymentBaseFragment "json:\"service,omitempty\" graphql:\"service\"" + Criteria *PipelineFragment_Edges_PipelineStageEdgeFragment_From_PipelineStageFragment_Services_Criteria "json:\"criteria,omitempty\" graphql:\"criteria\"" } -func (t *PipelineStageEdgeFragment_From_PipelineStageFragment_Services) GetService() *ServiceDeploymentBaseFragment { +func (t *PipelineFragment_Edges_PipelineStageEdgeFragment_From_PipelineStageFragment_Services) GetService() *ServiceDeploymentBaseFragment { if t == nil { - t = &PipelineStageEdgeFragment_From_PipelineStageFragment_Services{} + t = &PipelineFragment_Edges_PipelineStageEdgeFragment_From_PipelineStageFragment_Services{} } return t.Service } -func (t *PipelineStageEdgeFragment_From_PipelineStageFragment_Services) GetCriteria() *PipelineStageEdgeFragment_From_PipelineStageFragment_Services_Criteria { +func (t *PipelineFragment_Edges_PipelineStageEdgeFragment_From_PipelineStageFragment_Services) GetCriteria() *PipelineFragment_Edges_PipelineStageEdgeFragment_From_PipelineStageFragment_Services_Criteria { if t == nil { - t = &PipelineStageEdgeFragment_From_PipelineStageFragment_Services{} + t = &PipelineFragment_Edges_PipelineStageEdgeFragment_From_PipelineStageFragment_Services{} } return t.Criteria } -type PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria struct { +type PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria struct { Source *ServiceDeploymentBaseFragment "json:\"source,omitempty\" graphql:\"source\"" Secrets []*string "json:\"secrets,omitempty\" graphql:\"secrets\"" } -func (t *PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria) GetSource() *ServiceDeploymentBaseFragment { +func (t *PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria) GetSource() *ServiceDeploymentBaseFragment { if t == nil { - t = &PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria{} + t = &PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria{} } return t.Source } -func (t *PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria) GetSecrets() []*string { +func (t *PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria) GetSecrets() []*string { if t == nil { - t = &PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria{} + t = &PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria{} } return t.Secrets } -type PipelineStageEdgeFragment_To_PipelineStageFragment_Services struct { - Service *ServiceDeploymentBaseFragment "json:\"service,omitempty\" graphql:\"service\"" - Criteria *PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria "json:\"criteria,omitempty\" graphql:\"criteria\"" +type PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services struct { + Service *ServiceDeploymentBaseFragment "json:\"service,omitempty\" graphql:\"service\"" + Criteria *PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria "json:\"criteria,omitempty\" graphql:\"criteria\"" } -func (t *PipelineStageEdgeFragment_To_PipelineStageFragment_Services) GetService() *ServiceDeploymentBaseFragment { +func (t *PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services) GetService() *ServiceDeploymentBaseFragment { if t == nil { - t = &PipelineStageEdgeFragment_To_PipelineStageFragment_Services{} + t = &PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services{} } return t.Service } -func (t *PipelineStageEdgeFragment_To_PipelineStageFragment_Services) GetCriteria() *PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria { +func (t *PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services) GetCriteria() *PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria { if t == nil { - t = &PipelineStageEdgeFragment_To_PipelineStageFragment_Services{} + t = &PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services{} } return t.Criteria } -type PipelineFragment_Stages_PipelineStageFragment_Services_Criteria struct { +type PipelineStageFragment_Services_Criteria struct { Source *ServiceDeploymentBaseFragment "json:\"source,omitempty\" graphql:\"source\"" Secrets []*string "json:\"secrets,omitempty\" graphql:\"secrets\"" } -func (t *PipelineFragment_Stages_PipelineStageFragment_Services_Criteria) GetSource() *ServiceDeploymentBaseFragment { +func (t *PipelineStageFragment_Services_Criteria) GetSource() *ServiceDeploymentBaseFragment { if t == nil { - t = &PipelineFragment_Stages_PipelineStageFragment_Services_Criteria{} + t = &PipelineStageFragment_Services_Criteria{} } return t.Source } -func (t *PipelineFragment_Stages_PipelineStageFragment_Services_Criteria) GetSecrets() []*string { +func (t *PipelineStageFragment_Services_Criteria) GetSecrets() []*string { if t == nil { - t = &PipelineFragment_Stages_PipelineStageFragment_Services_Criteria{} + t = &PipelineStageFragment_Services_Criteria{} } return t.Secrets } -type PipelineFragment_Stages_PipelineStageFragment_Services struct { - Service *ServiceDeploymentBaseFragment "json:\"service,omitempty\" graphql:\"service\"" - Criteria *PipelineFragment_Stages_PipelineStageFragment_Services_Criteria "json:\"criteria,omitempty\" graphql:\"criteria\"" +type PipelineStageFragment_Services struct { + Service *ServiceDeploymentBaseFragment "json:\"service,omitempty\" graphql:\"service\"" + Criteria *PipelineStageFragment_Services_Criteria "json:\"criteria,omitempty\" graphql:\"criteria\"" } -func (t *PipelineFragment_Stages_PipelineStageFragment_Services) GetService() *ServiceDeploymentBaseFragment { +func (t *PipelineStageFragment_Services) GetService() *ServiceDeploymentBaseFragment { if t == nil { - t = &PipelineFragment_Stages_PipelineStageFragment_Services{} + t = &PipelineStageFragment_Services{} } return t.Service } -func (t *PipelineFragment_Stages_PipelineStageFragment_Services) GetCriteria() *PipelineFragment_Stages_PipelineStageFragment_Services_Criteria { +func (t *PipelineStageFragment_Services) GetCriteria() *PipelineStageFragment_Services_Criteria { if t == nil { - t = &PipelineFragment_Stages_PipelineStageFragment_Services{} + t = &PipelineStageFragment_Services{} } return t.Criteria } -type PipelineFragment_Edges_PipelineStageEdgeFragment_From_PipelineStageFragment_Services_Criteria struct { +type PipelineStageEdgeFragment_From_PipelineStageFragment_Services_Criteria struct { Source *ServiceDeploymentBaseFragment "json:\"source,omitempty\" graphql:\"source\"" Secrets []*string "json:\"secrets,omitempty\" graphql:\"secrets\"" } -func (t *PipelineFragment_Edges_PipelineStageEdgeFragment_From_PipelineStageFragment_Services_Criteria) GetSource() *ServiceDeploymentBaseFragment { +func (t *PipelineStageEdgeFragment_From_PipelineStageFragment_Services_Criteria) GetSource() *ServiceDeploymentBaseFragment { if t == nil { - t = &PipelineFragment_Edges_PipelineStageEdgeFragment_From_PipelineStageFragment_Services_Criteria{} + t = &PipelineStageEdgeFragment_From_PipelineStageFragment_Services_Criteria{} } return t.Source } -func (t *PipelineFragment_Edges_PipelineStageEdgeFragment_From_PipelineStageFragment_Services_Criteria) GetSecrets() []*string { +func (t *PipelineStageEdgeFragment_From_PipelineStageFragment_Services_Criteria) GetSecrets() []*string { if t == nil { - t = &PipelineFragment_Edges_PipelineStageEdgeFragment_From_PipelineStageFragment_Services_Criteria{} + t = &PipelineStageEdgeFragment_From_PipelineStageFragment_Services_Criteria{} } return t.Secrets } -type PipelineFragment_Edges_PipelineStageEdgeFragment_From_PipelineStageFragment_Services struct { - Service *ServiceDeploymentBaseFragment "json:\"service,omitempty\" graphql:\"service\"" - Criteria *PipelineFragment_Edges_PipelineStageEdgeFragment_From_PipelineStageFragment_Services_Criteria "json:\"criteria,omitempty\" graphql:\"criteria\"" +type PipelineStageEdgeFragment_From_PipelineStageFragment_Services struct { + Service *ServiceDeploymentBaseFragment "json:\"service,omitempty\" graphql:\"service\"" + Criteria *PipelineStageEdgeFragment_From_PipelineStageFragment_Services_Criteria "json:\"criteria,omitempty\" graphql:\"criteria\"" } -func (t *PipelineFragment_Edges_PipelineStageEdgeFragment_From_PipelineStageFragment_Services) GetService() *ServiceDeploymentBaseFragment { +func (t *PipelineStageEdgeFragment_From_PipelineStageFragment_Services) GetService() *ServiceDeploymentBaseFragment { if t == nil { - t = &PipelineFragment_Edges_PipelineStageEdgeFragment_From_PipelineStageFragment_Services{} + t = &PipelineStageEdgeFragment_From_PipelineStageFragment_Services{} } return t.Service } -func (t *PipelineFragment_Edges_PipelineStageEdgeFragment_From_PipelineStageFragment_Services) GetCriteria() *PipelineFragment_Edges_PipelineStageEdgeFragment_From_PipelineStageFragment_Services_Criteria { +func (t *PipelineStageEdgeFragment_From_PipelineStageFragment_Services) GetCriteria() *PipelineStageEdgeFragment_From_PipelineStageFragment_Services_Criteria { if t == nil { - t = &PipelineFragment_Edges_PipelineStageEdgeFragment_From_PipelineStageFragment_Services{} + t = &PipelineStageEdgeFragment_From_PipelineStageFragment_Services{} } return t.Criteria } -type PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria struct { +type PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria struct { Source *ServiceDeploymentBaseFragment "json:\"source,omitempty\" graphql:\"source\"" Secrets []*string "json:\"secrets,omitempty\" graphql:\"secrets\"" } -func (t *PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria) GetSource() *ServiceDeploymentBaseFragment { +func (t *PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria) GetSource() *ServiceDeploymentBaseFragment { if t == nil { - t = &PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria{} + t = &PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria{} } return t.Source } -func (t *PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria) GetSecrets() []*string { +func (t *PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria) GetSecrets() []*string { if t == nil { - t = &PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria{} + t = &PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria{} } return t.Secrets } -type PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services struct { - Service *ServiceDeploymentBaseFragment "json:\"service,omitempty\" graphql:\"service\"" - Criteria *PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria "json:\"criteria,omitempty\" graphql:\"criteria\"" +type PipelineStageEdgeFragment_To_PipelineStageFragment_Services struct { + Service *ServiceDeploymentBaseFragment "json:\"service,omitempty\" graphql:\"service\"" + Criteria *PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria "json:\"criteria,omitempty\" graphql:\"criteria\"" } -func (t *PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services) GetService() *ServiceDeploymentBaseFragment { +func (t *PipelineStageEdgeFragment_To_PipelineStageFragment_Services) GetService() *ServiceDeploymentBaseFragment { if t == nil { - t = &PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services{} + t = &PipelineStageEdgeFragment_To_PipelineStageFragment_Services{} } return t.Service } -func (t *PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services) GetCriteria() *PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria { +func (t *PipelineStageEdgeFragment_To_PipelineStageFragment_Services) GetCriteria() *PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria { if t == nil { - t = &PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services{} + t = &PipelineStageEdgeFragment_To_PipelineStageFragment_Services{} } return t.Criteria } @@ -4649,89 +4550,45 @@ func (t *PipelineEdgeFragment_Node_PipelineFragment_Edges_PipelineStageEdgeFragm } func (t *PipelineEdgeFragment_Node_PipelineFragment_Edges_PipelineStageEdgeFragment_From_PipelineStageFragment_Services) GetCriteria() *PipelineEdgeFragment_Node_PipelineFragment_Edges_PipelineStageEdgeFragment_From_PipelineStageFragment_Services_Criteria { if t == nil { - t = &PipelineEdgeFragment_Node_PipelineFragment_Edges_PipelineStageEdgeFragment_From_PipelineStageFragment_Services{} - } - return t.Criteria -} - -type PipelineEdgeFragment_Node_PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria struct { - Source *ServiceDeploymentBaseFragment "json:\"source,omitempty\" graphql:\"source\"" - Secrets []*string "json:\"secrets,omitempty\" graphql:\"secrets\"" -} - -func (t *PipelineEdgeFragment_Node_PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria) GetSource() *ServiceDeploymentBaseFragment { - if t == nil { - t = &PipelineEdgeFragment_Node_PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria{} - } - return t.Source -} -func (t *PipelineEdgeFragment_Node_PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria) GetSecrets() []*string { - if t == nil { - t = &PipelineEdgeFragment_Node_PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria{} - } - return t.Secrets -} - -type PipelineEdgeFragment_Node_PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services struct { - Service *ServiceDeploymentBaseFragment "json:\"service,omitempty\" graphql:\"service\"" - Criteria *PipelineEdgeFragment_Node_PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria "json:\"criteria,omitempty\" graphql:\"criteria\"" -} - -func (t *PipelineEdgeFragment_Node_PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services) GetService() *ServiceDeploymentBaseFragment { - if t == nil { - t = &PipelineEdgeFragment_Node_PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services{} - } - return t.Service -} -func (t *PipelineEdgeFragment_Node_PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services) GetCriteria() *PipelineEdgeFragment_Node_PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria { - if t == nil { - t = &PipelineEdgeFragment_Node_PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services{} - } - return t.Criteria -} - -type GlobalServiceFragment_Provider struct { - ID string "json:\"id\" graphql:\"id\"" -} - -func (t *GlobalServiceFragment_Provider) GetID() string { - if t == nil { - t = &GlobalServiceFragment_Provider{} + t = &PipelineEdgeFragment_Node_PipelineFragment_Edges_PipelineStageEdgeFragment_From_PipelineStageFragment_Services{} } - return t.ID + return t.Criteria } -type GlobalServiceFragment_Service struct { - ID string "json:\"id\" graphql:\"id\"" +type PipelineEdgeFragment_Node_PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria struct { + Source *ServiceDeploymentBaseFragment "json:\"source,omitempty\" graphql:\"source\"" + Secrets []*string "json:\"secrets,omitempty\" graphql:\"secrets\"" } -func (t *GlobalServiceFragment_Service) GetID() string { +func (t *PipelineEdgeFragment_Node_PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria) GetSource() *ServiceDeploymentBaseFragment { if t == nil { - t = &GlobalServiceFragment_Service{} + t = &PipelineEdgeFragment_Node_PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria{} } - return t.ID -} - -type ClusterBackupFragment_Cluster struct { - ID string "json:\"id\" graphql:\"id\"" + return t.Source } - -func (t *ClusterBackupFragment_Cluster) GetID() string { +func (t *PipelineEdgeFragment_Node_PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria) GetSecrets() []*string { if t == nil { - t = &ClusterBackupFragment_Cluster{} + t = &PipelineEdgeFragment_Node_PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria{} } - return t.ID + return t.Secrets } -type ClusterRestoreFragment_Backup_ClusterBackupFragment_Cluster struct { - ID string "json:\"id\" graphql:\"id\"" +type PipelineEdgeFragment_Node_PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services struct { + Service *ServiceDeploymentBaseFragment "json:\"service,omitempty\" graphql:\"service\"" + Criteria *PipelineEdgeFragment_Node_PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria "json:\"criteria,omitempty\" graphql:\"criteria\"" } -func (t *ClusterRestoreFragment_Backup_ClusterBackupFragment_Cluster) GetID() string { +func (t *PipelineEdgeFragment_Node_PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services) GetService() *ServiceDeploymentBaseFragment { if t == nil { - t = &ClusterRestoreFragment_Backup_ClusterBackupFragment_Cluster{} + t = &PipelineEdgeFragment_Node_PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services{} } - return t.ID + return t.Service +} +func (t *PipelineEdgeFragment_Node_PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services) GetCriteria() *PipelineEdgeFragment_Node_PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services_Criteria { + if t == nil { + t = &PipelineEdgeFragment_Node_PipelineFragment_Edges_PipelineStageEdgeFragment_To_PipelineStageFragment_Services{} + } + return t.Criteria } type InfrastructureStackEdgeFragment_Node_InfrastructureStackFragment_JobSpec_JobSpecFragment_Containers_ContainerSpecFragment_Env struct { @@ -5354,6 +5211,7 @@ type CreateCluster_CreateCluster struct { Provider *ClusterProviderFragment "json:\"provider,omitempty\" graphql:\"provider\"" NodePools []*NodePoolFragment "json:\"nodePools,omitempty\" graphql:\"nodePools\"" Status *ClusterStatusFragment "json:\"status,omitempty\" graphql:\"status\"" + Project *TinyProjectFragment "json:\"project,omitempty\" graphql:\"project\"" } func (t *CreateCluster_CreateCluster) GetDeployToken() *string { @@ -5464,6 +5322,12 @@ func (t *CreateCluster_CreateCluster) GetStatus() *ClusterStatusFragment { } return t.Status } +func (t *CreateCluster_CreateCluster) GetProject() *TinyProjectFragment { + if t == nil { + t = &CreateCluster_CreateCluster{} + } + return t.Project +} type UpdateCluster_UpdateCluster_ClusterFragment_Provider_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components struct { ID string "json:\"id\" graphql:\"id\"" @@ -6277,6 +6141,7 @@ type GetClusterWithToken_Cluster struct { Provider *ClusterProviderFragment "json:\"provider,omitempty\" graphql:\"provider\"" NodePools []*NodePoolFragment "json:\"nodePools,omitempty\" graphql:\"nodePools\"" Status *ClusterStatusFragment "json:\"status,omitempty\" graphql:\"status\"" + Project *TinyProjectFragment "json:\"project,omitempty\" graphql:\"project\"" DeployToken *string "json:\"deployToken,omitempty\" graphql:\"deployToken\"" } @@ -6382,6 +6247,12 @@ func (t *GetClusterWithToken_Cluster) GetStatus() *ClusterStatusFragment { } return t.Status } +func (t *GetClusterWithToken_Cluster) GetProject() *TinyProjectFragment { + if t == nil { + t = &GetClusterWithToken_Cluster{} + } + return t.Project +} func (t *GetClusterWithToken_Cluster) GetDeployToken() *string { if t == nil { t = &GetClusterWithToken_Cluster{} @@ -8969,17 +8840,6 @@ func (t *ListPrAutomations_PrAutomations) GetEdges() []*ListPrAutomations_PrAuto return t.Edges } -type DeleteNamespace_DeleteManagedNamespace struct { - ID string "json:\"id\" graphql:\"id\"" -} - -func (t *DeleteNamespace_DeleteManagedNamespace) GetID() string { - if t == nil { - t = &DeleteNamespace_DeleteManagedNamespace{} - } - return t.ID -} - type ListNamespaces_ManagedNamespaces struct { PageInfo *PageInfoFragment "json:\"pageInfo\" graphql:\"pageInfo\"" Edges []*ManagedNamespaceEdgeFragment "json:\"edges,omitempty\" graphql:\"edges\"" @@ -9016,6 +8876,17 @@ func (t *ListClusterNamespaces_ClusterManagedNamespaces) GetEdges() []*ManagedNa return t.Edges } +type DeleteNamespace_DeleteManagedNamespace struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *DeleteNamespace_DeleteManagedNamespace) GetID() string { + if t == nil { + t = &DeleteNamespace_DeleteManagedNamespace{} + } + return t.ID +} + type ListNotificationSinks_NotificationSinks struct { PageInfo *PageInfoFragment "json:\"pageInfo\" graphql:\"pageInfo\"" Edges []*NotificationSinkEdgeFragment "json:\"edges,omitempty\" graphql:\"edges\"" @@ -9506,7 +9377,7 @@ func (t *ListProjects_Projects) GetEdges() []*ListProjects_Projects_Edges { return t.Edges } -type ListProviders_ClusterProviders_ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components struct { +type ListProviders_ClusterProviders_Edges_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components struct { ID string "json:\"id\" graphql:\"id\"" Name string "json:\"name\" graphql:\"name\"" Group *string "json:\"group,omitempty\" graphql:\"group\"" @@ -9518,79 +9389,101 @@ type ListProviders_ClusterProviders_ClusterProviderConnectionFragment_Edges_Clus Content *ComponentContentFragment "json:\"content,omitempty\" graphql:\"content\"" } -func (t *ListProviders_ClusterProviders_ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetID() string { +func (t *ListProviders_ClusterProviders_Edges_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetID() string { if t == nil { - t = &ListProviders_ClusterProviders_ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ListProviders_ClusterProviders_Edges_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.ID } -func (t *ListProviders_ClusterProviders_ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetName() string { +func (t *ListProviders_ClusterProviders_Edges_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetName() string { if t == nil { - t = &ListProviders_ClusterProviders_ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ListProviders_ClusterProviders_Edges_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.Name } -func (t *ListProviders_ClusterProviders_ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetGroup() *string { +func (t *ListProviders_ClusterProviders_Edges_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetGroup() *string { if t == nil { - t = &ListProviders_ClusterProviders_ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ListProviders_ClusterProviders_Edges_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.Group } -func (t *ListProviders_ClusterProviders_ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetKind() string { +func (t *ListProviders_ClusterProviders_Edges_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetKind() string { if t == nil { - t = &ListProviders_ClusterProviders_ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ListProviders_ClusterProviders_Edges_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.Kind } -func (t *ListProviders_ClusterProviders_ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetNamespace() *string { +func (t *ListProviders_ClusterProviders_Edges_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetNamespace() *string { if t == nil { - t = &ListProviders_ClusterProviders_ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ListProviders_ClusterProviders_Edges_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.Namespace } -func (t *ListProviders_ClusterProviders_ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetState() *ComponentState { +func (t *ListProviders_ClusterProviders_Edges_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetState() *ComponentState { if t == nil { - t = &ListProviders_ClusterProviders_ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ListProviders_ClusterProviders_Edges_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.State } -func (t *ListProviders_ClusterProviders_ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetSynced() bool { +func (t *ListProviders_ClusterProviders_Edges_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetSynced() bool { if t == nil { - t = &ListProviders_ClusterProviders_ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ListProviders_ClusterProviders_Edges_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.Synced } -func (t *ListProviders_ClusterProviders_ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetVersion() *string { +func (t *ListProviders_ClusterProviders_Edges_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetVersion() *string { if t == nil { - t = &ListProviders_ClusterProviders_ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ListProviders_ClusterProviders_Edges_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.Version } -func (t *ListProviders_ClusterProviders_ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetContent() *ComponentContentFragment { +func (t *ListProviders_ClusterProviders_Edges_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components) GetContent() *ComponentContentFragment { if t == nil { - t = &ListProviders_ClusterProviders_ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} + t = &ListProviders_ClusterProviders_Edges_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Components{} } return t.Content } -type ListProviders_ClusterProviders_ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration struct { +type ListProviders_ClusterProviders_Edges_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration struct { Name string "json:\"name\" graphql:\"name\"" Value string "json:\"value\" graphql:\"value\"" } -func (t *ListProviders_ClusterProviders_ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration) GetName() string { +func (t *ListProviders_ClusterProviders_Edges_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration) GetName() string { if t == nil { - t = &ListProviders_ClusterProviders_ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration{} + t = &ListProviders_ClusterProviders_Edges_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration{} } return t.Name } -func (t *ListProviders_ClusterProviders_ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration) GetValue() string { +func (t *ListProviders_ClusterProviders_Edges_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration) GetValue() string { if t == nil { - t = &ListProviders_ClusterProviders_ClusterProviderConnectionFragment_Edges_ClusterProviderEdgeFragment_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration{} + t = &ListProviders_ClusterProviders_Edges_Node_ClusterProviderFragment_Service_ServiceDeploymentFragment_Configuration{} } return t.Value } +type ListProviders_ClusterProviders_Edges struct { + Node *ClusterProviderFragment "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *ListProviders_ClusterProviders_Edges) GetNode() *ClusterProviderFragment { + if t == nil { + t = &ListProviders_ClusterProviders_Edges{} + } + return t.Node +} + +type ListProviders_ClusterProviders struct { + Edges []*ListProviders_ClusterProviders_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *ListProviders_ClusterProviders) GetEdges() []*ListProviders_ClusterProviders_Edges { + if t == nil { + t = &ListProviders_ClusterProviders{} + } + return t.Edges +} + type ListClusterStacks_ClusterStackRuns_Edges_StackRunEdgeFragment_Node_StackRunFragment_StackRunBaseFragment_StateUrls_Terraform struct { Address *string "json:\"address,omitempty\" graphql:\"address\"" Lock *string "json:\"lock,omitempty\" graphql:\"lock\"" @@ -10654,11 +10547,22 @@ func (t *GetCustomStackRun_CustomStackRun_CustomStackRunFragment_Stack) GetID() return t.ID } +type ListAccessTokens_AccessTokens_Edges struct { + Node *AccessTokenFragment "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *ListAccessTokens_AccessTokens_Edges) GetNode() *AccessTokenFragment { + if t == nil { + t = &ListAccessTokens_AccessTokens_Edges{} + } + return t.Node +} + type ListAccessTokens_AccessTokens struct { - Edges []*AccessTokenEdgeFragment "json:\"edges,omitempty\" graphql:\"edges\"" + Edges []*ListAccessTokens_AccessTokens_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *ListAccessTokens_AccessTokens) GetEdges() []*AccessTokenEdgeFragment { +func (t *ListAccessTokens_AccessTokens) GetEdges() []*ListAccessTokens_AccessTokens_Edges { if t == nil { t = &ListAccessTokens_AccessTokens{} } @@ -11631,70 +11535,70 @@ func (t *CreatePullRequest) GetCreatePullRequest() *PullRequestFragment { return t.CreatePullRequest } -type CreateNamespace struct { - CreateManagedNamespace *ManagedNamespaceFragment "json:\"createManagedNamespace,omitempty\" graphql:\"createManagedNamespace\"" +type ListNamespaces struct { + ManagedNamespaces *ListNamespaces_ManagedNamespaces "json:\"managedNamespaces,omitempty\" graphql:\"managedNamespaces\"" } -func (t *CreateNamespace) GetCreateManagedNamespace() *ManagedNamespaceFragment { +func (t *ListNamespaces) GetManagedNamespaces() *ListNamespaces_ManagedNamespaces { if t == nil { - t = &CreateNamespace{} + t = &ListNamespaces{} } - return t.CreateManagedNamespace + return t.ManagedNamespaces } -type UpdateNamespace struct { - UpdateManagedNamespace *ManagedNamespaceFragment "json:\"updateManagedNamespace,omitempty\" graphql:\"updateManagedNamespace\"" +type ListClusterNamespaces struct { + ClusterManagedNamespaces *ListClusterNamespaces_ClusterManagedNamespaces "json:\"clusterManagedNamespaces,omitempty\" graphql:\"clusterManagedNamespaces\"" } -func (t *UpdateNamespace) GetUpdateManagedNamespace() *ManagedNamespaceFragment { +func (t *ListClusterNamespaces) GetClusterManagedNamespaces() *ListClusterNamespaces_ClusterManagedNamespaces { if t == nil { - t = &UpdateNamespace{} + t = &ListClusterNamespaces{} } - return t.UpdateManagedNamespace + return t.ClusterManagedNamespaces } -type DeleteNamespace struct { - DeleteManagedNamespace *DeleteNamespace_DeleteManagedNamespace "json:\"deleteManagedNamespace,omitempty\" graphql:\"deleteManagedNamespace\"" +type GetNamespace struct { + ManagedNamespace *ManagedNamespaceFragment "json:\"managedNamespace,omitempty\" graphql:\"managedNamespace\"" } -func (t *DeleteNamespace) GetDeleteManagedNamespace() *DeleteNamespace_DeleteManagedNamespace { +func (t *GetNamespace) GetManagedNamespace() *ManagedNamespaceFragment { if t == nil { - t = &DeleteNamespace{} + t = &GetNamespace{} } - return t.DeleteManagedNamespace + return t.ManagedNamespace } -type ListNamespaces struct { - ManagedNamespaces *ListNamespaces_ManagedNamespaces "json:\"managedNamespaces,omitempty\" graphql:\"managedNamespaces\"" +type CreateNamespace struct { + CreateManagedNamespace *ManagedNamespaceFragment "json:\"createManagedNamespace,omitempty\" graphql:\"createManagedNamespace\"" } -func (t *ListNamespaces) GetManagedNamespaces() *ListNamespaces_ManagedNamespaces { +func (t *CreateNamespace) GetCreateManagedNamespace() *ManagedNamespaceFragment { if t == nil { - t = &ListNamespaces{} + t = &CreateNamespace{} } - return t.ManagedNamespaces + return t.CreateManagedNamespace } -type ListClusterNamespaces struct { - ClusterManagedNamespaces *ListClusterNamespaces_ClusterManagedNamespaces "json:\"clusterManagedNamespaces,omitempty\" graphql:\"clusterManagedNamespaces\"" +type UpdateNamespace struct { + UpdateManagedNamespace *ManagedNamespaceFragment "json:\"updateManagedNamespace,omitempty\" graphql:\"updateManagedNamespace\"" } -func (t *ListClusterNamespaces) GetClusterManagedNamespaces() *ListClusterNamespaces_ClusterManagedNamespaces { +func (t *UpdateNamespace) GetUpdateManagedNamespace() *ManagedNamespaceFragment { if t == nil { - t = &ListClusterNamespaces{} + t = &UpdateNamespace{} } - return t.ClusterManagedNamespaces + return t.UpdateManagedNamespace } -type GetNamespace struct { - ManagedNamespace *ManagedNamespaceFragment "json:\"managedNamespace,omitempty\" graphql:\"managedNamespace\"" +type DeleteNamespace struct { + DeleteManagedNamespace *DeleteNamespace_DeleteManagedNamespace "json:\"deleteManagedNamespace,omitempty\" graphql:\"deleteManagedNamespace\"" } -func (t *GetNamespace) GetManagedNamespace() *ManagedNamespaceFragment { +func (t *DeleteNamespace) GetDeleteManagedNamespace() *DeleteNamespace_DeleteManagedNamespace { if t == nil { - t = &GetNamespace{} + t = &DeleteNamespace{} } - return t.ManagedNamespace + return t.DeleteManagedNamespace } type UpsertNotificationSink struct { @@ -11962,10 +11866,10 @@ func (t *DeleteProviderCredential) GetDeleteProviderCredential() *ProviderCreden } type ListProviders struct { - ClusterProviders *ClusterProviderConnectionFragment "json:\"clusterProviders,omitempty\" graphql:\"clusterProviders\"" + ClusterProviders *ListProviders_ClusterProviders "json:\"clusterProviders,omitempty\" graphql:\"clusterProviders\"" } -func (t *ListProviders) GetClusterProviders() *ClusterProviderConnectionFragment { +func (t *ListProviders) GetClusterProviders() *ListProviders_ClusterProviders { if t == nil { t = &ListProviders{} } @@ -12181,28 +12085,6 @@ func (t *GetCustomStackRun) GetCustomStackRun() *CustomStackRunFragment { return t.CustomStackRun } -type CreateAccessToken struct { - CreateAccessToken *AccessTokenFragment "json:\"createAccessToken,omitempty\" graphql:\"createAccessToken\"" -} - -func (t *CreateAccessToken) GetCreateAccessToken() *AccessTokenFragment { - if t == nil { - t = &CreateAccessToken{} - } - return t.CreateAccessToken -} - -type DeleteAccessToken struct { - DeleteAccessToken *AccessTokenFragment "json:\"deleteAccessToken,omitempty\" graphql:\"deleteAccessToken\"" -} - -func (t *DeleteAccessToken) GetDeleteAccessToken() *AccessTokenFragment { - if t == nil { - t = &DeleteAccessToken{} - } - return t.DeleteAccessToken -} - type ListAccessTokens struct { AccessTokens *ListAccessTokens_AccessTokens "json:\"accessTokens,omitempty\" graphql:\"accessTokens\"" } @@ -12236,6 +12118,28 @@ func (t *TokenExchange) GetTokenExchange() *TokenExchange_TokenExchange { return t.TokenExchange } +type CreateAccessToken struct { + CreateAccessToken *AccessTokenFragment "json:\"createAccessToken,omitempty\" graphql:\"createAccessToken\"" +} + +func (t *CreateAccessToken) GetCreateAccessToken() *AccessTokenFragment { + if t == nil { + t = &CreateAccessToken{} + } + return t.CreateAccessToken +} + +type DeleteAccessToken struct { + DeleteAccessToken *AccessTokenFragment "json:\"deleteAccessToken,omitempty\" graphql:\"deleteAccessToken\"" +} + +func (t *DeleteAccessToken) GetDeleteAccessToken() *AccessTokenFragment { + if t == nil { + t = &DeleteAccessToken{} + } + return t.DeleteAccessToken +} + type GetUser struct { User *UserFragment "json:\"user,omitempty\" graphql:\"user\"" } @@ -12499,6 +12403,9 @@ fragment ClusterFragment on Cluster { status { ... ClusterStatusFragment } + project { + ... TinyProjectFragment + } } fragment ClusterTags on Tag { name @@ -12627,6 +12534,11 @@ fragment ClusterConditionFragment on ClusterCondition { reason severity } +fragment TinyProjectFragment on Project { + id + name + default +} ` func (c *Client) CreateCluster(ctx context.Context, attributes ClusterAttributes, interceptors ...clientv2.RequestInterceptor) (*CreateCluster, error) { @@ -12679,6 +12591,9 @@ fragment ClusterFragment on Cluster { status { ... ClusterStatusFragment } + project { + ... TinyProjectFragment + } } fragment ClusterTags on Tag { name @@ -12807,6 +12722,11 @@ fragment ClusterConditionFragment on ClusterCondition { reason severity } +fragment TinyProjectFragment on Project { + id + name + default +} ` func (c *Client) UpdateCluster(ctx context.Context, id string, attributes ClusterUpdateAttributes, interceptors ...clientv2.RequestInterceptor) (*UpdateCluster, error) { @@ -12860,6 +12780,9 @@ fragment ClusterFragment on Cluster { status { ... ClusterStatusFragment } + project { + ... TinyProjectFragment + } } fragment ClusterTags on Tag { name @@ -12988,6 +12911,11 @@ fragment ClusterConditionFragment on ClusterCondition { reason severity } +fragment TinyProjectFragment on Project { + id + name + default +} ` func (c *Client) DeleteCluster(ctx context.Context, id string, interceptors ...clientv2.RequestInterceptor) (*DeleteCluster, error) { @@ -13040,6 +12968,9 @@ fragment ClusterFragment on Cluster { status { ... ClusterStatusFragment } + project { + ... TinyProjectFragment + } } fragment ClusterTags on Tag { name @@ -13168,6 +13099,11 @@ fragment ClusterConditionFragment on ClusterCondition { reason severity } +fragment TinyProjectFragment on Project { + id + name + default +} ` func (c *Client) DetachCluster(ctx context.Context, id string, interceptors ...clientv2.RequestInterceptor) (*DetachCluster, error) { @@ -13618,6 +13554,9 @@ fragment ClusterFragment on Cluster { status { ... ClusterStatusFragment } + project { + ... TinyProjectFragment + } } fragment ClusterTags on Tag { name @@ -13746,6 +13685,11 @@ fragment ClusterConditionFragment on ClusterCondition { reason severity } +fragment TinyProjectFragment on Project { + id + name + default +} ` func (c *Client) ListClusters(ctx context.Context, cursor *string, before *string, last *int64, interceptors ...clientv2.RequestInterceptor) (*ListClusters, error) { @@ -13800,6 +13744,9 @@ fragment ClusterFragment on Cluster { status { ... ClusterStatusFragment } + project { + ... TinyProjectFragment + } } fragment ClusterTags on Tag { name @@ -13928,6 +13875,11 @@ fragment ClusterConditionFragment on ClusterCondition { reason severity } +fragment TinyProjectFragment on Project { + id + name + default +} ` func (c *Client) GetCluster(ctx context.Context, id *string, interceptors ...clientv2.RequestInterceptor) (*GetCluster, error) { @@ -13981,6 +13933,9 @@ fragment ClusterFragment on Cluster { status { ... ClusterStatusFragment } + project { + ... TinyProjectFragment + } } fragment ClusterTags on Tag { name @@ -14109,6 +14064,11 @@ fragment ClusterConditionFragment on ClusterCondition { reason severity } +fragment TinyProjectFragment on Project { + id + name + default +} ` func (c *Client) GetClusterWithToken(ctx context.Context, id *string, handle *string, interceptors ...clientv2.RequestInterceptor) (*GetClusterWithToken, error) { @@ -14162,6 +14122,9 @@ fragment ClusterFragment on Cluster { status { ... ClusterStatusFragment } + project { + ... TinyProjectFragment + } } fragment ClusterTags on Tag { name @@ -14290,6 +14253,11 @@ fragment ClusterConditionFragment on ClusterCondition { reason severity } +fragment TinyProjectFragment on Project { + id + name + default +} ` func (c *Client) GetClusterByHandle(ctx context.Context, handle *string, interceptors ...clientv2.RequestInterceptor) (*GetClusterByHandle, error) { @@ -14986,6 +14954,9 @@ fragment BaseClusterFragment on Cluster { nodePools { ... NodePoolFragment } + project { + ... TinyProjectFragment + } } fragment ProviderCredentialFragment on ProviderCredential { id @@ -15027,6 +14998,11 @@ fragment NodePoolTaintFragment on Taint { value effect } +fragment TinyProjectFragment on Project { + id + name + default +} fragment ErrorFragment on ServiceError { source message @@ -15162,6 +15138,9 @@ fragment BaseClusterFragment on Cluster { nodePools { ... NodePoolFragment } + project { + ... TinyProjectFragment + } } fragment ProviderCredentialFragment on ProviderCredential { id @@ -15203,6 +15182,11 @@ fragment NodePoolTaintFragment on Taint { value effect } +fragment TinyProjectFragment on Project { + id + name + default +} fragment ErrorFragment on ServiceError { source message @@ -15520,6 +15504,9 @@ fragment BaseClusterFragment on Cluster { nodePools { ... NodePoolFragment } + project { + ... TinyProjectFragment + } } fragment ProviderCredentialFragment on ProviderCredential { id @@ -15561,6 +15548,11 @@ fragment NodePoolTaintFragment on Taint { value effect } +fragment TinyProjectFragment on Project { + id + name + default +} fragment ErrorFragment on ServiceError { source message @@ -15696,6 +15688,9 @@ fragment BaseClusterFragment on Cluster { nodePools { ... NodePoolFragment } + project { + ... TinyProjectFragment + } } fragment ProviderCredentialFragment on ProviderCredential { id @@ -15737,6 +15732,11 @@ fragment NodePoolTaintFragment on Taint { value effect } +fragment TinyProjectFragment on Project { + id + name + default +} fragment ErrorFragment on ServiceError { source message @@ -16479,6 +16479,9 @@ fragment BaseClusterFragment on Cluster { nodePools { ... NodePoolFragment } + project { + ... TinyProjectFragment + } } fragment ProviderCredentialFragment on ProviderCredential { id @@ -16520,6 +16523,11 @@ fragment NodePoolTaintFragment on Taint { value effect } +fragment TinyProjectFragment on Project { + id + name + default +} fragment ErrorFragment on ServiceError { source message @@ -16725,6 +16733,9 @@ fragment BaseClusterFragment on Cluster { nodePools { ... NodePoolFragment } + project { + ... TinyProjectFragment + } } fragment ProviderCredentialFragment on ProviderCredential { id @@ -16766,6 +16777,11 @@ fragment NodePoolTaintFragment on Taint { value effect } +fragment TinyProjectFragment on Project { + id + name + default +} fragment ErrorFragment on ServiceError { source message @@ -17333,6 +17349,9 @@ fragment BaseClusterFragment on Cluster { nodePools { ... NodePoolFragment } + project { + ... TinyProjectFragment + } } fragment ProviderCredentialFragment on ProviderCredential { id @@ -17374,6 +17393,11 @@ fragment NodePoolTaintFragment on Taint { value effect } +fragment TinyProjectFragment on Project { + id + name + default +} fragment ErrorFragment on ServiceError { source message @@ -17508,6 +17532,9 @@ fragment BaseClusterFragment on Cluster { nodePools { ... NodePoolFragment } + project { + ... TinyProjectFragment + } } fragment ProviderCredentialFragment on ProviderCredential { id @@ -17549,6 +17576,11 @@ fragment NodePoolTaintFragment on Taint { value effect } +fragment TinyProjectFragment on Project { + id + name + default +} fragment ErrorFragment on ServiceError { source message @@ -18582,8 +18614,102 @@ func (c *Client) CreatePullRequest(ctx context.Context, id string, branch *strin return &res, nil } -const CreateNamespaceDocument = `mutation CreateNamespace ($attributes: ManagedNamespaceAttributes!) { - createManagedNamespace(attributes: $attributes) { +const ListNamespacesDocument = `query ListNamespaces ($after: String, $first: Int, $before: String, $last: Int) { + managedNamespaces(after: $after, first: $first, before: $before, last: $last) { + pageInfo { + ... PageInfoFragment + } + edges { + ... ManagedNamespaceEdgeFragment + } + } +} +fragment PageInfoFragment on PageInfo { + hasNextPage + endCursor +} +fragment ManagedNamespaceEdgeFragment on ManagedNamespaceEdge { + cursor + node { + ... ManagedNamespaceMinimalFragment + } +} +fragment ManagedNamespaceMinimalFragment on ManagedNamespace { + id + name + description +} +` + +func (c *Client) ListNamespaces(ctx context.Context, after *string, first *int64, before *string, last *int64, interceptors ...clientv2.RequestInterceptor) (*ListNamespaces, error) { + vars := map[string]interface{}{ + "after": after, + "first": first, + "before": before, + "last": last, + } + + var res ListNamespaces + if err := c.Client.Post(ctx, "ListNamespaces", ListNamespacesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const ListClusterNamespacesDocument = `query ListClusterNamespaces ($after: String, $first: Int, $before: String, $last: Int) { + clusterManagedNamespaces(after: $after, first: $first, before: $before, last: $last) { + pageInfo { + ... PageInfoFragment + } + edges { + ... ManagedNamespaceEdgeFragment + } + } +} +fragment PageInfoFragment on PageInfo { + hasNextPage + endCursor +} +fragment ManagedNamespaceEdgeFragment on ManagedNamespaceEdge { + cursor + node { + ... ManagedNamespaceMinimalFragment + } +} +fragment ManagedNamespaceMinimalFragment on ManagedNamespace { + id + name + description +} +` + +func (c *Client) ListClusterNamespaces(ctx context.Context, after *string, first *int64, before *string, last *int64, interceptors ...clientv2.RequestInterceptor) (*ListClusterNamespaces, error) { + vars := map[string]interface{}{ + "after": after, + "first": first, + "before": before, + "last": last, + } + + var res ListClusterNamespaces + if err := c.Client.Post(ctx, "ListClusterNamespaces", ListClusterNamespacesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetNamespaceDocument = `query GetNamespace ($id: ID!) { + managedNamespace(id: $id) { ... ManagedNamespaceFragment } } @@ -18647,13 +18773,13 @@ fragment ClusterTargetFragment on ClusterTarget { } ` -func (c *Client) CreateNamespace(ctx context.Context, attributes ManagedNamespaceAttributes, interceptors ...clientv2.RequestInterceptor) (*CreateNamespace, error) { +func (c *Client) GetNamespace(ctx context.Context, id string, interceptors ...clientv2.RequestInterceptor) (*GetNamespace, error) { vars := map[string]interface{}{ - "attributes": attributes, + "id": id, } - var res CreateNamespace - if err := c.Client.Post(ctx, "CreateNamespace", CreateNamespaceDocument, &res, vars, interceptors...); err != nil { + var res GetNamespace + if err := c.Client.Post(ctx, "GetNamespace", GetNamespaceDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -18664,8 +18790,8 @@ func (c *Client) CreateNamespace(ctx context.Context, attributes ManagedNamespac return &res, nil } -const UpdateNamespaceDocument = `mutation UpdateNamespace ($id: ID!, $attributes: ManagedNamespaceAttributes!) { - updateManagedNamespace(id: $id, attributes: $attributes) { +const CreateNamespaceDocument = `mutation CreateNamespace ($attributes: ManagedNamespaceAttributes!) { + createManagedNamespace(attributes: $attributes) { ... ManagedNamespaceFragment } } @@ -18729,132 +18855,13 @@ fragment ClusterTargetFragment on ClusterTarget { } ` -func (c *Client) UpdateNamespace(ctx context.Context, id string, attributes ManagedNamespaceAttributes, interceptors ...clientv2.RequestInterceptor) (*UpdateNamespace, error) { +func (c *Client) CreateNamespace(ctx context.Context, attributes ManagedNamespaceAttributes, interceptors ...clientv2.RequestInterceptor) (*CreateNamespace, error) { vars := map[string]interface{}{ - "id": id, "attributes": attributes, } - var res UpdateNamespace - if err := c.Client.Post(ctx, "UpdateNamespace", UpdateNamespaceDocument, &res, vars, interceptors...); err != nil { - if c.Client.ParseDataWhenErrors { - return &res, err - } - - return nil, err - } - - return &res, nil -} - -const DeleteNamespaceDocument = `mutation DeleteNamespace ($id: ID!) { - deleteManagedNamespace(id: $id) { - id - } -} -` - -func (c *Client) DeleteNamespace(ctx context.Context, id string, interceptors ...clientv2.RequestInterceptor) (*DeleteNamespace, error) { - vars := map[string]interface{}{ - "id": id, - } - - var res DeleteNamespace - if err := c.Client.Post(ctx, "DeleteNamespace", DeleteNamespaceDocument, &res, vars, interceptors...); err != nil { - if c.Client.ParseDataWhenErrors { - return &res, err - } - - return nil, err - } - - return &res, nil -} - -const ListNamespacesDocument = `query ListNamespaces ($after: String, $first: Int, $before: String, $last: Int) { - managedNamespaces(after: $after, first: $first, before: $before, last: $last) { - pageInfo { - ... PageInfoFragment - } - edges { - ... ManagedNamespaceEdgeFragment - } - } -} -fragment PageInfoFragment on PageInfo { - hasNextPage - endCursor -} -fragment ManagedNamespaceEdgeFragment on ManagedNamespaceEdge { - cursor - node { - ... ManagedNamespaceMinimalFragment - } -} -fragment ManagedNamespaceMinimalFragment on ManagedNamespace { - id - name - description -} -` - -func (c *Client) ListNamespaces(ctx context.Context, after *string, first *int64, before *string, last *int64, interceptors ...clientv2.RequestInterceptor) (*ListNamespaces, error) { - vars := map[string]interface{}{ - "after": after, - "first": first, - "before": before, - "last": last, - } - - var res ListNamespaces - if err := c.Client.Post(ctx, "ListNamespaces", ListNamespacesDocument, &res, vars, interceptors...); err != nil { - if c.Client.ParseDataWhenErrors { - return &res, err - } - - return nil, err - } - - return &res, nil -} - -const ListClusterNamespacesDocument = `query ListClusterNamespaces ($after: String, $first: Int, $before: String, $last: Int) { - clusterManagedNamespaces(after: $after, first: $first, before: $before, last: $last) { - pageInfo { - ... PageInfoFragment - } - edges { - ... ManagedNamespaceEdgeFragment - } - } -} -fragment PageInfoFragment on PageInfo { - hasNextPage - endCursor -} -fragment ManagedNamespaceEdgeFragment on ManagedNamespaceEdge { - cursor - node { - ... ManagedNamespaceMinimalFragment - } -} -fragment ManagedNamespaceMinimalFragment on ManagedNamespace { - id - name - description -} -` - -func (c *Client) ListClusterNamespaces(ctx context.Context, after *string, first *int64, before *string, last *int64, interceptors ...clientv2.RequestInterceptor) (*ListClusterNamespaces, error) { - vars := map[string]interface{}{ - "after": after, - "first": first, - "before": before, - "last": last, - } - - var res ListClusterNamespaces - if err := c.Client.Post(ctx, "ListClusterNamespaces", ListClusterNamespacesDocument, &res, vars, interceptors...); err != nil { + var res CreateNamespace + if err := c.Client.Post(ctx, "CreateNamespace", CreateNamespaceDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -18865,8 +18872,8 @@ func (c *Client) ListClusterNamespaces(ctx context.Context, after *string, first return &res, nil } -const GetNamespaceDocument = `query GetNamespace ($id: ID!) { - managedNamespace(id: $id) { +const UpdateNamespaceDocument = `mutation UpdateNamespace ($id: ID!, $attributes: ManagedNamespaceAttributes!) { + updateManagedNamespace(id: $id, attributes: $attributes) { ... ManagedNamespaceFragment } } @@ -18930,13 +18937,38 @@ fragment ClusterTargetFragment on ClusterTarget { } ` -func (c *Client) GetNamespace(ctx context.Context, id string, interceptors ...clientv2.RequestInterceptor) (*GetNamespace, error) { +func (c *Client) UpdateNamespace(ctx context.Context, id string, attributes ManagedNamespaceAttributes, interceptors ...clientv2.RequestInterceptor) (*UpdateNamespace, error) { + vars := map[string]interface{}{ + "id": id, + "attributes": attributes, + } + + var res UpdateNamespace + if err := c.Client.Post(ctx, "UpdateNamespace", UpdateNamespaceDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const DeleteNamespaceDocument = `mutation DeleteNamespace ($id: ID!) { + deleteManagedNamespace(id: $id) { + id + } +} +` + +func (c *Client) DeleteNamespace(ctx context.Context, id string, interceptors ...clientv2.RequestInterceptor) (*DeleteNamespace, error) { vars := map[string]interface{}{ "id": id, } - var res GetNamespace - if err := c.Client.Post(ctx, "GetNamespace", GetNamespaceDocument, &res, vars, interceptors...); err != nil { + var res DeleteNamespace + if err := c.Client.Post(ctx, "DeleteNamespace", DeleteNamespaceDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -19532,6 +19564,9 @@ fragment PipelineFragment on Pipeline { edges { ... PipelineStageEdgeFragment } + project { + ... TinyProjectFragment + } } fragment PipelineStageFragment on PipelineStage { id @@ -19593,6 +19628,11 @@ fragment PipelineStageEdgeFragment on PipelineStageEdge { ... PipelineStageFragment } } +fragment TinyProjectFragment on Project { + id + name + default +} ` func (c *Client) SavePipeline(ctx context.Context, name string, attributes PipelineAttributes, interceptors ...clientv2.RequestInterceptor) (*SavePipeline, error) { @@ -19627,6 +19667,9 @@ fragment PipelineFragment on Pipeline { edges { ... PipelineStageEdgeFragment } + project { + ... TinyProjectFragment + } } fragment PipelineStageFragment on PipelineStage { id @@ -19688,6 +19731,11 @@ fragment PipelineStageEdgeFragment on PipelineStageEdge { ... PipelineStageFragment } } +fragment TinyProjectFragment on Project { + id + name + default +} ` func (c *Client) DeletePipeline(ctx context.Context, id string, interceptors ...clientv2.RequestInterceptor) (*DeletePipeline, error) { @@ -19721,6 +19769,9 @@ fragment PipelineFragment on Pipeline { edges { ... PipelineStageEdgeFragment } + project { + ... TinyProjectFragment + } } fragment PipelineStageFragment on PipelineStage { id @@ -19782,6 +19833,11 @@ fragment PipelineStageEdgeFragment on PipelineStageEdge { ... PipelineStageFragment } } +fragment TinyProjectFragment on Project { + id + name + default +} ` func (c *Client) GetPipeline(ctx context.Context, id string, interceptors ...clientv2.RequestInterceptor) (*GetPipeline, error) { @@ -19822,6 +19878,9 @@ fragment PipelineFragment on Pipeline { edges { ... PipelineStageEdgeFragment } + project { + ... TinyProjectFragment + } } fragment PipelineStageFragment on PipelineStage { id @@ -19883,6 +19942,11 @@ fragment PipelineStageEdgeFragment on PipelineStageEdge { ... PipelineStageFragment } } +fragment TinyProjectFragment on Project { + id + name + default +} ` func (c *Client) GetPipelines(ctx context.Context, after *string, interceptors ...clientv2.RequestInterceptor) (*GetPipelines, error) { @@ -20267,17 +20331,11 @@ func (c *Client) DeleteProviderCredential(ctx context.Context, id string, interc const ListProvidersDocument = `query ListProviders { clusterProviders(first: 100) { - ... ClusterProviderConnectionFragment - } -} -fragment ClusterProviderConnectionFragment on ClusterProviderConnection { - edges { - ... ClusterProviderEdgeFragment - } -} -fragment ClusterProviderEdgeFragment on ClusterProviderEdge { - node { - ... ClusterProviderFragment + edges { + node { + ... ClusterProviderFragment + } + } } } fragment ClusterProviderFragment on ClusterProvider { @@ -20515,6 +20573,9 @@ fragment InfrastructureStackFragment on InfrastructureStack { cluster { ... TinyClusterFragment } + project { + ... TinyProjectFragment + } approval workdir manageState @@ -20584,6 +20645,14 @@ fragment TinyClusterFragment on Cluster { name handle self + project { + ... TinyProjectFragment + } +} +fragment TinyProjectFragment on Project { + id + name + default } fragment StackFileFragment on StackFile { path @@ -20705,6 +20774,9 @@ fragment InfrastructureStackFragment on InfrastructureStack { cluster { ... TinyClusterFragment } + project { + ... TinyProjectFragment + } approval workdir manageState @@ -20774,6 +20846,14 @@ fragment TinyClusterFragment on Cluster { name handle self + project { + ... TinyProjectFragment + } +} +fragment TinyProjectFragment on Project { + id + name + default } fragment StackFileFragment on StackFile { path @@ -20941,6 +21021,9 @@ fragment InfrastructureStackFragment on InfrastructureStack { cluster { ... TinyClusterFragment } + project { + ... TinyProjectFragment + } approval workdir manageState @@ -21010,6 +21093,14 @@ fragment TinyClusterFragment on Cluster { name handle self + project { + ... TinyProjectFragment + } +} +fragment TinyProjectFragment on Project { + id + name + default } fragment StackFileFragment on StackFile { path @@ -21176,6 +21267,9 @@ fragment InfrastructureStackFragment on InfrastructureStack { cluster { ... TinyClusterFragment } + project { + ... TinyProjectFragment + } approval workdir manageState @@ -21245,6 +21339,14 @@ fragment TinyClusterFragment on Cluster { name handle self + project { + ... TinyProjectFragment + } +} +fragment TinyProjectFragment on Project { + id + name + default } fragment StackFileFragment on StackFile { path @@ -21411,6 +21513,9 @@ fragment InfrastructureStackFragment on InfrastructureStack { cluster { ... TinyClusterFragment } + project { + ... TinyProjectFragment + } approval workdir manageState @@ -21480,6 +21585,14 @@ fragment TinyClusterFragment on Cluster { name handle self + project { + ... TinyProjectFragment + } +} +fragment TinyProjectFragment on Project { + id + name + default } fragment StackFileFragment on StackFile { path @@ -21647,6 +21760,9 @@ fragment InfrastructureStackFragment on InfrastructureStack { cluster { ... TinyClusterFragment } + project { + ... TinyProjectFragment + } approval workdir manageState @@ -21716,6 +21832,14 @@ fragment TinyClusterFragment on Cluster { name handle self + project { + ... TinyProjectFragment + } +} +fragment TinyProjectFragment on Project { + id + name + default } fragment StackFileFragment on StackFile { path @@ -21820,6 +21944,9 @@ fragment InfrastructureStackFragment on InfrastructureStack { cluster { ... TinyClusterFragment } + project { + ... TinyProjectFragment + } approval workdir manageState @@ -21889,6 +22016,14 @@ fragment TinyClusterFragment on Cluster { name handle self + project { + ... TinyProjectFragment + } +} +fragment TinyProjectFragment on Project { + id + name + default } fragment StackFileFragment on StackFile { path @@ -21985,6 +22120,9 @@ fragment InfrastructureStackFragment on InfrastructureStack { cluster { ... TinyClusterFragment } + project { + ... TinyProjectFragment + } approval workdir manageState @@ -22054,6 +22192,14 @@ fragment TinyClusterFragment on Cluster { name handle self + project { + ... TinyProjectFragment + } +} +fragment TinyProjectFragment on Project { + id + name + default } fragment StackFileFragment on StackFile { path @@ -22151,6 +22297,9 @@ fragment InfrastructureStackFragment on InfrastructureStack { cluster { ... TinyClusterFragment } + project { + ... TinyProjectFragment + } approval workdir manageState @@ -22220,6 +22369,14 @@ fragment TinyClusterFragment on Cluster { name handle self + project { + ... TinyProjectFragment + } +} +fragment TinyProjectFragment on Project { + id + name + default } fragment StackFileFragment on StackFile { path @@ -22316,6 +22473,9 @@ fragment InfrastructureStackFragment on InfrastructureStack { cluster { ... TinyClusterFragment } + project { + ... TinyProjectFragment + } approval workdir manageState @@ -22385,6 +22545,14 @@ fragment TinyClusterFragment on Cluster { name handle self + project { + ... TinyProjectFragment + } +} +fragment TinyProjectFragment on Project { + id + name + default } fragment StackFileFragment on StackFile { path @@ -22481,6 +22649,9 @@ fragment InfrastructureStackFragment on InfrastructureStack { cluster { ... TinyClusterFragment } + project { + ... TinyProjectFragment + } approval workdir manageState @@ -22550,6 +22721,14 @@ fragment TinyClusterFragment on Cluster { name handle self + project { + ... TinyProjectFragment + } +} +fragment TinyProjectFragment on Project { + id + name + default } fragment StackFileFragment on StackFile { path @@ -22708,6 +22887,9 @@ fragment InfrastructureStackFragment on InfrastructureStack { cluster { ... TinyClusterFragment } + project { + ... TinyProjectFragment + } approval workdir manageState @@ -22777,6 +22959,14 @@ fragment TinyClusterFragment on Cluster { name handle self + project { + ... TinyProjectFragment + } +} +fragment TinyProjectFragment on Project { + id + name + default } fragment StackFileFragment on StackFile { path @@ -23161,9 +23351,13 @@ func (c *Client) GetCustomStackRun(ctx context.Context, id string, interceptors return &res, nil } -const CreateAccessTokenDocument = `mutation CreateAccessToken { - createAccessToken { - ... AccessTokenFragment +const ListAccessTokensDocument = `query ListAccessTokens ($cursor: String, $before: String, $last: Int) { + accessTokens(after: $cursor, first: 100, before: $before, last: $last) { + edges { + node { + ... AccessTokenFragment + } + } } } fragment AccessTokenFragment on AccessToken { @@ -23172,11 +23366,15 @@ fragment AccessTokenFragment on AccessToken { } ` -func (c *Client) CreateAccessToken(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*CreateAccessToken, error) { - vars := map[string]interface{}{} +func (c *Client) ListAccessTokens(ctx context.Context, cursor *string, before *string, last *int64, interceptors ...clientv2.RequestInterceptor) (*ListAccessTokens, error) { + vars := map[string]interface{}{ + "cursor": cursor, + "before": before, + "last": last, + } - var res CreateAccessToken - if err := c.Client.Post(ctx, "CreateAccessToken", CreateAccessTokenDocument, &res, vars, interceptors...); err != nil { + var res ListAccessTokens + if err := c.Client.Post(ctx, "ListAccessTokens", ListAccessTokensDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -23187,8 +23385,8 @@ func (c *Client) CreateAccessToken(ctx context.Context, interceptors ...clientv2 return &res, nil } -const DeleteAccessTokenDocument = `mutation DeleteAccessToken ($token: String!) { - deleteAccessToken(token: $token) { +const GetAccessTokenDocument = `query GetAccessToken ($id: ID!) { + accessToken(id: $id) { ... AccessTokenFragment } } @@ -23198,13 +23396,13 @@ fragment AccessTokenFragment on AccessToken { } ` -func (c *Client) DeleteAccessToken(ctx context.Context, token string, interceptors ...clientv2.RequestInterceptor) (*DeleteAccessToken, error) { +func (c *Client) GetAccessToken(ctx context.Context, id string, interceptors ...clientv2.RequestInterceptor) (*GetAccessToken, error) { vars := map[string]interface{}{ - "token": token, + "id": id, } - var res DeleteAccessToken - if err := c.Client.Post(ctx, "DeleteAccessToken", DeleteAccessTokenDocument, &res, vars, interceptors...); err != nil { + var res GetAccessToken + if err := c.Client.Post(ctx, "GetAccessToken", GetAccessTokenDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -23215,33 +23413,33 @@ func (c *Client) DeleteAccessToken(ctx context.Context, token string, intercepto return &res, nil } -const ListAccessTokensDocument = `query ListAccessTokens ($cursor: String, $before: String, $last: Int) { - accessTokens(after: $cursor, first: 100, before: $before, last: $last) { - edges { - ... AccessTokenEdgeFragment +const TokenExchangeDocument = `query TokenExchange ($token: String!) { + tokenExchange(token: $token) { + ... UserFragment + groups { + id + name + } + boundRoles { + id + name } } } -fragment AccessTokenEdgeFragment on AccessTokenEdge { - node { - ... AccessTokenFragment - } -} -fragment AccessTokenFragment on AccessToken { +fragment UserFragment on User { + name id - token + email } ` -func (c *Client) ListAccessTokens(ctx context.Context, cursor *string, before *string, last *int64, interceptors ...clientv2.RequestInterceptor) (*ListAccessTokens, error) { +func (c *Client) TokenExchange(ctx context.Context, token string, interceptors ...clientv2.RequestInterceptor) (*TokenExchange, error) { vars := map[string]interface{}{ - "cursor": cursor, - "before": before, - "last": last, + "token": token, } - var res ListAccessTokens - if err := c.Client.Post(ctx, "ListAccessTokens", ListAccessTokensDocument, &res, vars, interceptors...); err != nil { + var res TokenExchange + if err := c.Client.Post(ctx, "TokenExchange", TokenExchangeDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -23252,8 +23450,8 @@ func (c *Client) ListAccessTokens(ctx context.Context, cursor *string, before *s return &res, nil } -const GetAccessTokenDocument = `query GetAccessToken ($id: ID!) { - accessToken(id: $id) { +const CreateAccessTokenDocument = `mutation CreateAccessToken { + createAccessToken { ... AccessTokenFragment } } @@ -23263,13 +23461,11 @@ fragment AccessTokenFragment on AccessToken { } ` -func (c *Client) GetAccessToken(ctx context.Context, id string, interceptors ...clientv2.RequestInterceptor) (*GetAccessToken, error) { - vars := map[string]interface{}{ - "id": id, - } +func (c *Client) CreateAccessToken(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*CreateAccessToken, error) { + vars := map[string]interface{}{} - var res GetAccessToken - if err := c.Client.Post(ctx, "GetAccessToken", GetAccessTokenDocument, &res, vars, interceptors...); err != nil { + var res CreateAccessToken + if err := c.Client.Post(ctx, "CreateAccessToken", CreateAccessTokenDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -23280,33 +23476,24 @@ func (c *Client) GetAccessToken(ctx context.Context, id string, interceptors ... return &res, nil } -const TokenExchangeDocument = `query TokenExchange ($token: String!) { - tokenExchange(token: $token) { - ... UserFragment - groups { - id - name - } - boundRoles { - id - name - } +const DeleteAccessTokenDocument = `mutation DeleteAccessToken ($token: String!) { + deleteAccessToken(token: $token) { + ... AccessTokenFragment } } -fragment UserFragment on User { - name +fragment AccessTokenFragment on AccessToken { id - email + token } ` -func (c *Client) TokenExchange(ctx context.Context, token string, interceptors ...clientv2.RequestInterceptor) (*TokenExchange, error) { +func (c *Client) DeleteAccessToken(ctx context.Context, token string, interceptors ...clientv2.RequestInterceptor) (*DeleteAccessToken, error) { vars := map[string]interface{}{ "token": token, } - var res TokenExchange - if err := c.Client.Post(ctx, "TokenExchange", TokenExchangeDocument, &res, vars, interceptors...); err != nil { + var res DeleteAccessToken + if err := c.Client.Post(ctx, "DeleteAccessToken", DeleteAccessTokenDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -23521,12 +23708,12 @@ var DocumentOperationNames = map[string]string{ UpdatePrAutomationDocument: "UpdatePrAutomation", DeletePrAutomationDocument: "DeletePrAutomation", CreatePullRequestDocument: "CreatePullRequest", - CreateNamespaceDocument: "CreateNamespace", - UpdateNamespaceDocument: "UpdateNamespace", - DeleteNamespaceDocument: "DeleteNamespace", ListNamespacesDocument: "ListNamespaces", ListClusterNamespacesDocument: "ListClusterNamespaces", GetNamespaceDocument: "GetNamespace", + CreateNamespaceDocument: "CreateNamespace", + UpdateNamespaceDocument: "UpdateNamespace", + DeleteNamespaceDocument: "DeleteNamespace", UpsertNotificationSinkDocument: "UpsertNotificationSink", DeleteNotificationSinkDocument: "DeleteNotificationSink", GetNotificationSinkDocument: "GetNotificationSink", @@ -23571,11 +23758,11 @@ var DocumentOperationNames = map[string]string{ CreateCustomStackRunDocument: "CreateCustomStackRun", DeleteCustomStackRunDocument: "DeleteCustomStackRun", GetCustomStackRunDocument: "GetCustomStackRun", - CreateAccessTokenDocument: "CreateAccessToken", - DeleteAccessTokenDocument: "DeleteAccessToken", ListAccessTokensDocument: "ListAccessTokens", GetAccessTokenDocument: "GetAccessToken", TokenExchangeDocument: "TokenExchange", + CreateAccessTokenDocument: "CreateAccessToken", + DeleteAccessTokenDocument: "DeleteAccessToken", GetUserDocument: "GetUser", GetGroupDocument: "GetGroup", AddGroupMemberDocument: "AddGroupMember", diff --git a/graph/backup.graphql b/graph/backup.graphql index 81b0774..ba42dce 100644 --- a/graph/backup.graphql +++ b/graph/backup.graphql @@ -1,30 +1,43 @@ +fragment ClusterBackupFragment on ClusterBackup { + id + name + cluster { id } + garbageCollected +} + +fragment ClusterRestoreFragment on ClusterRestore { + id + status + backup { ... ClusterBackupFragment} +} + mutation CreateClusterBackup($attributes: BackupAttributes!) { createClusterBackup(attributes: $attributes) { - ... ClusterBackupFragment + ...ClusterBackupFragment } } query GetClusterBackup($id: ID, $clusterId: ID, $namespace: String, $name: String) { clusterBackup(id: $id, clusterId: $clusterId, namespace: $namespace, name: $name) { - ... ClusterBackupFragment + ...ClusterBackupFragment } } mutation UpdateClusterRestore($id: ID!, $attributes: RestoreAttributes!) { updateClusterRestore(id: $id, attributes: $attributes) { - ... ClusterRestoreFragment + ...ClusterRestoreFragment } } mutation CreateClusterRestore($backupId: ID!) { createClusterRestore(backupId: $backupId) { - ... ClusterRestoreFragment + ...ClusterRestoreFragment } } query GetClusterRestore($id: ID!) { clusterRestore(id: $id) { - ... ClusterRestoreFragment + ...ClusterRestoreFragment } } diff --git a/graph/cluster.graphql b/graph/cluster.graphql index 6606732..1a7b16e 100644 --- a/graph/cluster.graphql +++ b/graph/cluster.graphql @@ -1,3 +1,82 @@ +fragment ClusterFragment on Cluster { + id + name + handle + self + version + insertedAt + pingedAt + protect + currentVersion + kasUrl + deletedAt + metadata + tags { ...ClusterTags } + credential { ...ProviderCredentialFragment } + provider { ...ClusterProviderFragment } + nodePools { ...NodePoolFragment } + status { ...ClusterStatusFragment } + project {...TinyProjectFragment } +} + +fragment ClusterTags on Tag { + name + value +} + +fragment ClusterProviderFragment on ClusterProvider { + id + name + namespace + cloud + editable + deletedAt + repository { + ...GitRepositoryFragment + } + service { + ...ServiceDeploymentFragment + } + credentials { + ...ProviderCredentialFragment + } +} + +fragment NodePoolFragment on NodePool { + id + name + minSize + maxSize + instanceType + labels + taints { + ...NodePoolTaintFragment + } +} + +fragment NodePoolTaintFragment on Taint { + key + value + effect +} + +fragment ClusterStatusFragment on ClusterStatus { + conditions { ...ClusterConditionFragment } + controlPlaneReady + failureMessage + failureReason + phase +} + +fragment ClusterConditionFragment on ClusterCondition { + lastTransitionTime + status + type + message + reason + severity +} + mutation CreateCluster($attributes: ClusterAttributes!) { createCluster(attributes: $attributes) { deployToken diff --git a/graph/gates.graphql b/graph/gates.graphql index f523540..54b5708 100644 --- a/graph/gates.graphql +++ b/graph/gates.graphql @@ -1,7 +1,7 @@ query GetClusterGates { clusterGates { - ...PipelineGateFragment - } + ...PipelineGateFragment + } } query PagedClusterGates($after: String, $first: Int, $before: String, $last: Int){ @@ -32,7 +32,7 @@ fragment GateSpecFragment on GateSpec { } fragment GateStatusFragment on GateStatus { - jobRef { ...JobReferenceFragment } + jobRef { ...JobReferenceFragment } } fragment JobSpecFragment on JobGateSpec { @@ -45,8 +45,8 @@ fragment JobSpecFragment on JobGateSpec { } fragment JobReferenceFragment on JobReference { - name - namespace + name + namespace } fragment ContainerSpecFragment on ContainerSpec { @@ -63,11 +63,11 @@ fragment ContainerSpecFragment on ContainerSpec { } mutation updateGate($id: ID!, $attributes: GateUpdateAttributes!) { - updateGate(id: $id, attributes: $attributes) { - ...PipelineGateFragment - } + updateGate(id: $id, attributes: $attributes) { + ...PipelineGateFragment + } } query GetClusterGate($id: ID!) { - clusterGate(id: $id) { ...PipelineGateFragment } + clusterGate(id: $id) { ...PipelineGateFragment } } diff --git a/graph/git.graphql b/graph/git.graphql index cceb86d..6e5fba2 100644 --- a/graph/git.graphql +++ b/graph/git.graphql @@ -1,3 +1,12 @@ +fragment GitRepositoryFragment on GitRepository { + id + error + health + authMethod + url + decrypt +} + mutation CreateGitRepository($attributes: GitAttributes!) { createGitRepository(attributes: $attributes) { ...GitRepositoryFragment @@ -19,7 +28,7 @@ mutation DeleteGitRepository($id: ID!) { query ListGitRepositories($cursor: String, $before: String, $last: Int) { gitRepositories(after: $cursor, first: 100, before: $before, last: $last) { edges { - ...GitRepositoryEdgeFragment + ...GitRepositoryEdgeFragment } } } diff --git a/graph/models.graphql b/graph/models.graphql index e61ea80..10e5ed9 100644 --- a/graph/models.graphql +++ b/graph/models.graphql @@ -19,7 +19,7 @@ fragment ServiceContextFragment on ServiceContext { configuration } -fragment ComponentContentFragment on ComponentContent{ +fragment ComponentContentFragment on ComponentContent { id live desired @@ -68,12 +68,8 @@ fragment RevisionFragment on Revision { fragment PolicyBindingFragment on PolicyBinding { id - group { - ...GroupFragment - } - user { - ...UserFragment - } + group { ...GroupFragment } + user { ...UserFragment } } fragment UserFragment on User { @@ -94,15 +90,6 @@ fragment GroupMemberFragment on GroupMember { group { id } } -fragment GitRepositoryFragment on GitRepository { - id - error - health - authMethod - url - decrypt -} - fragment GitRefFragment on GitRef { folder ref @@ -117,6 +104,7 @@ fragment TinyClusterFragment on Cluster { name handle self + project {...TinyProjectFragment } } fragment BaseClusterFragment on Cluster { @@ -132,66 +120,7 @@ fragment BaseClusterFragment on Cluster { credential { ...ProviderCredentialFragment } provider { ...BaseClusterProviderFragment } nodePools { ...NodePoolFragment } -} - -fragment ClusterFragment on Cluster { - id - name - handle - self - version - insertedAt - pingedAt - protect - currentVersion - kasUrl - deletedAt - metadata - tags { ...ClusterTags } - credential { ...ProviderCredentialFragment } - provider { ...ClusterProviderFragment } - nodePools { ...NodePoolFragment } - status { ...ClusterStatusFragment } -} - -fragment ClusterStatusFragment on ClusterStatus { - conditions { ...ClusterConditionFragment } - controlPlaneReady - failureMessage - failureReason - phase -} - -fragment ClusterConditionFragment on ClusterCondition { - lastTransitionTime - status - type - message - reason - severity -} - -fragment ClusterTags on Tag { - name - value -} - -fragment NodePoolFragment on NodePool { - id - name - minSize - maxSize - instanceType - labels - taints { - ...NodePoolTaintFragment - } -} - -fragment NodePoolTaintFragment on Taint { - key - value - effect + project {...TinyProjectFragment } } fragment BaseClusterProviderFragment on ClusterProvider { @@ -205,35 +134,6 @@ fragment BaseClusterProviderFragment on ClusterProvider { } } -fragment ClusterProviderFragment on ClusterProvider { - id - name - namespace - cloud - editable - deletedAt - repository { - ...GitRepositoryFragment - } - service { - ...ServiceDeploymentFragment - } - credentials { - ...ProviderCredentialFragment - } -} - -fragment AccessTokenFragment on AccessToken { - id - token -} - -fragment AccessTokenEdgeFragment on AccessTokenEdge { - node { - ...AccessTokenFragment - } -} - fragment GitRepositoryEdgeFragment on GitRepositoryEdge { node { ...GitRepositoryFragment @@ -246,21 +146,11 @@ fragment DeploymentSettingsFragment on DeploymentSettings { name agentHelmValues agentVsn - writeBindings { - ...PolicyBindingFragment - } - readBindings { - ...PolicyBindingFragment - } - createBindings { - ...PolicyBindingFragment - } - artifactRepository { - ...GitRepositoryFragment - } - deployerRepository { - ...GitRepositoryFragment - } + writeBindings { ...PolicyBindingFragment } + readBindings { ...PolicyBindingFragment } + createBindings { ...PolicyBindingFragment } + artifactRepository { ...GitRepositoryFragment } + deployerRepository { ...GitRepositoryFragment } } fragment ClusterEdgeFragment on ClusterEdge { @@ -268,58 +158,7 @@ fragment ClusterEdgeFragment on ClusterEdge { } fragment ServiceDeploymentEdgeFragment on ServiceDeploymentEdge { - node { - ...ServiceDeploymentBaseFragment - } -} - -fragment ProviderCredentialFragment on ProviderCredential { - id - name - namespace - kind -} - -fragment ClusterProviderConnectionFragment on ClusterProviderConnection { - edges { - ... ClusterProviderEdgeFragment - } -} - -fragment ClusterProviderEdgeFragment on ClusterProviderEdge { - node { - ...ClusterProviderFragment - } -} - -fragment PipelineStageFragment on PipelineStage { - id - name - services { - service { ...ServiceDeploymentBaseFragment } - criteria { - source { ...ServiceDeploymentBaseFragment } - secrets - } - } -} - -fragment PipelineStageEdgeFragment on PipelineStageEdge { - id - from { ...PipelineStageFragment } - to { ...PipelineStageFragment } -} - - -fragment PipelineFragment on Pipeline { - id - name - stages { ...PipelineStageFragment } - edges { ...PipelineStageEdgeFragment } -} - -fragment PipelineEdgeFragment on PipelineEdge { - node { ...PipelineFragment } + node { ...ServiceDeploymentBaseFragment } } fragment GlobalServiceFragment on GlobalService { @@ -331,19 +170,6 @@ fragment GlobalServiceFragment on GlobalService { tags { ...ClusterTags } } -fragment ClusterBackupFragment on ClusterBackup { - id - name - cluster { id } - garbageCollected -} - -fragment ClusterRestoreFragment on ClusterRestore { - id - status - backup { ... ClusterBackupFragment} -} - fragment ScmConnectionFragment on ScmConnection { id name diff --git a/graph/namespace.graphql b/graph/namespace.graphql index 603b1e8..1373119 100644 --- a/graph/namespace.graphql +++ b/graph/namespace.graphql @@ -1,41 +1,3 @@ -mutation CreateNamespace($attributes: ManagedNamespaceAttributes!) { - createManagedNamespace(attributes: $attributes) { - ...ManagedNamespaceFragment - } -} - -mutation UpdateNamespace($id: ID!, $attributes: ManagedNamespaceAttributes!) { - updateManagedNamespace(id: $id, attributes: $attributes) { - ...ManagedNamespaceFragment - } -} - -mutation DeleteNamespace($id: ID!) { - deleteManagedNamespace(id: $id) { - id - } -} - -query ListNamespaces($after: String, $first: Int, $before: String, $last: Int) { - managedNamespaces(after: $after, first: $first, before: $before, last: $last) { - pageInfo { ...PageInfoFragment } - edges { ...ManagedNamespaceEdgeFragment } - } -} - -query ListClusterNamespaces($after: String, $first: Int, $before: String, $last: Int) { - clusterManagedNamespaces(after: $after, first: $first, before: $before, last: $last) { - pageInfo { ...PageInfoFragment } - edges { ...ManagedNamespaceEdgeFragment } - } -} - -query GetNamespace($id: ID!) { - managedNamespace(id: $id) { - ...ManagedNamespaceFragment - } -} - fragment ManagedNamespaceEdgeFragment on ManagedNamespaceEdge { cursor node { ...ManagedNamespaceMinimalFragment } @@ -70,3 +32,41 @@ fragment ServiceTemplateFragment on ServiceTemplate { kustomize { ...KustomizeFragment} syncConfig { ...SyncConfigFragment} } + +query ListNamespaces($after: String, $first: Int, $before: String, $last: Int) { + managedNamespaces(after: $after, first: $first, before: $before, last: $last) { + pageInfo { ...PageInfoFragment } + edges { ...ManagedNamespaceEdgeFragment } + } +} + +query ListClusterNamespaces($after: String, $first: Int, $before: String, $last: Int) { + clusterManagedNamespaces(after: $after, first: $first, before: $before, last: $last) { + pageInfo { ...PageInfoFragment } + edges { ...ManagedNamespaceEdgeFragment } + } +} + +query GetNamespace($id: ID!) { + managedNamespace(id: $id) { + ...ManagedNamespaceFragment + } +} + +mutation CreateNamespace($attributes: ManagedNamespaceAttributes!) { + createManagedNamespace(attributes: $attributes) { + ...ManagedNamespaceFragment + } +} + +mutation UpdateNamespace($id: ID!, $attributes: ManagedNamespaceAttributes!) { + updateManagedNamespace(id: $id, attributes: $attributes) { + ...ManagedNamespaceFragment + } +} + +mutation DeleteNamespace($id: ID!) { + deleteManagedNamespace(id: $id) { + id + } +} diff --git a/graph/notification.graphql b/graph/notification.graphql index a560fd1..8970506 100644 --- a/graph/notification.graphql +++ b/graph/notification.graphql @@ -1,3 +1,32 @@ +fragment NotificationRouterFragment on NotificationRouter { + id + name + sinks { ...NotificationSinkFragment } + events +} + +fragment NotificationSinkEdgeFragment on NotificationSinkEdge { + cursor + node { ...NotificationSinkFragment } +} + +fragment NotificationSinkFragment on NotificationSink { + id + name + type + configuration { ...SinkConfigurationFragment } +} + +fragment SinkConfigurationFragment on SinkConfiguration { + id + slack {...UrlSinkConfigurationFragment} + teams {...UrlSinkConfigurationFragment} +} + +fragment UrlSinkConfigurationFragment on UrlSinkConfiguration { + url +} + mutation UpsertNotificationSink($attributes: NotificationSinkAttributes!) { upsertNotificationSink(attributes: $attributes) { ...NotificationSinkFragment @@ -52,32 +81,3 @@ mutation UpsertNotificationRouter($attributes: NotificationRouterAttributes!) { ...NotificationRouterFragment } } - -fragment NotificationRouterFragment on NotificationRouter { - id - name - sinks { ...NotificationSinkFragment } - events -} - -fragment NotificationSinkEdgeFragment on NotificationSinkEdge { - cursor - node { ...NotificationSinkFragment } -} - -fragment NotificationSinkFragment on NotificationSink { - id - name - type - configuration { ...SinkConfigurationFragment } -} - -fragment SinkConfigurationFragment on SinkConfiguration { - id - slack {...UrlSinkConfigurationFragment} - teams {...UrlSinkConfigurationFragment} -} - -fragment UrlSinkConfigurationFragment on UrlSinkConfiguration { - url -} \ No newline at end of file diff --git a/graph/pipeline.graphql b/graph/pipeline.graphql index 36bb4b7..267b14d 100644 --- a/graph/pipeline.graphql +++ b/graph/pipeline.graphql @@ -1,3 +1,33 @@ +fragment PipelineFragment on Pipeline { + id + name + stages { ...PipelineStageFragment } + edges { ...PipelineStageEdgeFragment } + project {...TinyProjectFragment } +} + +fragment PipelineStageFragment on PipelineStage { + id + name + services { + service { ...ServiceDeploymentBaseFragment } + criteria { + source { ...ServiceDeploymentBaseFragment } + secrets + } + } +} + +fragment PipelineStageEdgeFragment on PipelineStageEdge { + id + from { ...PipelineStageFragment } + to { ...PipelineStageFragment } +} + +fragment PipelineEdgeFragment on PipelineEdge { + node { ...PipelineFragment } +} + mutation SavePipeline($name: String!, $attributes: PipelineAttributes!) { savePipeline(name: $name, attributes: $attributes) { ...PipelineFragment diff --git a/graph/project.graphql b/graph/project.graphql index 7f3a7c0..a1e3b0f 100644 --- a/graph/project.graphql +++ b/graph/project.graphql @@ -5,14 +5,15 @@ fragment ProjectFragment on Project { name default description - readBindings { - ...PolicyBindingFragment - } - writeBindings { - ...PolicyBindingFragment - } + readBindings { ...PolicyBindingFragment } + writeBindings { ...PolicyBindingFragment } } +fragment TinyProjectFragment on Project { + id + name + default +} query ListProjects( $after: String @@ -22,14 +23,8 @@ query ListProjects( $q: String ) { projects(after: $after, before: $before, first: $first, last: $last, q: $q) { - pageInfo { - ...PageInfoFragment - } - edges { - node { - ...ProjectFragment - } - } + pageInfo { ...PageInfoFragment } + edges { node { ...ProjectFragment }} } } diff --git a/graph/provider.graphql b/graph/provider.graphql index 7ee56b3..faef2f7 100644 --- a/graph/provider.graphql +++ b/graph/provider.graphql @@ -1,6 +1,13 @@ +fragment ProviderCredentialFragment on ProviderCredential { + id + name + namespace + kind +} + mutation CreateProviderCredential($attributes: ProviderCredentialAttributes!, $name: String!) { createProviderCredential(attributes: $attributes, name: $name){ - ...ProviderCredentialFragment + ...ProviderCredentialFragment } } @@ -12,7 +19,7 @@ mutation DeleteProviderCredential($id: ID!) { query ListProviders { clusterProviders(first: 100){ - ...ClusterProviderConnectionFragment + edges { node { ...ClusterProviderFragment }} } } diff --git a/graph/stack.graphql b/graph/stack.graphql index 149e2b1..01e8628 100644 --- a/graph/stack.graphql +++ b/graph/stack.graphql @@ -1,3 +1,165 @@ +fragment InfrastructureStackEdgeFragment on InfrastructureStackEdge { + node { ...InfrastructureStackFragment} +} + +fragment StackRunEdgeFragment on StackRunEdge { + node { ...StackRunFragment} +} + +fragment InfrastructureStackFragment on InfrastructureStack { + id + name + type + git { ...GitRefFragment } + jobSpec { ...JobSpecFragment} + configuration { ...StackConfigurationFragment} + cluster { ...TinyClusterFragment } + project {...TinyProjectFragment } + approval + workdir + manageState + deletedAt + files { ...StackFileFragment} + environment { ...StackEnvironmentFragment} + output { ...StackOutputFragment} + state { ...StackStateFragment} + repository { ...GitRepositoryFragment} + writeBindings { ...PolicyBindingFragment } + readBindings { ...PolicyBindingFragment } +} + +fragment StackRunFragment on StackRun { + ...StackRunBaseFragment + approver { ...UserFragment} +} + +fragment StackRunBaseFragment on StackRun { + id + type + status + approval + approvedAt + tarball + workdir + manageState + stateUrls { + terraform { + address + lock + unlock + } + } + pluralCreds { + url + token + } + actor { ...UserFragment } + stack { ...InfrastructureStackFragment } + state { ...StackStateFragment} + steps { ...RunStepFragment} + files { ...StackFileFragment} + git { ...GitRefFragment } + repository { ...GitRepositoryFragment} + jobSpec { ...JobSpecFragment} + configuration { ...StackConfigurationFragment} + environment { ...StackEnvironmentFragment} + output { ...StackOutputFragment} + errors { ...ServiceErrorFragment} +} + +fragment ServiceErrorFragment on ServiceError { + source + message +} + +fragment StackOutputFragment on StackOutput { + name + value + secret +} + +fragment StackStateFragment on StackState { + id + plan + state { ...StackStateResourceFragment} +} + +fragment StackStateResourceFragment on StackStateResource { + identifier + resource + name + configuration + links +} + +fragment StackEnvironmentFragment on StackEnvironment { + name + value + secret +} + +fragment StackFileFragment on StackFile { + path + content +} + +fragment RunStepFragment on RunStep { + id + status + name + cmd + args + index + stage +} + + +fragment StackConfigurationFragment on StackConfiguration { + image + version + hooks {...StackHookFragment} +} + +fragment StackHookFragment on StackHook { + cmd + args + afterStage +} + +fragment CustomStackRunFragment on CustomStackRun { + id + name + stack { + id + } + documentation + commands { ...StackCommandFragment} + configuration { ...PrConfigurationFragment} +} + +fragment StackCommandFragment on StackCommand { + cmd + args + dir +} + +fragment PrConfigurationFragment on PrConfiguration { + type + name + default + documentation + longform + placeholder + optional + condition { ...PrConfigurationConditionFragment} +} + +fragment PrConfigurationConditionFragment on PrConfigurationCondition { + operation + field + value +} + query ListClusterStacks($after: String, $first: Int, $before: String, $last: Int) { clusterStackRuns(after: $after, first: $first, before: $before, last: $last) { pageInfo { ...PageInfoFragment} diff --git a/graph/stack_model.graphql b/graph/stack_model.graphql deleted file mode 100644 index 85bfd17..0000000 --- a/graph/stack_model.graphql +++ /dev/null @@ -1,166 +0,0 @@ -fragment InfrastructureStackEdgeFragment on InfrastructureStackEdge { - node { ...InfrastructureStackFragment} -} - -fragment StackRunEdgeFragment on StackRunEdge { - node { ...StackRunFragment} -} - -fragment InfrastructureStackFragment on InfrastructureStack { - id - name - type - git { ...GitRefFragment } - jobSpec { ...JobSpecFragment} - configuration { ...StackConfigurationFragment} - cluster { ...TinyClusterFragment } - approval - workdir - manageState - deletedAt - files { ...StackFileFragment} - environment { ...StackEnvironmentFragment} - output { ...StackOutputFragment} - state { ...StackStateFragment} - repository { ...GitRepositoryFragment} - writeBindings { - ...PolicyBindingFragment - } - readBindings { - ...PolicyBindingFragment - } -} - - -fragment StackRunFragment on StackRun { - ...StackRunBaseFragment - - approver { ...UserFragment} -} - -fragment StackRunBaseFragment on StackRun { - id - type - status - approval - approvedAt - tarball - workdir - manageState - stateUrls { - terraform { - address - lock - unlock - } - } - pluralCreds { - url - token - } - actor { ...UserFragment } - stack { ...InfrastructureStackFragment } - state { ...StackStateFragment} - steps { ...RunStepFragment} - files { ...StackFileFragment} - git { ...GitRefFragment } - repository { ...GitRepositoryFragment} - jobSpec { ...JobSpecFragment} - configuration { ...StackConfigurationFragment} - environment { ...StackEnvironmentFragment} - output { ...StackOutputFragment} - errors { ...ServiceErrorFragment} -} - -fragment ServiceErrorFragment on ServiceError { - source - message -} - -fragment StackOutputFragment on StackOutput { - name - value - secret -} - -fragment StackStateFragment on StackState { - id - plan - state { ...StackStateResourceFragment} -} - -fragment StackStateResourceFragment on StackStateResource { - identifier - resource - name - configuration - links -} - -fragment StackEnvironmentFragment on StackEnvironment { - name - value - secret -} - -fragment StackFileFragment on StackFile { - path - content -} - -fragment RunStepFragment on RunStep { - id - status - name - cmd - args - index - stage -} - - -fragment StackConfigurationFragment on StackConfiguration { - image - version - hooks {...StackHookFragment} -} - -fragment StackHookFragment on StackHook { - cmd - args - afterStage -} - -fragment CustomStackRunFragment on CustomStackRun { - id - name - stack { - id - } - documentation - commands { ...StackCommandFragment} - configuration { ...PrConfigurationFragment} -} - -fragment StackCommandFragment on StackCommand { - cmd - args - dir -} - -fragment PrConfigurationFragment on PrConfiguration { - type - name - default - documentation - longform - placeholder - optional - condition { ...PrConfigurationConditionFragment} -} - -fragment PrConfigurationConditionFragment on PrConfigurationCondition { - operation - field - value -} \ No newline at end of file diff --git a/graph/token.graphql b/graph/token.graphql index dd93252..358bc3b 100644 --- a/graph/token.graphql +++ b/graph/token.graphql @@ -1,18 +1,11 @@ -mutation CreateAccessToken { - createAccessToken { - ...AccessTokenFragment - } -} - -mutation DeleteAccessToken($token: String!) { - deleteAccessToken(token: $token) { - ...AccessTokenFragment - } +fragment AccessTokenFragment on AccessToken { + id + token } query ListAccessTokens($cursor: String, $before: String, $last: Int) { accessTokens(after: $cursor, first: 100, before: $before, last: $last) { - edges {... AccessTokenEdgeFragment } + edges { node { ...AccessTokenFragment }} } } @@ -34,4 +27,16 @@ query TokenExchange($token: String!) { name } } -} \ No newline at end of file +} + +mutation CreateAccessToken { + createAccessToken { + ...AccessTokenFragment + } +} + +mutation DeleteAccessToken($token: String!) { + deleteAccessToken(token: $token) { + ...AccessTokenFragment + } +} diff --git a/graph/users.graphql b/graph/users.graphql index d7ee1c5..6d444d2 100644 --- a/graph/users.graphql +++ b/graph/users.graphql @@ -11,9 +11,9 @@ query GetGroup($name: String!) { } mutation AddGroupMember($groupId: ID!, $userId: ID!) { - createGroupMember(groupId: $groupId, userId: $userId) { + createGroupMember(groupId: $groupId, userId: $userId) { ...GroupMemberFragment - } + } } mutation DeleteGroupMember($userId: ID!, $groupId: ID!) { diff --git a/models_gen.go b/models_gen.go index cb87833..21b52c4 100644 --- a/models_gen.go +++ b/models_gen.go @@ -2484,6 +2484,10 @@ type Pipeline struct { Status *PipelineStatus `json:"status,omitempty"` // the project this pipeline belongs to Project *Project `json:"project,omitempty"` + // read policy for this pipeline + ReadBindings []*PolicyBinding `json:"readBindings,omitempty"` + // write policy of this pipeline + WriteBindings []*PolicyBinding `json:"writeBindings,omitempty"` // edges linking two stages w/in the pipeline in a full DAG Edges []*PipelineStageEdge `json:"edges,omitempty"` // lists the contexts applied to a pipeline @@ -2494,9 +2498,11 @@ type Pipeline struct { // the top level input object for creating/deleting pipelines type PipelineAttributes struct { - ProjectID *string `json:"projectId,omitempty"` - Stages []*PipelineStageAttributes `json:"stages,omitempty"` - Edges []*PipelineEdgeAttributes `json:"edges,omitempty"` + ProjectID *string `json:"projectId,omitempty"` + Stages []*PipelineStageAttributes `json:"stages,omitempty"` + Edges []*PipelineEdgeAttributes `json:"edges,omitempty"` + ReadBindings []*PolicyBindingAttributes `json:"readBindings,omitempty"` + WriteBindings []*PolicyBindingAttributes `json:"writeBindings,omitempty"` } type PipelineConnection struct { diff --git a/schema/schema.graphql b/schema/schema.graphql index 08ff928..d72122f 100644 --- a/schema/schema.graphql +++ b/schema/schema.graphql @@ -755,7 +755,7 @@ type RootMutationType { updateProject(id: ID!, attributes: ProjectAttributes!): Project "a reusable mutation for updating rbac settings on core services" - updateRbac(rbac: RbacAttributes!, serviceId: ID, clusterId: ID, providerId: ID): Boolean + updateRbac(rbac: RbacAttributes!, serviceId: ID, clusterId: ID, providerId: ID, pipelineId: ID): Boolean } type RootSubscriptionType { @@ -2171,6 +2171,8 @@ input PipelineAttributes { projectId: ID stages: [PipelineStageAttributes] edges: [PipelineEdgeAttributes] + readBindings: [PolicyBindingAttributes] + writeBindings: [PolicyBindingAttributes] } "specification of a stage of a pipeline" @@ -2321,6 +2323,12 @@ type Pipeline { "the project this pipeline belongs to" project: Project + "read policy for this pipeline" + readBindings: [PolicyBinding] + + "write policy of this pipeline" + writeBindings: [PolicyBinding] + "edges linking two stages w\/in the pipeline in a full DAG" edges: [PipelineStageEdge]