Skip to content

Commit c868196

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

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 StorageAccountsParameters = {
61+
/**
62+
* May be used to expand the properties within account's properties. By default, data is not included when fetching properties. Currently we only support geoReplicationStats and blobRestoreStatus.
63+
*/
64+
@query("$expand")
65+
$expand?: StorageAccountExpand;
66+
};
67+
6068
@armResourceOperations
6169
interface StorageAccounts {
6270
/**
@@ -75,13 +83,7 @@ interface StorageAccounts {
7583
*/
7684
getProperties is ArmResourceRead<
7785
StorageAccount,
78-
Parameters = {
79-
/**
80-
* May be used to expand the properties within account's properties. By default, data is not included when fetching properties. Currently we only support geoReplicationStats and blobRestoreStatus.
81-
*/
82-
@query("$expand")
83-
$expand?: StorageAccountExpand;
84-
},
86+
Parameters = StorageAccountsParameters,
8587
Error = ErrorResponse
8688
>;
8789

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(StorageAccountsParameters.$expand,
87+
"kerb",
88+
"python"
89+
);

0 commit comments

Comments
 (0)