Skip to content

Commit

Permalink
[Key Vault] Add Go specific changes for 7.6-preview.2 (#32985)
Browse files Browse the repository at this point in the history
* go changes

* go changes

* rbac
  • Loading branch information
gracewilcox authored Mar 6, 2025
1 parent 28b8d4d commit cac8bb6
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 14 deletions.
19 changes: 15 additions & 4 deletions specification/keyvault/Security.KeyVault.BackupRestore/client.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,24 @@ using Azure.ClientGenerator.Core;
@TypeSpec.Versioning.useDependency(KeyVault.Versions.`v7.5`)
namespace ClientCustomizations;

@client({
name: "Client",
service: KeyVault,
})
@client(
{
name: "Client",
service: KeyVault,
},
"go"
)
interface Client {
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops"
fullBackup is KeyVault.fullBackup;
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops"
fullRestore is KeyVault.fullRestoreOperation;
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops"
selectiveKeyRestore is KeyVault.selectiveKeyRestoreOperation;
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops"
preFullBackup is KeyVault.preFullBackup;
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops"
preFullRestore is KeyVault.preFullRestoreOperation;
}

@@clientName(KeyVault.SASTokenParameter, "SASTokenParameters", "go");
Expand All @@ -28,3 +35,7 @@ interface Client {
"SASTokenParameters",
"go"
);
@@clientName(KeyVault.PreRestoreOperationParameters.sasTokenParameters,
"SASTokenParameters",
"go"
);
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,5 @@ options:
"@azure-tools/typespec-go":
service-dir: "sdk/security/keyvault"
package-dir: "azadmin/backup"
api-version: "7.5"
inject-spans: true
single-client: true
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ options:
emitter-output-dir: "{project-root}"
override-client-name: "Client"
single-client: true
api-version: "7.5"
inject-spans: true
"@azure-tools/typespec-rust":
crate-name: "azure_security_keyvault_certificates"
Expand Down
2 changes: 2 additions & 0 deletions specification/keyvault/Security.KeyVault.Keys/client.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ using KeyVault;
@@clientName(JsonWebKey.dq, "DQ", "go");
@@clientName(JsonWebKey.qi, "QI", "go");

@@clientName(KeyAttestation.certificatePemFile, "CertificatePEMFile", "go");

// JS configuration
@@clientName(JsonWebKeyCurveName.P256_K, "P256K", "javascript");
@@clientName(JsonWebKeySignatureAlgorithm.RSNULL, "Rsnull", "javascript");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ options:
emitter-output-dir: "{project-root}"
override-client-name: "Client"
single-client: true
api-version: "7.5"
inject-spans: true
"@azure-tools/typespec-rust":
crate-name: "azure_security_keyvault_keys"
Expand Down
11 changes: 7 additions & 4 deletions specification/keyvault/Security.KeyVault.RBAC/client.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ using Azure.ClientGenerator.Core;
@TypeSpec.Versioning.useDependency(KeyVault.Versions.`v7.5`)
namespace ClientCustomizations;

@client({
name: "Client",
service: KeyVault,
})
@client(
{
name: "Client",
service: KeyVault,
},
"go"
)
interface Client {
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops"
deleteRoleDefinition is KeyVault.RoleDefinitions.delete;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,5 @@ options:
"@azure-tools/typespec-go":
service-dir: "sdk/security/keyvault"
package-dir: "azadmin/rbac"
api-version: "7.5"
inject-spans: true
single-client: true
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ options:
emitter-output-dir: "{project-root}"
override-client-name: "Client"
single-client: true
api-version: "7.5"
inject-spans: true
"@azure-tools/typespec-rust":
crate-name: "azure_security_keyvault_secrets"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,5 @@ options:
"@azure-tools/typespec-go":
service-dir: "sdk/security/keyvault"
package-dir: "azadmin/settings"
api-version: "7.5"
inject-spans: true
single-client: true

0 comments on commit cac8bb6

Please sign in to comment.