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 Keys library #29248

Open
wants to merge 44 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
5f19705
Initial conversion from swagger
mccoyp May 28, 2024
3d98cb3
Update main.tsp
mccoyp May 28, 2024
a3727e4
Templatize models and routes
mccoyp May 30, 2024
a086ddf
Rename directory
mccoyp Jul 16, 2024
73623f6
Update tspconfig
mccoyp Jul 16, 2024
c6abf31
Unix int time values
mccoyp Jul 16, 2024
aadd7ef
Spread instead of extends
mccoyp Jul 16, 2024
0d23183
base64url encoding; string union JWK type w/ minLength
mccoyp Jul 16, 2024
a067c6d
Update JWK enc. alg. names to properly generate
mccoyp Jul 16, 2024
754703f
Correct enum value names
mccoyp Jul 17, 2024
d6b5778
Add examples
mccoyp Sep 25, 2024
7201c8e
Fix validation errors
mccoyp Sep 25, 2024
0842386
Generate swagger from tsp
mccoyp Sep 25, 2024
890c939
Reformat
mccoyp Sep 25, 2024
a6853aa
Move TSP folder to 'keyvault' directory
mccoyp Oct 30, 2024
1701dc5
Remove '-sdk' from generated swagger name
mccoyp Oct 30, 2024
1ad8c35
Add 7.5 support
mccoyp Oct 30, 2024
99d7691
Examples folder structure; add operationId/title to examples
mccoyp Oct 31, 2024
bb40c4d
Regenerate swaggers from TSP
mccoyp Oct 31, 2024
19a075a
Add enum values from #30115
mccoyp Nov 1, 2024
b5f0dd6
camelCase to kebab-case for operation routes
mccoyp Nov 6, 2024
07419a4
Update title
mccoyp Nov 13, 2024
50680b5
Suppress new method naming warnings
mccoyp Nov 13, 2024
6053de1
Manual paged result; reverting Core paging changes
mccoyp Nov 13, 2024
8bfb158
Fix breaking operationId changes
mccoyp Nov 13, 2024
5f09126
Remove resource operations
mccoyp Nov 13, 2024
4bf66c8
Attempt to add minLength for enc
mccoyp Nov 13, 2024
07789c4
Revert to using KeyVaultError
mccoyp Nov 13, 2024
1c806d2
Make kid non-readOnly
mccoyp Nov 13, 2024
fb9f2dc
Treat recoveryLevel as an opaque string
mccoyp Nov 13, 2024
09b8f9e
union ActionType -> enum KeyRotationPolicyAction
mccoyp Nov 13, 2024
77914a0
add typescript
maorleger Nov 18, 2024
f89003f
go specific changes
gracewilcox Nov 19, 2024
38976e3
public deletionRecoveryLevel
maorleger Nov 19, 2024
9561bad
use usage instead of access decorator
maorleger Nov 19, 2024
f8a2758
Compile latest TSP
mccoyp Nov 20, 2024
1d41054
more go changes
gracewilcox Dec 3, 2024
3285643
Remove outdated 'keys-sdk.json' file
mccoyp Dec 4, 2024
ac00648
Remove description newlines; Use DeletionRecoveryLevel
mccoyp Dec 5, 2024
bd25e77
Run prettier on examples
mccoyp Dec 6, 2024
5ec962b
TSP validation
mccoyp Dec 6, 2024
a333a9c
Suppress integer format error where unixtime is used
mccoyp Dec 7, 2024
435f669
Added Java configuration
vcolin7 Dec 14, 2024
c9b1a92
Azure.Core.nextLink -> TypeSpec.nextLink
mccoyp Dec 18, 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
Prev Previous commit
Next Next commit
more go changes
  • Loading branch information
gracewilcox committed Dec 3, 2024
commit 1d41054b0ef409b998bcb33213e48ec2634d4ed4
29 changes: 29 additions & 0 deletions specification/keyvault/Security.KeyVault.Keys/routes.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ op createKey is Azure.Core.Foundations.Operation<
*/
@pattern("^[0-9a-zA-Z-]+$")
@path("key-name")
@clientName("name", "go")
keyName: string;

/**
Expand Down Expand Up @@ -69,6 +70,7 @@ op rotateKey is Azure.Core.Foundations.Operation<
*/
@pattern("^[0-9a-zA-Z-]+$")
@path("key-name")
@clientName("name", "go")
keyName: string;
},
KeyBundle,
Expand Down Expand Up @@ -98,6 +100,7 @@ op importKey is Azure.Core.Foundations.Operation<
*/
@pattern("^[0-9a-zA-Z-]+$")
@path("key-name")
@clientName("name", "go")
keyName: string;

/**
Expand Down Expand Up @@ -129,6 +132,7 @@ op deleteKey is Azure.Core.Foundations.Operation<
* The name of the key to delete.
*/
@path("key-name")
@clientName("name", "go")
keyName: string;
},
DeletedKeyBundle,
Expand All @@ -154,12 +158,14 @@ op updateKey is Azure.Core.Foundations.Operation<
* The name of key to update.
*/
@path("key-name")
@clientName("name", "go")
keyName: string;

/**
* The version of the key to update.
*/
@path("key-version")
@clientName("version", "go")
keyVersion: string;

/**
Expand Down Expand Up @@ -190,6 +196,7 @@ op getKey is Azure.Core.Foundations.Operation<
* The name of the key to get.
*/
@path("key-name")
@clientName("name", "go")
keyName: string;

/**
Expand All @@ -198,6 +205,7 @@ op getKey is Azure.Core.Foundations.Operation<
* returned.
*/
@path("key-version")
@clientName("version", "go")
keyVersion: string;
},
KeyBundle,
Expand All @@ -220,6 +228,7 @@ op getKeyVersions is Azure.Core.Foundations.Operation<
* The name of the key.
*/
@path("key-name")
@clientName("name", "go")
keyName: string;

/**
Expand Down Expand Up @@ -289,6 +298,7 @@ op backupKey is Azure.Core.Foundations.Operation<
* The name of the key.
*/
@path("key-name")
@clientName("name", "go")
keyName: string;
},
BackupKeyResult,
Expand Down Expand Up @@ -353,12 +363,14 @@ op encrypt is Azure.Core.Foundations.Operation<
* The name of the key.
*/
@path("key-name")
@clientName("name", "go")
keyName: string;

/**
* The version of the key.
*/
@path("key-version")
@clientName("version", "go")
keyVersion: string;

/**
Expand Down Expand Up @@ -399,12 +411,14 @@ op decrypt is Azure.Core.Foundations.Operation<
* The name of the key.
*/
@path("key-name")
@clientName("name", "go")
keyName: string;

/**
* The version of the key.
*/
@path("key-version")
@clientName("version", "go")
keyVersion: string;

/**
Expand Down Expand Up @@ -437,12 +451,14 @@ op sign is Azure.Core.Foundations.Operation<
* The name of the key.
*/
@path("key-name")
@clientName("name", "go")
keyName: string;

/**
* The version of the key.
*/
@path("key-version")
@clientName("version", "go")
keyVersion: string;

/**
Expand Down Expand Up @@ -478,12 +494,14 @@ op verify is Azure.Core.Foundations.Operation<
* The name of the key.
*/
@path("key-name")
@clientName("name", "go")
keyName: string;

/**
* The version of the key.
*/
@path("key-version")
@clientName("version", "go")
keyVersion: string;

/**
Expand Down Expand Up @@ -520,12 +538,14 @@ op wrapKey is Azure.Core.Foundations.Operation<
* The name of the key.
*/
@path("key-name")
@clientName("name", "go")
keyName: string;

/**
* The version of the key.
*/
@path("key-version")
@clientName("version", "go")
keyVersion: string;

/**
Expand Down Expand Up @@ -563,12 +583,14 @@ op unwrapKey is Azure.Core.Foundations.Operation<
* The name of the key.
*/
@path("key-name")
@clientName("name", "go")
keyName: string;

/**
* The version of the key.
*/
@path("key-version")
@clientName("version", "go")
keyVersion: string;

/**
Expand Down Expand Up @@ -600,12 +622,14 @@ op release is Azure.Core.Foundations.Operation<
* The name of the key to get.
*/
@path("key-name")
@clientName("name", "go")
keyName: string;

/**
* Adding the version parameter retrieves a specific version of a key.
*/
@path("key-version")
@clientName("version", "go")
keyVersion: string;

/**
Expand Down Expand Up @@ -666,6 +690,7 @@ op getDeletedKey is Azure.Core.Foundations.Operation<
* The name of the key.
*/
@path("key-name")
@clientName("name", "go")
keyName: string;
},
DeletedKeyBundle,
Expand All @@ -690,6 +715,7 @@ op purgeDeletedKey is Azure.Core.Foundations.Operation<
* The name of the key
*/
@path("key-name")
@clientName("name", "go")
keyName: string;
},
void,
Expand All @@ -714,6 +740,7 @@ op recoverDeletedKey is Azure.Core.Foundations.Operation<
* The name of the deleted key.
*/
@path("key-name")
@clientName("name", "go")
keyName: string;
},
KeyBundle,
Expand All @@ -735,6 +762,7 @@ op getKeyRotationPolicy is Azure.Core.Foundations.Operation<
* The name of the key in a given key vault.
*/
@path("key-name")
@clientName("name", "go")
keyName: string;
},
KeyRotationPolicy,
Expand All @@ -757,6 +785,7 @@ op updateKeyRotationPolicy is Azure.Core.Foundations.Operation<
* The name of the key in the given vault.
*/
@path("key-name")
@clientName("name", "go")
keyName: string;

/**
Expand Down
Loading