Skip to content

Commit

Permalink
Fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
chandrasekarsrinivasan committed Aug 3, 2018
1 parent b4ca3e6 commit 6d2f752
Show file tree
Hide file tree
Showing 10 changed files with 135 additions and 90 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"api-version": "2018-07-01",
"subscriptionId" : "subid",
"resourceGroupName" : "rg1",
"networkSecurityGroupName" : "testPolicy",
"serviceEndpointPolicyName" : "testPolicy",
"parameters": {}
},
"responses" : {
Expand All @@ -15,48 +15,20 @@
"location": "westus",
"properties":
{
"serviceEndpointPolicyDefinitions": [
{
"name": "StorageServiceEndpointPolicyDefinition",
"properties": {
"description": "Storage Service EndpointPolicy Definition",
"service": "Microsoft.Storage",
"serviceResources": [
"/subscriptions/subid1",
"/subscriptions/subid1/resourceGroups/storageRg",
"/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount"
]
},
"provisioningState" : "Succeeded"
}
]
},
"serviceEndpointPolicyDefinitions": [ ]
}
}
},
"201" : {
"body" : {
"name": "testnsg",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg",
"type": "Microsoft.Network/networkSecurityGroups",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testpolicy",
"type": "Microsoft.Network/ServiceEndpointPolicies",
"location": "westus",
"properties":
{
"serviceEndpointPolicyDefinitions": [
{
"name": "StorageServiceEndpointPolicyDefinition",
"properties": {
"description": "Storage Service EndpointPolicy Definition",
"service": "Microsoft.Storage",
"serviceResources": [
"/subscriptions/subid1",
"/subscriptions/subid1/resourceGroups/storageRg",
"/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount"
]
},
"provisioningState" : "Succeeded"
}
]
},
"serviceEndpointPolicyDefinitions": []
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"parameters" : {
"api-version": "2018-07-01",
"subscriptionId" : "subid",
"resourceGroupName" : "rg1",
"serviceEndpointPolicyName" : "testPolicy",
"parameters": {
"properties": {
"serviceEndpointPolicyDefinitions": [
{
"name": "StorageServiceEndpointPolicyDefinition",
"properties": {
"description": "Storage Service EndpointPolicy Definition",
"service": "Microsoft.Storage",
"serviceResources": [
"/subscriptions/subid1",
"/subscriptions/subid1/resourceGroups/storageRg",
"/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount"
]
}
}
]
}
}
},
"responses" : {
"200" : {
"body" : {
"name": "testnsg",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ServiceEndpointPolicies/testpolicy",
"type": "Microsoft.Network/ServiceEndpointPolicies",
"location": "westus",
"properties":
{
"serviceEndpointPolicyDefinitions": [
{
"name": "StorageServiceEndpointPolicyDefinition",
"properties": {
"description": "Storage Service EndpointPolicy Definition",
"service": "Microsoft.Storage",
"serviceResources": [
"/subscriptions/subid1",
"/subscriptions/subid1/resourceGroups/storageRg",
"/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount"
]
}
}
]
}
}
},
"201" : {
"body" : {
"name": "testnsg",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ServiceEndpointPolicies/testpolicy",
"type": "Microsoft.Network/ServiceEndpointPolicies",
"location": "westus",
"properties":
{
"serviceEndpointPolicyDefinitions": [
{
"name": "StorageServiceEndpointPolicyDefinition",
"properties": {
"description": "Storage Service EndpointPolicy Definition",
"service": "Microsoft.Storage",
"serviceResources": [
"/subscriptions/subid1",
"/subscriptions/subid1/resourceGroups/storageRg",
"/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount"
]
}
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"resourceGroupName" : "rg1",
"serviceEndpointPolicyName" : "testPolicy",
"serviceEndpointPolicyDefinitionName": "testDefinition",
"ServiceEndpointPolicyDefinitions": {
"properties": {
"description": "Storage Service EndpointPolicy Definition",
"service": "Microsoft.Storage",
Expand All @@ -13,7 +14,8 @@
"/subscriptions/subid1/resourceGroups/storageRg",
"/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount"
]
},
}
}
},
"responses" : {
"200" : {
Expand All @@ -28,7 +30,7 @@
"/subscriptions/subid1/resourceGroups/storageRg",
"/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount"
]
},
}
}
},
"201" : {
Expand All @@ -43,7 +45,7 @@
"/subscriptions/subid1/resourceGroups/storageRg",
"/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount"
]
},
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,23 @@
"api-version": "2018-07-01",
"subscriptionId" : "subid",
"resourceGroupName" : "rg1",
"networkSecurityGroupName" : "testnsg",
"securityRuleName": "rule1"
"serviceEndpointPolicyName" : "testPolicy",
"serviceEndpointPolicyDefinitionName": "testDefinition"
},
"responses" : {
"200" : {
"body" : {
"name": "rule1",
"id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/securityRules/rule1",
"name": "testDefinition",
"id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/serviceEndpointPolicies/testPolicy/serviceEndpointPolicyDefinitions/testDefinition",
"properties": {
"provisioningState": "Succeeded",
"protocol": "*",
"sourcePortRange": "*",
"destinationPortRange": "80",
"sourceAddressPrefix": "*",
"destinationAddressPrefix": "*",
"access": "Allow",
"priority": 130,
"direction": "Inbound"
}
"description": "Storage Service EndpointPolicy Definition",
"service": "Microsoft.Storage",
"serviceResources": [
"/subscriptions/subid1",
"/subscriptions/subid1/resourceGroups/storageRg",
"/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount"
]
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"/subscriptions/subid1/resourceGroups/storageRg",
"/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount"
]
},
}
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters" : {
"api-version": "2018-06-01",
"api-version": "2018-07-01",
"subscriptionId" : "subid",
"resourceGroupName": "rg1",
"serviceEndpointPolicyName": "serviceEndpointPolicy1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters" : {
"api-version": "2018-06-01",
"api-version": "2018-07-01",
"subscriptionId" : "subid",
"resourceGroupName": "rg1",
"serviceEndpointPolicyName": "testServiceEndpointPolicy"
Expand All @@ -10,6 +10,7 @@
"body" : {
"name" : "testServiceEndpointPolicy",
"id" : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/serviceEndpointPolicies/testServiceEndpointPolicy",
"type": "Microsoft.Network/serviceEndpointPolicies",
"location" : "westus",
"properties":
{
Expand All @@ -24,13 +25,12 @@
"/subscriptions/subid1/resourceGroups/storageRg",
"/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount"
]
},
"provisioningState" : "Succeeded"
}
}
]
},
"type" : "Microsoft.Network/serviceEndpointPolicies"
}
}
}
]
}
}
}
}
}

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters" : {
"api-version": "2018-06-01",
"api-version": "2018-07-01",
"subscriptionId" : "subid",
"resourceGroupName": "rg1"
},
Expand All @@ -25,12 +25,10 @@
"/subscriptions/subid1resourceGroups/storageRg",
"/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount"
]
},
"provisioningState" : "Succeeded"
}
}
]
},
"type" : "Microsoft.Network/serviceEndpointPolicies"
}
},
{
"name" : "testServiceEndpointPolicy1",
Expand All @@ -49,12 +47,10 @@
"/subscriptions/subid1/resourceGroups/storageRg",
"/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount"
]
},
"provisioningState" : "Succeeded"
}
}
]
},
"type" : "Microsoft.Network/serviceEndpointPolicies"
}
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
"/subscriptions/subid1/resourceGroups/storageRg",
"/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount"
]
},
"provisioningState" : "Succeeded"
}
}
]
}
Expand All @@ -49,8 +48,7 @@
"/subscriptions/subid1/resourceGroups/storageRg",
"/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount"
]
},
"provisioningState" : "Succeeded"
}
}
]
}
Expand Down
Loading

0 comments on commit 6d2f752

Please sign in to comment.