2023-01-05 11:57:53 +01:00
/ * *
2023-03-15 13:30:07 +01:00
* Generated by Orval
2023-01-05 11:57:53 +01:00
* Do not edit manually .
2023-03-15 13:30:07 +01:00
* See ` gen:api ` script in package . json
2023-01-05 11:57:53 +01:00
* /
2023-02-24 11:31:37 +01:00
/ * *
* A definition of the project environment
* /
2023-01-05 11:57:53 +01:00
export interface EnvironmentSchema {
2023-02-24 11:31:37 +01:00
/** The name of the environment */
2023-01-05 11:57:53 +01:00
name : string ;
2023-04-07 11:16:00 +02:00
/** The [type of environment](https://docs.getunleash.io/reference/environments#environment-types). */
2023-01-05 11:57:53 +01:00
type : string ;
2023-02-24 11:31:37 +01:00
/** `true` if the environment is enabled for the project, otherwise `false`. */
2023-01-05 11:57:53 +01:00
enabled : boolean ;
2023-04-07 11:16:00 +02:00
/** `true` if the environment is protected, otherwise `false`. A *protected* environment can not be deleted. */
protected : boolean ;
/** Priority of the environment in a list of environments, the lower the value, the higher up in the list the environment will appear. Needs to be an integer */
sortOrder : number ;
2023-02-24 11:31:37 +01:00
/** The number of projects with this environment */
2023-01-05 11:57:53 +01:00
projectCount? : number | null ;
2023-02-24 11:31:37 +01:00
/** The number of API tokens for the project environment */
2023-01-05 11:57:53 +01:00
apiTokenCount? : number | null ;
2023-02-24 11:31:37 +01:00
/** The number of enabled toggles for the project environment */
2023-01-05 11:57:53 +01:00
enabledToggleCount? : number | null ;
}