From fe5494254f1eb23a290c1cfeb6a26bd907a6e23e Mon Sep 17 00:00:00 2001 From: Pradeep Kintali Date: Tue, 28 Jul 2020 12:25:09 -0700 Subject: [PATCH] Fixed lint errors. --- .../2020-02-14-privatepreview/postgresql.json | 68 ++++++++++++++----- 1 file changed, 51 insertions(+), 17 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2020-02-14-privatepreview/postgresql.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2020-02-14-privatepreview/postgresql.json index 1a1a91d2e269..b9d77bef14d3 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2020-02-14-privatepreview/postgresql.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2020-02-14-privatepreview/postgresql.json @@ -34,7 +34,7 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/flexibleServers/{serverName}": { "put": { "tags": [ "Servers" @@ -238,7 +238,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/flexibleServers": { "get": { "tags": [ "Servers" @@ -280,7 +280,7 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/flexibleServers": { + "/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSQL/flexibleServers": { "get": { "tags": [ "Servers" @@ -319,7 +319,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/restart": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/flexibleServers/{serverName}/restart": { "post": { "tags": [ "ServerRestart" @@ -362,7 +362,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/start": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/flexibleServers/{serverName}/start": { "post": { "tags": [ "ServerStart" @@ -405,7 +405,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/stop": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/flexibleServers/{serverName}/stop": { "post": { "tags": [ "ServerStop" @@ -448,7 +448,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}": { "put": { "tags": [ "FirewallRules" @@ -501,7 +501,12 @@ }, "202": { "description": "Accepted" - } + }, + "default": { + "schema":{ + "$ref": "#/definitions/CloudError" + } + } }, "x-ms-long-running-operation": true }, @@ -542,7 +547,12 @@ }, "204": { "description": "NoContent" - } + }, + "default": { + "schema":{ + "$ref": "#/definitions/CloudError" + } + } }, "x-ms-long-running-operation": true }, @@ -590,7 +600,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/flexibleServers/{serverName}/firewallRules": { "get": { "tags": [ "FirewallRules" @@ -622,6 +632,11 @@ "schema": { "$ref": "#/definitions/FirewallRuleListResult" } + }, + "default": { + "schema":{ + "$ref": "#/definitions/CloudError" + } } }, "x-ms-pageable": { @@ -629,7 +644,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/flexibleServers/{serverName}/configurations": { "get": { "tags": [ "Configurations" @@ -674,7 +689,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}": { "get": { "tags": [ "Configurations" @@ -719,7 +734,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/updateConfigurations": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/flexibleServers/{serverName}/updateConfigurations": { "put": { "tags": [ "Configurations" @@ -774,7 +789,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/maintenanceWindows/{maintenanceWindowName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/flexibleServers/{serverName}/maintenanceWindows/{maintenanceWindowName}": { "put": { "tags": [ "CustomerMaintenanceWindow" @@ -827,6 +842,11 @@ }, "202": { "description": "Accepted" + }, + "default": { + "schema":{ + "$ref": "#/definitions/CloudError" + } } }, "x-ms-long-running-operation": true @@ -868,6 +888,11 @@ }, "204": { "description": "NoContent" + }, + "default": { + "schema":{ + "$ref": "#/definitions/CloudError" + } } }, "x-ms-long-running-operation": true @@ -916,7 +941,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/maintenanceWindows": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/flexibleServers/{serverName}/maintenanceWindows": { "get": { "tags": [ "CustomerMaintenanceWindow" @@ -948,11 +973,16 @@ "schema": { "$ref": "#/definitions/CustomerMaintenanceWindowListResult" } + }, + "default": { + "schema":{ + "$ref": "#/definitions/CloudError" + } } } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/checkNameAvailability": { + "/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSQL/checkNameAvailability": { "post": { "tags": [ "CheckNameAvailability" @@ -997,7 +1027,7 @@ } } }, - "/providers/Microsoft.DBforPostgreSQL/operations": { + "/providers/Microsoft.DBForPostgreSQL/operations": { "get": { "tags": [ "Operations" @@ -1442,18 +1472,22 @@ "properties": { "dayOfWeek": { "type": "integer", + "format": "int64", "description": "The day of week of the customer maintenance window to start" }, "durationInMinutes": { "type": "integer", + "format": "int64", "description": "The duration of the customer maintenance window to run." }, "startHour": { "type": "integer", + "format": "int64", "description": "The starting hour of the customer maintenance window." }, "startMinute": { "type": "integer", + "format": "int64", "description": "The starting minutes of the customer maintenance window." } },