Skip to content
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

[Key Vault] Add 7.6-preview.2 to TSP #32332

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "@azure-tools/typespec-client-generator-core";

using Azure.ClientGenerator.Core;

@TypeSpec.Versioning.useDependency(KeyVault.Versions.`v7.6_preview.1`)
@TypeSpec.Versioning.useDependency(KeyVault.Versions.`v7.6_preview.2`)
namespace ClientCustomizations;

//Java customizations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"scope": "keys",
"roleAssignmentName": "roleAssignmentName",
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"scope": "/",
"roleDefinitionName": "00000000-0000-0000-0000-000000000000",
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"storageResourceUri": "https://myaccount.blob.core.windows.net/sascontainer/sasContainer",
"token": "se=2018-02-01T00%3A00Z&spr=https&sv=2017-04-17&sr=b&sig=REDACTED"
},
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"202": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"jobId": "45aacd568ab049a2803861e8dd3ae21f",
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"folderToRestore": "mhsm-mypool-20200303062926785"
},
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"202": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"scope": "keys",
"roleAssignmentName": "roleAssignmentName",
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"scope": "/",
"api-version": "7.6-preview.1",
"api-version": "7.6-preview.2",
"roleDefinitionName": "00000000-0000-0000-0000-000000000000"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"scope": "keys",
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"scope": "keys",
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "List account settings",
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"storageResourceUri": "https://myaccount.blob.core.windows.net/sascontainer/sasContainer",
"token": "se=2018-02-01T00%3A00Z&spr=https&sv=2017-04-17&sr=b&sig=REDACTED"
},
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"202": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"folderToRestore": "mhsm-mypool-20200303062926785"
},
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"202": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"principalId": "principalId"
}
},
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"201": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
]
}
},
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"201": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"jobId": "45aacd568ab049a2803861e8dd3ae21f",
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"folder": "mhsm-mypool-20200303062926785"
},
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"202": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"jobId": "45aacd568ab049a2803861e8dd3ae21f",
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"setting-name": "AllowKeyManagementOperationsThroughARM",
"api-version": "7.6-preview.1",
"api-version": "7.6-preview.2",
"parameters": {
"value": "true"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"storageResourceUri": "https://myaccount.blob.core.windows.net/sascontainer/sasContainer",
"token": "se=2018-02-01T00%3A00Z&spr=https&sv=2017-04-17&sr=b&sig=REDACTED"
},
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"202": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"jobId": "45aacd568ab049a2803861e8dd3ae21f",
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"folderToRestore": "mhsm-mypool-20200303062926785"
},
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"202": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"storageResourceUri": "https://myaccount.blob.core.windows.net/sascontainer/sasContainer",
"token": "se=2018-02-01T00%3A00Z&spr=https&sv=2017-04-17&sr=b&sig=REDACTED"
},
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"202": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"folderToRestore": "mhsm-mypool-20200303062926785"
},
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"202": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"jobId": "45aacd568ab049a2803861e8dd3ae21f",
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"folder": "mhsm-mypool-20200303062926785"
},
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"202": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"jobId": "45aacd568ab049a2803861e8dd3ae21f",
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ enum Versions {
`v7.5`: "7.5",

/**
* The 7.6-preview.1 API version.
* The 7.6-preview.2 API version.
*/
@useDependency(Azure.Core.Versions.v1_0_Preview_2)
`v7.6_preview.1`: "7.6-preview.1",
`v7.6_preview.2`: "7.6-preview.2",
}
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ model FullBackupOperation {
/**
* The authentication method and location for the backup operation.
*/
@added(KeyVault.Versions.`v7.6_preview.1`)
@added(KeyVault.Versions.`v7.6_preview.2`)
model PreBackupOperationParameters {
/**
* Azure Blob storage container Uri
Expand All @@ -122,7 +122,7 @@ model PreBackupOperationParameters {
/**
* The authentication method and location for the restore operation.
*/
@added(KeyVault.Versions.`v7.6_preview.1`)
@added(KeyVault.Versions.`v7.6_preview.2`)
model PreRestoreOperationParameters {
/**
* A user-provided SAS token to an Azure blob storage container.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ op fullBackup is KeyVaultOperation<
* Pre-backup operation for checking whether the customer can perform a full backup operation.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Foundations.Operation is necessary for Key Vault"
@added(KeyVault.Versions.`v7.6_preview.1`)
@added(KeyVault.Versions.`v7.6_preview.2`)
@pollingOperation(fullBackupStatus)
@finalOperation(fullBackupStatus)
@useFinalStateVia("azure-async-operation")
Expand Down Expand Up @@ -128,7 +128,7 @@ op restoreStatus is KeyVaultOperation<
* Pre-restore operation for checking whether the customer can perform a full restore operation.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Foundations.Operation is necessary for Key Vault"
@added(KeyVault.Versions.`v7.6_preview.1`)
@added(KeyVault.Versions.`v7.6_preview.2`)
@pollingOperation(restoreStatus)
@finalOperation(restoreStatus)
@useFinalStateVia("azure-async-operation")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"certificate-name": "testcert",
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"certificate-name": "selfSignedCert01",
"api-version": "7.6-preview.1",
"api-version": "7.6-preview.2",
"parameters": {
"policy": {
"key_props": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"certificate-name": "importCert01",
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"issuer-name": "issuer01",
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"certificate-name": "deletedRequestedCert01",
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"certificate-name": "selfSignedCert01",
"certificate-version": "pending",
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"issuer-name": "issuer01",
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"certificate-name": "selfSignedCert01",
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"certificate-name": "updateCert01",
"api-version": "7.6-preview.1"
"api-version": "7.6-preview.2"
},
"responses": {
"200": {
Expand Down
Loading