Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 34 additions & 3 deletions common/config/rush/pnpm-lock.yaml

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

24 changes: 17 additions & 7 deletions sdk/scvmm/arm-scvmm/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
# Release History

## 1.0.1 (Unreleased)

## 2.0.0 (2024-09-26)
### Features Added

### Breaking Changes
- Interface GuestAgentProperties has a new optional parameter privateLinkScopeResourceId
- Interface OsProfileForVmInstance has a new optional parameter domainName
- Interface OsProfileForVmInstance has a new optional parameter domainPassword
- Interface OsProfileForVmInstance has a new optional parameter domainUsername
- Interface OsProfileForVmInstance has a new optional parameter productKey
- Interface OsProfileForVmInstance has a new optional parameter runOnceCommands
- Interface OsProfileForVmInstance has a new optional parameter timezone
- Interface OsProfileForVmInstance has a new optional parameter workgroup
- Interface VirtualMachineInstancesStopOptionalParams has a new optional parameter body

### Bugs Fixed

### Other Changes
### Breaking Changes

- Operation VirtualMachineInstances.beginStop has a new signature
- Operation VirtualMachineInstances.beginStopAndWait has a new signature


## 1.0.0 (2024-06-25)

### Features Added
Expand Down
8 changes: 4 additions & 4 deletions sdk/scvmm/arm-scvmm/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "768c1f32bbfdcea80bdadf92dc2fba2c114c2dda",
"commit": "9b1303a1571cde5342cbccf3d91851f5ad4aea2f",
"readme": "specification/scvmm/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\\scvmm\\resource-manager\\readme.md --use=@autorest/typescript@6.0.23 --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/scvmm/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.11",
"use": "@autorest/typescript@6.0.23"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.14",
"use": "@autorest/typescript@^6.0.12"
}
20 changes: 6 additions & 14 deletions sdk/scvmm/arm-scvmm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for ScVmm.",
"version": "1.0.1",
"version": "2.0.0",
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.5.4",
"@azure/abort-controller": "^1.0.0",
"@azure/abort-controller": "^2.1.2",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.6.0",
Expand All @@ -30,12 +30,12 @@
"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.0",
"dotenv": "^16.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.0.1",
"@azure/identity": "^4.2.1",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.1.0",
"mocha": "^10.0.0",
Expand Down Expand Up @@ -106,13 +106,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/scvmm/arm-scvmm",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-scvmm?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/scvmm/arm-scvmm"
}
13 changes: 11 additions & 2 deletions sdk/scvmm/arm-scvmm/review/arm-scvmm.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ export interface GuestAgentProperties {
credentials?: GuestCredential;
readonly customResourceName?: string;
httpProxyConfig?: HttpProxyConfiguration;
privateLinkScopeResourceId?: string;
provisioningAction?: ProvisioningAction;
readonly provisioningState?: ProvisioningState;
readonly status?: string;
Expand Down Expand Up @@ -727,9 +728,16 @@ export type Origin = string;
export interface OsProfileForVmInstance {
adminPassword?: string;
computerName?: string;
domainName?: string;
domainPassword?: string;
domainUsername?: string;
readonly osSku?: string;
readonly osType?: OsType;
readonly osVersion?: string;
productKey?: string;
runOnceCommands?: string;
timezone?: number;
workgroup?: string;
}

// @public
Expand Down Expand Up @@ -925,8 +933,8 @@ export interface VirtualMachineInstances {
beginRestoreCheckpointAndWait(resourceUri: string, body: VirtualMachineRestoreCheckpoint, options?: VirtualMachineInstancesRestoreCheckpointOptionalParams): Promise<VirtualMachineInstancesRestoreCheckpointResponse>;
beginStart(resourceUri: string, options?: VirtualMachineInstancesStartOptionalParams): Promise<SimplePollerLike<OperationState<VirtualMachineInstancesStartResponse>, VirtualMachineInstancesStartResponse>>;
beginStartAndWait(resourceUri: string, options?: VirtualMachineInstancesStartOptionalParams): Promise<VirtualMachineInstancesStartResponse>;
beginStop(resourceUri: string, body: StopVirtualMachineOptions, options?: VirtualMachineInstancesStopOptionalParams): Promise<SimplePollerLike<OperationState<VirtualMachineInstancesStopResponse>, VirtualMachineInstancesStopResponse>>;
beginStopAndWait(resourceUri: string, body: StopVirtualMachineOptions, options?: VirtualMachineInstancesStopOptionalParams): Promise<VirtualMachineInstancesStopResponse>;
beginStop(resourceUri: string, options?: VirtualMachineInstancesStopOptionalParams): Promise<SimplePollerLike<OperationState<VirtualMachineInstancesStopResponse>, VirtualMachineInstancesStopResponse>>;
beginStopAndWait(resourceUri: string, options?: VirtualMachineInstancesStopOptionalParams): Promise<VirtualMachineInstancesStopResponse>;
beginUpdate(resourceUri: string, properties: VirtualMachineInstanceUpdate, options?: VirtualMachineInstancesUpdateOptionalParams): Promise<SimplePollerLike<OperationState<VirtualMachineInstancesUpdateResponse>, VirtualMachineInstancesUpdateResponse>>;
beginUpdateAndWait(resourceUri: string, properties: VirtualMachineInstanceUpdate, options?: VirtualMachineInstancesUpdateOptionalParams): Promise<VirtualMachineInstancesUpdateResponse>;
get(resourceUri: string, options?: VirtualMachineInstancesGetOptionalParams): Promise<VirtualMachineInstancesGetResponse>;
Expand Down Expand Up @@ -1068,6 +1076,7 @@ export interface VirtualMachineInstancesStopHeaders {

// @public
export interface VirtualMachineInstancesStopOptionalParams extends coreClient.OperationOptions {
body?: StopVirtualMachineOptions;
resumeFrom?: string;
updateIntervalInMs?: number;
}
Expand Down
24 changes: 24 additions & 0 deletions sdk/scvmm/arm-scvmm/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,26 @@ export interface OsProfileForVmInstance {
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly osVersion?: string;
/** Gets or sets the domain name. */
domainName?: string;
/** Gets or sets the domain username. */
domainUsername?: string;
/**
* Password of the domain the VM has to join.
* This value contains a credential. Consider obscuring before showing to users
*/
domainPassword?: string;
/** Gets or sets the workgroup. */
workgroup?: string;
/**
* Gets or sets the product key.Input format xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
* This value contains a credential. Consider obscuring before showing to users
*/
productKey?: string;
/** Gets or sets the index value of the timezone. */
timezone?: number;
/** Get or sets the commands to be run once at the time of creation separated by semicolons. */
runOnceCommands?: string;
}

/** Defines the resource properties. */
Expand Down Expand Up @@ -495,6 +515,8 @@ export interface GuestAgentProperties {
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly provisioningState?: ProvisioningState;
/** The resource id of the private link scope this machine is assigned to, if any. */
privateLinkScopeResourceId?: string;
}

/** Username / Password Credentials to connect to guest. */
Expand Down Expand Up @@ -1774,6 +1796,8 @@ export type VirtualMachineInstancesStartResponse =
/** Optional parameters. */
export interface VirtualMachineInstancesStopOptionalParams
extends coreClient.OperationOptions {
/** The content of the action request */
body?: StopVirtualMachineOptions;
/** Delay to wait until next poll, in milliseconds. */
updateIntervalInMs?: number;
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
Expand Down
48 changes: 48 additions & 0 deletions sdk/scvmm/arm-scvmm/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,48 @@ export const OsProfileForVmInstance: coreClient.CompositeMapper = {
name: "String",
},
},
domainName: {
serializedName: "domainName",
type: {
name: "String",
},
},
domainUsername: {
serializedName: "domainUsername",
type: {
name: "String",
},
},
domainPassword: {
serializedName: "domainPassword",
type: {
name: "String",
},
},
workgroup: {
serializedName: "workgroup",
type: {
name: "String",
},
},
productKey: {
serializedName: "productKey",
type: {
name: "String",
},
},
timezone: {
serializedName: "timezone",
type: {
name: "Number",
},
},
runOnceCommands: {
serializedName: "runOnceCommands",
type: {
name: "String",
},
},
},
},
};
Expand Down Expand Up @@ -1185,6 +1227,12 @@ export const GuestAgentProperties: coreClient.CompositeMapper = {
name: "String",
},
},
privateLinkScopeResourceId: {
serializedName: "privateLinkScopeResourceId",
type: {
name: "String",
},
},
},
},
};
Expand Down
4 changes: 2 additions & 2 deletions sdk/scvmm/arm-scvmm/src/models/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const $host: OperationURLParameter = {
export const apiVersion: OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
defaultValue: "2023-10-07",
defaultValue: "2024-06-01",
isConstant: true,
serializedName: "api-version",
type: {
Expand Down Expand Up @@ -138,7 +138,7 @@ export const body2: OperationParameter = {
};

export const body3: OperationParameter = {
parameterPath: "body",
parameterPath: ["options", "body"],
mapper: StopVirtualMachineOptionsMapper,
};

Expand Down
36 changes: 18 additions & 18 deletions sdk/scvmm/arm-scvmm/src/operations/guestAgents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,22 +344,22 @@ const deleteOperationSpec: coreClient.OperationSpec = {
serializer,
};
const listByVirtualMachineInstanceNextOperationSpec: coreClient.OperationSpec =
{
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.GuestAgentListResult,
},
default: {
bodyMapper: Mappers.ErrorResponse,
{
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.GuestAgentListResult,
},
default: {
bodyMapper: Mappers.ErrorResponse,
},
},
},
urlParameters: [
Parameters.$host,
Parameters.resourceUri,
Parameters.nextLink,
],
headerParameters: [Parameters.accept],
serializer,
};
urlParameters: [
Parameters.$host,
Parameters.resourceUri,
Parameters.nextLink,
],
headerParameters: [Parameters.accept],
serializer,
};
Loading