Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
cperaltah committed Jan 27, 2025
1 parent 9c5ce0b commit 3651810
Showing 1 changed file with 50 additions and 32 deletions.
82 changes: 50 additions & 32 deletions specification/appconfiguration/AppConfiguration/routes.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ alias KeysRequestParams = {
op getKeys is Foundations.ResourceList<
Key,
KeysRequestParams,
KeyListResult & SyncTokenHeader & ContentTypeHeader<"application/vnd.microsoft.appconfig.keyset+json">,
KeyListResult &
SyncTokenHeader &
ContentTypeHeader<"application/vnd.microsoft.appconfig.keyset+json">,
{},
Error
>;
Expand All @@ -57,31 +59,31 @@ op checkKeys is AppConfigOperation<

alias KeyValuesRequestParams = {
...KeyQueryParam<"""
A filter used to match keys. Syntax reference:
https://aka.ms/azconfig/docs/keyvaluefiltering
""">;
...LabelQueryParam<"""
A filter used to match labels. Syntax reference:
https://aka.ms/azconfig/docs/keyvaluefiltering
""">;
...SyncTokenHeader;
...AfterHeader;
...AcceptDatetimeHeader;
...SelectQueryParam<
"Used to select what fields are present in the returned resource(s).",
KeyValueFields
>;
...SnapshotOptionalQueryParam<"""
A filter used get key-values for a snapshot. The value should be the name of
the snapshot. Not valid when used with 'key' and 'label' filters.
""">;
...IfMatchHeader;
...IfNoneMatchHeader;
#suppress "@azure-tools/typespec-azure-core/no-query-explode" "Pre-existing API contract"
...TagsQueryParam<"""
A filter used to query by tags. Syntax reference:
https://aka.ms/azconfig/docs/keyvaluefiltering
""">;
A filter used to match keys. Syntax reference:
https://aka.ms/azconfig/docs/keyvaluefiltering
""">;
...LabelQueryParam<"""
A filter used to match labels. Syntax reference:
https://aka.ms/azconfig/docs/keyvaluefiltering
""">;
...SyncTokenHeader;
...AfterHeader;
...AcceptDatetimeHeader;
...SelectQueryParam<
"Used to select what fields are present in the returned resource(s).",
KeyValueFields
>;
...SnapshotOptionalQueryParam<"""
A filter used get key-values for a snapshot. The value should be the name of
the snapshot. Not valid when used with 'key' and 'label' filters.
""">;
...IfMatchHeader;
...IfNoneMatchHeader;
#suppress "@azure-tools/typespec-azure-core/no-query-explode" "Pre-existing API contract"
...TagsQueryParam<"""
A filter used to query by tags. Syntax reference:
https://aka.ms/azconfig/docs/keyvaluefiltering
""">;
};

#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Pre-existing API contract"
Expand Down Expand Up @@ -126,7 +128,10 @@ op getKeyValue is Foundations.ResourceOperation<
...IfNoneMatchHeader;
...ClientRequestIdHeader;
},
Body<KeyValue> & RequestIdResponseHeader & AppConfigResponseHeaders & ContentTypeHeader<"application/vnd.microsoft.appconfig.kv+json">,
Body<KeyValue> &
RequestIdResponseHeader &
AppConfigResponseHeaders &
ContentTypeHeader<"application/vnd.microsoft.appconfig.kv+json">,
{},
Error
>;
Expand Down Expand Up @@ -228,7 +233,9 @@ op getSnapshots is Foundations.ResourceList<

...SyncTokenHeader;
},
SnapshotListResult & SyncTokenHeader & ContentTypeHeader<"application/vnd.microsoft.appconfig.snapshotset+json">,
SnapshotListResult &
SyncTokenHeader &
ContentTypeHeader<"application/vnd.microsoft.appconfig.snapshotset+json">,
{},
Error
>;
Expand Down Expand Up @@ -257,7 +264,10 @@ op getSnapshot is StandardOps.ResourceRead<
...IfNoneMatchHeader;
...ClientRequestIdHeader;
}> &
ResponseHeadersTrait<AppConfigResponseHeaders & LinkHeader & ContentTypeHeader<"application/vnd.microsoft.appconfig.snapshot+json"> & RequestIdResponseHeader>
ResponseHeadersTrait<AppConfigResponseHeaders &
LinkHeader &
ContentTypeHeader<"application/vnd.microsoft.appconfig.snapshot+json"> &
RequestIdResponseHeader>
>;

#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Pre-existing API contract"
Expand All @@ -282,7 +292,10 @@ op createSnapshot is Foundations.LongRunningOperation<
entity: Snapshot;
},
CreatedResponse &
Snapshot & AppConfigResponseHeaders & LinkHeader & ContentTypeHeader<"application/vnd.microsoft.appconfig.snapshot+json">,
Snapshot &
AppConfigResponseHeaders &
LinkHeader &
ContentTypeHeader<"application/vnd.microsoft.appconfig.snapshot+json">,
{},
Error
>;
Expand All @@ -308,7 +321,10 @@ op updateSnapshot is AppConfigOperation<
@body
entity: SnapshotUpdateParameters;
},
Snapshot & AppConfigResponseHeaders & LinkHeader & ContentTypeHeader<"application/vnd.microsoft.appconfig.snapshot+json">
Snapshot &
AppConfigResponseHeaders &
LinkHeader &
ContentTypeHeader<"application/vnd.microsoft.appconfig.snapshot+json">
>;

#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "No data-plane HEAD operation template"
Expand Down Expand Up @@ -344,7 +360,9 @@ alias LabelsRequestParams = {
@route("/labels")
op getLabels is AppConfigOperation<
LabelsRequestParams,
LabelListResult & SyncTokenHeader & ContentTypeHeader<"application/vnd.microsoft.appconfig.labelset+json">
LabelListResult &
SyncTokenHeader &
ContentTypeHeader<"application/vnd.microsoft.appconfig.labelset+json">
>;

#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "No data-plane HEAD operation template"
Expand Down

0 comments on commit 3651810

Please sign in to comment.