Skip to content

Commit ace28fc

Browse files
Feature/riteshc/swagger correctness mhsm fixes (#12209)
1 parent 90f8065 commit ace28fc

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2020-04-01-preview/examples/ManagedHsm_Get.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@
3333
"Environment": "dogfood"
3434
}
3535
}
36-
}
36+
},
37+
"202": {
38+
"headers": {
39+
"Retry-After": "60",
40+
"Location": "https://some.endpoint.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.KeyVault/managedHSMs/hsm1?api-version=2020-04-01-preview&kv-operation=abJjb2RkIjoiAGVsZXRlTWFuYWdlZEhzbUFzeW5jYm9"
41+
}
42+
},
43+
"204": {}
3744
}
3845
}

specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2020-04-01-preview/managedHsm.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,12 @@
234234
"$ref": "#/definitions/ManagedHsm"
235235
}
236236
},
237+
"202": {
238+
"description": "Accepted and the operation will complete asynchronously."
239+
},
240+
"204": {
241+
"description": "Request successful. Resource does not exist."
242+
},
237243
"default": {
238244
"description": "The error response describing why the operation failed.",
239245
"schema": {
@@ -394,6 +400,7 @@
394400
},
395401
"hsmUri": {
396402
"type": "string",
403+
"readOnly": true,
397404
"description": "The URI of the managed hsm pool for performing operations on keys."
398405
},
399406
"enableSoftDelete": {
@@ -409,6 +416,7 @@
409416
},
410417
"enablePurgeProtection": {
411418
"type": "boolean",
419+
"default": true,
412420
"description": "Property specifying whether protection against purge is enabled for this managed HSM pool. Setting this property to true activates protection against purge for this managed HSM pool and its content - only the Managed HSM service may initiate a hard, irrecoverable deletion. The setting is effective only if soft delete is also enabled. Enabling this functionality is irreversible."
413421
},
414422
"createMode": {

0 commit comments

Comments
 (0)