Skip to content

Commit

Permalink
[Hub Generated] Review request for Microsoft.KeyVault to add version …
Browse files Browse the repository at this point in the history
…preview/2021-06-01-preview (#21671)

* Fix s360 alerts for properties being returned in GET but not exising in PUT requests

* Prettier fix

* Fix model validation error for long running operation response missing location header

* removed default value for array as it breaks the arm template schema creation

* removed default value for array for managed hsm virtual network rule as it breaks the arm template schema creation
  • Loading branch information
neeerajaakula authored Dec 22, 2022
1 parent d93f638 commit e0aca4c
Show file tree
Hide file tree
Showing 17 changed files with 154 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
"api-version": "2021-04-01-preview"
},
"responses": {
"202": {}
"202": {
"headers": {
"Location": "https://some.endpoint.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.KeyVault/managedHSMs/hsm1?api-version=2022-07-01&kv-operation=abJjb2RkIjoiAGVsZXRlTWFuYWdlZEhzbUFzeW5jYm9"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
},
"responses": {
"202": {
"headers": {
"Location": "https://some.endpoint.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.KeyVault/managedHSMs/hsm1?api-version=2022-07-01&kv-operation=abJjb2RkIjoiAGVsZXRlTWFuYWdlZEhzbUFzeW5jYm9"
},
"body": {
"properties": {
"tenantId": "00000000-0000-0000-0000-000000000000",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
},
"responses": {
"200": {},
"202": {},
"202": {
"headers": {
"Location": "https://some.endpoint.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.KeyVault/managedHSMs/hsm1?api-version=2022-07-01&kv-operation=abJjb2RkIjoiAGVsZXRlTWFuYWdlZEhzbUFzeW5jYm9"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,13 @@
"description": "Request successful. Resource does not exist."
},
"202": {
"description": "Accepted and the operation will complete asynchronously."
"description": "Accepted and the operation will complete asynchronously.",
"headers": {
"Location": {
"description": "The URI to poll for completion status.",
"type": "string"
}
}
},
"200": {
"description": "Delete successful."
Expand Down Expand Up @@ -524,7 +530,13 @@
],
"responses": {
"202": {
"description": "Accepted and the operation will complete asynchronously."
"description": "Accepted and the operation will complete asynchronously.",
"headers": {
"Location": {
"description": "The URI to poll for completion status.",
"type": "string"
}
}
},
"default": {
"description": "The error response describing why the operation failed.",
Expand Down Expand Up @@ -873,7 +885,11 @@
"description": "Create a new managed HSM pool. This is the default option."
}
]
}
},
"x-ms-mutability": [
"create",
"update"
]
},
"statusMessage": {
"readOnly": true,
Expand Down Expand Up @@ -1177,7 +1193,8 @@
"x-ms-enum": {
"name": "NetworkRuleBypassOptions",
"modelAsString": true
}
},
"default": "AzureServices"
},
"defaultAction": {
"type": "string",
Expand All @@ -1189,7 +1206,8 @@
"x-ms-enum": {
"name": "NetworkRuleAction",
"modelAsString": true
}
},
"default": "Allow"
},
"ipRules": {
"type": "array",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
"api-version": "2021-06-01-preview"
},
"responses": {
"202": {}
"202": {
"headers": {
"Location": "https://some.endpoint.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.KeyVault/managedHSMs/hsm1?api-version=2022-07-01&kv-operation=abJjb2RkIjoiAGVsZXRlTWFuYWdlZEhzbUFzeW5jYm9"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
},
"responses": {
"202": {
"headers": {
"Location": "https://some.endpoint.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.KeyVault/managedHSMs/hsm1?api-version=2022-07-01&kv-operation=abJjb2RkIjoiAGVsZXRlTWFuYWdlZEhzbUFzeW5jYm9"
},
"body": {
"properties": {
"tenantId": "00000000-0000-0000-0000-000000000000",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
},
"responses": {
"200": {},
"202": {},
"202": {
"headers": {
"Location": "https://some.endpoint.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.KeyVault/managedHSMs/hsm1?api-version=2022-07-01&kv-operation=abJjb2RkIjoiAGVsZXRlTWFuYWdlZEhzbUFzeW5jYm9"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,13 @@
"description": "Request successful. Resource does not exist."
},
"202": {
"description": "Accepted and the operation will complete asynchronously."
"description": "Accepted and the operation will complete asynchronously.",
"headers": {
"Location": {
"description": "The URI to poll for completion status.",
"type": "string"
}
}
},
"200": {
"description": "Delete successful."
Expand Down Expand Up @@ -524,7 +530,13 @@
],
"responses": {
"202": {
"description": "Accepted and the operation will complete asynchronously."
"description": "Accepted and the operation will complete asynchronously.",
"headers": {
"Location": {
"description": "The URI to poll for completion status.",
"type": "string"
}
}
},
"default": {
"description": "The error response describing why the operation failed.",
Expand Down Expand Up @@ -873,7 +885,11 @@
"description": "Create a new managed HSM pool. This is the default option."
}
]
}
},
"x-ms-mutability": [
"create",
"update"
]
},
"statusMessage": {
"readOnly": true,
Expand Down Expand Up @@ -1177,7 +1193,8 @@
"x-ms-enum": {
"name": "NetworkRuleBypassOptions",
"modelAsString": true
}
},
"default": "AzureServices"
},
"defaultAction": {
"type": "string",
Expand All @@ -1189,7 +1206,8 @@
"x-ms-enum": {
"name": "NetworkRuleAction",
"modelAsString": true
}
},
"default": "Allow"
},
"ipRules": {
"type": "array",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
"api-version": "2021-11-01-preview"
},
"responses": {
"202": {}
"202": {
"headers": {
"Location": "https://some.endpoint.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.KeyVault/managedHSMs/hsm1?api-version=2022-07-01&kv-operation=abJjb2RkIjoiAGVsZXRlTWFuYWdlZEhzbUFzeW5jYm9"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
},
"responses": {
"202": {
"headers": {
"Location": "https://some.endpoint.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.KeyVault/managedHSMs/hsm1?api-version=2022-07-01&kv-operation=abJjb2RkIjoiAGVsZXRlTWFuYWdlZEhzbUFzeW5jYm9"
},
"body": {
"properties": {
"tenantId": "00000000-0000-0000-0000-000000000000",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
},
"responses": {
"200": {},
"202": {},
"202": {
"headers": {
"Location": "https://some.endpoint.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.KeyVault/managedHSMs/hsm1?api-version=2022-07-01&kv-operation=abJjb2RkIjoiAGVsZXRlTWFuYWdlZEhzbUFzeW5jYm9"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,13 @@
"description": "Request successful. Resource does not exist."
},
"202": {
"description": "Accepted and the operation will complete asynchronously."
"description": "Accepted and the operation will complete asynchronously.",
"headers": {
"Location": {
"description": "The URI to poll for completion status.",
"type": "string"
}
}
},
"200": {
"description": "Delete successful."
Expand Down Expand Up @@ -524,7 +530,13 @@
],
"responses": {
"202": {
"description": "Accepted and the operation will complete asynchronously."
"description": "Accepted and the operation will complete asynchronously.",
"headers": {
"Location": {
"description": "The URI to poll for completion status.",
"type": "string"
}
}
},
"default": {
"description": "The error response describing why the operation failed.",
Expand Down Expand Up @@ -873,7 +885,11 @@
"description": "Create a new managed HSM pool. This is the default option."
}
]
}
},
"x-ms-mutability": [
"create",
"update"
]
},
"statusMessage": {
"readOnly": true,
Expand Down Expand Up @@ -1177,7 +1193,8 @@
"x-ms-enum": {
"name": "NetworkRuleBypassOptions",
"modelAsString": true
}
},
"default": "AzureServices"
},
"defaultAction": {
"type": "string",
Expand All @@ -1189,7 +1206,8 @@
"x-ms-enum": {
"name": "NetworkRuleAction",
"modelAsString": true
}
},
"default": "Allow"
},
"ipRules": {
"type": "array",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
"api-version": "2021-10-01"
},
"responses": {
"202": {}
"202": {
"headers": {
"Location": "https://some.endpoint.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.KeyVault/managedHSMs/hsm1?api-version=2022-07-01&kv-operation=abJjb2RkIjoiAGVsZXRlTWFuYWdlZEhzbUFzeW5jYm9"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
},
"responses": {
"202": {
"headers": {
"Location": "https://some.endpoint.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.KeyVault/managedHSMs/hsm1?api-version=2022-07-01&kv-operation=abJjb2RkIjoiAGVsZXRlTWFuYWdlZEhzbUFzeW5jYm9"
},
"body": {
"properties": {
"tenantId": "00000000-0000-0000-0000-000000000000",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
},
"responses": {
"200": {},
"202": {},
"202": {
"headers": {
"Location": "https://some.endpoint.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.KeyVault/managedHSMs/hsm1?api-version=2022-07-01&kv-operation=abJjb2RkIjoiAGVsZXRlTWFuYWdlZEhzbUFzeW5jYm9"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,13 @@
"description": "Request successful. Resource does not exist."
},
"202": {
"description": "Accepted and the operation will complete asynchronously."
"description": "Accepted and the operation will complete asynchronously.",
"headers": {
"Location": {
"description": "The URI to poll for completion status.",
"type": "string"
}
}
},
"200": {
"description": "Delete successful."
Expand Down Expand Up @@ -524,7 +530,13 @@
],
"responses": {
"202": {
"description": "Accepted and the operation will complete asynchronously."
"description": "Accepted and the operation will complete asynchronously.",
"headers": {
"Location": {
"description": "The URI to poll for completion status.",
"type": "string"
}
}
},
"default": {
"description": "The error response describing why the operation failed.",
Expand Down Expand Up @@ -874,7 +886,11 @@
"description": "Create a new managed HSM pool. This is the default option."
}
]
}
},
"x-ms-mutability": [
"create",
"update"
]
},
"statusMessage": {
"readOnly": true,
Expand Down Expand Up @@ -1188,7 +1204,8 @@
"x-ms-enum": {
"name": "NetworkRuleBypassOptions",
"modelAsString": true
}
},
"default": "AzureServices"
},
"defaultAction": {
"type": "string",
Expand All @@ -1200,7 +1217,8 @@
"x-ms-enum": {
"name": "NetworkRuleAction",
"modelAsString": true
}
},
"default": "Allow"
},
"ipRules": {
"type": "array",
Expand Down
Loading

0 comments on commit e0aca4c

Please sign in to comment.