Skip to content

Commit

Permalink
CodeGen from PR 25543 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 3de945cf85acbee4b88eabe1db5a452cd828aa1a into a8eef6d2f536f235e5bcd4540c7d04c658125587
  • Loading branch information
SDKAuto committed Aug 25, 2023
1 parent 666bd82 commit 82b4cef
Show file tree
Hide file tree
Showing 14 changed files with 391 additions and 75 deletions.
24 changes: 16 additions & 8 deletions sdk/compute/arm-compute/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
# Release History

## 22.0.0 (2023-08-25)

**Features**

## 21.1.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed
- Added operation VirtualMachineScaleSets.beginApproveRollingUpgrade
- Added operation VirtualMachineScaleSets.beginApproveRollingUpgradeAndWait
- Added operation VirtualMachineScaleSetVMs.beginApproveRollingUpgrade
- Added operation VirtualMachineScaleSetVMs.beginApproveRollingUpgradeAndWait
- Added Interface VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams
- Added Interface VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams
- Interface AutomaticOSUpgradePolicy has a new optional parameter osRollingUpgradeDeferral

### Other Changes
**Breaking Changes**

- Interface GrantAccessData no longer has parameter fileFormat
- Removed Enum KnownFileFormat


## 21.1.0 (2023-07-07)

**Features**
Expand Down
8 changes: 4 additions & 4 deletions sdk/compute/arm-compute/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "310a0100f5b020c1900c527a6aa70d21992f078a",
"commit": "45bc9f463a6c47f014c9058ee9580757c714a470",
"readme": "specification/compute/resource-manager/readme.md",
"autorest_command": "autorest --version=3.9.3 --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\\compute\\resource-manager\\readme.md --use=@autorest/typescript@6.0.5 --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/compute/resource-manager/readme.md --use=@autorest/typescript@^6.0.4",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.0",
"use": "@autorest/typescript@6.0.5"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.2",
"use": "@autorest/typescript@^6.0.4"
}
23 changes: 7 additions & 16 deletions sdk/compute/arm-compute/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for ComputeManagementClient.",
"version": "21.1.1",
"version": "22.0.0",
"engines": {
"node": ">=14.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.5.3",
"@azure/core-lro": "^2.5.4",
"@azure/abort-controller": "^1.0.0",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.8.0",
"@azure/core-rest-pipeline": "^1.12.0",
"tslib": "^2.2.0"
},
"keywords": [
Expand Down Expand Up @@ -48,9 +48,8 @@
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@types/node": "^14.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/arm-network": "^26.0.0",
"ts-node": "^10.0.0"
"ts-node": "^10.0.0",
"@azure/dev-tool": "^1.0.0"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -113,13 +112,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-compute?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute"
}
28 changes: 18 additions & 10 deletions sdk/compute/arm-compute/review/arm-compute.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export type ArchitectureTypes = string;
export interface AutomaticOSUpgradePolicy {
disableAutomaticRollback?: boolean;
enableAutomaticOSUpgrade?: boolean;
osRollingUpgradeDeferral?: boolean;
useRollingUpgradePolicy?: boolean;
}

Expand Down Expand Up @@ -2154,9 +2155,6 @@ export interface Extension {
properties?: CloudServiceExtensionProperties;
}

// @public
export type FileFormat = string;

// @public
export interface Galleries {
beginCreateOrUpdate(resourceGroupName: string, galleryName: string, gallery: Gallery, options?: GalleriesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<GalleriesCreateOrUpdateResponse>, GalleriesCreateOrUpdateResponse>>;
Expand Down Expand Up @@ -2782,7 +2780,6 @@ export interface GrantAccessData {
// (undocumented)
access: AccessLevel;
durationInSeconds: number;
fileFormat?: FileFormat;
getSecureVMGuestStateSAS?: boolean;
}

Expand Down Expand Up @@ -3280,12 +3277,6 @@ export enum KnownExtendedLocationTypes {
EdgeZone = "EdgeZone"
}

// @public
export enum KnownFileFormat {
VHD = "VHD",
Vhdx = "VHDX"
}

// @public
export enum KnownGalleryExpandParams {
SharingProfileGroups = "SharingProfile/Groups"
Expand Down Expand Up @@ -6801,6 +6792,8 @@ export interface VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalPara

// @public
export interface VirtualMachineScaleSets {
beginApproveRollingUpgrade(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
beginApproveRollingUpgradeAndWait(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams): Promise<void>;
beginCreateOrUpdate(resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSet, options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<VirtualMachineScaleSetsCreateOrUpdateResponse>, VirtualMachineScaleSetsCreateOrUpdateResponse>>;
beginCreateOrUpdateAndWait(resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSet, options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams): Promise<VirtualMachineScaleSetsCreateOrUpdateResponse>;
beginDeallocate(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsDeallocateOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
Expand Down Expand Up @@ -6842,6 +6835,13 @@ export interface VirtualMachineScaleSets {
listSkus(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsListSkusOptionalParams): PagedAsyncIterableIterator<VirtualMachineScaleSetSku>;
}

// @public
export interface VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
updateIntervalInMs?: number;
vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs;
}

// @public
export type VirtualMachineScaleSetScaleInRules = string;

Expand Down Expand Up @@ -7447,6 +7447,8 @@ export type VirtualMachineScaleSetVMRunCommandsUpdateResponse = VirtualMachineRu

// @public
export interface VirtualMachineScaleSetVMs {
beginApproveRollingUpgrade(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
beginApproveRollingUpgradeAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams): Promise<void>;
beginDeallocate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsDeallocateOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
beginDeallocateAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsDeallocateOptionalParams): Promise<void>;
beginDelete(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
Expand Down Expand Up @@ -7476,6 +7478,12 @@ export interface VirtualMachineScaleSetVMs {
simulateEviction(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsSimulateEvictionOptionalParams): Promise<void>;
}

// @public
export interface VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
updateIntervalInMs?: number;
}

// @public
export interface VirtualMachineScaleSetVMsDeallocateOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
Expand Down
2 changes: 1 addition & 1 deletion sdk/compute/arm-compute/src/computeManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-compute/21.1.1`;
const packageDetails = `azsdk-js-arm-compute/22.0.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down
42 changes: 22 additions & 20 deletions sdk/compute/arm-compute/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ export interface AutomaticOSUpgradePolicy {
disableAutomaticRollback?: boolean;
/** Indicates whether rolling upgrade policy should be used during Auto OS Upgrade. Default value is false. Auto OS Upgrade will fallback to the default policy if no policy is defined on the VMSS. */
useRollingUpgradePolicy?: boolean;
/** Indicates whether Auto OS Upgrade should undergo deferral. Deferred OS upgrades will send advanced notifications on a per-VM basis that an OS upgrade from rolling upgrades is incoming, via IMDS. The upgrade then defers until the upgrade is approved via an ApproveRollingUpgrade call. */
osRollingUpgradeDeferral?: boolean;
}

/** Specifies the configuration parameters for automatic repairs on the virtual machine scale set. */
Expand Down Expand Up @@ -3010,8 +3012,6 @@ export interface GrantAccessData {
durationInSeconds: number;
/** Set this flag to true to get additional SAS for VM guest state */
getSecureVMGuestStateSAS?: boolean;
/** Used to specify the file format when making request for SAS on a VHDX file format snapshot */
fileFormat?: FileFormat;
}

/** A disk access SAS uri. */
Expand Down Expand Up @@ -8559,24 +8559,6 @@ export enum KnownAccessLevel {
*/
export type AccessLevel = string;

/** Known values of {@link FileFormat} that the service accepts. */
export enum KnownFileFormat {
/** A VHD file is a disk image file in the Virtual Hard Disk file format. */
VHD = "VHD",
/** A VHDX file is a disk image file in the Virtual Hard Disk v2 file format. */
Vhdx = "VHDX"
}

/**
* Defines values for FileFormat. \
* {@link KnownFileFormat} can be used interchangeably with FileFormat,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **VHD**: A VHD file is a disk image file in the Virtual Hard Disk file format. \
* **VHDX**: A VHDX file is a disk image file in the Virtual Hard Disk v2 file format.
*/
export type FileFormat = string;

/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
export enum KnownPrivateEndpointServiceConnectionStatus {
/** Pending */
Expand Down Expand Up @@ -9454,6 +9436,17 @@ export interface VirtualMachineScaleSetsReimageAllOptionalParams
resumeFrom?: string;
}

/** Optional parameters. */
export interface VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams
extends coreClient.OperationOptions {
/** A list of virtual machine instance IDs from the VM scale set. */
vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs;
/** 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. */
resumeFrom?: string;
}

/** Optional parameters. */
export interface VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkOptionalParams
extends coreClient.OperationOptions {
Expand Down Expand Up @@ -9678,6 +9671,15 @@ export interface VirtualMachineScaleSetVMsReimageAllOptionalParams
resumeFrom?: string;
}

/** Optional parameters. */
export interface VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams
extends coreClient.OperationOptions {
/** 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. */
resumeFrom?: string;
}

/** Optional parameters. */
export interface VirtualMachineScaleSetVMsDeallocateOptionalParams
extends coreClient.OperationOptions {
Expand Down
12 changes: 6 additions & 6 deletions sdk/compute/arm-compute/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,12 @@ export const AutomaticOSUpgradePolicy: coreClient.CompositeMapper = {
type: {
name: "Boolean"
}
},
osRollingUpgradeDeferral: {
serializedName: "osRollingUpgradeDeferral",
type: {
name: "Boolean"
}
}
}
}
Expand Down Expand Up @@ -8008,12 +8014,6 @@ export const GrantAccessData: coreClient.CompositeMapper = {
type: {
name: "Boolean"
}
},
fileFormat: {
serializedName: "fileFormat",
type: {
name: "String"
}
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions sdk/compute/arm-compute/src/models/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const $host: OperationURLParameter = {
export const apiVersion: OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
defaultValue: "2023-03-01",
defaultValue: "2023-09-01",
isConstant: true,
serializedName: "api-version",
type: {
Expand Down Expand Up @@ -966,7 +966,7 @@ export const diskName: OperationURLParameter = {
export const apiVersion1: OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
defaultValue: "2023-01-02",
defaultValue: "2022-07-02",
isConstant: true,
serializedName: "api-version",
type: {
Expand Down
Loading

0 comments on commit 82b4cef

Please sign in to comment.