Skip to content

Commit

Permalink
Template Specs: Including "expand" parameter, TemplateSpecVersionInfo…
Browse files Browse the repository at this point in the history
… model for getting basic version info with template spec(s). (Azure#11102)
  • Loading branch information
stuartko authored and giromm2ms committed Dec 20, 2020
1 parent e17540a commit a822389
Showing 1 changed file with 61 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@
{
"$ref": "#/parameters/TemplateSpecNameParameter"
},
{
"$ref": "#/parameters/TemplateSpecExpandParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
Expand Down Expand Up @@ -235,6 +238,9 @@
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/TemplateSpecExpandParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
Expand Down Expand Up @@ -277,6 +283,9 @@
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/TemplateSpecExpandParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
Expand Down Expand Up @@ -591,6 +600,14 @@
"type": "string",
"maxLength": 64,
"description": "Template Spec display name."
},
"versions": {
"type": "object",
"readOnly": true,
"description": "High-level information about the versions within this Template Spec. The keys are the version names. Only populated if the $expand query parameter is set to 'versions'.",
"additionalProperties": {
"$ref": "#/definitions/TemplateSpecVersionInfo"
}
}
}
},
Expand Down Expand Up @@ -800,6 +817,29 @@
}
]
},
"TemplateSpecVersionInfo": {
"type": "object",
"description": "High-level information about a Template Spec version.",
"properties": {
"description": {
"type": "string",
"readOnly": true,
"description": "Template Spec version description."
},
"timeCreated": {
"type": "string",
"readOnly": true,
"format": "date-time",
"description": "The timestamp of when the version was created."
},
"timeModified": {
"type": "string",
"readOnly": true,
"format": "date-time",
"description": "The timestamp of when the version was last modified."
}
}
},
"TemplateSpecsError": {
"properties": {
"error": {
Expand Down Expand Up @@ -851,6 +891,27 @@
"maxLength": 90,
"x-ms-parameter-location": "method"
},
"TemplateSpecExpandParameter": {
"name": "$expand",
"in": "query",
"required": false,
"type": "string",
"description": "Allows for expansion of additional Template Spec details in the response. Optional.",
"x-ms-parameter-location": "method",
"enum": [
"versions"
],
"x-ms-enum": {
"name": "TemplateSpecExpandKind",
"modelAsString": true,
"values": [
{
"value": "versions",
"description": "Includes version information with the Template Spec."
}
]
}
},
"ApiVersionParameter": {
"name": "api-version",
"in": "query",
Expand Down

0 comments on commit a822389

Please sign in to comment.