-
Notifications
You must be signed in to change notification settings - Fork 5.6k
[Hub Generated] Review request for Microsoft.KeyVault to add version stable/2022-07-01 #19395
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
Merged
weidongxu-microsoft
merged 6 commits into
Azure:main
from
adarce:dev-keyvault-Microsoft.KeyVault-2022-07-01
Jul 11, 2022
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
2579aee
Adds base for updating Microsoft.KeyVault from version preview/2021-1…
adarce fd2c594
Updates readme
adarce d8e714e
Updates API version in new specs and examples
adarce 7f877af
Merges changes from 2021-10-01 into 2022-07-01.
adarce ca6a761
Addresses the LRO_RESPONSE_HEADER guideline.
adarce ff63535
Add check name availability api and security domain status property t…
neeerajaakula File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
94 changes: 94 additions & 0 deletions
94
specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2022-07-01/common.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,94 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "version": "2022-07-01", | ||
| "title": "KeyVaultManagementClient", | ||
| "description": "The Azure management API provides a RESTful set of web services that interact with Azure Key Vault." | ||
| }, | ||
| "paths": {}, | ||
| "definitions": { | ||
| "CloudError": { | ||
| "description": "An error response from Key Vault resource provider", | ||
| "properties": { | ||
| "error": { | ||
| "$ref": "#/definitions/CloudErrorBody" | ||
| } | ||
| }, | ||
| "x-ms-external": true, | ||
| "type": "object" | ||
| }, | ||
| "CloudErrorBody": { | ||
| "description": "An error response from Key Vault resource provider", | ||
| "properties": { | ||
| "code": { | ||
| "type": "string", | ||
| "description": "Error code. This is a mnemonic that can be consumed programmatically." | ||
| }, | ||
| "message": { | ||
| "type": "string", | ||
| "description": "User friendly error message. The message is typically localized and may vary with service version." | ||
| } | ||
| }, | ||
| "x-ms-external": true, | ||
| "type": "object" | ||
| }, | ||
| "SystemData": { | ||
| "description": "Metadata pertaining to creation and last modification of the key vault resource.", | ||
| "readOnly": true, | ||
| "properties": { | ||
| "createdBy": { | ||
| "type": "string", | ||
| "description": "The identity that created the key vault resource." | ||
| }, | ||
| "createdByType": { | ||
| "description": "The type of identity that created the key vault resource.", | ||
| "$ref": "#/definitions/IdentityType" | ||
| }, | ||
| "createdAt": { | ||
| "type": "string", | ||
| "format": "date-time", | ||
| "description": "The timestamp of the key vault resource creation (UTC)." | ||
| }, | ||
| "lastModifiedBy": { | ||
| "type": "string", | ||
| "description": "The identity that last modified the key vault resource." | ||
| }, | ||
| "lastModifiedByType": { | ||
| "description": "The type of identity that last modified the key vault resource.", | ||
| "$ref": "#/definitions/IdentityType" | ||
| }, | ||
| "lastModifiedAt": { | ||
| "type": "string", | ||
| "format": "date-time", | ||
| "description": "The timestamp of the key vault resource last modification (UTC)." | ||
| } | ||
| }, | ||
| "type": "object" | ||
| }, | ||
| "IdentityType": { | ||
| "type": "string", | ||
| "description": "The type of identity.", | ||
| "enum": [ | ||
| "User", | ||
| "Application", | ||
| "ManagedIdentity", | ||
| "Key" | ||
| ], | ||
| "x-ms-enum": { | ||
| "name": "identityType", | ||
| "modelAsString": true | ||
| } | ||
| } | ||
| }, | ||
| "securityDefinitions": { | ||
| "azure_auth": { | ||
| "type": "oauth2", | ||
| "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", | ||
| "flow": "implicit", | ||
| "description": "Azure Active Directory OAuth2 Flow", | ||
| "scopes": { | ||
| "user_impersonation": "impersonate your user account" | ||
| } | ||
| } | ||
| } | ||
| } | ||
28 changes: 28 additions & 0 deletions
28
...resource-manager/Microsoft.KeyVault/stable/2022-07-01/examples/DeletedManagedHsm_Get.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| { | ||
| "parameters": { | ||
| "name": "hsm1", | ||
| "location": "westus", | ||
| "subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
| "api-version": "2022-07-01" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedManagedHSMs/hsm1", | ||
| "name": "vault-agile-drawer-6404", | ||
| "type": "Microsoft.KeyVault/deletedManagedHSMs", | ||
| "properties": { | ||
| "mhsmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.KeyVault/managedHSMs/hsm1", | ||
| "location": "westus", | ||
| "deletionDate": "2021-04-01T00:00:59Z", | ||
| "scheduledPurgeDate": "2021-04-01T00:00:59Z", | ||
| "purgeProtectionEnabled": true, | ||
| "tags": { | ||
| "Dept": "hsm", | ||
| "Environment": "production" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
47 changes: 47 additions & 0 deletions
47
...esource-manager/Microsoft.KeyVault/stable/2022-07-01/examples/DeletedManagedHsm_List.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| { | ||
| "parameters": { | ||
| "subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
| "api-version": "2022-07-01" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedManagedHSMs/hsm1", | ||
| "name": "vault-agile-drawer-6404", | ||
| "type": "Microsoft.KeyVault/deletedManagedHSMs", | ||
| "properties": { | ||
| "mhsmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.KeyVault/managedHSMs/hsm1", | ||
| "location": "westus", | ||
| "deletionDate": "2021-04-01T00:00:59Z", | ||
| "scheduledPurgeDate": "2021-04-01T00:00:59Z", | ||
| "purgeProtectionEnabled": true, | ||
| "tags": { | ||
| "Dept": "hsm", | ||
| "Environment": "production" | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedManagedHSMs/hsm2", | ||
| "name": "vault-agile-drawer-6404", | ||
| "type": "Microsoft.KeyVault/deletedManagedHSMs", | ||
| "properties": { | ||
| "mhsmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.KeyVault/managedHSMs/hsm2", | ||
| "location": "westus", | ||
| "deletionDate": "2021-04-01T00:00:59Z", | ||
| "scheduledPurgeDate": "2021-04-01T00:00:59Z", | ||
| "purgeProtectionEnabled": true, | ||
| "tags": { | ||
| "Dept": "hsm", | ||
| "Environment": "production" | ||
| } | ||
| } | ||
| } | ||
| ], | ||
| "nextLink": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/deletedManagedHSMs?api-version=2022-07-01&$skiptoken=dmF1bHQtcGVza3ktanVyeS03MzA3Ng==" | ||
| } | ||
| } | ||
| } | ||
| } |
15 changes: 15 additions & 0 deletions
15
...source-manager/Microsoft.KeyVault/stable/2022-07-01/examples/DeletedManagedHsm_Purge.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| { | ||
| "parameters": { | ||
| "name": "hsm1", | ||
| "location": "westus", | ||
| "subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
| "api-version": "2022-07-01" | ||
| }, | ||
| "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" | ||
| } | ||
| } | ||
| } | ||
| } |
89 changes: 89 additions & 0 deletions
89
...urce-manager/Microsoft.KeyVault/stable/2022-07-01/examples/ManagedHsm_CreateOrUpdate.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,89 @@ | ||
| { | ||
| "parameters": { | ||
| "resourceGroupName": "hsm-group", | ||
| "name": "hsm1", | ||
| "subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
| "api-version": "2022-07-01", | ||
| "parameters": { | ||
| "properties": { | ||
| "tenantId": "00000000-0000-0000-0000-000000000000", | ||
| "initialAdminObjectIds": [ | ||
| "00000000-0000-0000-0000-000000000000" | ||
| ], | ||
| "enableSoftDelete": true, | ||
| "softDeleteRetentionInDays": 90, | ||
| "enablePurgeProtection": true | ||
| }, | ||
| "location": "westus", | ||
| "sku": { | ||
| "family": "B", | ||
| "name": "Standard_B1" | ||
| }, | ||
| "tags": { | ||
| "Dept": "hsm", | ||
| "Environment": "dogfood" | ||
| } | ||
| } | ||
| }, | ||
| "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", | ||
| "initialAdminObjectIds": [ | ||
| "00000000-0000-0000-0000-000000000000" | ||
| ], | ||
| "enableSoftDelete": true, | ||
| "softDeleteRetentionInDays": 90, | ||
| "enablePurgeProtection": true, | ||
| "hsmUri": null, | ||
| "provisioningState": "Provisioning", | ||
| "statusMessage": "Allocating hardware" | ||
| }, | ||
| "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.KeyVault/managedHSMs/hsm1", | ||
| "name": "hsm1", | ||
| "type": "Microsoft.KeyVault/managedHSMs", | ||
| "location": "westus", | ||
| "sku": { | ||
| "family": "B", | ||
| "name": "Standard_B1" | ||
| }, | ||
| "tags": { | ||
| "Dept": "hsm", | ||
| "Environment": "dogfood" | ||
| } | ||
| } | ||
| }, | ||
| "200": { | ||
| "body": { | ||
| "properties": { | ||
| "tenantId": "00000000-0000-0000-0000-000000000000", | ||
| "initialAdminObjectIds": [ | ||
| "00000000-0000-0000-0000-000000000000" | ||
| ], | ||
| "enableSoftDelete": true, | ||
| "softDeleteRetentionInDays": 90, | ||
| "enablePurgeProtection": true, | ||
| "hsmUri": "https://westus.hsm1.managedhsm.azure.net", | ||
| "provisioningState": "Succeeded", | ||
| "statusMessage": "ManagedHsm is functional." | ||
| }, | ||
| "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.KeyVault/managedHSMs/hsm1", | ||
| "name": "hsm1", | ||
| "type": "Microsoft.KeyVault/managedHSMs", | ||
| "location": "westus", | ||
| "sku": { | ||
| "family": "B", | ||
| "name": "Standard_B1" | ||
| }, | ||
| "tags": { | ||
| "Dept": "hsm", | ||
| "Environment": "dogfood" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
17 changes: 17 additions & 0 deletions
17
...ult/resource-manager/Microsoft.KeyVault/stable/2022-07-01/examples/ManagedHsm_Delete.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "parameters": { | ||
| "resourceGroupName": "hsm-group", | ||
| "name": "hsm1", | ||
| "subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
| "api-version": "2022-07-01" | ||
| }, | ||
| "responses": { | ||
| "200": {}, | ||
| "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": {} | ||
| } | ||
| } |
39 changes: 39 additions & 0 deletions
39
...yvault/resource-manager/Microsoft.KeyVault/stable/2022-07-01/examples/ManagedHsm_Get.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| { | ||
| "parameters": { | ||
| "resourceGroupName": "hsm-group", | ||
| "name": "hsm1", | ||
| "subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
| "api-version": "2022-07-01" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "properties": { | ||
| "tenantId": "00000000-0000-0000-0000-000000000000", | ||
| "initialAdminObjectIds": [ | ||
| "00000000-0000-0000-0000-000000000000" | ||
| ], | ||
| "enableSoftDelete": true, | ||
| "softDeleteRetentionInDays": 90, | ||
| "enablePurgeProtection": true, | ||
| "hsmUri": "https://westus.hsm1.managedhsm.azure.net", | ||
| "provisioningState": "Succeeded", | ||
| "statusMessage": "ManagedHsm is functional." | ||
| }, | ||
| "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.KeyVault/managedHSMs/hsm1", | ||
| "name": "hsm1", | ||
| "type": "Microsoft.KeyVault/managedHSMs", | ||
| "location": "westus", | ||
| "sku": { | ||
| "family": "B", | ||
| "name": "Standard_B1" | ||
| }, | ||
| "tags": { | ||
| "Dept": "hsm", | ||
| "Environment": "dogfood" | ||
| } | ||
| } | ||
| }, | ||
| "204": {} | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am curious , why did you need to add the type:object field everywhere ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They were added for parity with the previous stable ApiVersion (2021-10-01), which contains these type: object fields everywhere.