Skip to content

Commit af7837e

Browse files
committed
configure default value for python
1 parent efa49a1 commit af7837e

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

specification/storage/Storage.Management/StorageAccount.tsp

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ model StorageAccount
5757
placement?: Placement;
5858
}
5959

60+
alias StorageAccountListKeysParameters = {
61+
/**
62+
* Specifies type of the key to be listed. Possible value is kerb.
63+
*/
64+
@query("$expand")
65+
$expand?: "kerb";
66+
};
67+
6068
@armResourceOperations
6169
interface StorageAccounts {
6270
/**
@@ -138,13 +146,7 @@ interface StorageAccounts {
138146
StorageAccount,
139147
void,
140148
ArmResponse<StorageAccountListKeysResult>,
141-
Parameters = {
142-
/**
143-
* Specifies type of the key to be listed. Possible value is kerb.
144-
*/
145-
@query("$expand")
146-
$expand?: "kerb";
147-
},
149+
Parameters = StorageAccountListKeysParameters,
148150
Error = ErrorResponse
149151
>;
150152

specification/storage/Storage.Management/client.tsp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,9 @@ op getDeletedAccountCustomized(
8181
"ResourceAutoGenerated",
8282
"python"
8383
);
84+
85+
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Legacy decorator required for Python SDK compatibility"
86+
@@Azure.ClientGenerator.Core.Legacy.clientDefaultValue(StorageAccountListKeysParameters.$expand,
87+
"kerb",
88+
"python"
89+
);

0 commit comments

Comments
 (0)