Skip to content

Commit

Permalink
[Fix S360 Broken Issues][HDInsight] Add some APIs and mark some prope…
Browse files Browse the repository at this point in the history
…rties as readOnly and provide default value (#13082)

* Add networkProperties and clusterId

* Fix completeness issus

* Fix completeness issue

* Fix completeness issues

* Fix Correctness issue

* Add all api includes upgrade api

* Remove upgrade apis

* Fix CI errors

* fix extension unresolved reference error

* Add x-ms-long-running-operation-options

* Fix prettier error

Co-authored-by: Zhenyu Zhou <zhezhou@microsoft.com>
  • Loading branch information
aim-for-better and Zhenyu Zhou authored Feb 24, 2021
1 parent 9420548 commit cf1e3f9
Show file tree
Hide file tree
Showing 45 changed files with 2,930 additions and 350 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,10 @@
}
}
},
"x-ms-long-running-operation": true
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
}
},
"delete": {
"tags": [
Expand Down Expand Up @@ -219,9 +222,63 @@
},
"202": {
"description": "Accepted response definition."
},
"204": {
"description": "No Content response definition."
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}/azureasyncoperations/{operationId}": {
"get": {
"tags": [
"Applications"
],
"description": "Gets the async operation status.",
"operationId": "Applications_GetAzureAsyncOperationStatus",
"x-ms-examples": {
"Get the azure async operation status.": {
"$ref": "./examples/GetApplicationCreationAsyncOperationStatus.json"
}
},
"x-ms-long-running-operation": true
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/ClusterNameParameter"
},
{
"$ref": "#/parameters/ApplicationNameParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/OperationIdParameter"
}
],
"responses": {
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./operations.json#/definitions/ErrorResponse"
}
},
"200": {
"description": "OK response definition.",
"schema": {
"$ref": "./cluster.json#/definitions/AsyncOperationResult"
}
}
}
}
}
},
Expand All @@ -239,7 +296,8 @@
},
"location": {
"type": "string",
"description": "The location of the endpoint."
"description": "The location of the endpoint.",
"readOnly": true
},
"destinationPort": {
"type": "integer",
Expand All @@ -249,15 +307,20 @@
"publicPort": {
"type": "integer",
"format": "int32",
"description": "The public port to connect to."
"description": "The public port to connect to.",
"readOnly": true
},
"privateIPAddress": {
"type": "string",
"description": "The private ip address of the endpoint."
},
"subDomainSuffix": {
"type": "string",
"description": "The subdomain suffix of the application."
},
"disableGatewayAuth": {
"type": "boolean",
"description": "Disable gateway authentication."
"description": "The value indicates whether to disable GatewayAuth."
}
}
},
Expand All @@ -278,6 +341,10 @@
"type": "integer",
"format": "int32",
"description": "The public port to connect to."
},
"privateIPAddress": {
"type": "string",
"description": "The private ip address of the endpoint."
}
}
},
Expand Down Expand Up @@ -432,6 +499,14 @@
"required": true,
"type": "string",
"description": "The HDInsight client API Version."
},
"OperationIdParameter": {
"name": "operationId",
"in": "path",
"required": true,
"type": "string",
"description": "The long running operation id.",
"x-ms-parameter-location": "method"
}
}
}
Loading

0 comments on commit cf1e3f9

Please sign in to comment.