forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Draft PR for PostgreSQLHSC (Azure#11526)
* New Readme Config File * New Go Language Readme Config File * New Typescript Language Readme Config File * New Python Language Readme Config File * New C# Language Readme Config File * New Ruby Language Readme Config File * New Swagger Spec File * New Swagger Example Spec File * initial swagger * common-types path fix * definition reference fix * Change publicIpRequested boolean with publicNetworkAccess enum * Change serverGroups to ServerGroupsv2 in path and id * Add responses to examples * Add missing location property to examples * Add missing locations to requests * Remove required name * Fix server group update * Convert some enums to boolean and renamings * Fix typo * Fix role properties problem * Add Citus to custom words * Run json prettier * Change responce for put server group * Fix role empty properties * Add state to server group * Update readmes * Add resourceProviderType to server group * Add sourceLocation to server group PITR * Change backup retention minutes to days * Fix linter errors * Add EarliestRestoreTime to server group * Fix semantic * Add Meru to custom words * Proviver name to pascal case * Add format for integers * Add 204 to delete * Add server group list endpoints * Fix listing operations * Change servers operation id * Remove haState from server role group * Add missing state to ServerState * Refactor configuration API * Add missing readOnly properties * Move ServerGroupConfig.defaultValue to ServerRoleGroupConfig * Rename serverRoleGroupConfigurationValues to serverRoleGroupConfigurations * Rename java namespace * Add systemData to all resources * Fix CheckNameAvailability warning * Run prettier * Add "fullyQualifiedDomainName" to server * Remove update from createMode * Remove createMode discriminator * Update ServerGet example * Add citusVersion to ServerGroupServer * Update descriptions for zfs and mx * Separate server group update properties * Add MMW to server group * Update sdk READMEs for namespaces * Refactor booleans with "enable..." prefix * Rename version with postgresqlVersion * Change vnetInjArgs to delegatedSubnetArguments * Add enableShardsOnCoordinator to server group * Add availability zone to server group and server group server * Add standbyAvailabilityZone to examples Co-authored-by: Enes Cakir <enes@cakir.web.tr>
- Loading branch information
1 parent
329b5cd
commit c70df0b
Showing
42 changed files
with
4,472 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
20 changes: 20 additions & 0 deletions
20
...oft.DBforPostgreSQL/preview/2020-10-05-privatepreview/examples/CheckNameAvailability.json
This file contains 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,20 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", | ||
"api-version": "2020-10-05-privatepreview", | ||
"nameAvailabilityRequest": { | ||
"name": "name1", | ||
"type": "Microsoft.DBforPostgreSQL/serverGroupsv2" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nameAvailable": true, | ||
"message": "", | ||
"name": "name1", | ||
"type": "Microsoft.DBforPostgreSQL/serverGroupsv2" | ||
} | ||
} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...icrosoft.DBforPostgreSQL/preview/2020-10-05-privatepreview/examples/ConfigurationGet.json
This file contains 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,45 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", | ||
"resourceGroupName": "TestResourceGroup", | ||
"serverGroupName": "hsctestsg", | ||
"configurationName": "array_nulls", | ||
"api-version": "2020-10-05-privatepreview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/configurations/array_nulls", | ||
"name": "array_nulls", | ||
"type": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations", | ||
"systemData": { | ||
"createdBy": "user1", | ||
"createdByType": "User", | ||
"createdAt": "2020-01-01T17:18:19.1234567Z", | ||
"lastModifiedBy": "user2", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z" | ||
}, | ||
"properties": { | ||
"description": "Enable input of NULL elements in arrays.", | ||
"dataType": "Boolean", | ||
"allowedValues": "on,off", | ||
"serverRoleGroupConfigurations": [ | ||
{ | ||
"role": "Coordinator", | ||
"value": "on", | ||
"defaultValue": "on", | ||
"source": "system-default" | ||
}, | ||
{ | ||
"role": "Worker", | ||
"value": "off", | ||
"defaultValue": "on", | ||
"source": "user-override" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
80 changes: 80 additions & 0 deletions
80
...DBforPostgreSQL/preview/2020-10-05-privatepreview/examples/ConfigurationListByServer.json
This file contains 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,80 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", | ||
"resourceGroupName": "TestResourceGroup", | ||
"serverGroupName": "hsctestsg", | ||
"serverName": "testserver", | ||
"api-version": "2020-10-05-privatepreview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/servers/testserver/configurations/application_name", | ||
"name": "application_name", | ||
"type": "Microsoft.DBforPostgreSQL/serverGroupsv2/servers/configurations", | ||
"systemData": { | ||
"createdBy": "user1", | ||
"createdByType": "User", | ||
"createdAt": "2020-01-01T17:18:19.1234567Z", | ||
"lastModifiedBy": "user2", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z" | ||
}, | ||
"properties": { | ||
"value": "", | ||
"description": "Sets the application name to be reported in statistics and logs.", | ||
"defaultValue": "", | ||
"dataType": "String", | ||
"allowedValues": "[A-Za-z0-9._-]*", | ||
"source": "system-default" | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/servers/testserver/configurations/array_nulls", | ||
"name": "array_nulls", | ||
"type": "Microsoft.DBforPostgreSQL/serverGroupsv2/servers/configurations", | ||
"systemData": { | ||
"createdBy": "user1", | ||
"createdByType": "User", | ||
"createdAt": "2020-01-01T17:18:19.1234567Z", | ||
"lastModifiedBy": "user2", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z" | ||
}, | ||
"properties": { | ||
"value": "on", | ||
"description": "Enables input of NULL elements in arrays.", | ||
"defaultValue": "on", | ||
"dataType": "Boolean", | ||
"allowedValues": "on,off", | ||
"source": "system-default" | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/servers/testserver/configurations/autovacuum", | ||
"name": "autovacuum", | ||
"type": "Microsoft.DBforPostgreSQL/serverGroupsv2/servers/configurations", | ||
"systemData": { | ||
"createdBy": "user1", | ||
"createdByType": "User", | ||
"createdAt": "2020-01-01T17:18:19.1234567Z", | ||
"lastModifiedBy": "user2", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z" | ||
}, | ||
"properties": { | ||
"value": "on", | ||
"description": "Starts the autovacuum subprocess.", | ||
"defaultValue": "on", | ||
"dataType": "Boolean", | ||
"allowedValues": "on,off", | ||
"source": "system-default" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
144 changes: 144 additions & 0 deletions
144
...PostgreSQL/preview/2020-10-05-privatepreview/examples/ConfigurationListByServerGroup.json
This file contains 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,144 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", | ||
"resourceGroupName": "TestResourceGroup", | ||
"serverGroupName": "hsctestsg", | ||
"api-version": "2020-10-05-privatepreview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/configurations/array_nulls", | ||
"name": "array_nulls", | ||
"type": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations", | ||
"systemData": { | ||
"createdBy": "user1", | ||
"createdByType": "User", | ||
"createdAt": "2020-01-01T17:18:19.1234567Z", | ||
"lastModifiedBy": "user2", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z" | ||
}, | ||
"properties": { | ||
"description": "Enable input of NULL elements in arrays.", | ||
"dataType": "Boolean", | ||
"allowedValues": "on,off", | ||
"serverRoleGroupConfigurations": [ | ||
{ | ||
"role": "Coordinator", | ||
"value": "on", | ||
"defaultValue": "on", | ||
"source": "system-default" | ||
}, | ||
{ | ||
"role": "Worker", | ||
"value": "off", | ||
"defaultValue": "on", | ||
"source": "user-override" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/configurations/backslash_quote", | ||
"name": "backslash_quote", | ||
"type": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations", | ||
"systemData": { | ||
"createdBy": "user1", | ||
"createdByType": "User", | ||
"createdAt": "2020-01-01T17:18:19.1234567Z", | ||
"lastModifiedBy": "user2", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z" | ||
}, | ||
"properties": { | ||
"description": "Sets whether \"\\'\" is allowed in string literals.", | ||
"dataType": "Enumeration", | ||
"allowedValues": "safe_encoding,on,off", | ||
"serverRoleGroupConfigurations": [ | ||
{ | ||
"role": "Coordinator", | ||
"value": "off", | ||
"defaultValue": "safe_encoding", | ||
"source": "user-override" | ||
}, | ||
{ | ||
"role": "Worker", | ||
"value": "safe_encoding", | ||
"defaultValue": "safe_encoding", | ||
"source": "system-default" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/configurations/work_mem", | ||
"name": "work_mem", | ||
"type": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations", | ||
"systemData": { | ||
"createdBy": "user1", | ||
"createdByType": "User", | ||
"createdAt": "2020-01-01T17:18:19.1234567Z", | ||
"lastModifiedBy": "user2", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z" | ||
}, | ||
"properties": { | ||
"description": "Sets the amount of memory to be used by internal sort operations and hash tables before writing to temporary disk files.", | ||
"dataType": "Integer", | ||
"allowedValues": "4096-2097151", | ||
"serverRoleGroupConfigurations": [ | ||
{ | ||
"role": "Coordinator", | ||
"value": "158720", | ||
"defaultValue": "158720", | ||
"source": "system-default" | ||
}, | ||
{ | ||
"role": "Worker", | ||
"value": "115712", | ||
"defaultValue": "115712", | ||
"source": "system-default" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/configurations/client_encoding", | ||
"name": "client_encoding", | ||
"type": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations", | ||
"systemData": { | ||
"createdBy": "user1", | ||
"createdByType": "User", | ||
"createdAt": "2020-01-01T17:18:19.1234567Z", | ||
"lastModifiedBy": "user2", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z" | ||
}, | ||
"properties": { | ||
"description": "Sets the client's character set encoding.", | ||
"dataType": "Enumeration", | ||
"allowedValues": "BIG5,EUC_CN,EUC_JP,EUC_JIS_2004,EUC_KR,EUC_TW,GB18030,GBK,ISO_8859_5,ISO_8859_6,ISO_8859_7,ISO_8859_8,JOHAB,KOI8R,KOI8U,LATIN1,LATIN2,LATIN3,LATIN4,LATIN5,LATIN6,LATIN7,LATIN8,LATIN9,LATIN10,MULE_INTERNAL,SJIS,SHIFT_JIS_2004,SQL_ASCII,UHC,UTF8,WIN866,WIN874,WIN1250,WIN1251,WIN1252,WIN1253,WIN1254,WIN1255,WIN1256,WIN1257,WIN1258", | ||
"serverRoleGroupConfigurations": [ | ||
{ | ||
"role": "Coordinator", | ||
"value": "ISO_8859_7", | ||
"defaultValue": "sql_ascii", | ||
"source": "user-override" | ||
}, | ||
{ | ||
"role": "Worker", | ||
"value": "ISO_8859_7", | ||
"defaultValue": "sql_ascii", | ||
"source": "user-override" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
...osoft.DBforPostgreSQL/preview/2020-10-05-privatepreview/examples/ConfigurationUpdate.json
This file contains 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,53 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", | ||
"resourceGroupName": "TestResourceGroup", | ||
"serverGroupName": "hsctestsg", | ||
"configurationName": "array_nulls", | ||
"api-version": "2020-10-05-privatepreview", | ||
"parameters": { | ||
"properties": { | ||
"serverRoleGroupConfigurations": [ | ||
{ | ||
"role": "Coordinator", | ||
"value": "on" | ||
}, | ||
{ | ||
"role": "Worker", | ||
"value": "off" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg/configurations/array_nulls", | ||
"name": "array_nulls", | ||
"type": "Microsoft.DBforPostgreSQL/serverGroupsv2/configurations", | ||
"systemData": { | ||
"createdBy": "user1", | ||
"createdByType": "User", | ||
"createdAt": "2020-01-01T17:18:19.1234567Z", | ||
"lastModifiedBy": "user2", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z" | ||
}, | ||
"properties": { | ||
"serverRoleGroupConfigurations": [ | ||
{ | ||
"role": "Coordinator", | ||
"value": "on" | ||
}, | ||
{ | ||
"role": "Worker", | ||
"value": "off" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
Oops, something went wrong.