-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Dev postgresql microsoft.d bfor postgre sql 2022 03 08 preview #20212
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
Merged
tianxchen-ms
merged 85 commits into
Azure:main
from
ambrahma:dev-postgresql-Microsoft.DBforPostgreSQL-2022-03-08-preview
Oct 21, 2022
Merged
Changes from all commits
Commits
Show all changes
85 commits
Select commit
Hold shift + click to select a range
d2d32ea
Adds base for updating Microsoft.DBforPostgreSQL from version preview…
ambrahma fb6936f
Updates readme
ambrahma ccb1108
Updates API version in new specs and examples
ambrahma 2bb0b2c
Splitted the swagger api changes to smaller chunks for easy readbilit…
ambrahma 31ba535
Add administrators api and corresponding examples
ambrahma e6a05ae
Fix sematic validation errors by running oav tool
ambrahma 8078091
Fix model validation errors by running oav tool for validate example
ambrahma e6338df
Fix lint errors using prettier
ambrahma 4ad720a
Merge branch 'Azure:main' into dev-postgresql-Microsoft.DBforPostgreS…
ambrahma 639e769
Fix some automated review comments
ambrahma f126c35
Merge branch 'dev-postgresql-Microsoft.DBforPostgreSQL-2022-03-08-pre…
ambrahma ee532cf
Fix lint diff errors
ambrahma 5b3f7df
Fix ARM Id annotations for postgres
ambrahma 31a0d4a
Remove duplicate operation
ambrahma 45b85d5
Remove changes from existing preview version api
ambrahma 5326623
Use systemData for read only properties required for PUT and Patch op…
ambrahma ee7ed90
Revert systemData changes
ambrahma 29f4614
Include changes for PasswordAuthEnabled
ambrahma 0e423e7
Remoe azure resource tag from ActiveDirectoryAdministrator object
ambrahma 5db63a5
Fix the validation errors
ambrahma a60d9ac
Update swagger for CMK propertiesData encryption properties
ambrahma 8a8c108
Fix spell check and reference errors
ambrahma 5d8e659
Update swagger for GeoRestore
ambrahma 0982aff
Update swagger for Replica
ambrahma 8225a34
Update swagger for MVU
ambrahma 6a38235
Fix prettier errors
ambrahma 3e89368
Update readme and rename postgresql.json to a different file
ambrahma 4899680
Fix validation errors
ambrahma fb7b2b0
Remove private preview version for 2022-03-08 from readme.md
ambrahma ef4e8bc
Fix linter issue and add fast provisioning properties
DaeunYim c0d5a39
Fixed review comments for Backups and CheckNameAvailability
ambrahma 97f06cd
Uodated duplicate Id for check name availability and undo the changes…
ambrahma 08d34e6
Add 2022-03 preview and private preview versions for readme.go.md
ambrahma d0dc2bc
Pass default value of true for passwordAuthEnabled
ambrahma fef5259
pass true instead of "true"
ambrahma 6137680
Added subnetName as id identifier for array obkect for DelegatedSubne…
ambrahma 33aa911
Updated x-ms-identifiers to not be an empty array for all objects in …
ambrahma 489cb01
Add missing x-ms-identifier
ambrahma a0ab836
Add support for supportedVersionsToUpgrade property in lication capab…
ambrahma c2ca6c3
Fix validation issue
ambrahma 7b772c1
Fix validation error related to Server Versions
ambrahma c1ff5c0
Add new property for Capabilities api
ambrahma 6a8039a
Fix validation errors
ambrahma f560cbc
Fix LroLocationHeader and ResourceNameRestrcition errors
ambrahma c88a403
Fix validation error x-ms-long-running-operation-options
ambrahma 2e07ed0
Try to match the new version with stable version
ambrahma 3e538d9
Revert changes to stable api version
ambrahma dd7228b
Reanme Databases.json to Database.json
ambrahma 0859a72
Fix reference error
ambrahma cba6683
Add minLength validation for ServerNameParameter
ambrahma 98e7fa6
Add minLength for LocationNameParameter
ambrahma c197885
Fix ResourceNameRestriction for ServerNameParameter
ambrahma 15132fd
Fix ResourceNameRestriction for LocationNameParameter
ambrahma 815ef75
python config
msyyc 65f31d9
Fix few staging validations
ambrahma e207605
Merge branch 'dev-postgresql-Microsoft.DBforPostgreSQL-2022-03-08-pre…
ambrahma 1106223
Fix few validation errors for name restriction
ambrahma b8935e6
Fix few validation errors for name restriction and duplicated model v…
ambrahma 760ed0d
Fix validation errors for configurations api
ambrahma fdb8ca5
Fix model validation error
ambrahma 3cd29d3
Remove location property for Server Update
ambrahma b7d0940
Fix validation error
ambrahma 9f997f6
Fix model validation
ambrahma 7257e53
Fix validation errors for administrators api
ambrahma 684290f
Fix errors
ambrahma 6354e35
Fix validation errors for Database and Configuration
ambrahma ab7fbc3
Fix validation errors
ambrahma 23c25c6
Fix review comment to utilize common parameter and definitions
ambrahma 7793f78
Fix path for systemData
ambrahma 0e49eb8
remove get cached server name API
DaeunYim 3ab87ae
Update readme file to remove non-existing reference and fix review co…
ambrahma 48cb3fd
Fix review comments
ambrahma 2d2d903
Fix review comments to rename operationId to remove Execute
ambrahma c4be72c
Fix review comment
ambrahma e6be137
Fix unresolved reference
ambrahma efac1c8
Added pattern validation for charset and collation
ambrahma 84a017e
Add backupType as enum as a string
ambrahma 5700959
Fix enum case error for backup type
ambrahma aff38dd
Revert name of Database.json back to Databases.json
ambrahma 13d3ac1
Add Databases.json in readme file
ambrahma c231660
Remove 202 for Administrators PUT call
ambrahma 1d3b09b
Update name for Identity object to differentitate it from common type
ambrahma 32abcc7
Renamed Sku to have different name then the one in comman types as th…
ambrahma 593218a
Revert operationId change to avoid SDK and CLI impact to end users
ambrahma f3f22fb
Update operation id for consistency across mysql and postgres and to …
ambrahma File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
403 changes: 403 additions & 0 deletions
403
...resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Administrators.json
Large diffs are not rendered by default.
Oops, something went wrong.
206 changes: 206 additions & 0 deletions
206
...gresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/Backups.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,206 @@ | ||
| { | ||
| "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": "Get specific backup for a given server.", | ||
| "parameters": [ | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "./common-types.json#/parameters/ServerNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/BackupNameParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK", | ||
| "schema": { | ||
| "$ref": "#/definitions/ServerBackup" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "/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/v3/types.json#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "./common-types.json#/parameters/ServerNameParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK", | ||
| "schema": { | ||
| "$ref": "#/definitions/ServerBackupListResult" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-pageable": { | ||
| "nextLinkName": "nextLink" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "definitions": { | ||
| "ServerBackupProperties": { | ||
| "type": "object", | ||
| "properties": { | ||
| "backupType": { | ||
| "type": "string", | ||
| "description": "Backup type.", | ||
| "enum": [ | ||
| "Full" | ||
| ], | ||
| "x-ms-enum": { | ||
| "name": "Origin", | ||
| "modelAsString": true | ||
| } | ||
| }, | ||
| "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/v3/types.json#/definitions/systemData", | ||
| "readOnly": true, | ||
| "description": "The system metadata relating to this resource." | ||
| } | ||
| }, | ||
| "allOf": [ | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v3/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." | ||
| } | ||
ambrahma marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| }, | ||
| "parameters": { | ||
| "BackupNameParameter": { | ||
| "name": "backupName", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string", | ||
| "description": "The name of the backup.", | ||
| "minLength": 1, | ||
| "pattern": "^[-\\w\\._]+$", | ||
| "x-ms-parameter-location": "method" | ||
| } | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.