Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
26 changes: 12 additions & 14 deletions specification/quota/Quota.Management/CurrentQuotaLimitBase.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ model CurrentQuotaLimitBase
>;
}

alias CurrentQuotaLimitBasesResponseHeaders = {
/**
* Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.
*/
@header("ETag")
eTag: string;
};

#suppress "@azure-tools/typespec-azure-resource-manager/no-resource-delete-operation" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@armResourceOperations
interface CurrentQuotaLimitBases {
Expand All @@ -32,13 +40,8 @@ interface CurrentQuotaLimitBases {
get is Extension.Read<
Extension.ScopeParameter,
CurrentQuotaLimitBase,
Response = ArmResponse<CurrentQuotaLimitBase> & {
/**
* Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.
*/
@header("ETag")
eTag: string;
},
Response = ArmResponse<CurrentQuotaLimitBase> &
CurrentQuotaLimitBasesResponseHeaders,
Error = ExceptionResponse
>;

Expand Down Expand Up @@ -78,13 +81,8 @@ interface CurrentQuotaLimitBases {
list is Extension.ListByTarget<
Extension.ScopeParameter,
CurrentQuotaLimitBase,
Response = ArmResponse<QuotaLimits> & {
/**
* Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.
*/
@header("ETag")
eTag: string;
},
Response = ArmResponse<QuotaLimits> &
CurrentQuotaLimitBasesResponseHeaders,
Error = ExceptionResponse
>;
}
Expand Down
3 changes: 3 additions & 0 deletions specification/quota/Quota.Management/client.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,6 @@ using Microsoft.Quota;
@@usage(SubmittedResourceRequestStatus, Usage.input, "csharp");

@@clientName(Microsoft.Quota, "QuotaMgmtClient", "python");

// Java-specific fixes for breaking changes
@@clientName(CurrentQuotaLimitBasesResponseHeaders.eTag, "etag", "java");