Skip to content

Commit

Permalink
CodeGen from PR 21433 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge b473004198ab93c680c9353f067142bcbca6d95d into dcec109c164e69f0f122ff74fc551108da8af20e
  • Loading branch information
SDKAuto committed Nov 4, 2022
1 parent c3b2323 commit 5ac2ee9
Show file tree
Hide file tree
Showing 10 changed files with 623 additions and 53 deletions.
40 changes: 32 additions & 8 deletions sdk/compute/arm-compute/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,39 @@
# Release History

## 20.0.0 (2022-11-04)

**Features**

## 19.2.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed
- Added Interface GalleryApplicationCustomAction
- Added Interface GalleryApplicationCustomActionParameter
- Added Interface GalleryApplicationVersionSafetyProfile
- Added Interface GalleryArtifactSafetyProfileBase
- Added Interface GalleryArtifactVersionFullSource
- Added Interface GalleryDiskImageSource
- Added Interface GalleryImageVersionSafetyProfile
- Added Interface LatestGalleryImageVersion
- Added Interface PolicyViolation
- Added Type Alias GalleryApplicationCustomActionParameterType
- Added Type Alias PolicyViolationCategory
- Interface GalleryApplication has a new optional parameter customActions
- Interface GalleryApplicationUpdate has a new optional parameter customActions
- Interface GalleryApplicationVersion has a new optional parameter safetyProfile
- Interface GalleryApplicationVersionPublishingProfile has a new optional parameter customActions
- Interface GalleryApplicationVersionUpdate has a new optional parameter safetyProfile
- Interface GalleryImageVersion has a new optional parameter safetyProfile
- Interface GalleryImageVersionUpdate has a new optional parameter safetyProfile
- Interface SharedGalleryImage has a new optional parameter eula
- Interface SharedGalleryImage has a new optional parameter privacyStatementUri
- Interface TargetRegion has a new optional parameter excludeFromLatest
- Interface VirtualMachineScaleSet has a new optional parameter constrainedMaximumCapacity
- Interface VirtualMachineScaleSetOSProfile has a new optional parameter requireGuestProvisionSignal
- Added Enum KnownPolicyViolationCategory

### Other Changes
**Breaking Changes**

- Interface GalleryArtifactVersionSource no longer has parameter uri


## 19.2.0 (2022-09-21)

**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": "8ff0e3b8dc12cd793f4f2208d76f9f3a7f51176c",
"commit": "7d44f6bfbb6d60816ba02c2f6f3b7db35efba6f9",
"readme": "specification/compute/resource-manager/readme.md",
"autorest_command": "autorest --version=3.8.4 --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/[email protected].1.20220727.1 --generate-sample=true",
"autorest_command": "autorest --version=3.8.4 --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/[email protected].2",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
"use": "@autorest/[email protected].1.20220727.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.5.0",
"use": "@autorest/[email protected].2"
}
17 changes: 4 additions & 13 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": "19.2.1",
"version": "20.0.0",
"engines": {
"node": ">=14.0.0"
},
Expand Down Expand Up @@ -46,8 +46,7 @@
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@azure/dev-tool": "^1.0.0",
"@azure/arm-network": "^26.0.0"
"@azure/dev-tool": "^1.0.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute",
"repository": {
Expand Down Expand Up @@ -110,13 +109,5 @@
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-compute?view=azure-node-preview"
}
}
"autoPublish": true
}
86 changes: 83 additions & 3 deletions sdk/compute/arm-compute/review/arm-compute.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2198,6 +2198,7 @@ export interface Gallery extends Resource {

// @public
export interface GalleryApplication extends Resource {
customActions?: GalleryApplicationCustomAction[];
description?: string;
endOfLifeDate?: Date;
eula?: string;
Expand All @@ -2206,6 +2207,26 @@ export interface GalleryApplication extends Resource {
supportedOSType?: OperatingSystemTypes;
}

// @public
export interface GalleryApplicationCustomAction {
description?: string;
name: string;
parameters?: GalleryApplicationCustomActionParameter[];
script: string;
}

// @public
export interface GalleryApplicationCustomActionParameter {
defaultValue?: string;
description?: string;
name: string;
required?: boolean;
type?: GalleryApplicationCustomActionParameterType;
}

// @public
export type GalleryApplicationCustomActionParameterType = "String" | "ConfigurationDataBlob" | "LogOutputBlob";

// @public
export interface GalleryApplicationList {
nextLink?: string;
Expand Down Expand Up @@ -2271,6 +2292,7 @@ export type GalleryApplicationsUpdateResponse = GalleryApplication;

// @public
export interface GalleryApplicationUpdate extends UpdateResourceDefinition {
customActions?: GalleryApplicationCustomAction[];
description?: string;
endOfLifeDate?: Date;
eula?: string;
Expand All @@ -2284,6 +2306,7 @@ export interface GalleryApplicationVersion extends Resource {
readonly provisioningState?: GalleryProvisioningState;
publishingProfile?: GalleryApplicationVersionPublishingProfile;
readonly replicationStatus?: ReplicationStatus;
safetyProfile?: GalleryApplicationVersionSafetyProfile;
}

// @public
Expand All @@ -2297,6 +2320,7 @@ export interface GalleryApplicationVersionPublishingProfile extends GalleryArtif
advancedSettings?: {
[propertyName: string]: string;
};
customActions?: GalleryApplicationCustomAction[];
enableHealthCheck?: boolean;
// (undocumented)
manageActions?: UserArtifactManage;
Expand All @@ -2316,6 +2340,10 @@ export interface GalleryApplicationVersions {
listByGalleryApplication(resourceGroupName: string, galleryName: string, galleryApplicationName: string, options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams): PagedAsyncIterableIterator<GalleryApplicationVersion>;
}

// @public
export interface GalleryApplicationVersionSafetyProfile extends GalleryArtifactSafetyProfileBase {
}

// @public
export interface GalleryApplicationVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
Expand Down Expand Up @@ -2367,6 +2395,7 @@ export interface GalleryApplicationVersionUpdate extends UpdateResourceDefinitio
readonly provisioningState?: GalleryProvisioningState;
publishingProfile?: GalleryApplicationVersionPublishingProfile;
readonly replicationStatus?: ReplicationStatus;
safetyProfile?: GalleryApplicationVersionSafetyProfile;
}

// @public
Expand All @@ -2381,15 +2410,24 @@ export interface GalleryArtifactPublishingProfileBase {
targetRegions?: TargetRegion[];
}

// @public
export interface GalleryArtifactSafetyProfileBase {
allowDeletionOfReplicatedLocations?: boolean;
}

// @public
export interface GalleryArtifactSource {
managedImage: ManagedArtifact;
}

// @public
export interface GalleryArtifactVersionFullSource extends GalleryArtifactVersionSource {
communityGalleryImageId?: string;
}

// @public
export interface GalleryArtifactVersionSource {
id?: string;
uri?: string;
}

// @public
Expand All @@ -2401,7 +2439,13 @@ export interface GalleryDataDiskImage extends GalleryDiskImage {
export interface GalleryDiskImage {
hostCaching?: HostCaching;
readonly sizeInGB?: number;
source?: GalleryArtifactVersionSource;
source?: GalleryDiskImageSource;
}

// @public
export interface GalleryDiskImageSource extends GalleryArtifactVersionSource {
storageAccountId?: string;
uri?: string;
}

// @public
Expand Down Expand Up @@ -2541,6 +2585,7 @@ export interface GalleryImageVersion extends Resource {
readonly provisioningState?: GalleryProvisioningState;
publishingProfile?: GalleryImageVersionPublishingProfile;
readonly replicationStatus?: ReplicationStatus;
safetyProfile?: GalleryImageVersionSafetyProfile;
storageProfile?: GalleryImageVersionStorageProfile;
}

Expand All @@ -2566,6 +2611,12 @@ export interface GalleryImageVersions {
listByGalleryImage(resourceGroupName: string, galleryName: string, galleryImageName: string, options?: GalleryImageVersionsListByGalleryImageOptionalParams): PagedAsyncIterableIterator<GalleryImageVersion>;
}

// @public
export interface GalleryImageVersionSafetyProfile extends GalleryArtifactSafetyProfileBase {
readonly policyViolations?: PolicyViolation[];
readonly reportedForPolicyViolation?: boolean;
}

// @public
export interface GalleryImageVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
Expand Down Expand Up @@ -2607,7 +2658,7 @@ export type GalleryImageVersionsListByGalleryImageResponse = GalleryImageVersion
export interface GalleryImageVersionStorageProfile {
dataDiskImages?: GalleryDataDiskImage[];
osDiskImage?: GalleryOSDiskImage;
source?: GalleryArtifactVersionSource;
source?: GalleryArtifactVersionFullSource;
}

// @public
Expand All @@ -2624,6 +2675,7 @@ export interface GalleryImageVersionUpdate extends UpdateResourceDefinition {
readonly provisioningState?: GalleryProvisioningState;
publishingProfile?: GalleryImageVersionPublishingProfile;
readonly replicationStatus?: ReplicationStatus;
safetyProfile?: GalleryImageVersionSafetyProfile;
storageProfile?: GalleryImageVersionStorageProfile;
}

Expand Down Expand Up @@ -3290,6 +3342,14 @@ export enum KnownPatchOperationStatus {
Unknown = "Unknown"
}

// @public
export enum KnownPolicyViolationCategory {
CopyrightValidation = "CopyrightValidation",
ImageFlaggedUnsafe = "ImageFlaggedUnsafe",
IpTheft = "IpTheft",
Other = "Other"
}

// @public
export enum KnownPrivateEndpointConnectionProvisioningState {
Creating = "Creating",
Expand Down Expand Up @@ -3723,6 +3783,12 @@ export interface LastPatchInstallationSummary {
readonly status?: PatchOperationStatus;
}

// @public
export interface LatestGalleryImageVersion {
latestVersionName?: string;
location?: string;
}

// @public
export interface LinuxConfiguration {
disablePasswordAuthentication?: boolean;
Expand Down Expand Up @@ -4084,6 +4150,15 @@ export interface Plan {
publisher?: string;
}

// @public
export interface PolicyViolation {
category?: PolicyViolationCategory;
details?: string;
}

// @public
export type PolicyViolationCategory = string;

// @public
export interface PriorityMixPolicy {
baseRegularPriorityCount?: number;
Expand Down Expand Up @@ -4902,11 +4977,13 @@ export interface SharedGalleryImage extends PirSharedGalleryResource {
architecture?: Architecture;
disallowed?: Disallowed;
endOfLifeDate?: Date;
eula?: string;
features?: GalleryImageFeature[];
hyperVGeneration?: HyperVGeneration;
identifier?: GalleryImageIdentifier;
osState?: OperatingSystemStateTypes;
osType?: OperatingSystemTypes;
privacyStatementUri?: string;
purchasePlan?: ImagePurchasePlan;
recommended?: RecommendedMachineConfiguration;
}
Expand Down Expand Up @@ -5383,6 +5460,7 @@ export interface SystemData {
// @public
export interface TargetRegion {
encryption?: EncryptionImages;
excludeFromLatest?: boolean;
name: string;
regionalReplicaCount?: number;
storageAccountType?: StorageAccountType;
Expand Down Expand Up @@ -6232,6 +6310,7 @@ export type VirtualMachinesAssessPatchesResponse = VirtualMachineAssessPatchesRe
export interface VirtualMachineScaleSet extends Resource {
additionalCapabilities?: AdditionalCapabilities;
automaticRepairsPolicy?: AutomaticRepairsPolicy;
constrainedMaximumCapacity?: boolean;
doNotRunExtensionsOnOverprovisionedVMs?: boolean;
extendedLocation?: ExtendedLocation;
hostGroup?: SubResource;
Expand Down Expand Up @@ -6502,6 +6581,7 @@ export interface VirtualMachineScaleSetOSProfile {
computerNamePrefix?: string;
customData?: string;
linuxConfiguration?: LinuxConfiguration;
requireGuestProvisionSignal?: boolean;
secrets?: VaultSecretGroup[];
windowsConfiguration?: WindowsConfiguration;
}
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/19.2.1`;
const packageDetails = `azsdk-js-arm-compute/20.0.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down
Loading

0 comments on commit 5ac2ee9

Please sign in to comment.