Skip to content

Commit e5428dd

Browse files
committed
update
1 parent a2d9e8a commit e5428dd

File tree

9 files changed

+52
-56
lines changed

9 files changed

+52
-56
lines changed

specification/maps/Maps.Management/Creator.tsp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ model Creator
2424
NamePattern = "^[^%&:\\\\/#?]+$"
2525
>;
2626

27+
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility"
28+
@doc("The system meta data relating to this resource.")
2729
@visibility(Lifecycle.Read)
2830
systemData?: Azure.ResourceManager.CommonTypes.SystemData;
2931
}

specification/maps/Maps.Management/MapsAccount.tsp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ model MapsAccount
3434
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility"
3535
kind?: Kind;
3636

37+
#suppress "@azure-tools/typespec-azure-core/documentation-required" "backward-compatible"
38+
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility"
3739
systemData?: Azure.ResourceManager.CommonTypes.SystemData;
3840
...Azure.ResourceManager.ManagedServiceIdentityProperty;
3941
}

specification/maps/Maps.Management/PrivateEndpointConnection.tsp

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,6 @@ namespace Microsoft.Maps;
1717
model PrivateEndpointConnection is PrivateEndpointConnectionResource;
1818
alias PrivateEndpointOperations = PrivateEndpoints<PrivateEndpointConnection>;
1919

20-
model PrivateEndpointConnectionPUTHeader {
21-
...ArmAsyncOperationHeader<FinalResult = PrivateEndpointConnection>;
22-
...Azure.Core.Foundations.RetryAfterHeader;
23-
}
24-
@@doc(PrivateEndpointConnectionPUTHeader.azureAsyncOperation,
25-
"Operation Status Location URI"
26-
);
27-
model PrivateEndpointConnectionDELETEHeader {
28-
...ArmAsyncOperationHeader;
29-
...Azure.Core.Foundations.RetryAfterHeader;
30-
...ArmLroLocationHeader;
31-
}
32-
@@doc(PrivateEndpointConnectionDELETEHeader.azureAsyncOperation,
33-
"Operation Status Location URI"
34-
);
35-
@@doc(PrivateEndpointConnectionDELETEHeader.location,
36-
"Operation Results Location URI"
37-
);
38-
3920
@armResourceOperations
4021
interface PrivateEndpointConnections {
4122
/**
@@ -46,10 +27,16 @@ interface PrivateEndpointConnections {
4627
/**
4728
* Create or update the state of specified private endpoint connection associated with the Maps account.
4829
*/
30+
#suppress "@azure-tools/typespec-azure-core/invalid-final-state" "back-compatible"
31+
@Azure.Core.useFinalStateVia("location")
4932
create is PrivateEndpointOperations.CreateOrReplaceAsync<
5033
MapsAccount,
5134
PrivateEndpointConnection,
52-
LroHeaders = PrivateEndpointConnectionPUTHeader
35+
Response = PrivateEndpointConnection | ArmCreatedResponse<
36+
PrivateEndpointConnection,
37+
ExtraHeaders = ArmAsyncOperationHeader &
38+
Azure.Core.Foundations.RetryAfterHeader
39+
> | ErrorResponse
5340
>;
5441

5542
/**
@@ -58,7 +45,9 @@ interface PrivateEndpointConnections {
5845
delete is PrivateEndpointOperations.DeleteAsync<
5946
MapsAccount,
6047
PrivateEndpointConnection,
61-
LroHeaders = PrivateEndpointConnectionDELETEHeader
48+
Response = ArmNoContentResponse<"Resource does not exist."> | ArmAcceptedResponse<ExtraHeaders = ArmAsyncOperationHeader &
49+
Azure.Core.Foundations.RetryAfterHeader &
50+
ArmLroLocationHeader> | ErrorResponse
6251
>;
6352

6453
/**

specification/maps/Maps.Management/PrivateLinkResource.tsp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,6 @@ using TypeSpec.Http;
1111
using TypeSpec.OpenAPI;
1212

1313
namespace Microsoft.Maps;
14-
// /**
15-
// * A private link resource.
16-
// */
17-
// @parentResource(MapsAccount)
18-
// model PrivateLinkResource
19-
// is Azure.ResourceManager.ProxyResource<PrivateLinkResourceProperties> {
20-
// ...ResourceNameParameter<
21-
// Resource = PrivateLinkResource,
22-
// KeyName = "privateLinkResourceName",
23-
// SegmentName = "privateLinkResources",
24-
// NamePattern = "^.*$"
25-
// >;
26-
// }
2714

2815
model PrivateLink is PrivateLinkResource;
2916
alias PrivateLinkOperations = PrivateLinks<PrivateLink>;

specification/maps/Maps.Management/back-compatible.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ using TypeSpec.OpenAPI;
3333

3434
@@clientLocation(OperationStatusOperationGroup.get, "OperationStatus");
3535

36+
#suppress "@azure-tools/typespec-azure-core/no-openapi" "backward compatibility."
3637
@@operationId(Operations.list, "Maps_ListOperations");

specification/maps/Maps.Management/main.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using Azure.Core;
2626
using Azure.ResourceManager;
2727
using TypeSpec.Versioning;
2828
/**
29-
* Azure Maps Resource Provider
29+
* Resource Provider
3030
*/
3131
@armProviderNamespace
3232
@service(#{ title: "Azure Maps Resource Provider" })

specification/maps/Maps.Management/models.tsp

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,12 @@ model MapsAccountProperties {
243243
/**
244244
* All encryption configuration for a resource.
245245
*/
246-
encryption?: Azure.ResourceManager.CommonTypes.EncryptionProperties;
246+
encryption?: EncryptionConfiguration;
247247

248248
/**
249249
* List of additional data processing regions for the Maps Account, which may result in requests being processed in another geography. Some features or results may be restricted to specific regions. By default, Maps REST APIs process requests according to the account location or the [geographic scope](https://learn.microsoft.com/azure/azure-maps/geographic-scope).
250250
*/
251-
@extension("x-ms-identifires", #["locationName"])
251+
@identifiers(#["locationName"])
252252
locations?: LocationsItem[];
253253

254254
/**
@@ -286,6 +286,7 @@ model CorsRules {
286286
/**
287287
* The list of CORS rules. You can include up to five CorsRule elements in the request.
288288
*/
289+
#suppress "@azure-tools/typespec-client-generator-core/property-name-conflict" "backward-compatible"
289290
@maxItems(5)
290291
@identifiers(#[])
291292
corsRules?: CorsRule[];
@@ -414,9 +415,8 @@ model AccountSasParameters {
414415
/**
415416
* Required parameter which represents the desired maximum request per second to allowed for the given SAS token. This does not guarantee perfect accuracy in measurements but provides application safe guards of abuse with eventual enforcement.
416417
*/
417-
@minValue(0)
418418
@maxValue(500)
419-
@extension("exclusiveMinimum", true)
419+
@minValueExclusive(0)
420420
maxRatePerSecond: int32 = 500;
421421

422422
/**
@@ -437,6 +437,7 @@ model MapsAccountSasToken {
437437
/**
438438
* The shared access signature access token.
439439
*/
440+
#suppress "@azure-tools/typespec-azure-resource-manager/secret-prop" "backward-compatible"
440441
@visibility(Lifecycle.Read)
441442
accountSasToken?: string;
442443
}
@@ -454,12 +455,14 @@ model MapsAccountKeys {
454455
/**
455456
* The primary key for accessing the Maps REST APIs.
456457
*/
458+
#suppress "@azure-tools/typespec-azure-resource-manager/secret-prop" "backward-compatible"
457459
@visibility(Lifecycle.Read)
458460
primaryKey?: string;
459461

460462
/**
461463
* The secondary key for accessing the Maps REST APIs.
462464
*/
465+
#suppress "@azure-tools/typespec-azure-resource-manager/secret-prop" "backward-compatible"
463466
@visibility(Lifecycle.Read)
464467
secondaryKey?: string;
465468

@@ -568,6 +571,16 @@ model PrivateLinkResourceList is Azure.Core.Page<PrivateLinkResource>;
568571
/**
569572
* A list of private endpoint connections
570573
*/
571-
model PrivateEndpointConnectionList
572-
is Azure.Core.Page<PrivateEndpointConnection>;
573-
@@extension(PrivateEndpointConnectionList.nextLink, "x-nullable", true);
574+
// model PrivateEndpointConnectionList
575+
// is Azure.Core.Page<PrivateEndpointConnection>;
576+
// @@extension(PrivateEndpointConnectionList.nextLink, "x-nullable", true);
577+
model PrivateEndpointConnectionList {
578+
@doc("The {name} items on this page", PrivateEndpointConnection)
579+
@pageItems
580+
value: PrivateEndpointConnection[];
581+
582+
#suppress "@azure-tools/typespec-azure-core/no-nullable" "backward-compatible"
583+
@doc("The link to the next page of items")
584+
@nextLink
585+
nextLink?: ResourceLocation<PrivateEndpointConnection> | null;
586+
}

specification/maps/Maps.Management/routes.tsp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ interface OperationResultOperationGroup {
1919
* Get the result of a long running azure asynchronous operation.
2020
*/
2121
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
22+
#suppress "@azure-tools/typespec-azure-resource-manager/no-response-body"
2223
@operationId("OperationResult_Get")
2324
@route("/subscriptions/{subscriptionId}/providers/Microsoft.Maps/locations/{location}/operationResults/{operationId}")
2425
@get
@@ -28,6 +29,7 @@ interface OperationResultOperationGroup {
2829
...LocationResourceParameter,
2930
...Azure.ResourceManager.CommonTypes.OperationIdParameter,
3031
): OkResponse | ArmAcceptedResponse<ExtraHeaders = {
32+
@doc("")
3133
@header("Location")
3234
location?: string;
3335
}> | ErrorResponse;

specification/maps/resource-manager/Microsoft.Maps/Maps/preview/2025-10-01-preview/maps-management.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"info": {
44
"title": "Azure Maps Resource Provider",
55
"version": "2025-10-01-preview",
6-
"description": "Azure Maps Resource Provider",
6+
"description": "Resource Provider",
77
"x-typespec-generated": [
88
{
99
"emitter": "@azure-tools/typespec-autorest"
@@ -62,7 +62,7 @@
6262
"tags": [
6363
"Operations"
6464
],
65-
"description": "List the operations for the provider",
65+
"description": "List operations available for the Maps Resource Provider",
6666
"parameters": [
6767
{
6868
"$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter"
@@ -157,7 +157,8 @@
157157
"description": "Resource operation accepted.",
158158
"headers": {
159159
"Location": {
160-
"type": "string"
160+
"type": "string",
161+
"description": ""
161162
}
162163
}
163164
},
@@ -1024,20 +1025,20 @@
10241025
],
10251026
"responses": {
10261027
"200": {
1027-
"description": "Resource 'PrivateEndpointConnection' update operation succeeded",
1028+
"description": "The request has succeeded.",
10281029
"schema": {
10291030
"$ref": "../../../../../../common-types/resource-management/v6/privatelinks.json#/definitions/PrivateEndpointConnection"
10301031
}
10311032
},
10321033
"201": {
1033-
"description": "Resource 'PrivateEndpointConnection' create operation succeeded",
1034+
"description": "Azure create operation completed successfully.",
10341035
"schema": {
10351036
"$ref": "../../../../../../common-types/resource-management/v6/privatelinks.json#/definitions/PrivateEndpointConnection"
10361037
},
10371038
"headers": {
10381039
"Azure-AsyncOperation": {
10391040
"type": "string",
1040-
"description": "Operation Status Location URI"
1041+
"description": "A link to the status monitor"
10411042
},
10421043
"Retry-After": {
10431044
"type": "integer",
@@ -1059,7 +1060,7 @@
10591060
}
10601061
},
10611062
"x-ms-long-running-operation-options": {
1062-
"final-state-via": "azure-async-operation",
1063+
"final-state-via": "location",
10631064
"final-state-schema": "../../../../../../common-types/resource-management/v6/privatelinks.json#/definitions/PrivateEndpointConnection"
10641065
},
10651066
"x-ms-long-running-operation": true
@@ -1095,15 +1096,15 @@
10951096
],
10961097
"responses": {
10971098
"202": {
1098-
"description": "Resource deletion accepted.",
1099+
"description": "Resource operation accepted.",
10991100
"headers": {
11001101
"Azure-AsyncOperation": {
11011102
"type": "string",
1102-
"description": "Operation Status Location URI"
1103+
"description": "A link to the status monitor"
11031104
},
11041105
"Location": {
11051106
"type": "string",
1106-
"description": "Operation Results Location URI"
1107+
"description": "The Location header contains the URL where the status of the long running operation can be checked."
11071108
},
11081109
"Retry-After": {
11091110
"type": "integer",
@@ -1322,8 +1323,6 @@
13221323
"format": "int32",
13231324
"description": "Required parameter which represents the desired maximum request per second to allowed for the given SAS token. This does not guarantee perfect accuracy in measurements but provides application safe guards of abuse with eventual enforcement.",
13241325
"default": 500,
1325-
"minimum": 0,
1326-
"exclusiveMinimum": true,
13271326
"maximum": 500
13281327
},
13291328
"start": {
@@ -1384,6 +1383,7 @@
13841383
},
13851384
"systemData": {
13861385
"$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/systemData",
1386+
"description": "The system meta data relating to this resource.",
13871387
"readOnly": true
13881388
}
13891389
},
@@ -1631,7 +1631,7 @@
16311631
"description": "Specifies CORS rules for the Blob service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Blob service."
16321632
},
16331633
"encryption": {
1634-
"$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/encryptionProperties",
1634+
"$ref": "../../../../../../common-types/resource-management/v6/customermanagedkeys.json#/definitions/encryption",
16351635
"description": "All encryption configuration for a resource."
16361636
},
16371637
"locations": {
@@ -1640,7 +1640,7 @@
16401640
"items": {
16411641
"$ref": "#/definitions/LocationsItem"
16421642
},
1643-
"x-ms-identifires": [
1643+
"x-ms-identifiers": [
16441644
"locationName"
16451645
]
16461646
},

0 commit comments

Comments
 (0)