Skip to content

Commit

Permalink
CodeGen from PR 14443 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge d518016e2ef069270cc87b4bc601dcaf70b9225d into 21bb9c34a94340e51b14759a5ab5791289fa5e58
  • Loading branch information
SDKAuto committed May 19, 2021
1 parent 4c18a75 commit 81ce4a3
Show file tree
Hide file tree
Showing 2 changed files with 253 additions and 0 deletions.
250 changes: 250 additions & 0 deletions schemas/2020-04-01-preview/Microsoft.KeyVault.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/definitions/vaults_keys_childResource"
},
{
"$ref": "#/definitions/vaults_accessPolicies_childResource"
},
Expand Down Expand Up @@ -207,6 +210,68 @@
],
"description": "Microsoft.KeyVault/vaults/accessPolicies"
},
"vaults_keys": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2020-04-01-preview"
]
},
"name": {
"oneOf": [
{
"type": "string",
"pattern": "^[a-zA-Z0-9-]{1,127}$"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The name of the key to be created."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/KeyProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The properties of the key."
},
"tags": {
"oneOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
},
"properties": {}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The tags that will be assigned to the key."
},
"type": {
"type": "string",
"enum": [
"Microsoft.KeyVault/vaults/keys"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.KeyVault/vaults/keys"
},
"vaults_privateEndpointConnections": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -377,6 +442,129 @@
],
"description": "A rule governing the accessibility of a vault from a specific ip address or ip range."
},
"KeyAttributes": {
"type": "object",
"properties": {
"enabled": {
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Determines whether or not the object is enabled."
},
"exp": {
"oneOf": [
{
"type": "integer"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Expiry date in seconds since 1970-01-01T00:00:00Z."
},
"nbf": {
"oneOf": [
{
"type": "integer"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Not before date in seconds since 1970-01-01T00:00:00Z."
}
},
"description": "The attributes of the key."
},
"KeyProperties": {
"type": "object",
"properties": {
"attributes": {
"oneOf": [
{
"$ref": "#/definitions/KeyAttributes"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The attributes of the key."
},
"curveName": {
"oneOf": [
{
"type": "string",
"enum": [
"P-256",
"P-384",
"P-521",
"P-256K"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The elliptic curve name. For valid values, see JsonWebKeyCurveName."
},
"keyOps": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string",
"enum": [
"encrypt",
"decrypt",
"sign",
"verify",
"wrapKey",
"unwrapKey",
"import"
]
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"keySize": {
"oneOf": [
{
"type": "integer"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The key size in bits. For example: 2048, 3072, or 4096 for RSA."
},
"kty": {
"oneOf": [
{
"type": "string",
"enum": [
"EC",
"EC-HSM",
"RSA",
"RSA-HSM"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The type of the key. For valid values, see JsonWebKeyType."
}
},
"description": "The properties of the key."
},
"ManagedHsmProperties": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1129,6 +1317,68 @@
],
"description": "Microsoft.KeyVault/vaults/accessPolicies"
},
"vaults_keys_childResource": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2020-04-01-preview"
]
},
"name": {
"oneOf": [
{
"type": "string",
"pattern": "^[a-zA-Z0-9-]{1,127}$"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The name of the key to be created."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/KeyProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The properties of the key."
},
"tags": {
"oneOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
},
"properties": {}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The tags that will be assigned to the key."
},
"type": {
"type": "string",
"enum": [
"keys"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.KeyVault/vaults/keys"
},
"vaults_privateEndpointConnections_childResource": {
"type": "object",
"properties": {
Expand Down
3 changes: 3 additions & 0 deletions schemas/common/autogeneratedResources.json
Original file line number Diff line number Diff line change
Expand Up @@ -5731,6 +5731,9 @@
{
"$ref": "https://schema.management.azure.com/schemas/2020-04-01-preview/Microsoft.KeyVault.json#/resourceDefinitions/vaults_accessPolicies"
},
{
"$ref": "https://schema.management.azure.com/schemas/2020-04-01-preview/Microsoft.KeyVault.json#/resourceDefinitions/vaults_keys"
},
{
"$ref": "https://schema.management.azure.com/schemas/2020-04-01-preview/Microsoft.KeyVault.json#/resourceDefinitions/vaults_privateEndpointConnections"
},
Expand Down

0 comments on commit 81ce4a3

Please sign in to comment.