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
793 changes: 405 additions & 388 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

20 changes: 12 additions & 8 deletions sdk/compute/arm-compute/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
# Release History

## 22.0.0 (2024-05-30)

**Features**

## 21.6.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed
- Added Interface SecurityPostureReferenceUpdate
- Interface SecurityPostureReference has a new optional parameter isOverridable
- Interface VirtualMachineScaleSetUpdateVMProfile has a new optional parameter securityPostureReference

### Other Changes
**Breaking Changes**

- Parameter id of interface SecurityPostureReference is now required
- Type of parameter excludeExtensions of interface SecurityPostureReference is changed from VirtualMachineExtension[] to string[]


## 21.6.0 (2024-04-26)

**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": "c77bbf822be2deaac1b690270c6cd03a52df0e37",
"commit": "77cc3bd5d15f8e3b1577c1ac319dc8bc63cdf77d",
"readme": "specification/compute/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\\compute\\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/compute/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"
}
16 changes: 4 additions & 12 deletions sdk/compute/arm-compute/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 ComputeManagementClient.",
"version": "21.6.1",
"version": "22.0.0",
"engines": {
"node": ">=18.0.0"
},
Expand Down Expand Up @@ -40,11 +40,11 @@
"@azure-tools/test-credential": "^1.0.0",
"mocha": "^10.0.0",
"@types/mocha": "^10.0.0",
"tsx": "^4.7.1",
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@types/node": "^18.0.0",
"@azure/arm-network": "^32.2.0",
"ts-node": "^10.0.0"
},
"repository": {
Expand Down Expand Up @@ -106,13 +106,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"
}
11 changes: 10 additions & 1 deletion sdk/compute/arm-compute/review/arm-compute.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -5271,8 +5271,16 @@ export type SecurityEncryptionTypes = string;

// @public
export interface SecurityPostureReference {
excludeExtensions?: VirtualMachineExtension[];
excludeExtensions?: string[];
id: string;
isOverridable?: boolean;
}

// @public
export interface SecurityPostureReferenceUpdate {
excludeExtensions?: string[];
id?: string;
isOverridable?: boolean;
}

// @public
Expand Down Expand Up @@ -7512,6 +7520,7 @@ export interface VirtualMachineScaleSetUpdateVMProfile {
networkProfile?: VirtualMachineScaleSetUpdateNetworkProfile;
osProfile?: VirtualMachineScaleSetUpdateOSProfile;
scheduledEventsProfile?: ScheduledEventsProfile;
securityPostureReference?: SecurityPostureReferenceUpdate;
securityProfile?: SecurityProfile;
storageProfile?: VirtualMachineScaleSetUpdateStorageProfile;
userData?: 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.6.1`;
const packageDetails = `azsdk-js-arm-compute/22.0.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down
198 changes: 106 additions & 92 deletions sdk/compute/arm-compute/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export interface VirtualMachineScaleSetVMProfile {
hardwareProfile?: VirtualMachineScaleSetHardwareProfile;
/** Specifies the service artifact reference id used to set same image version for all virtual machines in the scale set when using 'latest' image version. Minimum api-version: 2022-11-01 */
serviceArtifactReference?: ServiceArtifactReference;
/** Specifies the security posture to be used for all virtual machines in the scale set. Minimum api-version: 2023-03-01 */
/** Specifies the security posture to be used in the scale set. Minimum api-version: 2023-03-01 */
securityPostureReference?: SecurityPostureReference;
/**
* Specifies the time in which this VM profile for the Virtual Machine Scale Set was created. Minimum API version for this property is 2024-03-01. This value will be added to VMSS Flex VM tags when creating/updating the VMSS VM Profile with minimum api-version 2024-03-01.
Expand Down Expand Up @@ -810,63 +810,14 @@ export interface ServiceArtifactReference {
id?: string;
}

/** Specifies the security posture to be used for all virtual machines in the scale set. Minimum api-version: 2023-03-01 */
/** Specifies the security posture to be used in the scale set. Minimum api-version: 2023-03-01 */
export interface SecurityPostureReference {
/** The security posture reference id in the form of /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest */
id?: string;
/** List of virtual machine extensions to exclude when applying the Security Posture. */
excludeExtensions?: VirtualMachineExtension[];
}

/** The instance view of a virtual machine extension. */
export interface VirtualMachineExtensionInstanceView {
/** The virtual machine extension name. */
name?: string;
/** Specifies the type of the extension; an example is "CustomScriptExtension". */
type?: string;
/** Specifies the version of the script handler. */
typeHandlerVersion?: string;
/** The resource status information. */
substatuses?: InstanceViewStatus[];
/** The resource status information. */
statuses?: InstanceViewStatus[];
}

/** Instance view status. */
export interface InstanceViewStatus {
/** The status code. */
code?: string;
/** The level code. */
level?: StatusLevelTypes;
/** The short localizable label for the status. */
displayStatus?: string;
/** The detailed status message, including for alerts and error messages. */
message?: string;
/** The time of the status. */
time?: Date;
}

/** The Resource model definition with location property as optional. */
export interface ResourceWithOptionalLocation {
/** Resource location */
location?: string;
/**
* Resource Id
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly id?: string;
/**
* Resource name
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly name?: string;
/**
* Resource type
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly type?: string;
/** Resource tags */
tags?: { [propertyName: string]: string };
/** The security posture reference id in the form of /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|latest */
id: string;
/** The list of virtual machine extension names to exclude when applying the security posture. */
excludeExtensions?: string[];
/** Whether the security posture can be overridden by the user. */
isOverridable?: boolean;
}

/** Enables or disables a capability on the virtual machine or virtual machine scale set. */
Expand Down Expand Up @@ -993,6 +944,8 @@ export interface VirtualMachineScaleSetUpdateVMProfile {
storageProfile?: VirtualMachineScaleSetUpdateStorageProfile;
/** The virtual machine scale set network profile. */
networkProfile?: VirtualMachineScaleSetUpdateNetworkProfile;
/** The virtual machine scale set security posture reference. */
securityPostureReference?: SecurityPostureReferenceUpdate;
/** The virtual machine scale set Security profile */
securityProfile?: SecurityProfile;
/** The virtual machine scale set diagnostics profile. */
Expand Down Expand Up @@ -1128,6 +1081,16 @@ export interface VirtualMachineScaleSetUpdatePublicIPAddressConfiguration {
deleteOption?: DeleteOptions;
}

/** Specifies the security posture to be used in the scale set. Minimum api-version: 2023-03-01 */
export interface SecurityPostureReferenceUpdate {
/** The security posture reference id in the form of /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|latest */
id?: string;
/** The list of virtual machine extension names to exclude when applying the security posture. */
excludeExtensions?: string[];
/** Whether the security posture can be overridden by the user. */
isOverridable?: boolean;
}

/** The Update Resource model definition. */
export interface UpdateResource {
/** Resource tags */
Expand Down Expand Up @@ -1204,6 +1167,20 @@ export interface VirtualMachineScaleSetVMExtensionsSummary {
readonly statusesSummary?: VirtualMachineStatusCodeCount[];
}

/** Instance view status. */
export interface InstanceViewStatus {
/** The status code. */
code?: string;
/** The level code. */
level?: StatusLevelTypes;
/** The short localizable label for the status. */
displayStatus?: string;
/** The detailed status message, including for alerts and error messages. */
message?: string;
/** The time of the status. */
time?: Date;
}

/** Summary for an orchestration service of a virtual machine scale set. */
export interface OrchestrationServiceSummary {
/**
Expand Down Expand Up @@ -1477,6 +1454,20 @@ export interface OrchestrationServiceStateInput {
action: OrchestrationServiceStateAction;
}

/** The instance view of a virtual machine extension. */
export interface VirtualMachineExtensionInstanceView {
/** The virtual machine extension name. */
name?: string;
/** Specifies the type of the extension; an example is "CustomScriptExtension". */
type?: string;
/** Specifies the version of the script handler. */
typeHandlerVersion?: string;
/** The resource status information. */
substatuses?: InstanceViewStatus[];
/** The resource status information. */
statuses?: InstanceViewStatus[];
}

/** The List VMSS VM Extension operation response */
export interface VirtualMachineScaleSetVMExtensionsListResult {
/** The list of VMSS VM extensions */
Expand Down Expand Up @@ -1846,6 +1837,29 @@ export interface VirtualMachineScaleSetVMProtectionPolicy {
protectFromScaleSetActions?: boolean;
}

/** The Resource model definition with location property as optional. */
export interface ResourceWithOptionalLocation {
/** Resource location */
location?: string;
/**
* Resource Id
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly id?: string;
/**
* Resource name
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly name?: string;
/**
* Resource type
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly type?: string;
/** Resource tags */
tags?: { [propertyName: string]: string };
}

/** Identity for the virtual machine. */
export interface VirtualMachineIdentity {
/**
Expand Down Expand Up @@ -5122,39 +5136,6 @@ export interface DiskRestorePointAttributes extends SubResourceReadOnly {
sourceDiskRestorePoint?: ApiEntityReference;
}

/** Describes a Virtual Machine Extension. */
export interface VirtualMachineExtension extends ResourceWithOptionalLocation {
/** How the extension handler should be forced to update even if the extension configuration has not changed. */
forceUpdateTag?: string;
/** The name of the extension handler publisher. */
publisher?: string;
/** Specifies the type of the extension; an example is "CustomScriptExtension". */
typePropertiesType?: string;
/** Specifies the version of the script handler. */
typeHandlerVersion?: string;
/** Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. */
autoUpgradeMinorVersion?: boolean;
/** Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available. */
enableAutomaticUpgrade?: boolean;
/** Json formatted public settings for the extension. */
settings?: any;
/** The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. */
protectedSettings?: any;
/**
* The provisioning state, which only appears in the response.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly provisioningState?: string;
/** The virtual machine extension instance view. */
instanceView?: VirtualMachineExtensionInstanceView;
/** Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. */
suppressFailures?: boolean;
/** The extensions protected settings that are passed by reference, and consumed from key vault */
protectedSettingsFromKeyVault?: KeyVaultSecretReference;
/** Collection of extension names after which this extension needs to be provisioned. */
provisionAfterExtensions?: string[];
}

/** Describes a Virtual Machine Scale Set. */
export interface VirtualMachineScaleSet extends Resource {
/** The virtual machine scale set sku. */
Expand Down Expand Up @@ -6430,6 +6411,39 @@ export interface VirtualMachineScaleSetVMReimageParameters
forceUpdateOSDiskForEphemeral?: boolean;
}

/** Describes a Virtual Machine Extension. */
export interface VirtualMachineExtension extends ResourceWithOptionalLocation {
/** How the extension handler should be forced to update even if the extension configuration has not changed. */
forceUpdateTag?: string;
/** The name of the extension handler publisher. */
publisher?: string;
/** Specifies the type of the extension; an example is "CustomScriptExtension". */
typePropertiesType?: string;
/** Specifies the version of the script handler. */
typeHandlerVersion?: string;
/** Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. */
autoUpgradeMinorVersion?: boolean;
/** Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available. */
enableAutomaticUpgrade?: boolean;
/** Json formatted public settings for the extension. */
settings?: any;
/** The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. */
protectedSettings?: any;
/**
* The provisioning state, which only appears in the response.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly provisioningState?: string;
/** The virtual machine extension instance view. */
instanceView?: VirtualMachineExtensionInstanceView;
/** Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. */
suppressFailures?: boolean;
/** The extensions protected settings that are passed by reference, and consumed from key vault */
protectedSettingsFromKeyVault?: KeyVaultSecretReference;
/** Collection of extension names after which this extension needs to be provisioned. */
provisionAfterExtensions?: string[];
}

/** The instance view of a dedicated host that includes the name of the dedicated host. It is used for the response to the instance view of a dedicated host group. */
export interface DedicatedHostInstanceViewWithName
extends DedicatedHostInstanceView {
Expand Down Expand Up @@ -9679,14 +9693,14 @@ export type ProtocolTypes = "Http" | "Https";
export type CachingTypes = "None" | "ReadOnly" | "ReadWrite";
/** Defines values for OperatingSystemTypes. */
export type OperatingSystemTypes = "Windows" | "Linux";
/** Defines values for StatusLevelTypes. */
export type StatusLevelTypes = "Info" | "Warning" | "Error";
/** Defines values for ResourceIdentityType. */
export type ResourceIdentityType =
| "SystemAssigned"
| "UserAssigned"
| "SystemAssigned, UserAssigned"
| "None";
/** Defines values for StatusLevelTypes. */
export type StatusLevelTypes = "Info" | "Warning" | "Error";
/** Defines values for VirtualMachineScaleSetSkuScaleType. */
export type VirtualMachineScaleSetSkuScaleType = "Automatic" | "None";
/** Defines values for UpgradeState. */
Expand Down
Loading