Skip to content

Commit

Permalink
[Fix broken S360 Issues][HDInsight] Fix S360 issues batch2 (#12493)
Browse files Browse the repository at this point in the history
* Add networkProperties and clusterId

* Add display.description and properties of operation.
Fix DeletionOperationResponse linting error
Add privateIPAddress in ConnectivityEndpoints and
ApplicationGetEndpoints

* Fix model validation error: update example

Co-authored-by: Zhenyu Zhou <zhezhou@microsoft.com>
  • Loading branch information
aim-for-better and Zhenyu Zhou authored Jan 20, 2021
1 parent a501906 commit c8afc74
Show file tree
Hide file tree
Showing 10 changed files with 169 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@
},
"202": {
"description": "Accepted response definition."
},
"204": {
"description": "No Content response definition."
}
},
"x-ms-long-running-operation": true
Expand Down Expand Up @@ -278,6 +281,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
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@
},
"200": {
"description": "Ok response definition."
},
"204": {
"description": "No Content response definition."
}
},
"x-ms-long-running-operation": true
Expand Down Expand Up @@ -1229,6 +1232,10 @@
"type": "integer",
"format": "int32",
"description": "The port to connect to."
},
"privateIPAddress": {
"type": "string",
"description": "The private ip address of the endpoint."
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.HDInsight/pathToOperationResult"
}
},
"202": {}
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"responses": {
"200": {},
"202": {}
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
},
"responses": {
"202": {},
"200": {}
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"scriptName": "scriptName"
},
"responses": {
"200": {}
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
},
"responses": {
"200": {},
"202": {}
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@
},
"202": {
"description": "OK response definition."
},
"204": {
"description": "No Content response definition."
}
},
"x-ms-long-running-operation": true
Expand Down Expand Up @@ -304,6 +307,9 @@
},
"202": {
"description": "Accepted response definition."
},
"204": {
"description": "No Content response definition."
}
},
"x-ms-long-running-operation": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,148 @@
"operation": {
"description": "The operation type: read, write, delete, etc.",
"type": "string"
},
"description": {
"description": "Localized friendly description for the operation",
"type": "string"
}
}
},
"properties": {
"description": "The operation properties.",
"$ref": "#/definitions/OperationProperties"
}
},
"readOnly": true
},
"OperationProperties": {
"description": "The details of operation.",
"type": "object",
"properties": {
"serviceSpecification": {
"description": "The specification of the service.",
"$ref": "#/definitions/ServiceSpecification"
}
}
},
"ServiceSpecification": {
"description": "The specification of the service.",
"type": "object",
"properties": {
"metricSpecifications": {
"description": "The metric specifications.",
"type": "array",
"items": {
"$ref": "#/definitions/MetricSpecifications"
}
}
}
},
"MetricSpecifications": {
"description": "The details of metric specifications.",
"type": "object",
"properties": {
"name": {
"description": "The name of the metric specification.",
"type": "string"
},
"displayName": {
"description": "The display name of the metric specification.",
"type": "string"
},
"displayDescription": {
"description": "The display description of the metric specification.",
"type": "string"
},
"unit": {
"description": "The unit of the metric specification.",
"type": "string"
},
"aggregationType": {
"description": "The aggregation type of the metric specification.",
"type": "string"
},
"supportedAggregationTypes": {
"description": "The supported aggregation types of the metric specification.",
"type": "array",
"items": {
"type": "string"
}
},
"supportedTimeGrainTypes": {
"description": "The supported time grain types of the metric specification.",
"type": "array",
"items": {
"type": "string"
}
},
"enableRegionalMdmAccount": {
"description": "The flag indicates whether enable regional mdm account or not.",
"type": "boolean"
},
"sourceMdmAccount": {
"description": "The source mdm account.",
"type": "string"
},
"sourceMdmNamespace": {
"description": "The source mdm namespace.",
"type": "string"
},
"metricFilterPattern": {
"description": "The metric filter pattern.",
"type": "string"
},
"fillGapWithZero": {
"description": "The flag indicates whether filling gap with zero.",
"type": "boolean"
},
"category": {
"description": "The category of the metric.",
"type": "string"
},
"resourceIdDimensionNameOverride": {
"description": "The override name of resource id dimension name.",
"type": "string"
},
"isInternal": {
"description": "The flag indicates whether the metric is internal or not.",
"type": "boolean"
},
"delegateMetricNameOverride": {
"description": "The override name of delegate metric.",
"type": "string"
},
"dimensions": {
"description": "The dimensions of the metric specification.",
"type": "array",
"items": {
"$ref": "#/definitions/Dimension"
}
}
}
},
"Dimension": {
"description": "The definition of Dimension.",
"type": "object",
"properties": {
"name": {
"description": "The name of the dimension.",
"type": "string"
},
"displayName": {
"description": "The display name of the dimension.",
"type": "string"
},
"internalName": {
"description": "The display name of the dimension.",
"type": "string"
},
"toBeExportedForShoebox": {
"description": "The flag indicates whether the metric will be exported for shoebox or not.",
"type": "boolean"
}
}
},
"OperationListResult": {
"description": "Result of the request to list HDInsight operations. It contains a list of operations and a URL link to get the next set of results.",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@
},
"200": {
"description": "OK response definition."
},
"204": {
"description": "No Content response definition."
}
}
}
Expand Down

0 comments on commit c8afc74

Please sign in to comment.