From f3357ee15d3bf6dbac6142eca9bb725f452759b4 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Wed, 19 Aug 2020 02:10:13 +0000 Subject: [PATCH] Generated from bb35b2c450fee8353c7e1fe95553d387b6a05cf7 Fixed json prettier issues. --- .../Microsoft.DBforPostgreSQL.json | 4 +- .../Microsoft.DBforPostgreSQL.json | 101 ++++ .../Microsoft.DBforPostgreSQL.json | 76 +++ .../Microsoft.DBforPostgreSQL.json | 567 ++++++++++++++++++ schemas/common/autogeneratedResources.json | 15 + 5 files changed, 761 insertions(+), 2 deletions(-) create mode 100644 schemas/2018-06-01-privatepreview/Microsoft.DBforPostgreSQL.json create mode 100644 schemas/2020-01-01-privatepreview/Microsoft.DBforPostgreSQL.json create mode 100644 schemas/2020-02-14-privatepreview/Microsoft.DBforPostgreSQL.json diff --git a/schemas/2017-12-01-preview/Microsoft.DBforPostgreSQL.json b/schemas/2017-12-01-preview/Microsoft.DBforPostgreSQL.json index e4b48e6b85..077b41a569 100644 --- a/schemas/2017-12-01-preview/Microsoft.DBforPostgreSQL.json +++ b/schemas/2017-12-01-preview/Microsoft.DBforPostgreSQL.json @@ -275,7 +275,7 @@ "oneOf": [ { "type": "string", - "pattern": "^.*/Default$" + "pattern": "^.*/default$" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" @@ -892,7 +892,7 @@ "name": { "type": "string", "enum": [ - "Default" + "default" ], "description": "The name of the threat detection policy." }, diff --git a/schemas/2018-06-01-privatepreview/Microsoft.DBforPostgreSQL.json b/schemas/2018-06-01-privatepreview/Microsoft.DBforPostgreSQL.json new file mode 100644 index 0000000000..4230c7059b --- /dev/null +++ b/schemas/2018-06-01-privatepreview/Microsoft.DBforPostgreSQL.json @@ -0,0 +1,101 @@ +{ + "id": "https://schema.management.azure.com/schemas/2018-06-01-privatepreview/Microsoft.DBforPostgreSQL.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.DBforPostgreSQL", + "description": "Microsoft DBforPostgreSQL Resource Types", + "resourceDefinitions": { + "servers_privateEndpointConnections": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-06-01-privatepreview" + ] + }, + "name": { + "type": "string", + "description": "The name of the private endpoint connection." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/PrivateEndpointConnectionProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of a private endpoint connection." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.DBforPostgreSQL/servers/privateEndpointConnections" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.DBforPostgreSQL/servers/privateEndpointConnections" + } + }, + "definitions": { + "PrivateEndpointConnectionProperties": { + "type": "object", + "properties": { + "privateEndpoint": { + "oneOf": [ + { + "$ref": "#/definitions/PrivateEndpointProperty" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "privateLinkServiceConnectionState": { + "oneOf": [ + { + "$ref": "#/definitions/PrivateLinkServiceConnectionStateProperty" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + } + }, + "description": "Properties of a private endpoint connection." + }, + "PrivateEndpointProperty": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Resource id of the private endpoint." + } + } + }, + "PrivateLinkServiceConnectionStateProperty": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "The private link service connection description." + }, + "status": { + "type": "string", + "description": "The private link service connection status." + } + }, + "required": [ + "description", + "status" + ] + } + } +} \ No newline at end of file diff --git a/schemas/2020-01-01-privatepreview/Microsoft.DBforPostgreSQL.json b/schemas/2020-01-01-privatepreview/Microsoft.DBforPostgreSQL.json new file mode 100644 index 0000000000..796b45ee72 --- /dev/null +++ b/schemas/2020-01-01-privatepreview/Microsoft.DBforPostgreSQL.json @@ -0,0 +1,76 @@ +{ + "id": "https://schema.management.azure.com/schemas/2020-01-01-privatepreview/Microsoft.DBforPostgreSQL.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.DBforPostgreSQL", + "description": "Microsoft DBforPostgreSQL Resource Types", + "resourceDefinitions": { + "servers_keys": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-01-01-privatepreview" + ] + }, + "name": { + "type": "string", + "description": "The name of the PostgreSQL Server key to be operated on (updated or created)." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ServerKeyProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties for a key execution." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.DBforPostgreSQL/servers/keys" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.DBforPostgreSQL/servers/keys" + } + }, + "definitions": { + "ServerKeyProperties": { + "type": "object", + "properties": { + "serverKeyType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "AzureKeyVault" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The key type like 'AzureKeyVault'." + }, + "uri": { + "type": "string", + "description": "The URI of the key." + } + }, + "required": [ + "serverKeyType" + ], + "description": "Properties for a key execution." + } + } +} \ No newline at end of file diff --git a/schemas/2020-02-14-privatepreview/Microsoft.DBforPostgreSQL.json b/schemas/2020-02-14-privatepreview/Microsoft.DBforPostgreSQL.json new file mode 100644 index 0000000000..ed5c40f5ed --- /dev/null +++ b/schemas/2020-02-14-privatepreview/Microsoft.DBforPostgreSQL.json @@ -0,0 +1,567 @@ +{ + "id": "https://schema.management.azure.com/schemas/2020-02-14-privatepreview/Microsoft.DBforPostgreSQL.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.DBForPostgreSql", + "description": "Microsoft DBForPostgreSql Resource Types", + "resourceDefinitions": { + "flexibleServers": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-02-14-privatepreview" + ] + }, + "identity": { + "oneOf": [ + { + "$ref": "#/definitions/Identity" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Identity for the resource." + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "type": "string", + "description": "The name of the server." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ServerProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of a server." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/flexibleServers_firewallRules_childResource" + }, + { + "$ref": "#/definitions/flexibleServers_maintenanceWindows_childResource" + } + ] + } + }, + "sku": { + "oneOf": [ + { + "$ref": "#/definitions/Sku" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Sku information related properties of a server." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.DBForPostgreSql/flexibleServers" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.DBForPostgreSql/flexibleServers" + }, + "flexibleServers_firewallRules": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-02-14-privatepreview" + ] + }, + "name": { + "type": "string", + "description": "The name of the server firewall rule." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/FirewallRuleProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of a server firewall rule." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.DBForPostgreSql/flexibleServers/firewallRules" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.DBForPostgreSql/flexibleServers/firewallRules" + }, + "flexibleServers_maintenanceWindows": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-02-14-privatepreview" + ] + }, + "name": { + "type": "string", + "description": "The name of the maintenance window." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/CustomerMaintenanceWindowProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of a server firewall rule." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.DBForPostgreSql/flexibleServers/maintenanceWindows" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.DBForPostgreSql/flexibleServers/maintenanceWindows" + } + }, + "definitions": { + "CustomerMaintenanceWindowProperties": { + "type": "object", + "properties": { + "dayOfWeek": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The day of week of the customer maintenance window to start" + }, + "durationInMinutes": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The duration of the customer maintenance window to run." + }, + "startHour": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The starting hour of the customer maintenance window." + }, + "startMinute": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The starting minutes of the customer maintenance window." + } + }, + "required": [ + "dayOfWeek", + "startHour", + "startMinute" + ], + "description": "The properties of a server firewall rule." + }, + "FirewallRuleProperties": { + "type": "object", + "properties": { + "endIpAddress": { + "oneOf": [ + { + "type": "string", + "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The end IP address of the server firewall rule. Must be IPv4 format." + }, + "startIpAddress": { + "oneOf": [ + { + "type": "string", + "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The start IP address of the server firewall rule. Must be IPv4 format." + } + }, + "required": [ + "endIpAddress", + "startIpAddress" + ], + "description": "The properties of a server firewall rule." + }, + "flexibleServers_firewallRules_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-02-14-privatepreview" + ] + }, + "name": { + "type": "string", + "description": "The name of the server firewall rule." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/FirewallRuleProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of a server firewall rule." + }, + "type": { + "type": "string", + "enum": [ + "firewallRules" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.DBForPostgreSql/flexibleServers/firewallRules" + }, + "flexibleServers_maintenanceWindows_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-02-14-privatepreview" + ] + }, + "name": { + "type": "string", + "description": "The name of the maintenance window." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/CustomerMaintenanceWindowProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of a server firewall rule." + }, + "type": { + "type": "string", + "enum": [ + "maintenanceWindows" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.DBForPostgreSql/flexibleServers/maintenanceWindows" + }, + "Identity": { + "type": "object", + "properties": { + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "SystemAssigned" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The identity type." + } + }, + "description": "Identity for the resource." + }, + "ServerProperties": { + "type": "object", + "properties": { + "administratorLogin": { + "type": "string", + "description": "The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation)." + }, + "administratorLoginPassword": { + "type": "string", + "format": "password", + "description": "The administrator login password (required for server creation)." + }, + "availabilityZone": { + "type": "string", + "description": "availability Zone information of the server." + }, + "createMode": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Default", + "PointInTimeRestore" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The mode to create a new PostgreSQL server." + }, + "displayName": { + "type": "string", + "description": "The display name of a server." + }, + "pointInTimeUTC": { + "type": "string", + "format": "date-time", + "description": "Restore point creation time (ISO8601 format), specifying the time to restore from." + }, + "publicNetworkAccess": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "public network access is enabled or not." + }, + "sourceServerName": { + "type": "string", + "description": "The source PostgreSQL server name to restore from." + }, + "standbyCount": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "stand by count value can be either 0 or 1" + }, + "storageProfile": { + "oneOf": [ + { + "$ref": "#/definitions/StorageProfile" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Storage Profile properties of a server" + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Application-specific metadata in the form of key-value pairs." + }, + "version": { + "oneOf": [ + { + "type": "string", + "enum": [ + "12" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "PostgreSQL Server version." + }, + "vnetInjArgs": { + "oneOf": [ + { + "$ref": "#/definitions/ServerPropertiesVnetInjArgs" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + } + }, + "description": "The properties of a server." + }, + "ServerPropertiesVnetInjArgs": { + "type": "object", + "properties": { + "delegatedSubnetName": { + "type": "string", + "description": "delegated subnet name" + }, + "delegatedVnetID": { + "type": "string", + "description": "delegated vNet ID" + }, + "delegatedVnetName": { + "type": "string", + "description": "delegated vNet name" + }, + "delegatedVnetResourceGroup": { + "type": "string", + "description": "delegated vNet resource group name" + } + } + }, + "Sku": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3." + }, + "tier": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Burstable", + "GeneralPurpose", + "MemoryOptimized" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The tier of the particular SKU, e.g. Burstable." + } + }, + "description": "Sku information related properties of a server." + }, + "StorageProfile": { + "type": "object", + "properties": { + "backupRetentionDays": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Backup retention days for the server." + }, + "storageMB": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Max storage allowed for a server." + } + }, + "description": "Storage Profile properties of a server" + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index a18ff59272..8eaa08f56b 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -2074,12 +2074,27 @@ { "$ref": "https://schema.management.azure.com/schemas/2018-06-01/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/servers_privateEndpointConnections" }, + { + "$ref": "https://schema.management.azure.com/schemas/2018-06-01-privatepreview/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/servers_privateEndpointConnections" + }, { "$ref": "https://schema.management.azure.com/schemas/2020-01-01/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/servers_keys" }, { "$ref": "https://schema.management.azure.com/schemas/2020-01-01/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/servers_securityAlertPolicies" }, + { + "$ref": "https://schema.management.azure.com/schemas/2020-01-01-privatepreview/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/servers_keys" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2020-02-14-privatepreview/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/flexibleServers" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2020-02-14-privatepreview/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/flexibleServers_firewallRules" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2020-02-14-privatepreview/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/flexibleServers_maintenanceWindows" + }, { "$ref": "https://schema.management.azure.com/schemas/2018-09-01-preview/Microsoft.DeploymentManager.json#/resourceDefinitions/artifactSources" },