Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azs api bug fix #12133

Merged
merged 5 commits into from
Jan 5, 2021
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
{
"swagger": "2.0",
"info": {
"description": "Compute operation results.",
"title": "FabricAdminClient",
"version": "2020-10-01"
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/computeOperationResults/{operation}": {
"get": {
"x-ms-examples": {
"Returns the status of the operation.": {
"$ref": "./examples/ComputeOperationResult/Get.json"
}
},
"tags": [
"ComputeOperationResults"
],
"description": "Returns the status of a compute operation.",
"operationId": "ComputeOperationResults_Get",
"parameters": [
{
"$ref": "../2016-05-01/Fabric.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../2016-05-01/Fabric.json#/parameters/ResourceGroupParameter"
},
{
"$ref": "../2016-05-01/Fabric.json#/parameters/LocationParameter"
},
{
"$ref": "#/parameters/OperationParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/ComputeOperationResult"
}
},
"404": {
"description": "NOT FOUND"
}
LingyunSu marked this conversation as resolved.
Show resolved Hide resolved
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/computeOperationResults": {
"get": {
"x-ms-examples": {
"Returns a list of all compute operation results at a location.": {
"$ref": "./examples/ComputeOperationResult/List.json"
}
},
"tags": [
"ComputeOperationResults"
],
"description": "Returns a list of all compute operation results at a location.",
"operationId": "ComputeOperationResults_List",
"parameters": [
{
"$ref": "../2016-05-01/Fabric.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../2016-05-01/Fabric.json#/parameters/ResourceGroupParameter"
},
{
"$ref": "../2016-05-01/Fabric.json#/parameters/LocationParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "../2016-05-01/Fabric.json#/parameters/FilterParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/ComputeOperationResultList"
}
}
},
LingyunSu marked this conversation as resolved.
Show resolved Hide resolved
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-odata": "#/definitions/ComputeOperationResult"
}
}
},
"definitions": {
"ComputeOperationResult": {
"description": "Compute operation result description.",
"type": "object",
"properties": {
"properties": {
"description": "Compute operation result properties.",
"x-ms-client-flatten": true,
"$ref": "#/definitions/ComputeOperationResultModel"
}
},
"allOf": [
{
"$ref": "../2016-05-01/Fabric.json#/definitions/Resource"
}
]
},
"ComputeOperationResultModel": {
"description": "Compute operation result properties.",
"type": "object",
"properties": {
"instances": {
"description": "List of operation result instances.",
"type": "array",
"items": {
"type": "string"
}
},
"provisioningState": {
"description": "Success or failure of operation.",
"type": "string"
}
}
},
"ComputeOperationResultList": {
"description": "Pageable list of compute operation results.",
"type": "object",
"properties": {
"value": {
"description": "List of compute operation results.",
"type": "array",
"items": {
"$ref": "#/definitions/ComputeOperationResult"
}
},
"nextLink": {
"description": "URI to the next page.",
"type": "string"
}
}
}
},
"parameters": {
"ApiVersionParameter": {
"name": "api-version",
"in": "query",
"description": "Client API Version.",
"required": true,
"type": "string",
"default": "2020-10-01"
},
"OperationParameter": {
"name": "operation",
"description": "Operation identifier.",
"in": "path",
"required": true,
"type": "string",
"x-ms-parameter-location": "method"
}
},
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Authorization uses an Azure Active Directory OAuth2 flow.",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parameters": {
"api-version": "2020-10-01",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"resourceGroupName": "System.local",
"location": "local",
"operation": "7129ebd4-efb5-4faf-89a5-9b9071811610"
},
"responses": {
"200": {
"body": {
"properties": {
"provisioningState": "Succeeded"
}
}
},
"404": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"api-version": "2020-10-01",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"resourceGroupName": "System.local",
"location": "local"
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"provisioningState": "Succeeded"
}
},
{
"properties": {
"provisioningState": "Failed"
}
}
]
}
}
}
}
3 changes: 2 additions & 1 deletion specification/azsadmin/resource-manager/fabric/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ These settings apply only when `--tag=package-2019-05-01` is specified on the co
``` yaml $(tag) == 'package-2019-05-01'
input-file:
- "Microsoft.Fabric.Admin/preview/2016-05-01/ApplicationOperationResults.json"
- "Microsoft.Fabric.Admin/preview/2016-05-01/ComputeOperationResults.json"
- "Microsoft.Fabric.Admin/preview/2016-05-01/Fabric.json"
- "Microsoft.Fabric.Admin/preview/2016-05-01/EdgeGateway.json"
- "Microsoft.Fabric.Admin/preview/2016-05-01/EdgeGatewayPool.json"
Expand All @@ -113,6 +112,7 @@ input-file:
- "Microsoft.Fabric.Admin/preview/2019-05-01/Drive.json"
- "Microsoft.Fabric.Admin/preview/2019-05-01/Volume.json"
- "Microsoft.Fabric.Admin/preview/2019-05-01/NasCluster.json"
- "Microsoft.Fabric.Admin/preview/2020-10-01/ComputeOperationResults.json"
- "Microsoft.Fabric.Admin/preview/2020-10-01/ScaleUnit.json"
- "Microsoft.Fabric.Admin/preview/2020-10-01/ScaleUnitNode.json"
```
Expand Down Expand Up @@ -189,6 +189,7 @@ input-file:
- $(this-folder)/Microsoft.Fabric.Admin/preview/2019-05-01/NasCluster.json
- $(this-folder)/Microsoft.Fabric.Admin/preview/2020-10-01/ScaleUnit.json
- $(this-folder)/Microsoft.Fabric.Admin/preview/2020-10-01/ScaleUnitNode.json
- $(this-folder)/Microsoft.Fabric.Admin/preview/2020-10-01/ComputeOperationResults.json

```

Expand Down