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 11e29097e2ce9c893eed6b83e82be272bf12d096 into 3aef2f96202eec656fca4abc4df0fbfe10b89ac0
  • Loading branch information
SDKAuto committed Jun 25, 2024
1 parent e6db98e commit 8596a65
Show file tree
Hide file tree
Showing 18 changed files with 464 additions and 1,087 deletions.
785 changes: 393 additions & 392 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-25)

## 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": "9b2410a0a55e69abf69230e4d28892484c88eedb",
"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 @@ -295,10 +295,6 @@ export class GuestConfigurationClient extends coreClient.ServiceClient {
// (undocumented)
guestConfigurationAssignmentsVmss: GuestConfigurationAssignmentsVmss;
// (undocumented)
guestConfigurationConnectedVMwarevSphereAssignments: GuestConfigurationConnectedVMwarevSphereAssignments;
// (undocumented)
guestConfigurationConnectedVMwarevSphereAssignmentsReports: GuestConfigurationConnectedVMwarevSphereAssignmentsReports;
// (undocumented)
guestConfigurationHcrpAssignmentReports: GuestConfigurationHcrpAssignmentReports;
// (undocumented)
guestConfigurationHcrpAssignments: GuestConfigurationHcrpAssignments;
Expand All @@ -315,59 +311,6 @@ export interface GuestConfigurationClientOptionalParams extends coreClient.Servi
endpoint?: string;
}

// @public
export interface GuestConfigurationConnectedVMwarevSphereAssignments {
createOrUpdate(resourceGroupName: string, vmName: string, guestConfigurationAssignmentName: string, parameters: GuestConfigurationAssignment, options?: GuestConfigurationConnectedVMwarevSphereAssignmentsCreateOrUpdateOptionalParams): Promise<GuestConfigurationConnectedVMwarevSphereAssignmentsCreateOrUpdateResponse>;
delete(resourceGroupName: string, vmName: string, guestConfigurationAssignmentName: string, options?: GuestConfigurationConnectedVMwarevSphereAssignmentsDeleteOptionalParams): Promise<void>;
get(resourceGroupName: string, vmName: string, guestConfigurationAssignmentName: string, options?: GuestConfigurationConnectedVMwarevSphereAssignmentsGetOptionalParams): Promise<GuestConfigurationConnectedVMwarevSphereAssignmentsGetResponse>;
list(resourceGroupName: string, vmName: string, options?: GuestConfigurationConnectedVMwarevSphereAssignmentsListOptionalParams): PagedAsyncIterableIterator<GuestConfigurationAssignment>;
}

// @public
export interface GuestConfigurationConnectedVMwarevSphereAssignmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
}

// @public
export type GuestConfigurationConnectedVMwarevSphereAssignmentsCreateOrUpdateResponse = GuestConfigurationAssignment;

// @public
export interface GuestConfigurationConnectedVMwarevSphereAssignmentsDeleteOptionalParams extends coreClient.OperationOptions {
}

// @public
export interface GuestConfigurationConnectedVMwarevSphereAssignmentsGetOptionalParams extends coreClient.OperationOptions {
}

// @public
export type GuestConfigurationConnectedVMwarevSphereAssignmentsGetResponse = GuestConfigurationAssignment;

// @public
export interface GuestConfigurationConnectedVMwarevSphereAssignmentsListOptionalParams extends coreClient.OperationOptions {
}

// @public
export type GuestConfigurationConnectedVMwarevSphereAssignmentsListResponse = GuestConfigurationAssignmentList;

// @public
export interface GuestConfigurationConnectedVMwarevSphereAssignmentsReports {
get(resourceGroupName: string, vmName: string, guestConfigurationAssignmentName: string, reportId: string, options?: GuestConfigurationConnectedVMwarevSphereAssignmentsReportsGetOptionalParams): Promise<GuestConfigurationConnectedVMwarevSphereAssignmentsReportsGetResponse>;
list(resourceGroupName: string, vmName: string, guestConfigurationAssignmentName: string, options?: GuestConfigurationConnectedVMwarevSphereAssignmentsReportsListOptionalParams): Promise<GuestConfigurationConnectedVMwarevSphereAssignmentsReportsListResponse>;
}

// @public
export interface GuestConfigurationConnectedVMwarevSphereAssignmentsReportsGetOptionalParams extends coreClient.OperationOptions {
}

// @public
export type GuestConfigurationConnectedVMwarevSphereAssignmentsReportsGetResponse = GuestConfigurationAssignmentReport;

// @public
export interface GuestConfigurationConnectedVMwarevSphereAssignmentsReportsListOptionalParams extends coreClient.OperationOptions {
}

// @public
export type GuestConfigurationConnectedVMwarevSphereAssignmentsReportsListResponse = GuestConfigurationAssignmentReportList;

// @public
export interface GuestConfigurationHcrpAssignmentReports {
get(resourceGroupName: string, guestConfigurationAssignmentName: string, reportId: string, machineName: string, options?: GuestConfigurationHcrpAssignmentReportsGetOptionalParams): Promise<GuestConfigurationHcrpAssignmentReportsGetResponse>;
Expand Down Expand Up @@ -429,6 +372,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 @@ -21,8 +21,6 @@ import {
GuestConfigurationHcrpAssignmentReportsImpl,
GuestConfigurationAssignmentsVmssImpl,
GuestConfigurationAssignmentReportsVmssImpl,
GuestConfigurationConnectedVMwarevSphereAssignmentsImpl,
GuestConfigurationConnectedVMwarevSphereAssignmentsReportsImpl,
OperationsImpl,
} from "./operations";
import {
Expand All @@ -32,8 +30,6 @@ import {
GuestConfigurationHcrpAssignmentReports,
GuestConfigurationAssignmentsVmss,
GuestConfigurationAssignmentReportsVmss,
GuestConfigurationConnectedVMwarevSphereAssignments,
GuestConfigurationConnectedVMwarevSphereAssignmentsReports,
Operations,
} from "./operationsInterfaces";
import { GuestConfigurationClientOptionalParams } from "./models";
Expand Down Expand Up @@ -71,7 +67,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 +121,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 All @@ -139,10 +135,6 @@ export class GuestConfigurationClient extends coreClient.ServiceClient {
new GuestConfigurationAssignmentsVmssImpl(this);
this.guestConfigurationAssignmentReportsVmss =
new GuestConfigurationAssignmentReportsVmssImpl(this);
this.guestConfigurationConnectedVMwarevSphereAssignments =
new GuestConfigurationConnectedVMwarevSphereAssignmentsImpl(this);
this.guestConfigurationConnectedVMwarevSphereAssignmentsReports =
new GuestConfigurationConnectedVMwarevSphereAssignmentsReportsImpl(this);
this.operations = new OperationsImpl(this);
this.addCustomApiVersionPolicy(options.apiVersion);
}
Expand Down Expand Up @@ -181,7 +173,5 @@ export class GuestConfigurationClient extends coreClient.ServiceClient {
guestConfigurationHcrpAssignmentReports: GuestConfigurationHcrpAssignmentReports;
guestConfigurationAssignmentsVmss: GuestConfigurationAssignmentsVmss;
guestConfigurationAssignmentReportsVmss: GuestConfigurationAssignmentReportsVmss;
guestConfigurationConnectedVMwarevSphereAssignments: GuestConfigurationConnectedVMwarevSphereAssignments;
guestConfigurationConnectedVMwarevSphereAssignmentsReports: GuestConfigurationConnectedVMwarevSphereAssignmentsReports;
operations: Operations;
}
46 changes: 2 additions & 44 deletions sdk/guestconfiguration/arm-guestconfiguration/src/models/index.ts
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 Expand Up @@ -784,50 +786,6 @@ export interface GuestConfigurationAssignmentReportsVmssGetOptionalParams
export type GuestConfigurationAssignmentReportsVmssGetResponse =
GuestConfigurationAssignmentReport;

/** Optional parameters. */
export interface GuestConfigurationConnectedVMwarevSphereAssignmentsCreateOrUpdateOptionalParams
extends coreClient.OperationOptions {}

/** Contains response data for the createOrUpdate operation. */
export type GuestConfigurationConnectedVMwarevSphereAssignmentsCreateOrUpdateResponse =
GuestConfigurationAssignment;

/** Optional parameters. */
export interface GuestConfigurationConnectedVMwarevSphereAssignmentsGetOptionalParams
extends coreClient.OperationOptions {}

/** Contains response data for the get operation. */
export type GuestConfigurationConnectedVMwarevSphereAssignmentsGetResponse =
GuestConfigurationAssignment;

/** Optional parameters. */
export interface GuestConfigurationConnectedVMwarevSphereAssignmentsDeleteOptionalParams
extends coreClient.OperationOptions {}

/** Optional parameters. */
export interface GuestConfigurationConnectedVMwarevSphereAssignmentsListOptionalParams
extends coreClient.OperationOptions {}

/** Contains response data for the list operation. */
export type GuestConfigurationConnectedVMwarevSphereAssignmentsListResponse =
GuestConfigurationAssignmentList;

/** Optional parameters. */
export interface GuestConfigurationConnectedVMwarevSphereAssignmentsReportsListOptionalParams
extends coreClient.OperationOptions {}

/** Contains response data for the list operation. */
export type GuestConfigurationConnectedVMwarevSphereAssignmentsReportsListResponse =
GuestConfigurationAssignmentReportList;

/** Optional parameters. */
export interface GuestConfigurationConnectedVMwarevSphereAssignmentsReportsGetOptionalParams
extends coreClient.OperationOptions {}

/** Contains response data for the get operation. */
export type GuestConfigurationConnectedVMwarevSphereAssignmentsReportsGetResponse =
GuestConfigurationAssignmentReport;

/** Optional parameters. */
export interface OperationsListOptionalParams
extends coreClient.OperationOptions {}
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 Expand Up @@ -170,17 +170,3 @@ export const id: OperationURLParameter = {
},
},
};

export const guestConfigurationAssignmentName1: OperationURLParameter = {
parameterPath: "guestConfigurationAssignmentName",
mapper: {
constraints: {
Pattern: new RegExp("^[^<>%&:\\\\?/#]*$"),
},
serializedName: "guestConfigurationAssignmentName",
required: true,
type: {
name: "String",
},
},
};
Loading

0 comments on commit 8596a65

Please sign in to comment.