Skip to content

Commit

Permalink
CodeGen from PR 16526 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
ADP: Introduce api version 2021-11-01-preview (#16526)

* - Copy version 2021-11-01 from 2021-02-01
- Add new version to readme.md

* Update api version references to 2021-11-01

* Add api changes

* Fix validation

* Fix the rest of the validations and other readme's

* Prettier fix

* Fix python sdk generation

* Use multiapiscript instead of multiapi

* Try using only multiapi

* Fix python

* Align readmes

* Align python with sample

* Change to create mode

* Revert mode

* Update readme.python.md

* New data pool

* Add Access URI and use KeyVaultProperties for encryption

* Revert New data pool

* Remove the deduplication flag

Co-authored-by: Lior Abadi <[email protected]>
Co-authored-by: Eli Arbel <[email protected]>
Co-authored-by: Yuchao Yan <[email protected]>
  • Loading branch information
4 people committed Nov 23, 2021
1 parent 6785373 commit 0838548
Show file tree
Hide file tree
Showing 2 changed files with 334 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,328 @@
{
"id": "https://schema.management.azure.com/schemas/2021-11-01-preview/Microsoft.AutonomousDevelopmentPlatform.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Microsoft.AutonomousDevelopmentPlatform",
"description": "Microsoft AutonomousDevelopmentPlatform Resource Types",
"resourceDefinitions": {
"accounts": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2021-11-01-preview"
]
},
"location": {
"type": "string",
"description": "The geo-location where the resource lives"
},
"name": {
"oneOf": [
{
"type": "string",
"pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*",
"maxLength": 50
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The name of the ADP account"
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/AccountProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "ADP account properties"
},
"resources": {
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/definitions/accounts_dataPools_childResource"
}
]
}
},
"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.AutonomousDevelopmentPlatform/accounts"
]
}
},
"required": [
"apiVersion",
"location",
"name",
"properties",
"type"
],
"description": "Microsoft.AutonomousDevelopmentPlatform/accounts"
},
"accounts_dataPools": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2021-11-01-preview"
]
},
"name": {
"oneOf": [
{
"type": "string",
"pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*",
"maxLength": 50
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The name of the Data Pool"
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/DataPoolProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Data Pool properties"
},
"type": {
"type": "string",
"enum": [
"Microsoft.AutonomousDevelopmentPlatform/accounts/dataPools"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.AutonomousDevelopmentPlatform/accounts/dataPools"
}
},
"definitions": {
"AccountProperties": {
"type": "object",
"properties": {},
"description": "ADP account properties"
},
"accounts_dataPools_childResource": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2021-11-01-preview"
]
},
"name": {
"oneOf": [
{
"type": "string",
"pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*",
"maxLength": 50
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The name of the Data Pool"
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/DataPoolProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Data Pool properties"
},
"type": {
"type": "string",
"enum": [
"dataPools"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.AutonomousDevelopmentPlatform/accounts/dataPools"
},
"DataPoolEncryption": {
"type": "object",
"properties": {
"keyName": {
"type": "string",
"description": "The name of Key Vault key"
},
"keyVaultUri": {
"type": "string",
"description": "The URI of a soft delete-enabled Key Vault that is in the same location as the Data Pool location"
},
"keyVersion": {
"type": "string",
"description": "The version of Key Vault key"
},
"userAssignedIdentity": {
"type": "string",
"description": "The resource ID of a user-assigned Managed Identity used to access the encryption key in the Key Vault. Requires access to the key operations get, wrap, unwrap, and recover"
}
},
"required": [
"keyName",
"keyVaultUri",
"userAssignedIdentity"
],
"description": "Encryption properties of a Data Pool"
},
"DataPoolLocation": {
"type": "object",
"properties": {
"encryption": {
"oneOf": [
{
"$ref": "#/definitions/DataPoolEncryption"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Encryption properties of a Data Pool"
},
"name": {
"type": "string",
"description": "The location name"
},
"storageAccountCount": {
"oneOf": [
{
"type": "integer",
"minimum": 1
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The amount of storage accounts provisioned per Data Pool. Default: 5"
},
"storageSku": {
"oneOf": [
{
"$ref": "#/definitions/StorageSku"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The Storage SKU."
}
},
"required": [
"name"
],
"description": "Location of a Data Pool"
},
"DataPoolProperties": {
"type": "object",
"properties": {
"locations": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/DataPoolLocation"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Gets or sets the collection of locations where Data Pool resources should be created"
},
"tags": {
"oneOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
},
"properties": {}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Resource tags"
}
},
"description": "Data Pool properties"
},
"StorageSku": {
"type": "object",
"properties": {
"name": {
"oneOf": [
{
"type": "string",
"enum": [
"Standard_LRS",
"Standard_GRS",
"Standard_Ragrs",
"Standard_ZRS",
"Premium_LRS",
"Premium_ZRS",
"Standard_Gzrs",
"Standard_Ragzrs"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The SKU name."
}
},
"required": [
"name"
],
"description": "The Storage SKU."
}
}
}
6 changes: 6 additions & 0 deletions schemas/common/autogeneratedResources.json
Original file line number Diff line number Diff line change
Expand Up @@ -2158,6 +2158,12 @@
{
"$ref": "https://schema.management.azure.com/schemas/2021-02-01-preview/Microsoft.AutonomousDevelopmentPlatform.json#/resourceDefinitions/accounts_dataPools"
},
{
"$ref": "https://schema.management.azure.com/schemas/2021-11-01-preview/Microsoft.AutonomousDevelopmentPlatform.json#/resourceDefinitions/accounts"
},
{
"$ref": "https://schema.management.azure.com/schemas/2021-11-01-preview/Microsoft.AutonomousDevelopmentPlatform.json#/resourceDefinitions/accounts_dataPools"
},
{
"$ref": "https://schema.management.azure.com/schemas/2020-03-20/Microsoft.AVS.json#/resourceDefinitions/privateClouds"
},
Expand Down

0 comments on commit 0838548

Please sign in to comment.