Skip to content

Commit

Permalink
Added new API and API version for private DNS zone suffix (#13789)
Browse files Browse the repository at this point in the history
* Added new API and API version for private DNS zone suffix

* trigger validation pipelines

* Add new API to readme

* Fix ARM pipelines

* Try fix again

* Fix again

* Add Operations API

* Revert "Add Operations API"

This reverts commit 9d4ca9e.

* Revert "Revert "Add Operations API""

This reverts commit 7cf197c.

* Revert "Revert "Revert "Add Operations API"""

This reverts commit 0574439.

* Revert "Revert "Revert "Revert "Add Operations API""""

This reverts commit 61b76b1.

* Revert "Revert "Revert "Revert "Revert "Add Operations API"""""

This reverts commit 9f55eb4.

* Address review comment from ARM

* Revert "Address review comment from ARM"

This reverts commit cb6d1b0.

* Revert "Revert "Address review comment from ARM""

This reverts commit 227cf73.

* Revert "Revert "Revert "Revert "Revert "Revert "Add Operations API""""""

This reverts commit 34ae6c7.

* Revert "Revert "Revert "Revert "Revert "Revert "Revert "Add Operations API"""""""

This reverts commit a11c889.

* Add previous APIs to tag

* Retrigger build
  • Loading branch information
taogems authored Apr 16, 2021
1 parent c55d37d commit c09c320
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
{
"swagger": "2.0",
"info": {
"version": "2021-03-31-privatepreview",
"title": "PostgreSQLManagementClient",
"description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model."
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {
"/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/getPrivateDnsZoneSuffix": {
"post": {
"tags": [
"GetPrivateDnsZoneSuffix"
],
"operationId": "GetPrivateDnsZoneSuffix_Execute",
"x-ms-examples": {
"GetPrivateDnsZoneSuffix": {
"$ref": "./examples/GetPrivateDnsZoneSuffix.json"
}
},
"description": "Get private DNS zone suffix in the cloud",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"in": "body",
"name": "body",
"required": true,
"schema": {
"type": "string",
"enum": [
"PostgreSQL",
"PostgreSQLCitus",
"MySQL",
"MariaDb",
"Oracle"
]
},
"description": "The required parameters for getting private DNS zone suffix based on server type."
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/PrivateDnsZoneSuffix"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
}
},
"definitions": {
"PrivateDnsZoneSuffix": {
"type": "string",
"description": "Represents a resource name availability."
},
"CloudError": {
"x-ms-external": true,
"properties": {
"error": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
}
},
"description": "An error response from the Batch service."
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"api-version": "2021-03-31-privatepreview",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff",
"body": "PostgreSQL"
},
"responses": {
"200": {
"body": "postgres.database.azure.com"
}
}
}
13 changes: 13 additions & 0 deletions specification/postgresql/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,19 @@ description: The Microsoft Azure management API provides create, read, update, a
openapi-type: arm
tag: package-2020-01-01
```
### Tag: package-2021-03-31-privatepreview
These settings apply only when `--tag=package-2021-03-31-privatepreview` is specified on the command line.

``` yaml $(tag) == 'package-2021-03-31-privatepreview'
input-file:
- Microsoft.DBforPostgreSQL/preview/2020-02-14-preview/postgresql.json
- Microsoft.DBforPostgreSQL/preview/2020-11-05-preview/Databases.json
- Microsoft.DBforPostgreSQL/preview/2021-03-31-privatepreview/PrivateDnsZone.json
```



### Tag: package-2020-11-05-preview

These settings apply only when `--tag=package-2020-11-05-preview` is specified on the command line.
Expand Down

0 comments on commit c09c320

Please sign in to comment.