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

Fix S360 items for FSPG swagger #18870

Merged
merged 21 commits into from
May 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
93c9a9a
Changed FSPG RestartParameter.failoverMode from string to enum for AP…
xunsun-commits Aug 23, 2021
51127e6
Change enum first letter to lower case
xunsun-commits Aug 23, 2021
0e57051
Change to upper case
xunsun-commits Aug 23, 2021
1edbd71
Merge branch 'Azure:main' into main
xunsun-commits Sep 7, 2021
6cc3100
Fix S360 bugs for swagger FSPG 2020-02-14-preview, 2021-06-01-preview…
xunsun-commits Sep 7, 2021
4c2ea90
Merge branch 'Azure:main' into main
xunsun-commits Oct 21, 2021
504ada6
Fix S360 item by adding default value to backupRetentionDays and main…
xunsun-commits Oct 21, 2021
c11ec59
Merge branch 'Azure:main' into main
xunsun-commits Nov 9, 2021
496db9f
Fix s360 bugs
xunsun-commits Nov 10, 2021
6831b88
Undo supportedIops change, will change in RP side
xunsun-commits Nov 10, 2021
056b3ff
Fix NameAvailability and ConfigurationProperties s360 bugs
xunsun-commits Nov 10, 2021
f34c171
Fix s360 bug for CloudError
xunsun-commits Nov 10, 2021
22f9982
Undo CloudError fix
xunsun-commits Nov 10, 2021
c490554
Fix string default value
xunsun-commits Nov 10, 2021
07a0feb
Remove server.tags because TrackedResource already has tags
xunsun-commits Nov 12, 2021
e4d13af
Merge branch 'Azure:main' into main
xunsun-commits Apr 29, 2022
e808a1f
Add missing properties for VirtualNetworkSubnetUsageResult
xunsun-commits Apr 29, 2022
65335b2
Add supportedHAMode for CapabilityProperties
xunsun-commits Apr 29, 2022
b917f3f
Add supportedHAMode into example
xunsun-commits Apr 29, 2022
1ccd5f1
Copy Databases.json from 2021-06-01 to 2021-06-01-preview
xunsun-commits Apr 29, 2022
cff2fb2
Change Databases.json to version 2021-06-01-preview
xunsun-commits Apr 29, 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,316 @@
{
"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": "2021-06-01-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}/databases/{databaseName}": {
"put": {
"tags": [
"Databases"
],
"operationId": "Databases_Create",
"x-ms-examples": {
"Create a database": {
"$ref": "./examples/DatabaseCreate.json"
}
},
"description": "Creates a new database or updates an existing database.",
"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/DatabaseNameParameter"
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/Database"
},
"description": "The required parameters for creating or updating a database."
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Database"
}
},
"201": {
"description": "Created",
"schema": {
"$ref": "#/definitions/Database"
}
},
"202": {
"description": "Accepted"
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-long-running-operation": true
},
"delete": {
"tags": [
"Databases"
],
"operationId": "Databases_Delete",
"x-ms-examples": {
"Delete a database": {
"$ref": "./examples/DatabaseDelete.json"
}
},
"description": "Deletes a database.",
"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/DatabaseNameParameter"
}
],
"responses": {
"200": {
"description": "OK"
},
"202": {
"description": "Accepted"
},
"204": {
"description": "NoContent"
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-long-running-operation": true
},
"get": {
"tags": [
"Databases"
],
"operationId": "Databases_Get",
"x-ms-examples": {
"Get a database": {
"$ref": "./examples/DatabaseGet.json"
}
},
"description": "Gets information about a database.",
"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/DatabaseNameParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Database"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/databases": {
"get": {
"tags": [
"Databases"
],
"operationId": "Databases_ListByServer",
"x-ms-examples": {
"List databases in a server": {
"$ref": "./examples/DatabasesListByServer.json"
}
},
"description": "List all the databases in 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/DatabaseListResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
}
},
"definitions": {
"DatabaseProperties": {
"properties": {
"charset": {
"type": "string",
"description": "The charset of the database."
},
"collation": {
"type": "string",
"description": "The collation of the database."
}
},
"description": "The properties of a database."
},
"Database": {
"properties": {
"properties": {
"$ref": "#/definitions/DatabaseProperties",
"x-ms-client-flatten": true,
"description": "The properties of a database."
},
"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": "Represents a Database."
},
"DatabaseListResult": {
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Database"
},
"description": "The list of databases housed in a server"
},
"nextLink": {
"description": "The link used to get the next page of databases.",
"type": "string"
}
},
"description": "A List of databases."
},
"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": {
"ServerNameParameter": {
"name": "serverName",
"in": "path",
"description": "The name of the server.",
"required": true,
"type": "string",
"x-ms-parameter-location": "method"
},
"DatabaseNameParameter": {
"name": "databaseName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the database.",
"x-ms-parameter-location": "method"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"parameters": {
"databaseName": "db1",
"serverName": "testserver",
"resourceGroupName": "TestGroup",
"api-version": "2021-06-01-preview",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff",
"parameters": {
"properties": {
"charset": "utf8",
"collation": "en_US.utf8"
}
}
},
"responses": {
"201": {
"body": {
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/databases/db1",
"name": "db1",
"type": "Microsoft.DBforPostgreSQL/flexibleServers/databases",
"properties": {
"charset": "utf8",
"collation": "en_US.utf8"
}
}
},
"200": {
"body": {
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/databases/db1",
"name": "db1",
"type": "Microsoft.DBforPostgreSQL/flexibleServers/databases",
"properties": {
"charset": "utf8",
"collation": "en_US.utf8"
}
}
},
"202": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"databaseName": "db1",
"serverName": "testserver",
"resourceGroupName": "TestGroup",
"api-version": "2021-06-01-preview",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"databaseName": "db1",
"serverName": "testserver",
"resourceGroupName": "TestGroup",
"api-version": "2021-06-01-preview",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/databases/db1",
"name": "db1",
"type": "Microsoft.DBforPostgreSQL/flexibleServers/databases",
"properties": {
"charset": "utf8",
"collation": "en_US.utf8"
}
}
}
}
}
Loading