Skip to content

Commit

Permalink
CodeGen from PR 30721 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 941d81824e78c274e03cb4cd71c3d2a551b81b25 into d79d73bea550b643c312dde6a7e817840c1ac914
  • Loading branch information
SDKAuto committed Sep 25, 2024
1 parent 3724590 commit a770af0
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 39 deletions.
39 changes: 35 additions & 4 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions sdk/billing/arm-billing/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "f958cceb74699d24953a6ea04536ed65767fbeb6",
"commit": "0eb27c9c15cf7b2ee632fb4437155b3207ce34b7",
"readme": "specification/billing/resource-manager/readme.md",
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\billing\\resource-manager\\readme.md --use=@autorest/[email protected].26 --generate-sample=true",
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/billing/resource-manager/readme.md --use=@autorest/typescript@^6.0.12",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "[email protected].21-beta",
"use": "@autorest/[email protected].26"
"release_tool": "@azure-tools/[email protected].14",
"use": "@autorest/typescript@^6.0.12"
}
16 changes: 4 additions & 12 deletions sdk/billing/arm-billing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
"devDependencies": {
"@microsoft/api-extractor": "^7.31.1",
"mkdirp": "^3.0.1",
"typescript": "~5.6.2",
"typescript": "~5.5.3",
"uglify-js": "^3.4.9",
"rimraf": "^5.0.5",
"rimraf": "^5.0.0",
"dotenv": "^16.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.2.1",
Expand Down Expand Up @@ -106,13 +106,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/billing/arm-billing",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-billing?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/billing/arm-billing"
}
2 changes: 1 addition & 1 deletion sdk/billing/arm-billing/src/lroImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
// Licensed under the MIT License.

import { AbortSignalLike } from "@azure/abort-controller";
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
Expand Down
8 changes: 4 additions & 4 deletions sdk/billing/arm-billing/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1719,7 +1719,7 @@ export interface BillingSubscriptionProperties {
*/
readonly nextBillingCycleDetails?: NextBillingCycleDetails;
/**
* The offer ID for the subscription. This field is only available for the Microsoft Online Services Program billing accounts.
* The offer ID for the subscription. This field is only available for the Microsoft Online Services Program billing accounts or billing accounts with agreement type Enterprise Agreement.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly offerId?: string;
Expand Down Expand Up @@ -4104,7 +4104,7 @@ export interface BillingSubscription extends ProxyResourceWithTags {
*/
readonly nextBillingCycleDetails?: NextBillingCycleDetails;
/**
* The offer ID for the subscription. This field is only available for the Microsoft Online Services Program billing accounts.
* The offer ID for the subscription. This field is only available for the Microsoft Online Services Program billing accounts or billing accounts with agreement type Enterprise Agreement.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly offerId?: string;
Expand Down Expand Up @@ -4288,7 +4288,7 @@ export interface BillingSubscriptionAlias extends ProxyResourceWithTags {
*/
readonly nextBillingCycleDetails?: NextBillingCycleDetails;
/**
* The offer ID for the subscription. This field is only available for the Microsoft Online Services Program billing accounts.
* The offer ID for the subscription. This field is only available for the Microsoft Online Services Program billing accounts or billing accounts with agreement type Enterprise Agreement.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly offerId?: string;
Expand Down Expand Up @@ -4477,7 +4477,7 @@ export interface BillingSubscriptionPatch extends ProxyResourceWithTags {
*/
readonly nextBillingCycleDetails?: NextBillingCycleDetails;
/**
* The offer ID for the subscription. This field is only available for the Microsoft Online Services Program billing accounts.
* The offer ID for the subscription. This field is only available for the Microsoft Online Services Program billing accounts or billing accounts with agreement type Enterprise Agreement.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly offerId?: string;
Expand Down
8 changes: 2 additions & 6 deletions sdk/billing/arm-billing/test/sampleTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import {
Recorder,
RecorderStartOptions,
env
env,
} from "@azure-tools/test-recorder";
import { assert } from "chai";
import { Context } from "mocha";
Expand All @@ -18,15 +18,11 @@ const replaceableVariables: Record<string, string> = {
AZURE_CLIENT_ID: "azure_client_id",
AZURE_CLIENT_SECRET: "azure_client_secret",
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
SUBSCRIPTION_ID: "azure_subscription_id"
SUBSCRIPTION_ID: "azure_subscription_id",
};

const recorderOptions: RecorderStartOptions = {
envSetupForPlayback: replaceableVariables,
removeCentralSanitizers: [
"AZSDK3493", // .name in the body is not a secret and is listed below in the beforeEach section
"AZSDK3430", // .id in the body is not a secret and is listed below in the beforeEach section
],
};

describe("My test", () => {
Expand Down
10 changes: 2 additions & 8 deletions sdk/billing/arm-billing/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,11 @@
],
"declaration": true,
"outDir": "./dist-esm",
"importHelpers": true,
"paths": {
"@azure/arm-billing": [
"./src/index"
]
}
"importHelpers": true
},
"include": [
"./src/**/*.ts",
"./test/**/*.ts",
"samples-dev/**/*.ts"
"./test/**/*.ts"
],
"exclude": [
"node_modules"
Expand Down

0 comments on commit a770af0

Please sign in to comment.