Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PostgreSQL] Adding a new privatepreview version for fast-provisioning feature #18700

Merged
merged 15 commits into from
May 5, 2022
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"api-version": "2022-03-08-privatepreview",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff",
"resourceGroupName": "testrg",
"locationName": "WestUS",
"cachedServerNameRequest": {
"version": "12",
"storage": {
"storageSizeGB": 32
},
"sku": {
"tier": "Burstable",
"name": "Standard_B1ms"
}
}
},
"responses": {
"200": {
"body": {
"name": "servername"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,194 @@
{
"swagger": "2.0",
"info": {
"version": "2022-03-08-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}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/getCachedServerName": {
"post": {
"tags": [
"GetCachedServerName"
],
"operationId": "GetCachedServerName_Execute",
"x-ms-examples": {
"GetCachedServerName": {
"$ref": "./examples/GetCachedServerName.json"
}
},
"description": "Get available cached server name for fast provisioning",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/LocationNameParameter"
},
{
"name": "cachedServerNameRequest",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/CachedServerNameRequest"
},
"description": "The required parameters for get cached name available for fast provisioning."
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/CachedServerName"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
}
},
"definitions": {
"CachedServerNameRequest": {
"type": "object",
"required": [
"version",
"storage",
"sku"
],
"properties": {
"version": {
"$ref": "#/definitions/ServerVersion",
"description": "PostgreSQL Server version."
},
"storage": {
"$ref": "#/definitions/Storage",
"default": null,
"description": "Storage properties of a server."
},
"sku": {
"$ref": "#/definitions/Sku",
"description": "The SKU (pricing tier) of the server."
}
},
"description": "Request from client to get available cached server name"
},
"CachedServerName": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of available cached server",
"readOnly": true
}
},
"description": "Represents a resource name of a cached server"
},
"ServerVersion": {
"type": "string",
"description": "The version of a server.",
"enum": [
"13",
"12",
"11"
],
"x-ms-enum": {
"name": "ServerVersion",
"modelAsString": true
}
},
"Storage": {
"properties": {
"storageSizeGB": {
"type": "integer",
"format": "int32",
"description": "Max storage allowed for a server."
}
},
"description": "Storage properties of a server"
},
"Sku": {
"properties": {
"name": {
"type": "string",
"description": "The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3."
},
"tier": {
"type": "string",
"description": "The tier of the particular SKU, e.g. Burstable.",
"enum": [
"Burstable",
"GeneralPurpose",
"MemoryOptimized"
],
"x-ms-enum": {
"name": "SkuTier",
"modelAsString": true
}
}
},
"required": [
"name",
"tier"
],
"description": "Sku information related properties of a server."
},
"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."
}
},
"parameters": {
"LocationNameParameter": {
"name": "locationName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the location.",
"x-ms-parameter-location": "method"
}
}
}
12 changes: 12 additions & 0 deletions specification/postgresql/resource-manager/readme.go.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@ batch:
- tag: package-2017-12-01
```

### Tag: package-flexibleserver-2022-03-privatepreview and go

These settings apply only when `--tag=package-flexibleserver-2022-03-privatepreview --go` is specified on the command line.
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.

``` yaml $(tag) == 'package-flexibleserver-2022-03-privatepreview' && $(go)
rpname: postgresql
namespace: postgresqlflexibleservers
output-folder: $(go-sdk-folder)/services/$(rpname)/mgmt/2022-03-08-privatepreview/$(namespace)
```


### Tag: package-flexibleserver-2021-06 and go

These settings apply only when `--tag=package-flexibleserver-2021-06 --go` is specified on the command line.
Expand Down
12 changes: 12 additions & 0 deletions specification/postgresql/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@ tag: package-flexibleserver-2021-06
tag: package-2020-01-01
```

### Tag: package-flexibleserver-2022-03-privatepreview

These settings apply only when `--tag=package-flexibleserver-2022-03-privatepreview` is specified on the command line.

``` yaml $(tag) == 'flexibleserver-2022-03-privatepreview'
input-file:
- Microsoft.DBforPostgreSQL/preview/2022-03-08-privatepreview/getCachedServerName.json
- Microsoft.DBforPostgreSQL/stable/2021-06-01/postgresql.json
- Microsoft.DBforPostgreSQL/stable/2021-06-01/Databases.json
- Microsoft.DBforPostgreSQL/stable/2021-06-01/PrivateDnsZone.json
```

### Tag: package-2021-06-15-privatepreview

These settings apply only when `--tag=package-2021-06-15-privatepreview` is specified on the command line.
Expand Down
11 changes: 11 additions & 0 deletions specification/postgresql/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ batch:
- tag: package-2020-01-01
```

### Tag: package-flexibleserver-2022-03-privatepreview and python

These settings apply only when `--tag=package-flexibleserver-2022-03-privatepreview --python` is specified on the command line.
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.

``` yaml $(tag) == 'package-flexibleserver-2022-03-privatepreview' && $(python)
namespace: azure.mgmt.rdbms.postgresql_flexibleservers
output-folder: $(python-sdks-folder)/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers
```


### Tag: package-flexibleserver-2021-06 and python

These settings apply only when `--tag=package-flexibleserver-2021-06 --python` is specified on the command line.
Expand Down
12 changes: 12 additions & 0 deletions specification/postgresql/resource-manager/readme.typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ typescript:
generate-metadata: true
```

### Tag: package-flexibleserver-2022-03-privatepreview and TypeScript

These settings apply only when `--tag=package-flexibleserver-2022-03-privatepreview --typescript` is specified on the command line.
Please also specify `--typescript-sdks-folder=<path to the root directory of your azure-sdk-for-typescript clone>`.

``` yaml $(tag) == 'package-flexibleserver-2022-03-privatepreview' && $(typescript)
title: PostgreSQLManagementFlexibleServerClient
package-name: "@azure/arm-postgresql-flexible"
output-folder: "$(typescript-sdks-folder)/sdk/postgresql/arm-postgresql-flexible/"
```


### Tag: package-flexibleserver-2021-06 and TypeScript

These settings apply only when `--tag=package-flexibleserver-2021-06 --typescript` is specified on the command line.
Expand Down