Skip to content

Commit

Permalink
[MachineLearning]Try fixing some lint error in 10-01 version (#25519)
Browse files Browse the repository at this point in the history
* Try fixing some lint error

* bug fix

* remove unused definition

* Update Example
  • Loading branch information
ZhidaLiu authored Sep 7, 2023
1 parent 7af038c commit 5fb8294
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 59 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
}
}
},
"202": {}
"202": {
"headers": {
"Location": "example_location"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"200": {
"description": "The request was successful; the request was well-formed and received properly.",
"schema": {
"$ref": "#/definitions/AmlOperationListResult"
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/OperationListResult"
}
},
"default": {
Expand Down Expand Up @@ -154,7 +154,20 @@
}
},
"202": {
"description": "The request was successful; the request was well-formed and received properly."
"description": "Accepted",
"headers": {
"Location": {
"description": "URI to poll for asynchronous operation result.",
"type": "string"
},
"Retry-After": {
"description": "Duration the client should wait between requests, in seconds.",
"type": "integer",
"format": "int32",
"maximum": 600,
"minimum": 10
}
}
},
"default": {
"description": "Error response describing why the operation failed",
Expand Down Expand Up @@ -251,7 +264,20 @@
}
},
"202": {
"description": "The request was successful; the request was well-formed and received properly."
"description": "Accepted",
"headers": {
"Location": {
"description": "URI to poll for asynchronous operation result.",
"type": "string"
},
"Retry-After": {
"description": "Duration the client should wait between requests, in seconds.",
"type": "integer",
"format": "int32",
"maximum": 600,
"minimum": 10
}
}
},
"default": {
"description": "Error response describing why the operation failed",
Expand Down Expand Up @@ -457,7 +483,20 @@
"description": "The request was successful; the request was well-formed and received properly."
},
"202": {
"description": "The request was accepted; the request was well-formed and received properly."
"description": "Accepted",
"headers": {
"Location": {
"description": "URI to poll for asynchronous operation result.",
"type": "string"
},
"Retry-After": {
"description": "Duration the client should wait between requests, in seconds.",
"type": "integer",
"format": "int32",
"maximum": 600,
"minimum": 10
}
}
},
"default": {
"description": "Error response describing why the operation failed",
Expand Down Expand Up @@ -1538,7 +1577,20 @@
}
},
"202": {
"description": "The request was successful; the request was well-formed and received properly."
"description": "Accepted",
"headers": {
"Location": {
"description": "URI to poll for asynchronous operation result.",
"type": "string"
},
"Retry-After": {
"description": "Duration the client should wait between requests, in seconds.",
"type": "integer",
"format": "int32",
"maximum": 600,
"minimum": 10
}
}
},
"default": {
"description": "Error response describing why the operation failed",
Expand Down Expand Up @@ -1956,7 +2008,8 @@
"required": true,
"type": "string",
"description": "Friendly name of the workspace connection",
"x-ms-parameter-location": "method"
"x-ms-parameter-location": "method",
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$"
},
"TargetParameter": {
"in": "query",
Expand All @@ -1976,58 +2029,6 @@
}
},
"definitions": {
"AmlOperation": {
"description": "Azure Machine Learning workspace REST API operation",
"type": "object",
"properties": {
"name": {
"description": "Operation name: {provider}/{resource}/{operation}",
"type": "string"
},
"display": {
"description": "Display name of operation",
"type": "object",
"properties": {
"provider": {
"description": "The resource provider name: Microsoft.MachineLearningExperimentation",
"type": "string"
},
"resource": {
"description": "The resource on which the operation is performed.",
"type": "string"
},
"operation": {
"description": "The operation that users can perform.",
"type": "string"
},
"description": {
"description": "The description for the operation.",
"type": "string"
}
}
},
"isDataAction": {
"description": "Indicates whether the operation applies to data-plane",
"type": "boolean"
}
}
},
"AmlOperationListResult": {
"type": "object",
"description": "An array of operations supported by the resource provider.",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/AmlOperation"
},
"x-ms-identifiers": [
"name"
],
"description": "List of AML workspace operations supported by the AML workspace resource provider."
}
}
},
"Workspace": {
"type": "object",
"description": "An object that represents a machine learning workspace.",
Expand Down

0 comments on commit 5fb8294

Please sign in to comment.