Skip to content

Commit

Permalink
CodeGen from PR 12872 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 2bbb897904d5e15f3ded92be46d8c635ca54c3b9 into d6e60da2c05d341a2926fa9fec0e566f14e8e9ad
  • Loading branch information
SDKAuto committed Feb 6, 2021
1 parent 3805152 commit 4cb124e
Show file tree
Hide file tree
Showing 8 changed files with 10,430 additions and 4,516 deletions.
1,164 changes: 987 additions & 177 deletions schemas/2016-06-01/Microsoft.RecoveryServices.json

Large diffs are not rendered by default.

4,661 changes: 531 additions & 4,130 deletions schemas/2016-12-01/Microsoft.RecoveryServices.json

Large diffs are not rendered by default.

261 changes: 52 additions & 209 deletions schemas/2017-07-01/Microsoft.RecoveryServices.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,60 +7,62 @@
"vaults_backupFabrics_backupProtectionIntent": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"Microsoft.RecoveryServices/vaults/backupFabrics/backupProtectionIntent"
]
},
"apiVersion": {
"type": "string",
"enum": [
"2017-07-01"
]
},
"eTag": {
"type": "string",
"description": "Optional ETag."
},
"location": {
"type": "string",
"description": "Resource location."
},
"tags": {
"name": {
"type": "string",
"description": "Intent object name."
},
"properties": {
"oneOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
}
"$ref": "#/definitions/ProtectionIntent"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Resource tags."
"description": "Base class for backup ProtectionIntent."
},
"eTag": {
"type": "string",
"description": "Optional ETag."
},
"properties": {
"tags": {
"oneOf": [
{
"$ref": "#/definitions/ProtectionIntent"
"type": "object",
"additionalProperties": {
"type": "string"
},
"properties": {}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "ProtectionIntentResource properties"
"description": "Resource tags."
},
"type": {
"type": "string",
"enum": [
"Microsoft.RecoveryServices/vaults/backupFabrics/backupProtectionIntent"
]
}
},
"required": [
"name",
"type",
"apiVersion",
"properties"
"name",
"properties",
"type"
],
"description": "Microsoft.RecoveryServices/vaults/backupFabrics/backupProtectionIntent"
}
Expand All @@ -70,48 +72,15 @@
"type": "object",
"oneOf": [
{
"properties": {
"protectionIntentItemType": {
"oneOf": [
{
"type": "string",
"enum": [
"RecoveryServiceVaultItem"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
}
},
{
"allOf": [
{
"$ref": "#/definitions/AzureWorkloadAutoProtectionIntent"
}
],
"properties": {
"protectionIntentItemType": {
"oneOf": [
{
"type": "string",
"enum": [
"AzureWorkloadAutoProtectionIntent"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
}
"$ref": "#/definitions/AzureWorkloadAutoProtectionIntent"
}
],
"properties": {
"protectionIntentItemType": {
"type": "string"
"type": "string",
"enum": [
"RecoveryServiceVaultItem"
]
}
},
"required": [
Expand All @@ -121,32 +90,16 @@
},
"AzureResourceProtectionIntent": {
"type": "object",
"oneOf": [
{
"properties": {
"protectionIntentItemType": {
"oneOf": [
{
"type": "string",
"enum": [
"AzureResourceItem"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
}
}
],
"properties": {
"friendlyName": {
"type": "string",
"description": "Friendly name of the VM represented by this backup item."
},
"protectionIntentItemType": {
"type": "string"
"type": "string",
"enum": [
"AzureResourceItem"
]
}
},
"required": [
Expand All @@ -158,48 +111,15 @@
"type": "object",
"oneOf": [
{
"properties": {
"protectionIntentItemType": {
"oneOf": [
{
"type": "string",
"enum": [
"AzureWorkloadAutoProtectionIntent"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
}
},
{
"allOf": [
{
"$ref": "#/definitions/AzureWorkloadSQLAutoProtectionIntent"
}
],
"properties": {
"protectionIntentItemType": {
"oneOf": [
{
"type": "string",
"enum": [
"AzureWorkloadSQLAutoProtectionIntent"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
}
"$ref": "#/definitions/AzureWorkloadSQLAutoProtectionIntent"
}
],
"properties": {
"protectionIntentItemType": {
"type": "string"
"type": "string",
"enum": [
"AzureWorkloadAutoProtectionIntent"
]
}
},
"required": [
Expand All @@ -209,26 +129,13 @@
},
"AzureWorkloadSQLAutoProtectionIntent": {
"type": "object",
"oneOf": [
{
"properties": {
"protectionIntentItemType": {
"oneOf": [
{
"type": "string",
"enum": [
"AzureWorkloadSQLAutoProtectionIntent"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
}
}
],
"properties": {
"protectionIntentItemType": {
"type": "string",
"enum": [
"AzureWorkloadSQLAutoProtectionIntent"
]
},
"workloadItemType": {
"oneOf": [
{
Expand All @@ -248,9 +155,6 @@
}
],
"description": "Workload item type of the item for which intent is to be set."
},
"protectionIntentItemType": {
"type": "string"
}
},
"required": [
Expand All @@ -262,65 +166,10 @@
"type": "object",
"oneOf": [
{
"allOf": [
{
"$ref": "#/definitions/AzureRecoveryServiceVaultProtectionIntent"
}
],
"properties": {
"protectionIntentItemType": {
"oneOf": [
{
"type": "string",
"enum": [
"RecoveryServiceVaultItem"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
}
},
{
"allOf": [
{
"$ref": "#/definitions/AzureResourceProtectionIntent"
}
],
"properties": {
"protectionIntentItemType": {
"oneOf": [
{
"type": "string",
"enum": [
"AzureResourceItem"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
}
"$ref": "#/definitions/AzureRecoveryServiceVaultProtectionIntent"
},
{
"properties": {
"protectionIntentItemType": {
"oneOf": [
{
"type": "string",
"enum": [
"ProtectionIntent"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
}
"$ref": "#/definitions/AzureResourceProtectionIntent"
}
],
"properties": {
Expand All @@ -346,10 +195,6 @@
],
"description": "Type of backup management for the backed up item."
},
"sourceResourceId": {
"type": "string",
"description": "ARM ID of the resource to be backed up."
},
"itemId": {
"type": "string",
"description": "ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId"
Expand All @@ -376,13 +221,11 @@
],
"description": "Backup state of this backup item."
},
"protectionIntentItemType": {
"type": "string"
"sourceResourceId": {
"type": "string",
"description": "ARM ID of the resource to be backed up."
}
},
"required": [
"protectionIntentItemType"
],
"description": "Base class for backup ProtectionIntent."
}
}
Expand Down
Loading

0 comments on commit 4cb124e

Please sign in to comment.