Skip to content

Commit 1c86ddf

Browse files
authored
Merge branch 'main' into vikeshi26/aigrounding-lease-service-folder
2 parents 0138f46 + 2855d8b commit 1c86ddf

49 files changed

Lines changed: 1225 additions & 439 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

specification/apicenter/ApiCenter.Management/ApiDefinition.tsp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ interface ApiDefinitions {
4444
importSpecification is ArmResourceActionAsync<
4545
ApiDefinition,
4646
ApiSpecImportRequest,
47-
OkResponse
47+
OkResponse,
48+
LroHeaders = ArmLroLocationHeader<FinalResult = void> &
49+
Azure.Core.Foundations.RetryAfterHeader
4850
>;
4951
@doc("Exports the API specification.")
5052
exportSpecification is ArmResourceActionAsync<

specification/apicenter/ApiCenter.Management/tspconfig.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,18 @@ options:
1515
namespace: "com.azure.resourcemanager.apicenter"
1616
service-name: "Api Center"
1717
flavor: azure
18+
use-object-for-unknown: true
1819
"@azure-typespec/http-client-csharp-mgmt":
1920
namespace: "Azure.ResourceManager.ApiCenter"
2021
emitter-output-dir: "{output-dir}/{service-dir}/{namespace}"
22+
"@azure-tools/typespec-ts":
23+
emitter-output-dir: "{output-dir}/{service-dir}/arm-apicenter"
24+
service-dir: sdk/apicenter
25+
flavor: "azure"
26+
compatibility-lro: true
27+
experimental-extensible-enums: true
28+
package-details:
29+
name: "@azure/arm-apicenter"
2130
linter:
2231
extends:
2332
- "@azure-tools/typespec-azure-rulesets/resource-manager"

specification/apicenter/resource-manager/Microsoft.ApiCenter/preview/2024-03-15-preview/apicenter.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4850,10 +4850,6 @@
48504850
"url"
48514851
]
48524852
},
4853-
"TypeSpec.Http.OkResponse": {
4854-
"type": "object",
4855-
"description": "The request has succeeded."
4856-
},
48574853
"Workspace": {
48584854
"type": "object",
48594855
"description": "Workspace entity.",

specification/apicenter/resource-manager/Microsoft.ApiCenter/preview/2024-06-01-preview/apicenter.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5419,10 +5419,6 @@
54195419
"url"
54205420
]
54215421
},
5422-
"TypeSpec.Http.OkResponse": {
5423-
"type": "object",
5424-
"description": "The request has succeeded."
5425-
},
54265422
"Workspace": {
54275423
"type": "object",
54285424
"description": "Workspace entity.",

specification/apicenter/resource-manager/Microsoft.ApiCenter/stable/2024-03-01/apicenter.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4585,10 +4585,6 @@
45854585
"url"
45864586
]
45874587
},
4588-
"TypeSpec.Http.OkResponse": {
4589-
"type": "object",
4590-
"description": "The request has succeeded."
4591-
},
45924588
"Workspace": {
45934589
"type": "object",
45944590
"description": "Workspace entity.",

specification/cdn/resource-manager/Microsoft.Cdn/Cdn/client.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1420,6 +1420,7 @@ using Azure.ResourceManager;
14201420
// Python SDK customizations: preserve client name and enum member names from the
14211421
// pre-migration Swagger SDK to avoid breaking changes for existing consumers.
14221422
@@clientName(Microsoft.Cdn, "CdnManagementClient", "python");
1423+
@@clientName(DeliveryRuleActionName, "DeliveryRuleActionEnum", "python");
14231424
@@clientName(
14241425
PolicySettingsDefaultCustomBlockResponseStatusCode.`200`,
14251426
"TWO_HUNDRED",

specification/compute/resource-manager/Microsoft.Compute/Compute/Compute/AvailabilitySet.tsp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ interface AvailabilitySets {
129129
convertToVirtualMachineScaleSet is ArmResourceActionAsyncBase<
130130
AvailabilitySet,
131131
Request = ConvertToVirtualMachineScaleSetInput,
132-
Response = ArmAcceptedLroResponse,
132+
Response = ArmAcceptedLroResponse<LroHeaders = ArmLroLocationHeader<FinalResult = void> &
133+
Azure.Core.Foundations.RetryAfterHeader>,
133134
BaseParameters = Azure.ResourceManager.Foundations.DefaultBaseParameters<AvailabilitySet>,
134135
Error = CloudError,
135136
OptionalRequestBody = true

specification/compute/resource-manager/Microsoft.Compute/Compute/Compute/CapacityReservation.tsp

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@ model CapacityReservation
3434
...Azure.ResourceManager.AvailabilityZonesProperty;
3535
}
3636

37-
@armResourceOperations
37+
@armResourceOperations(#{ omitTags: true })
3838
interface CapacityReservations {
3939
/**
4040
* The operation that retrieves information about the capacity reservation.
4141
*/
42+
@tag("CapacityReservations")
4243
get is ComputeResourceRead<
4344
CapacityReservation,
4445
Parameters = {
@@ -53,15 +54,22 @@ interface CapacityReservations {
5354
/**
5455
* The operation to create or update a capacity reservation. Please note some properties can be set only during capacity reservation creation. Please refer to https://aka.ms/CapacityReservation for more details.
5556
*/
57+
@tag("CapacityReservations")
5658
createOrUpdate is ComputeResourceCreateOrReplaceAsync<
5759
CapacityReservation,
58-
LroHeaders = ArmLroLocationHeader<FinalResult = CapacityReservation> &
59-
Azure.Core.Foundations.RetryAfterHeader
60+
Response =
61+
| ArmResponse<CapacityReservation>
62+
| ArmResourceCreatedResponse<
63+
CapacityReservation,
64+
LroHeaders = ArmLroLocationHeader<FinalResult = CapacityReservation> &
65+
Azure.Core.Foundations.RetryAfterHeader
66+
>
6067
>;
6168

6269
/**
6370
* The operation to update a capacity reservation.
6471
*/
72+
@tag("CapacityReservations")
6573
@patch(#{ implicitOptionality: false })
6674
update is ComputeCustomPatchAsync<
6775
CapacityReservation,
@@ -75,6 +83,7 @@ interface CapacityReservations {
7583
*/
7684
#suppress "deprecated" "For backward compatibility"
7785
#suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility"
86+
@tag("CapacityReservations")
7887
delete is ComputeResourceDeleteAsync<
7988
CapacityReservation,
8089
LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader
@@ -83,6 +92,7 @@ interface CapacityReservations {
8392
/**
8493
* Lists all of the capacity reservations in the specified capacity reservation group. Use the nextLink property in the response to get the next page of capacity reservations.
8594
*/
95+
@tag("CapacityReservation")
8696
listByCapacityReservationGroup is ComputeResourceListByParent<
8797
CapacityReservation,
8898
Parameters = {

specification/compute/resource-manager/Microsoft.Compute/Compute/Compute/DedicatedHost.tsp

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@ model DedicatedHost
3232
sku: Sku;
3333
}
3434

35-
@armResourceOperations
35+
@armResourceOperations(#{ omitTags: true })
3636
interface DedicatedHosts {
3737
/**
3838
* Retrieves information about a dedicated host.
3939
*/
40+
@tag("DedicatedHosts")
4041
get is ComputeResourceRead<
4142
DedicatedHost,
4243
Parameters = {
@@ -51,6 +52,7 @@ interface DedicatedHosts {
5152
/**
5253
* Create or update a dedicated host .
5354
*/
55+
@tag("DedicatedHosts")
5456
createOrUpdate is ComputeResourceCreateOrReplaceAsync<
5557
DedicatedHost,
5658
LroHeaders = ArmLroLocationHeader<FinalResult = DedicatedHost> &
@@ -60,6 +62,7 @@ interface DedicatedHosts {
6062
/**
6163
* Update a dedicated host .
6264
*/
65+
@tag("DedicatedHosts")
6366
@patch(#{ implicitOptionality: false })
6467
update is ComputeCustomPatchAsync<
6568
DedicatedHost,
@@ -75,11 +78,13 @@ interface DedicatedHosts {
7578
#suppress "deprecated" "For backward compatibility"
7679
#suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility"
7780
#suppress "@azure-tools/typespec-azure-core/no-response-body" "For backward compatibility"
81+
@tag("DedicatedHosts")
7882
delete is ComputeResourceDeleteAsync<DedicatedHost>;
7983

8084
/**
8185
* Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts.
8286
*/
87+
@tag("DedicatedHost")
8388
listByHostGroup is ComputeResourceListByParent<
8489
DedicatedHost,
8590
Response = DedicatedHostListResult
@@ -88,6 +93,7 @@ interface DedicatedHosts {
8893
/**
8994
* Lists all available dedicated host sizes to which the specified dedicated host can be resized. NOTE: The dedicated host sizes provided can be used to only scale up the existing dedicated host.
9095
*/
96+
@tag("DedicatedHost")
9197
@get
9298
@action("hostSizes")
9399
@list
@@ -100,21 +106,25 @@ interface DedicatedHosts {
100106
/**
101107
* Redeploy the dedicated host. The operation will complete successfully once the dedicated host has migrated to a new node and is running. To determine the health of VMs deployed on the dedicated host after the redeploy check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.
102108
*/
109+
@tag("DedicatedHost")
103110
redeploy is ComputeResourceActionNoResponseContentAsync<
104111
DedicatedHost,
105112
void,
106-
Error = CloudError
113+
Error = CloudError,
114+
LroHeaders = ArmLroLocationHeader<FinalResult = void> &
115+
Azure.Core.Foundations.RetryAfterHeader
107116
>;
108117

109118
/**
110119
* Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.
111120
*/
112121
#suppress "@azure-tools/typespec-azure-resource-manager/arm-post-operation-response-codes"
122+
@tag("DedicatedHost")
113123
restart is ComputeResourceActionAsyncBase<
114124
DedicatedHost,
115125
void,
116126
Response = OkResponse &
117-
ArmLroLocationHeader &
127+
ArmLroLocationHeader<FinalResult = void> &
118128
Azure.Core.Foundations.RetryAfterHeader,
119129
BaseParameters = Azure.ResourceManager.Foundations.DefaultBaseParameters<DedicatedHost>
120130
>;

specification/compute/resource-manager/Microsoft.Compute/Compute/Compute/RestorePoint.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ model RestorePoint
2626
>;
2727
}
2828

29-
@armResourceOperations
29+
@armResourceOperations(#{ omitTags: true })
3030
interface RestorePoints {
3131
/**
3232
* The operation to get the restore point.

0 commit comments

Comments
 (0)