Skip to content

Commit

Permalink
[AzureStack] [Admin API] Compute ScaleUnit Open API Spec (#14133)
Browse files Browse the repository at this point in the history
* Fixed issues for Avocado, Semantic, Model, and LintDiff.

* Implement Compute Admin GET Scale Unit View Open API spec and example.

* Updating readme and List operations.

* Adding default error responses

* Removing ReadOnly=True from ARM resource.

* Adding back ReadOnly property to ARM resource type; Adding suppression to readme.md file.

* Reverting suppression and removing the unnecessary parameters from the examples.
  • Loading branch information
travist13 authored Jun 7, 2021
1 parent 48bdeb7 commit a252633
Show file tree
Hide file tree
Showing 11 changed files with 650 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@
"schema": {
"$ref": "#/definitions/OperationList"
}
},
"default": {
"description": "Default Response.",
"schema": {
"$ref": "#/definitions/ErrorDetails"
}
}
},
"x-ms-pageable": {
Expand Down Expand Up @@ -140,6 +146,37 @@
"type": "string"
}
}
},
"ErrorDetails": {
"description": "Error details.",
"type": "object",
"properties": {
"error": {
"description": "Object containing error details.",
"$ref": "#/definitions/ErrorDetailsInternal"
}
}
},
"ErrorDetailsInternal": {
"description": "Error details.",
"type": "object",
"properties": {
"code": {
"description": "The error code.",
"type": "string",
"readOnly": true
},
"message": {
"description": "The error message.",
"type": "string",
"readOnly": true
},
"target": {
"description": "The target of the particular error.",
"type": "string",
"readOnly": true
}
}
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@
"schema": {
"$ref": "#/definitions/PlatformImageList"
}
},
"default": {
"description": "Default Response.",
"schema": {
"$ref": "#/definitions/ErrorDetails"
}
}
}
}
Expand Down Expand Up @@ -91,6 +97,12 @@
"schema": {
"$ref": "#/definitions/PlatformImage"
}
},
"default": {
"description": "Default Response.",
"schema": {
"$ref": "#/definitions/ErrorDetails"
}
}
}
},
Expand Down Expand Up @@ -150,6 +162,12 @@
"schema": {
"$ref": "#/definitions/PlatformImage"
}
},
"default": {
"description": "Default Response.",
"schema": {
"$ref": "#/definitions/ErrorDetails"
}
}
},
"x-ms-long-running-operation": true
Expand Down Expand Up @@ -190,6 +208,12 @@
}
],
"responses": {
"default": {
"description": "Default Response.",
"schema": {
"$ref": "#/definitions/ErrorDetails"
}
},
"200": {
"description": "OK"
}
Expand Down Expand Up @@ -307,6 +331,37 @@
"$ref": "#/definitions/PlatformImageProperties"
}
}
},
"ErrorDetails": {
"description": "Error details.",
"type": "object",
"properties": {
"error": {
"description": "Object containing error details.",
"$ref": "#/definitions/ErrorDetailsInternal"
}
}
},
"ErrorDetailsInternal": {
"description": "Error details.",
"type": "object",
"properties": {
"code": {
"description": "The error code.",
"type": "string",
"readOnly": true
},
"message": {
"description": "The error message.",
"type": "string",
"readOnly": true
},
"target": {
"description": "The target of the particular error.",
"type": "string",
"readOnly": true
}
}
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@
"schema": {
"$ref": "#/definitions/VMExtension"
}
},
"default": {
"description": "Default Response.",
"schema": {
"$ref": "#/definitions/ErrorDetails"
}
}
}
},
Expand Down Expand Up @@ -110,6 +116,12 @@
"schema": {
"$ref": "#/definitions/VMExtension"
}
},
"default": {
"description": "Default Response.",
"schema": {
"$ref": "#/definitions/ErrorDetails"
}
}
}
},
Expand Down Expand Up @@ -154,6 +166,12 @@
"responses": {
"200": {
"description": "OK"
},
"default": {
"description": "Default Response.",
"schema": {
"$ref": "#/definitions/ErrorDetails"
}
}
}
}
Expand Down Expand Up @@ -194,6 +212,12 @@
"schema": {
"$ref": "#/definitions/VMExtensionList"
}
},
"default": {
"description": "Default Response.",
"schema": {
"$ref": "#/definitions/ErrorDetails"
}
}
}
}
Expand Down Expand Up @@ -281,6 +305,37 @@
"$ref": "#/definitions/VMExtensionProperties"
}
}
},
"ErrorDetails": {
"description": "Error details.",
"type": "object",
"properties": {
"error": {
"description": "Object containing error details.",
"$ref": "#/definitions/ErrorDetailsInternal"
}
}
},
"ErrorDetailsInternal": {
"description": "Error details.",
"type": "object",
"properties": {
"code": {
"description": "The error code.",
"type": "string",
"readOnly": true
},
"message": {
"description": "The error message.",
"type": "string",
"readOnly": true
},
"target": {
"description": "The target of the particular error.",
"type": "string",
"readOnly": true
}
}
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,15 @@
"description": "Delete any VMExtension"
}
},
{
"name": "Microsoft.Compute.Admin/locations/computeScaleUnits/read",
"display": {
"provider": "Microsoft Compute Admin",
"resource": "ScaleUnitView",
"operation": "Get scale unit view",
"description": "Get scale unit view"
}
},
{
"name": "Microsoft.Compute.Admin/locations/Disks/read",
"display": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@
"schema": {
"$ref": "DiskMigrationJobs.json#/definitions/DiskMigrationJobList"
}
},
"default": {
"description": "Default Response.",
"schema": {
"$ref": "#/definitions/ErrorDetails"
}
}
},
"x-ms-pageable": {
Expand Down Expand Up @@ -87,6 +93,12 @@
"schema": {
"$ref": "DiskMigrationJobs.json#/definitions/DiskMigrationJob"
}
},
"default": {
"description": "Default Response.",
"schema": {
"$ref": "#/definitions/ErrorDetails"
}
}
}
},
Expand Down Expand Up @@ -133,6 +145,12 @@
"schema": {
"$ref": "DiskMigrationJobs.json#/definitions/DiskMigrationJob"
}
},
"default": {
"description": "Default Response.",
"schema": {
"$ref": "#/definitions/ErrorDetails"
}
}
}
}
Expand Down Expand Up @@ -169,6 +187,12 @@
"schema": {
"$ref": "DiskMigrationJobs.json#/definitions/DiskMigrationJob"
}
},
"default": {
"description": "Default Response.",
"schema": {
"$ref": "#/definitions/ErrorDetails"
}
}
}
}
Expand Down Expand Up @@ -361,6 +385,37 @@
"items": {
"$ref": "Disks.json#/definitions/Disk"
}
},
"ErrorDetails": {
"description": "Error details.",
"type": "object",
"properties": {
"error": {
"description": "Object containing error details.",
"$ref": "#/definitions/ErrorDetailsInternal"
}
}
},
"ErrorDetailsInternal": {
"description": "Error details.",
"type": "object",
"properties": {
"code": {
"description": "The error code.",
"type": "string",
"readOnly": true
},
"message": {
"description": "The error message.",
"type": "string",
"readOnly": true
},
"target": {
"description": "The target of the particular error.",
"type": "string",
"readOnly": true
}
}
}
},
"parameters": {
Expand Down
Loading

0 comments on commit a252633

Please sign in to comment.