Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR recoveryservicesbackup] Consolidating APIs in latest version[s360] #1633

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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