Skip to content

Commit

Permalink
Draft PR for PostgreSQLHSC (Azure#11526)
Browse files Browse the repository at this point in the history
* 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
2 people authored and dabenhamMic committed Dec 14, 2020
1 parent 329b5cd commit c70df0b
Show file tree
Hide file tree
Showing 42 changed files with 4,472 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ CIDRs
CIFS
ciphertext
CISCOASA
Citus
claimCondition
claimType
clfs
Expand Down Expand Up @@ -1017,6 +1018,7 @@ MCAS
MDATP
mebibytes
mediaservices
Meru
Mesos
messagingplan
Metada
Expand Down
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"
}
}
}
}
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"
}
]
}
}
}
}
}
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"
}
}
]
}
}
}
}
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"
}
]
}
}
]
}
}
}
}
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": {}
}
}
Loading

0 comments on commit c70df0b

Please sign in to comment.