[Microsoft.ApiManagement/AIGateway] Align AIGateway TypeSpec/OpenAPI with live 2025-09-01-preview wire contract (displayName, apiFormat, publicNetworkAccess, SKU)

Đang mở
#19 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
azure, openapi, typescript
Lĩnh vực
api, backend

Hướng nghiên cứu

Compare the TypeSpec files and emitted OpenAPI under specification/apimanagement/resource-manager/Microsoft.ApiManagement/AIGateway/ with the live 2025-09-01-preview wire contract described in the issue. Start by reviewing AIGatewayModelProvider.tsp, AIGatewayModel.tsp, and AIGatewayToolServer.tsp, then inspect the gateway properties and alias PUT definition. Done means the version, properties, SKU values, and alias preconditions match the reported live contract.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Summary

The published Microsoft.ApiManagement/AIGateway TypeSpec and emitted OpenAPI (2026-09-01-preview in https://github.com/Azure/azure-rest-api-specs/pull/45799 and 2026-11-01 in https://github.com/Azure/azure-rest-api-specs/pull/47156) have several schema and version divergences from the live deployed ARM resource provider (Microsoft.ApiManagement/aigateways@2025-09-01-preview).

Observed Deltas Between azure-rest-api-specs and Live Microsoft.ApiManagement/aigateways Wire
  1. API Version Availability (2025-09-01-preview vs 2026-09-01-preview / 2026-11-01)

    • Live ARM currently serves the full 42+ operation surface under api-version=2025-09-01-preview, which is not present in specification/apimanagement/resource-manager/Microsoft.ApiManagement/AIGateway/.
    • Meanwhile, 2026-09-01-preview in azure-rest-api-specs only contains 7 root/provider operations, and 2026-11-01 is not yet enabled on the live RP.
  2. Display Name Wire Property (properties.displayName vs properties.name)

    • In 2026-11-01 (AIGatewayModelProvider.tsp, AIGatewayModel.tsp, AIGatewayToolServer.tsp), the display name property is serialized on the wire as JSON properties.name with "x-ms-client-name": "displayName".
    • On live 2025-09-01-preview, the RP requires and returns properties.displayName for modelProviders, models, and toolServers.
  3. Model apiFormat Property Omitted

    • Live models resources accept properties.apiFormat (OpenAIChatCompletions, ResponsesApi, AnthropicMessages), which is omitted from AiGatewayModelProperties / AiGatewayModelUpdateProperties in 2026-11-01.
  4. Root Gateway publicNetworkAccess and targetProvisioningState Omitted

    • AiGatewayProperties in 2026-11-01 only models provisioningState, frontend, and backend, omitting publicNetworkAccess and targetProvisioningState returned/accepted on the wire.
  5. Gateway sku.name Values

    • Live Microsoft.ApiManagement/aigateways accepts Consumption and Premium SKUs (and rejects legacy AIGateway), whereas the spec references generic common-types Sku without documenting the valid SKU enum (Consumption, Premium).
  6. Alias PUT Precondition (If-None-Match: *) and selectionOrder

    • Portal and CLI send If-None-Match: * for create-only alias PUT and omit selectionOrder, whereas 2026-11-01 models If-Match on PUT and includes selectionOrder.
Ngôn ngữ chính
Python
Star
18
Fork
9
Merge trung bình
1 ngày 16 giờ
Pull request đã merge (30 ngày)
23

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Azure/aigateway

Tất cả issue của Azure/aigateway

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.