Skip to content

Commit

Permalink
Fix swagger file with missed API and properties (#19605)
Browse files Browse the repository at this point in the history
* Added checkNameAvailability to fix Completeness issue

* Added location and subid in the response of CHECKVIRTUALNETWORKSUBNETUSAGE

* fix validation

* rename the operationid

* fix the locationname in example json file

* fix the issues in the preview version
  • Loading branch information
Yiyao-MS committed Jul 14, 2022
1 parent a5a62b7 commit 1ba198d
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,51 @@
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/checkNameAvailability": {
"post": {
"tags": [
"CheckNameAvailability"
],
"operationId": "CheckNameAvailabilityWithoutLocation_Execute",
"x-ms-examples": {
"Check name availability": {
"$ref": "./examples/CheckNameAvailability.json"
}
},
"description": "Check the availability of name for server",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"name": "nameAvailabilityRequest",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/NameAvailabilityRequest"
},
"description": "The required parameters for checking if server name is available."
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/NameAvailability"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/providers/Microsoft.DBforMySQL/getPrivateDnsZoneSuffix": {
"post": {
"tags": [
Expand Down Expand Up @@ -273,6 +318,16 @@
"VirtualNetworkSubnetUsageResult": {
"type": "object",
"properties": {
"location": {
"type": "string",
"readOnly": true,
"description": "The location name."
},
"subscriptionId": {
"type": "string",
"readOnly": true,
"description": "The subscription id."
},
"delegatedSubnetsUsage": {
"description": "A list of delegated subnet usage",
"type": "array",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
"responses": {
"200": {
"body": {
"location": "WestUS",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff",
"delegatedSubnetsUsage": [
{
"subnetName": "test-subnet-1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
"responses": {
"200": {
"body": {
"location": "WestUS",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff",
"delegatedSubnetsUsage": [
{
"subnetName": "test-subnet-1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1387,6 +1387,51 @@
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/checkNameAvailability": {
"post": {
"tags": [
"CheckNameAvailability"
],
"operationId": "CheckNameAvailabilityWithoutLocation_Execute",
"x-ms-examples": {
"Check name availability": {
"$ref": "./examples/CheckNameAvailability.json"
}
},
"description": "Check the availability of name for server",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"name": "nameAvailabilityRequest",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/NameAvailabilityRequest"
},
"description": "The required parameters for checking if server name is available."
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/NameAvailability"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/providers/Microsoft.DBforMySQL/getPrivateDnsZoneSuffix": {
"post": {
"tags": [
Expand Down Expand Up @@ -2300,6 +2345,16 @@
"VirtualNetworkSubnetUsageResult": {
"type": "object",
"properties": {
"location": {
"type": "string",
"readOnly": true,
"description": "The location name."
},
"subscriptionId": {
"type": "string",
"readOnly": true,
"description": "The subscription id."
},
"delegatedSubnetsUsage": {
"description": "A list of delegated subnet usage",
"type": "array",
Expand Down

0 comments on commit 1ba198d

Please sign in to comment.