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] TypeSpec for Secrets library #29249

Open
wants to merge 34 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
0044a5f
Initial conversion from swagger
mccoyp May 28, 2024
1c05b2a
Update main.tsp
mccoyp May 28, 2024
df7801f
Templatize models and routes
mccoyp May 30, 2024
322ca80
Rename directory
mccoyp Jun 12, 2024
3cfab4e
Properly decorate API versions
mccoyp Jun 19, 2024
f8461b8
Spread instead of extends
mccoyp Jul 11, 2024
7cb69f8
Unix int time values
mccoyp Jul 11, 2024
9ece1f8
Fix backup encoding
mccoyp Jul 11, 2024
e71cc89
Apply maxresults trait correctly to getSecretVersions
mccoyp Jul 11, 2024
4adb0ca
Update tspconfig; generate into _generated
mccoyp Jul 11, 2024
f863d27
Add examples
mccoyp Sep 25, 2024
1124d10
Fix validation errors
mccoyp Sep 25, 2024
1da5a85
Generate swagger from tsp
mccoyp Sep 25, 2024
33fa62e
Move TSP directory to under 'keyvault'
mccoyp Oct 30, 2024
7471ff1
Add 7.5 support
mccoyp Oct 30, 2024
c50dd74
Remove '-sdk' from generated swagger name
mccoyp Oct 30, 2024
c838d4d
Examples folder structure; add operationId/title to examples
mccoyp Oct 30, 2024
339d0ac
Regenerate swaggers from TSP
mccoyp Oct 30, 2024
44547e3
Drop ResourceList for correct return types
mccoyp Nov 5, 2024
06645b6
Remove attempt at TSP resources
mccoyp Nov 6, 2024
f0ed41c
camelCase to kebab-case for operation routes
mccoyp Nov 6, 2024
0d12c74
go specific changes
gracewilcox Nov 8, 2024
df20566
Suppress new method naming warnings
mccoyp Nov 12, 2024
9ce1992
Manual paged result, reverting Core paging changes
mccoyp Nov 12, 2024
09a21bd
Treat recoveryLevel value as opaque string
mccoyp Nov 12, 2024
81360b8
TSP validation formatting changes
mccoyp Nov 12, 2024
6a262e4
Use KeyVaultError; revert attribute casing changes
mccoyp Nov 12, 2024
42cf8e9
Update title
mccoyp Nov 13, 2024
408b1f2
Added TSP config for Java
vcolin7 Nov 14, 2024
751e044
add typespec-ts
maorleger Nov 14, 2024
c11bc0a
Expose DeletionRecoveryLevel and use CapitalCase value names
mccoyp Nov 15, 2024
fbb77e7
Add TSP flavor for Java
mccoyp Nov 15, 2024
eee2d7e
experiment with generateMetadata
maorleger Nov 15, 2024
be17543
use correct package-dir
maorleger Nov 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions specification/keyvault/Security.KeyVault.Secrets/client.tsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import "./main.tsp";
import "@azure-tools/typespec-client-generator-core";

using Azure.ClientGenerator.Core;

@@clientName(KeyVault, "Client", "go");
@@clientName(KeyVault, "Secret", "Java");

using KeyVault;

@@usage(DeletionRecoveryLevel, Usage.output);

@@clientName(SecretProperties, "SecretP", "go");
@@clientName(DeletedSecretBundle, "DeletedSecret", "go");
@@clientName(DeletedSecretItem, "DeletedSecretProperties", "go");
@@clientName(SecretBundle, "Secret", "go");
@@clientName(SecretItem, "SecretProperties", "go");
@@clientName(SecretRestoreParameters, "RestoreSecretParameters", "go");
@@clientName(SecretSetParameters, "SetSecretParameters", "go");
@@clientName(SecretUpdateParameters, "UpdateSecretPropertiesParameters", "go");
@@clientName(DeletedSecretListResult,
"DeletedSecretPropertiesListResult",
"go"
);
@@clientName(SecretListResult, "SecretPropertiesListResult", "go");

@@clientName(getDeletedSecrets, "ListDeletedSecretProperties", "go");
@@clientName(getSecrets, "ListSecretProperties", "go");
@@clientName(getSecretVersions, "ListSecretPropertiesVersions", "go");
@@clientName(updateSecret, "UpdateSecretProperties", "go");

@@clientName(SecretRestoreParameters.secretBundleBackup, "SecretBackup", "go");
@@clientName(SecretBundle.kid, "KID", "go");
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{

Check failure on line 1 in specification/keyvault/Security.KeyVault.Secrets/examples/7.5/BackupSecret-example.json

View check run for this annotation

Azure Pipelines / Swagger PrettierCheck

specification/keyvault/Security.KeyVault.Secrets/examples/7.5/BackupSecret-example.json#L1

specification/keyvault/Security.KeyVault.Secrets/examples/7.5/BackupSecret-example.json(1,1): error : Code style issues found, please run prettier. > npm install > npx prettier --write specification/keyvault/Security.KeyVault.Secrets/examples/7.5/BackupSecret-example.json
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"secret-name": "testsecret",
"api-version": "7.5"
},
"responses": {
"200": {
"body": {
"value": "KUF6dXJlS2V5VmF1bHRTZWNyZXRCYWNrdXBWMS5taWNyb3NvZnQuY29tZXlKcmFXUWlPaUppTlRjMk5ESTVaaTB5TlRZNExUUTFZbVV0WW1aaFlTMHpOMlZrTURkbVl6QmpPREVpTENKaGJHY2lPaUpTVTBFdFQwRkZVQ0lzSW1WdVl5STZJa0V4TWpoRFFrTXRTRk15TlRZaWZRLmhERDdfVW9aU1ptR2JYN1dYUTU5WDkxZ0FQb05kdDcwZE1BbmgzbjQ3eWNjbkRNOU5vTm1hY0NHZmlNeUwxU0FlZDk0UjhBNDAtVE81TDNfQ05Qal9pdWIyaW03Z21nbHNPNnFFUVVIWU1tOEh2Wl9odFRrdEl4QzRPWEowYTB0S2hscnczZlBvVVFDZHVGcFg0ekEzYTR4VTZXTUNfYjZZVXZqUjZnSGM5TFRUR2tIazh1RTY0aVQ4cmt5RDRrU3RNcXhnU2lfRVZwUUdjWGdfNE9wQ1dBOUFha0N1NkpybGRaQW9BLUtXTWpQbGhaWHFYWGMyVkJlbUJjRTQ1YzY3QWhqYjJrSi1uQ1c5dHBjWS1JZ3JEUHFzWkswOS1WbHVtcl9SbzQzcG5FeW5jVFpTdzZlX1h6VnN0dUFOZHdiM0E2OVR1c1hf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N2UWRqTE5jTldQdU1UbzVmME1QbmU4TUtXcFBoWjBySElMaEVuYW1pcG82X3pzNjczcE9ma09FS0JWWE9mUDEzR0UwS25SWTBab2JPLWRub254LVdBY1dodFZvX08xbkwwTWE5ZXFMMURhRGhJU0JNbVRIM1hkY2dDTnF0emIwcVMtS1l5Mk9zRzZOakRDVEM1aEI3MXIwU09WMUprNFV2QjdYemxTTW9YUXJnTzF2ZFVwSGtxaVhUM1RJZmlQMWRKcDEweDlSMlp5R0lzUzljQUtNMEZyMGRxQmJmQy16NTJpcWZweW4zUVVqb1Fld2hPYnJwUEZGOF9lUmVNRlIwSXZjUkxnMHpwek56UzU1N1pkQkZhemxNTThLcnkwN2QyUDAyTnZtclUtN1ZjOW8wZm1qem9WOHVVTG9PMkJHdmFRdnFJNmtBTmQ5VWo1X2JkY2NVUzBhcklzcGFZa1UtUXQtNnQxYU5YUUdGZEtUbFMwSVowek54bkNIZWRySEE4SkYtOFg3d1ZpRW1McXJQbU1Sd25sbWx3SnhxLVlReWMydmdUallSbUxCVU5TS3VrZkJsa2VnMmlCRWdySksxVlNyRWswX0ZvOXkzV1EwVlZuNXhEZXlGc1JuWDI4Tkl6alFQLVNXaHhYbzdPYm5YY1cxZHlWNE1fYjdzM096cEMwOTJWcGZYQkpaTDhBeHgxNGY2TmJzTEpXLW95VEdsaTJFb2FCZHJKQ2JkQlNOdWJlbGdRRmU2V2hqSjRGdlNrYVJISjFTT3ltbGFtQmYwaVNDOGM2X1g2SkZORjNmOXYuQjc5SDJvbVIyTU52SndydHVzclJ4UQ"
}
}
},
"operationId": "BackupSecret",
"title": "BackupSecret"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{

Check failure on line 1 in specification/keyvault/Security.KeyVault.Secrets/examples/7.5/DeleteSecret-example.json

View check run for this annotation

Azure Pipelines / Swagger PrettierCheck

specification/keyvault/Security.KeyVault.Secrets/examples/7.5/DeleteSecret-example.json#L1

specification/keyvault/Security.KeyVault.Secrets/examples/7.5/DeleteSecret-example.json(1,1): error : Code style issues found, please run prettier. > npm install > npx prettier --write specification/keyvault/Security.KeyVault.Secrets/examples/7.5/DeleteSecret-example.json
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"secret-name": "GetDeletedSecretTest",
"api-version": "7.5"
},
"responses": {
"200": {
"body": {
"recoveryId": "https://myvault.vault.azure.net/deletedsecrets/GetDeletedSecretTest",
"deletedDate": 1493938433,
"scheduledPurgeDate": 1501714433,
"id": "https://myvault.vault.azure.net/secrets/GetDeletedSecretTest/b595353d9c39413d80626575b3b5d865",
"attributes": {
"enabled": true,
"created": 1493938433,
"updated": 1493938433,
"recoveryLevel": "Recoverable+Purgeable"
}
}
}
},
"operationId": "DeleteSecret",
"title": "DeleteSecret"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{

Check failure on line 1 in specification/keyvault/Security.KeyVault.Secrets/examples/7.5/GetDeletedSecret-example.json

View check run for this annotation

Azure Pipelines / Swagger PrettierCheck

specification/keyvault/Security.KeyVault.Secrets/examples/7.5/GetDeletedSecret-example.json#L1

specification/keyvault/Security.KeyVault.Secrets/examples/7.5/GetDeletedSecret-example.json(1,1): error : Code style issues found, please run prettier. > npm install > npx prettier --write specification/keyvault/Security.KeyVault.Secrets/examples/7.5/GetDeletedSecret-example.json
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"secret-name": "GetDeletedSecretTest",
"api-version": "7.5"
},
"responses": {
"200": {
"body": {
"recoveryId": "https://myvault.vault.azure.net/deletedsecrets/GetDeletedSecretTest",
"deletedDate": 1493938433,
"scheduledPurgeDate": 1501714433,
"id": "https://myvault.vault.azure.net/secrets/GetDeletedSecretTest/b595353d9c39413d80626575b3b5d865",
"attributes": {
"enabled": true,
"created": 1493938433,
"updated": 1493938433,
"recoveryLevel": "Recoverable+Purgeable"
}
}
}
},
"operationId": "GetDeletedSecret",
"title": "GetDeletedSecret"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"api-version": "7.5",
"maxresults": 1,
"$skiptoken": "eyJOZXh0TWFya2VyIjoiMiExMDAhTURBd01ESTVJWE5sWTNKbGRDOU1TVk5VUkVWTVJWUkZSRk5GUTFKRlZGUkZVMVF3SVRBd01EQXlPQ0V5TURFM0xUQTFMVEEwVkRFNU9qSTFPakU0TGpJNE5qUXdORFZhSVEtLSIsIlRhcmdldExvY2F0aW9uIjowfQ"
},
"responses": {
"200": {
"body": {
"value": [
{
"recoveryId": "https://myvault.vault.azure.net/deletedsecrets/listdeletedsecrettest0",
"deletedDate": 1493937855,
"scheduledPurgeDate": 1501713855,
"contentType": "plainText",
"id": "https://myvault.vault.azure.net/secrets/listdeletedsecrettest0",
"attributes": {
"enabled": true,
"created": 1493937855,
"updated": 1493937855,
"recoveryLevel": "Recoverable+Purgeable"
}
}
],
"nextLink": "https://myvault.vault.azure.net:443/deletedsecrets?api-version=7.2&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VUkVWTVJWUkZSRk5GUTFKRlZGUkZVMVF3THpZMU16ZERSRVJGTlRJNU5qUkRSa1pDTVRkQ1JVWXhORGszUXpSQ1JEZEVJVEF3TURBeU9DRXlNREUzTFRBMUxUQTBWREl5T2pRME9qUXdMamsxTnpZeE1UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1"
}
}
},
"operationId": "GetDeletedSecrets",
"title": "GetDeletedSecrets"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"secret-name": "mysecretname",
"secret-version": "4387e9f3d6e14c459867679a90fd0f79",
"api-version": "7.5"
},
"responses": {
"200": {
"body": {
"value": "mysecretvalue",
"id": "https://myvault.vault.azure.net/secrets/mysecretname/4387e9f3d6e14c459867679a90fd0f79",
"attributes": {
"enabled": true,
"created": 1493938410,
"updated": 1493938410,
"recoveryLevel": "Recoverable+Purgeable"
}
}
}
},
"operationId": "GetSecret",
"title": "GetSecret"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"secret-name": "listsecretversionstest",
"api-version": "7.5",
"maxresults": 1
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "https://myvault.vault.azure.net/secrets/listsecretversionstest/11a536561da34d6b8b452d880df58f3a",
"attributes": {
"enabled": true,
"created": 1481851699,
"updated": 1481851699
}
}
],
"nextLink": "https://myvault.vault.azure.net:443/secrets/listsecretversionstest/versions?api-version=7.2&$skiptoken=eyJOZXh0TWFya2VyIjoiMiExNDQhTURBd01EWXlJWE5sWTNKbGRDOU1TVk5VVTBWRFVrVlVWa1ZTVTBsUFRsTlVSVk5VTHpGRU5EazJNa0l4UlVRM09EUkVRa1k0T1RsR016TXpNa1UwTnpZNFFqY3dJVEF3TURBeU9DRTVPVGs1TFRFeUxUTXhWREl6T2pVNU9qVTVMams1T1RrNU9UbGFJUS0tIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1"
}
}
},
"operationId": "GetSecretVersions",
"title": "GetSecretVersions"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"api-version": "7.5",
"maxresults": 1
},
"responses": {
"200": {
"body": {
"value": [
{
"contentType": "plainText",
"id": "https://myvault.vault.azure.net/secrets/listsecrettest0",
"attributes": {
"enabled": true,
"created": 1482189047,
"updated": 1482189047
}
}
],
"nextLink": "https://myvault.vault.azure.net:443/secrets?api-version=7.2&$skiptoken=eyJOZXh0TWFya2VyIjoiMiE4OCFNREF3TURJeUlYTmxZM0psZEM5TVNWTlVVMFZEVWtWVVZFVlRWREVoTURBd01ESTRJVEl3TVRZdE1USXRNVGxVTWpNNk1UQTZORFV1T0RneE9ERXhNRm9oIiwiVGFyZ2V0TG9jYXRpb24iOjB9&maxresults=1"
}
}
},
"operationId": "GetSecrets",
"title": "GetSecrets"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"secret-name": "testsecret",
"api-version": "7.5"
},
"responses": {
"204": {}
},
"operationId": "PurgeDeletedSecret",
"title": "PurgeDeletedSecret"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"secret-name": "SecretCreateDeleteRecoverPurgeTest",
"api-version": "7.5"
},
"responses": {
"200": {
"body": {
"id": "https://myvault.vault.azure.net/secrets/SecretCreateDeleteRecoverPurgeTest/16f5f7feb7004280b7f3b8ac50cd01f9",
"attributes": {
"enabled": true,
"created": 1493937960,
"updated": 1493937960,
"recoveryLevel": "Recoverable+Purgeable"
}
}
}
},
"operationId": "RecoverDeletedSecret",
"title": "RecoverDeletedSecret"
}
Loading
Loading