pub struct CreateReleaseRequest {
pub channel: Option<String>,
pub git_metadata: Option<GitMetadata>,
pub project_id: String,
pub setup_templates: HashMap<String, HashMap<String, String>>,
pub signed_stacks: HashMap<String, SignedStatement>,
pub stack: StackByPlatform,
}Expand description
CreateReleaseRequest
JSON schema
{
"type": "object",
"required": [
"projectId",
"stack"
],
"properties": {
"channel": {
"description": "Channel the release advances; `production` when absent. Deployments\nfollowing the channel roll out to it.",
"type": [
"string",
"null"
]
},
"gitMetadata": {
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/GitMetadata"
}
]
}
]
},
"projectId": {
"description": "Project this release belongs to. Required. The standalone server\nuses the canonical value `\"default\"`.\n\nThe OSS CLI sends this field as `project` on `alien release`\n(see `alien-cli` release flow); the underlying alien-managerx\nrelease endpoint accepts both forms. Accept both here too so\n`alien release` against an OSS standalone manager doesn't fail\nat the schema layer with a confusing\n`unknown field \"project\", expected \"projectId\"`.",
"type": "string"
},
"setupTemplates": {
"description": "Setup template bytes (base64) keyed by platform and template name, as\nthe release signed them. Required for every template a signed\nstatement names, and refused unless each hashes to its signed digest.",
"type": "object",
"additionalProperties": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"signedStacks": {
"description": "Signed statements keyed by platform, from `alien release` with a\nsigning key. Stored and returned exactly as received; deployments in\nprotected mode verify them and deploy only the stack they contain.",
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/SignedStatement"
}
},
"stack": {
"$ref": "#/components/schemas/StackByPlatform"
}
},
"additionalProperties": false
}Fields§
§channel: Option<String>Channel the release advances; production when absent. Deployments
following the channel roll out to it.
git_metadata: Option<GitMetadata>§project_id: StringProject this release belongs to. Required. The standalone server
uses the canonical value "default".
The OSS CLI sends this field as project on alien release
(see alien-cli release flow); the underlying alien-managerx
release endpoint accepts both forms. Accept both here too so
alien release against an OSS standalone manager doesn’t fail
at the schema layer with a confusing
unknown field "project", expected "projectId".
setup_templates: HashMap<String, HashMap<String, String>>Setup template bytes (base64) keyed by platform and template name, as the release signed them. Required for every template a signed statement names, and refused unless each hashes to its signed digest.
signed_stacks: HashMap<String, SignedStatement>Signed statements keyed by platform, from alien release with a
signing key. Stored and returned exactly as received; deployments in
protected mode verify them and deploy only the stack they contain.
stack: StackByPlatform