Skip to content

[Do Not Review] PostgreSQL 2022-03-08-preview API #20632

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

Draft
wants to merge 30 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
d2d32ea
Adds base for updating Microsoft.DBforPostgreSQL from version preview…
ambrahma Aug 2, 2022
fb6936f
Updates readme
ambrahma Aug 2, 2022
ccb1108
Updates API version in new specs and examples
ambrahma Aug 2, 2022
2bb0b2c
Splitted the swagger api changes to smaller chunks for easy readbilit…
ambrahma Aug 4, 2022
31ba535
Add administrators api and corresponding examples
ambrahma Aug 12, 2022
e6a05ae
Fix sematic validation errors by running oav tool
ambrahma Aug 12, 2022
8078091
Fix model validation errors by running oav tool for validate example
ambrahma Aug 12, 2022
e6338df
Fix lint errors using prettier
ambrahma Aug 12, 2022
4ad720a
Merge branch 'Azure:main' into dev-postgresql-Microsoft.DBforPostgreS…
ambrahma Aug 12, 2022
639e769
Fix some automated review comments
ambrahma Aug 12, 2022
f126c35
Merge branch 'dev-postgresql-Microsoft.DBforPostgreSQL-2022-03-08-pre…
ambrahma Aug 12, 2022
ee532cf
Fix lint diff errors
ambrahma Aug 15, 2022
5b3f7df
Fix ARM Id annotations for postgres
ambrahma Aug 16, 2022
31a0d4a
Remove duplicate operation
ambrahma Aug 16, 2022
45b85d5
Remove changes from existing preview version api
ambrahma Aug 16, 2022
5326623
Use systemData for read only properties required for PUT and Patch op…
ambrahma Aug 16, 2022
ee7ed90
Revert systemData changes
ambrahma Aug 17, 2022
29f4614
Include changes for PasswordAuthEnabled
ambrahma Aug 17, 2022
0e423e7
Remoe azure resource tag from ActiveDirectoryAdministrator object
ambrahma Aug 17, 2022
5db63a5
Fix the validation errors
ambrahma Aug 18, 2022
a60d9ac
Update swagger for CMK propertiesData encryption properties
ambrahma Aug 18, 2022
8a8c108
Fix spell check and reference errors
ambrahma Aug 19, 2022
5d8e659
Update swagger for GeoRestore
ambrahma Aug 19, 2022
0982aff
Update swagger for Replica
ambrahma Aug 19, 2022
8225a34
Update swagger for MVU
ambrahma Aug 19, 2022
6a38235
Fix prettier errors
ambrahma Aug 19, 2022
3e89368
Update readme and rename postgresql.json to a different file
ambrahma Sep 2, 2022
4899680
Fix validation errors
ambrahma Sep 2, 2022
fb7b2b0
Remove private preview version for 2022-03-08 from readme.md
ambrahma Sep 2, 2022
ef4e8bc
Fix linter issue and add fast provisioning properties
DaeunYim Sep 8, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,215 @@
{
"swagger": "2.0",
"info": {
"title": "PostgreSQLServerManagementClient",
"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.",
"version": "2022-03-08-preview"
},
"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/flexibleServers/{serverName}/backups/{backupName}": {
"get": {
"tags": [
"Backups"
],
"operationId": "Backups_Get",
"x-ms-examples": {
"Get a backup for a server": {
"$ref": "./examples/BackupGet.json"
}
},
"description": "List all the backups for a given server.",
"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/ServerNameParameter"
},
{
"$ref": "#/parameters/BackupNameParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/ServerBackup"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/backups": {
"get": {
"tags": [
"Backups"
],
"operationId": "Backups_ListByServer",
"x-ms-examples": {
"List backups for a server": {
"$ref": "./examples/BackupListByServer.json"
}
},
"description": "List all the backups for a given server.",
"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/ServerNameParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/ServerBackupListResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
}
},
"definitions": {
"ServerBackupProperties": {
"type": "object",
"properties": {
"backupType": {
"type": "string",
"description": "Backup type."
},
"completedTime": {
"type": "string",
"format": "date-time",
"description": "Backup completed time (ISO8601 format)."
},
"source": {
"type": "string",
"description": "Backup source"
}
},
"description": "The properties of a server backup."
},
"ServerBackup": {
"type": "object",
"properties": {
"properties": {
"$ref": "#/definitions/ServerBackupProperties",
"x-ms-client-flatten": true,
"description": "The properties of a server backup."
},
"systemData": {
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData",
"readOnly": true,
"description": "The system metadata relating to this resource."
}
},
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource"
}
],
"description": "Server backup properties"
},
"ServerBackupListResult": {
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/ServerBackup"
},
"description": "The list of backups of a server."
},
"nextLink": {
"description": "The link used to get the next page of operations.",
"type": "string"
}
},
"description": "A list of server backups."
},
"CloudError": {
"type": "object",
"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": {
"ServerNameParameter": {
"name": "serverName",
"in": "path",
"description": "The name of the server.",
"required": true,
"type": "string",
"x-ms-parameter-location": "method"
},
"BackupNameParameter": {
"name": "backupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the backup.",
"x-ms-parameter-location": "method"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
{
"swagger": "2.0",
"info": {
"version": "2022-03-08-preview",
"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/CachedServerName.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": "FlexibleServers.json#/definitions/ServerVersion",
"description": "PostgreSQL Server version."
},
"storage": {
"$ref": "FlexibleServers.json#/definitions/Storage",
"default": null,
"description": "Storage properties of a server."
},
"sku": {
"$ref": "FlexibleServers.json#/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"
},
"CloudError": {
"type": "object",
"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"
}
}
}
Loading