Skip to content

Commit 213a48c

Browse files
wanghoppeHoppe Wang
andauthored
Update internal RLC to latest API version (#2947)
Co-authored-by: Hoppe Wang <hoppewang@microsoft.com>
1 parent 086d918 commit 213a48c

22 files changed

+1293
-517
lines changed

eng/emitter-package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"name": "typescript-emitter-package",
33
"main": "dist/src/index.js",
44
"dependencies": {
5-
"@azure-tools/typespec-ts": "0.29.0",
6-
"@azure-tools/typespec-azure-core": "0.42.0",
7-
"@azure-tools/typespec-autorest": "0.42.1",
8-
"@azure-tools/typespec-client-generator-core": "0.42.3",
9-
"@azure-tools/typespec-azure-resource-manager": "0.42.1",
10-
"@azure-tools/typespec-azure-rulesets": "0.42.1",
11-
"@typespec/compiler": "0.56.0",
12-
"@typespec/http": "0.56.0",
13-
"@typespec/rest": "0.56.0",
14-
"@typespec/versioning": "0.56.0"
5+
"@azure-tools/typespec-ts": "0.33.0",
6+
"@azure-tools/typespec-azure-core": "0.45.0",
7+
"@azure-tools/typespec-autorest": "0.45.0",
8+
"@azure-tools/typespec-client-generator-core": "0.45.4",
9+
"@azure-tools/typespec-azure-resource-manager": "0.45.0",
10+
"@azure-tools/typespec-azure-rulesets": "0.45.0",
11+
"@typespec/compiler": "0.59.1",
12+
"@typespec/http": "0.59.1",
13+
"@typespec/rest": "0.59.1",
14+
"@typespec/versioning": "0.59.0"
1515
}
1616
}

packages/service/src/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export const BatchApiVersion = {
2-
arm: `2023-11-01`,
3-
data: `2024-02-01.19.0`,
2+
arm: `2024-07-01`,
3+
data: `2024-07-01.20.0`,
44
};

packages/service/src/internal/arm-batch-rest/generated/batchManagementClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default function createClient(
1414
options: ClientOptions = {}
1515
): BatchManagementClient {
1616
const baseUrl = options.baseUrl ?? `https://management.azure.com`;
17-
options.apiVersion = options.apiVersion ?? "2023-11-01";
17+
options.apiVersion = options.apiVersion ?? "2024-07-01";
1818
options = {
1919
...options,
2020
credentials: {

packages/service/src/internal/arm-batch-rest/generated/clientDefinitions.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import {
2626
ApplicationListParameters,
2727
LocationGetQuotasParameters,
2828
LocationListSupportedVirtualMachineSkusParameters,
29-
LocationListSupportedCloudServiceSkusParameters,
3029
LocationCheckNameAvailabilityParameters,
3130
OperationsListParameters,
3231
CertificateListByBatchAccountParameters,
@@ -103,8 +102,6 @@ import {
103102
LocationGetQuotasDefaultResponse,
104103
LocationListSupportedVirtualMachineSkus200Response,
105104
LocationListSupportedVirtualMachineSkusDefaultResponse,
106-
LocationListSupportedCloudServiceSkus200Response,
107-
LocationListSupportedCloudServiceSkusDefaultResponse,
108105
LocationCheckNameAvailability200Response,
109106
LocationCheckNameAvailabilityDefaultResponse,
110107
OperationsList200Response,
@@ -365,16 +362,6 @@ export interface LocationListSupportedVirtualMachineSkus {
365362
>;
366363
}
367364

368-
export interface LocationListSupportedCloudServiceSkus {
369-
/** Gets the list of Batch supported Cloud Service VM sizes available at the given location. */
370-
get(
371-
options?: LocationListSupportedCloudServiceSkusParameters
372-
): StreamableMethod<
373-
| LocationListSupportedCloudServiceSkus200Response
374-
| LocationListSupportedCloudServiceSkusDefaultResponse
375-
>;
376-
}
377-
378365
export interface LocationCheckNameAvailability {
379366
/** Checks whether the Batch account name is available in the specified region. */
380367
post(
@@ -669,12 +656,6 @@ export interface Routes {
669656
subscriptionId: string,
670657
locationName: string
671658
): LocationListSupportedVirtualMachineSkus;
672-
/** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Batch/locations/\{locationName\}/cloudServiceSkus' has methods for the following verbs: get */
673-
(
674-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/cloudServiceSkus",
675-
subscriptionId: string,
676-
locationName: string
677-
): LocationListSupportedCloudServiceSkus;
678659
/** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Batch/locations/\{locationName\}/checkNameAvailability' has methods for the following verbs: post */
679660
(
680661
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/checkNameAvailability",

packages/service/src/internal/arm-batch-rest/generated/isUnexpected.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ import {
5555
LocationGetQuotasDefaultResponse,
5656
LocationListSupportedVirtualMachineSkus200Response,
5757
LocationListSupportedVirtualMachineSkusDefaultResponse,
58-
LocationListSupportedCloudServiceSkus200Response,
59-
LocationListSupportedCloudServiceSkusDefaultResponse,
6058
LocationCheckNameAvailability200Response,
6159
LocationCheckNameAvailabilityDefaultResponse,
6260
OperationsList200Response,
@@ -185,9 +183,6 @@ const responseMap: Record<string, string[]> = {
185183
"GET /subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/virtualMachineSkus": [
186184
"200"
187185
],
188-
"GET /subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/cloudServiceSkus": [
189-
"200"
190-
],
191186
"POST /subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/checkNameAvailability": [
192187
"200"
193188
],
@@ -364,11 +359,6 @@ export function isUnexpected(
364359
| LocationListSupportedVirtualMachineSkus200Response
365360
| LocationListSupportedVirtualMachineSkusDefaultResponse
366361
): response is LocationListSupportedVirtualMachineSkusDefaultResponse;
367-
export function isUnexpected(
368-
response:
369-
| LocationListSupportedCloudServiceSkus200Response
370-
| LocationListSupportedCloudServiceSkusDefaultResponse
371-
): response is LocationListSupportedCloudServiceSkusDefaultResponse;
372362
export function isUnexpected(
373363
response:
374364
| LocationCheckNameAvailability200Response
@@ -519,8 +509,6 @@ export function isUnexpected(
519509
| LocationGetQuotasDefaultResponse
520510
| LocationListSupportedVirtualMachineSkus200Response
521511
| LocationListSupportedVirtualMachineSkusDefaultResponse
522-
| LocationListSupportedCloudServiceSkus200Response
523-
| LocationListSupportedCloudServiceSkusDefaultResponse
524512
| LocationCheckNameAvailability200Response
525513
| LocationCheckNameAvailabilityDefaultResponse
526514
| OperationsList200Response
@@ -594,7 +582,6 @@ export function isUnexpected(
594582
| ApplicationListDefaultResponse
595583
| LocationGetQuotasDefaultResponse
596584
| LocationListSupportedVirtualMachineSkusDefaultResponse
597-
| LocationListSupportedCloudServiceSkusDefaultResponse
598585
| LocationCheckNameAvailabilityDefaultResponse
599586
| OperationsListDefaultResponse
600587
| CertificateListByBatchAccountDefaultResponse

0 commit comments

Comments
 (0)