github.com/pluralsh/plural-cli@v0.9.5/pkg/ui/web/src/graphql/recipes.graphql (about)

     1  fragment Recipe on Recipe {
     2    id
     3    name
     4    description
     5    restricted
     6    provider
     7    tests {
     8      type
     9      name
    10      message
    11      args { name repo key }
    12    }
    13    repository { id name }
    14    oidcSettings {
    15      uriFormat
    16      uriFormats
    17      authMethod
    18      domainKey
    19      subdomain
    20    }
    21    recipeSections { ...RecipeSection }
    22  }
    23  
    24  fragment RecipeItem on RecipeItem {
    25    id
    26    chart { ...Chart }
    27    terraform { ...Terraform }
    28    configuration { ...RecipeConfiguration }
    29  }
    30  
    31  fragment RecipeSection on RecipeSection {
    32    index
    33    repository {
    34      ...Repo
    35      installation { ...Installation }
    36    }
    37    recipeItems { ...RecipeItem }
    38    configuration { ...RecipeConfiguration }
    39  }
    40  
    41  fragment RecipeConfiguration on RecipeConfiguration {
    42    name
    43    type
    44    default
    45    documentation
    46    optional
    47    placeholder
    48    functionName
    49    condition { field operation value }
    50    validation { type regex message }
    51  }
    52  
    53  fragment Stack on Stack {
    54    id
    55    name
    56    displayName
    57    description
    58    featured
    59    creator { 
    60      id
    61      name
    62    }
    63    collections {
    64      id
    65      provider
    66      bundles {
    67        recipe {
    68          repository {
    69            ...Repo
    70            tags {
    71              tag
    72            }
    73          }
    74        }
    75      }
    76    }
    77  }
    78  
    79  query GetRecipe($repo: String, $name: String, $id: ID) {
    80    recipe(repo: $repo, name: $name, id: $id) {
    81      ...Recipe
    82      recipeDependencies { ...Recipe }
    83    }
    84  }
    85  
    86  query ListRecipes($repositoryName: String, $repositoryId: ID, $provider: Provider) {
    87    recipes(repositoryName: $repositoryName, provider: $provider, first: 500, repositoryId: $repositoryId) {
    88      edges { node { ...Recipe } }
    89    }
    90  }
    91  
    92  mutation CreateRecipe($name: String!, $attributes: RecipeAttributes!) {
    93    createRecipe(repositoryName: $name, attributes: $attributes) {
    94      id
    95    }
    96  }
    97  
    98  mutation InstallRecipe($id: ID!) {
    99    installRecipe(recipeId: $id, context: "{}") {
   100      id
   101    }
   102  }
   103  
   104  mutation CreateStack($attributes: StackAttributes!) {
   105    createStack(attributes: $attributes) {
   106      id
   107    }
   108  }
   109  
   110  query GetStack($name: String!, $provider: Provider!) {
   111    stack(name: $name, provider: $provider) {
   112      ...Stack
   113    }
   114  }
   115  
   116  query ListStacks($featured: Boolean, $cursor: String) {
   117    stacks(first: 100, after: $cursor, featured: $featured) {
   118      edges { node { ...Stack } }
   119    }
   120  }
   121  
   122  mutation CreateQuickStack($applicationIds: [ID], $provider: Provider!) {
   123    quickStack(repositoryIds: $applicationIds, provider: $provider) {
   124      id
   125      name
   126    }
   127  }
   128  
   129  mutation InstallStackShell($name: String!, $context: ContextAttributes!, $oidc: Boolean!) {
   130    installStackShell(name: $name, context: $context, oidc: $oidc) {
   131      id
   132      name
   133    }
   134  }