Skip to content

Commit

Permalink
CodeGen from PR 29166 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge af618808289c6040920339116f0ab5d8c20c0734 into bf820efd61038a0f44f687d7dffba32b2a08da93
  • Loading branch information
SDKAuto committed Jun 6, 2024
1 parent bb82201 commit 1df9bea
Show file tree
Hide file tree
Showing 12 changed files with 464 additions and 433 deletions.
783 changes: 393 additions & 390 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

16 changes: 3 additions & 13 deletions sdk/guestconfiguration/arm-guestconfiguration/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
# Release History

## 1.0.0 (2024-06-06)

## 1.0.0-beta.2 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 1.0.0-beta.1 (2024-04-28)

The package of @azure/arm-guestconfiguration is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ).
The package of @azure/arm-guestconfiguration is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart).
2 changes: 1 addition & 1 deletion sdk/guestconfiguration/arm-guestconfiguration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Guest Configuration Client

[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/guestconfiguration/arm-guestconfiguration) |
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-guestconfiguration) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-guestconfiguration?view=azure-node-preview) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-guestconfiguration) |
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)

## Getting started
Expand Down
8 changes: 4 additions & 4 deletions sdk/guestconfiguration/arm-guestconfiguration/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "e6a20fec72ed3bcb4b43c559ee20b56ca2786ec0",
"commit": "1d1a656542b9fab32ff963c1ebca38a15d80afcc",
"readme": "specification/guestconfiguration/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\\guestconfiguration\\resource-manager\\readme.md --use=@autorest/typescript@6.0.20 --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/guestconfiguration/resource-manager/readme.md --use=@autorest/typescript@^6.0.12",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.5",
"use": "@autorest/typescript@6.0.20"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.10",
"use": "@autorest/typescript@^6.0.12"
}
20 changes: 6 additions & 14 deletions sdk/guestconfiguration/arm-guestconfiguration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for GuestConfigurationClient.",
"version": "1.0.0-beta.2",
"version": "1.0.0",
"engines": {
"node": ">=18.0.0"
},
Expand Down Expand Up @@ -35,10 +35,10 @@
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.0.1",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.0.0",
"@azure-tools/test-credential": "^1.1.0",
"mocha": "^10.0.0",
"@types/mocha": "^10.0.0",
"esm": "^3.2.18",
"tsx": "^4.7.1",
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
Expand Down Expand Up @@ -74,7 +74,7 @@
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"prepack": "npm run build",
"pack": "npm pack 2>&1",
"extract-api": "api-extractor run --local",
"extract-api": "dev-tool run extract-api",
"lint": "echo skipped",
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"build:node": "echo skipped",
Expand Down Expand Up @@ -104,13 +104,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/guestconfiguration/arm-guestconfiguration",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-guestconfiguration?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/guestconfiguration/arm-guestconfiguration"
}
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ export interface GuestConfigurationNavigation {
configurationProtectedParameter?: ConfigurationParameter[];
readonly configurationSetting?: ConfigurationSetting;
contentHash?: string;
contentManagedIdentity?: string;
readonly contentType?: string;
contentUri?: string;
kind?: Kind;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class GuestConfigurationClient extends coreClient.ServiceClient {
credential: credentials,
};

const packageDetails = `azsdk-js-arm-guestconfiguration/1.0.0-beta.2`;
const packageDetails = `azsdk-js-arm-guestconfiguration/1.0.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down Expand Up @@ -125,7 +125,7 @@ export class GuestConfigurationClient extends coreClient.ServiceClient {

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2022-01-25";
this.apiVersion = options.apiVersion || "2024-04-05";
this.guestConfigurationAssignments = new GuestConfigurationAssignmentsImpl(
this,
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ export interface GuestConfigurationNavigation {
contentUri?: string;
/** Combined hash of the guest configuration package and configuration parameters. */
contentHash?: string;
/** Managed identity with storage access of the guest configuration package and configuration parameters. */
contentManagedIdentity?: string;
/** Specifies the assignment type and execution of the configuration. Possible values are Audit, DeployAndAutoCorrect, ApplyAndAutoCorrect and ApplyAndMonitor. */
assignmentType?: AssignmentType;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ export const GuestConfigurationNavigation: coreClient.CompositeMapper = {
name: "String",
},
},
contentManagedIdentity: {
serializedName: "contentManagedIdentity",
type: {
name: "String",
},
},
assignmentType: {
serializedName: "assignmentType",
type: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export const vmName: OperationURLParameter = {
export const apiVersion: OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
defaultValue: "2022-01-25",
defaultValue: "2024-04-05",
isConstant: true,
serializedName: "api-version",
type: {
Expand Down
43 changes: 43 additions & 0 deletions sdk/guestconfiguration/arm-guestconfiguration/test/sampleTest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

import {
Recorder,
RecorderStartOptions,
env,
} from "@azure-tools/test-recorder";
import { assert } from "chai";
import { Context } from "mocha";

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",
};

const recorderOptions: RecorderStartOptions = {
envSetupForPlayback: replaceableVariables,
};

describe("My test", () => {
let recorder: Recorder;

beforeEach(async function (this: Context) {
recorder = new Recorder(this.currentTest);
await recorder.start(recorderOptions);
});

afterEach(async function () {
await recorder.stop();
});

it("sample test", async function () {
console.log("Hi, I'm a test!");
});
});
10 changes: 2 additions & 8 deletions sdk/guestconfiguration/arm-guestconfiguration/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-guestconfiguration": [
"./src/index"
]
}
"importHelpers": true
},
"include": [
"./src/**/*.ts",
"./test/**/*.ts",
"samples-dev/**/*.ts"
"./test/**/*.ts"
],
"exclude": [
"node_modules"
Expand Down

0 comments on commit 1df9bea

Please sign in to comment.