Skip to content

Commit

Permalink
ASR: Adding new Resource replication protection intent and its associ…
Browse files Browse the repository at this point in the history
…ated PUT and GET call (Azure#10484)

* protectionIntent

* protectionIntent

* protectionIntent

* pi

* protectionIntent

* protectionIntent

* protectionIntent

* pi

* pi

* model

* model

* fixing the default response

* fixing swagger checks

* fixing errors

* fixing errors

* fixing validations error

* fixing prettier checks

* fixing

* fixing

* replication Intent fixing

* spelling

* fixing camel case

* Updating as per latest

* fixing syntax issues

* fixing few issues

* fixing camel case

* fixing syntax issues

* fixing prettier issues

* fixing linter issues

* suppressing the default error response message
  • Loading branch information
ayfathim authored and giromm2ms committed Dec 20, 2020
1 parent 5f354c3 commit ad3d5f1
Show file tree
Hide file tree
Showing 5 changed files with 932 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"parameters": {
"api-version": "2018-07-10",
"intentObjectName": "vm1",
"resourceName": "vault1",
"resourceGroupName": "resourceGroupPS1",
"subscriptionId": "509099b2-9d2c-4636-b43e-bd5cafb6be69",
"input": {
"properties": {
"providerSpecificDetails": {
"instanceType": "A2A",
"fabricObjectId": "/subscriptions/509099b2-9d2c-4636-b43e-bd5cafb6be69/resourceGroups/removeOne/providers/Microsoft.Compute/virtualMachines/vmPpgAv5",
"primaryLocation": "eastUs2",
"recoveryLocation": "westus2",
"recoverySubscriptionId": "ed5bcdf6-d61e-47bd-8ea9-f2bd379a2640",
"recoveryAvailabilityType": "Single",
"recoveryResourceGroupId": "/subscriptions/509099b2-9d2c-4636-b43e-bd5cafb6be69/resourceGroups/removeOne-asr"
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/Subscriptions/509099b2-9d2c-4636-b43e-bd5cafb6be69/resourceGroups/2007vttp/providers/Microsoft.RecoveryServices/vaults/tp2007vt/replicationProtectionIntents/vm1",
"name": "vm1",
"type": "Microsoft.RecoveryServices/vaults/replicationProtectionIntents",
"properties": {
"friendlyName": "vm1",
"jobId": "/Subscriptions/d90d145a-4cdd-45a3-b2c4-971d69775278/resourceGroups/a2acl-rg-vault-prod-gip-ccy/providers/Microsoft.RecoveryServices/vaults/a2acl-vault-prod-gip-ccy/replicationJobs/02004ea7-d498-4bb4-bdeb-cdb611706867",
"jobState": "InProgress",
"providerSpecificDetails": {
"instanceType": "A2A"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"api-version": "2018-07-10",
"intentObjectName": "vm1",
"resourceName": "vault1",
"resourceGroupName": "resourceGroupPS1",
"subscriptionId": "509099b2-9d2c-4636-b43e-bd5cafb6be69"
},
"responses": {
"200": {
"body": {
"id": "/Subscriptions/509099b2-9d2c-4636-b43e-bd5cafb6be69/resourceGroups/2007vttp/providers/Microsoft.RecoveryServices/vaults/tp2007vt/replicationProtectionIntents/vm1",
"name": "vm1",
"type": "Microsoft.RecoveryServices/vaults/replicationProtectionIntents",
"properties": {
"friendlyName": "vm1",
"jobId": "/Subscriptions/d90d145a-4cdd-45a3-b2c4-971d69775278/resourceGroups/a2acl-rg-vault-prod-gip-ccy/providers/Microsoft.RecoveryServices/vaults/a2acl-vault-prod-gip-ccy/replicationJobs/02004ea7-d498-4bb4-bdeb-cdb611706867",
"jobState": "InProgress",
"providerSpecificDetails": {
"instanceType": "A2A",
"fabricObjectId": "/subscriptions/509099b2-9d2c-4636-b43e-bd5cafb6be69/resourceGroups/removeOne/providers/Microsoft.Compute/virtualMachines/vmPpgAv5",
"primaryLocation": "eastUs2",
"recoveryLocation": "westus2",
"recoverySubscriptionId": "ed5bcdf6-d61e-47bd-8ea9-f2bd379a2640",
"recoveryAvailabilityType": "Single"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"api-version": "2018-07-10",
"resourceName": "2007vttp",
"resourceGroupName": "resourceGroupPS1",
"subscriptionId": "509099b2-9d2c-4636-b43e-bd5cafb6be69"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/Subscriptions/509099b2-9d2c-4636-b43e-bd5cafb6be69/resourceGroups/2007vttp/providers/Microsoft.RecoveryServices/vaults/tp2007vt/replicationProtectionIntents/vm1",
"name": "vm1",
"type": "Microsoft.RecoveryServices/vaults/replicationProtectionIntents",
"properties": {
"friendlyName": "vm1",
"jobId": "/Subscriptions/d90d145a-4cdd-45a3-b2c4-971d69775278/resourceGroups/a2acl-rg-vault-prod-gip-ccy/providers/Microsoft.RecoveryServices/vaults/a2acl-vault-prod-gip-ccy/replicationJobs/02004ea7-d498-4bb4-bdeb-cdb611706867",
"jobState": "InProgress",
"providerSpecificDetails": {
"instanceType": "A2A",
"fabricObjectId": "/subscriptions/509099b2-9d2c-4636-b43e-bd5cafb6be69/resourceGroups/removeOne/providers/Microsoft.Compute/virtualMachines/vmPpgAv5",
"primaryLocation": "eastUs2",
"recoveryLocation": "westus2",
"recoverySubscriptionId": "ed5bcdf6-d61e-47bd-8ea9-f2bd379a2640",
"recoveryAvailabilityType": "Single"
}
}
}
]
}
}
}
}
Loading

0 comments on commit ad3d5f1

Please sign in to comment.