Skip to content

[AutoPR @azure/arm-compute] Add GetLatestVersionName api in Gallery #5457

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
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
33 changes: 25 additions & 8 deletions sdk/compute/arm-compute/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,32 @@
# Release History

## 22.0.0 (2023-06-21)

**Features**

## 21.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed
- Added operation GalleryImageVersions.getLatest
- Added Interface CommunityGalleryMetadata
- Added Interface GalleryImageVersionsGetLatestOptionalParams
- Added Interface LatestVersion
- Added Type Alias GalleryImageVersionsGetLatestResponse
- Interface CommunityGallery has a new optional parameter artifactTags
- Interface CommunityGallery has a new optional parameter communityMetadata
- Interface CommunityGallery has a new optional parameter disclaimer
- Interface CommunityGalleryImage has a new optional parameter artifactTags
- Interface CommunityGalleryImage has a new optional parameter disclaimer
- Interface CommunityGalleryImageVersion has a new optional parameter artifactTags
- Interface CommunityGalleryImageVersion has a new optional parameter disclaimer
- Interface SharedGallery has a new optional parameter artifactTags
- Interface SharedGalleryImage has a new optional parameter artifactTags
- Interface SharedGalleryImageVersion has a new optional parameter artifactTags
- Enum KnownStorageAccountType has a new value StandardSSDLRS

### Other Changes
**Breaking Changes**

- Type of parameter storageAccountType of interface GalleryTargetExtendedLocation is changed from EdgeZoneStorageAccountType to StorageAccountType
- Removed Enum KnownEdgeZoneStorageAccountType


## 21.0.0 (2023-05-17)

**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": "a2140e7ff0a6c28df501b16c51fe85b762a386fc",
"commit": "563291a0288458ff1dbe0d805ad84cdcd5920749",
"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/[email protected].1 --generate-sample=true",
"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=/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.6.2",
"use": "@autorest/[email protected].1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.1",
"use": "@autorest/typescript@^6.0.4"
}
19 changes: 5 additions & 14 deletions sdk/compute/arm-compute/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for ComputeManagementClient.",
"version": "21.0.1",
"version": "22.0.0",
"engines": {
"node": ">=14.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.5.0",
"@azure/core-lro": "^2.5.3",
"@azure/abort-controller": "^1.0.0",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.7.0",
Expand Down Expand Up @@ -48,8 +48,7 @@
"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"
"@azure/dev-tool": "^1.0.0"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -112,13 +111,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"
}
61 changes: 49 additions & 12 deletions sdk/compute/arm-compute/review/arm-compute.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -931,12 +931,21 @@ export type CommunityGalleriesGetResponse = CommunityGallery;

// @public
export interface CommunityGallery extends PirCommunityGalleryResource {
artifactTags?: {
[propertyName: string]: string;
};
communityMetadata?: CommunityGalleryMetadata;
disclaimer?: string;
}

// @public
export interface CommunityGalleryImage extends PirCommunityGalleryResource {
architecture?: Architecture;
artifactTags?: {
[propertyName: string]: string;
};
disallowed?: Disallowed;
disclaimer?: string;
endOfLifeDate?: Date;
eula?: string;
features?: GalleryImageFeature[];
Expand Down Expand Up @@ -991,6 +1000,10 @@ export type CommunityGalleryImagesListResponse = CommunityGalleryImageList;

// @public
export interface CommunityGalleryImageVersion extends PirCommunityGalleryResource {
artifactTags?: {
[propertyName: string]: string;
};
disclaimer?: string;
endOfLifeDate?: Date;
excludeFromLatest?: boolean;
publishedDate?: Date;
Expand Down Expand Up @@ -1040,6 +1053,15 @@ export interface CommunityGalleryInfo {
publisherUri?: string;
}

// @public
export interface CommunityGalleryMetadata {
eula?: string;
privacyStatementUri?: string;
publicNames?: string[];
publisherContact?: string;
publisherUri?: string;
}

// @public (undocumented)
export class ComputeManagementClient extends coreClient.ServiceClient {
// (undocumented)
Expand Down Expand Up @@ -2080,9 +2102,6 @@ export interface DiskUpdate {
tier?: string;
}

// @public
export type EdgeZoneStorageAccountType = string;

// @public
export interface Encryption {
diskEncryptionSetId?: string;
Expand Down Expand Up @@ -2650,6 +2669,7 @@ export interface GalleryImageVersions {
beginUpdate(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersionUpdate, options?: GalleryImageVersionsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<GalleryImageVersionsUpdateResponse>, GalleryImageVersionsUpdateResponse>>;
beginUpdateAndWait(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersionUpdate, options?: GalleryImageVersionsUpdateOptionalParams): Promise<GalleryImageVersionsUpdateResponse>;
get(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, options?: GalleryImageVersionsGetOptionalParams): Promise<GalleryImageVersionsGetResponse>;
getLatest(resourceGroupName: string, galleryName: string, galleryImageName: string, options?: GalleryImageVersionsGetLatestOptionalParams): Promise<GalleryImageVersionsGetLatestResponse>;
listByGalleryImage(resourceGroupName: string, galleryName: string, galleryImageName: string, options?: GalleryImageVersionsListByGalleryImageOptionalParams): PagedAsyncIterableIterator<GalleryImageVersion>;
}

Expand All @@ -2674,6 +2694,13 @@ export interface GalleryImageVersionsDeleteOptionalParams extends coreClient.Ope
updateIntervalInMs?: number;
}

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

// @public
export type GalleryImageVersionsGetLatestResponse = LatestVersion;

// @public
export interface GalleryImageVersionsGetOptionalParams extends coreClient.OperationOptions {
expand?: ReplicationStatusTypes;
Expand Down Expand Up @@ -2758,7 +2785,7 @@ export interface GalleryTargetExtendedLocation {
extendedLocation?: GalleryExtendedLocation;
extendedLocationReplicaCount?: number;
name?: string;
storageAccountType?: EdgeZoneStorageAccountType;
storageAccountType?: StorageAccountType;
}

// @public
Expand Down Expand Up @@ -3219,14 +3246,6 @@ export enum KnownDiskStorageAccountTypes {
UltraSSDLRS = "UltraSSD_LRS"
}

// @public
export enum KnownEdgeZoneStorageAccountType {
PremiumLRS = "Premium_LRS",
StandardLRS = "Standard_LRS",
StandardSSDLRS = "StandardSSD_LRS",
StandardZRS = "Standard_ZRS"
}

// @public
export enum KnownEncryptionType {
EncryptionAtRestWithCustomerKey = "EncryptionAtRestWithCustomerKey",
Expand Down Expand Up @@ -3587,6 +3606,7 @@ export enum KnownSnapshotStorageAccountTypes {
export enum KnownStorageAccountType {
PremiumLRS = "Premium_LRS",
StandardLRS = "Standard_LRS",
StandardSSDLRS = "StandardSSD_LRS",
StandardZRS = "Standard_ZRS"
}

Expand Down Expand Up @@ -3883,6 +3903,14 @@ export interface LatestGalleryImageVersion {
location?: string;
}

// @public
export interface LatestVersion {
readonly id?: string;
readonly name?: string;
readonly properties?: LatestGalleryImageVersion;
readonly type?: string;
}

// @public
export interface LinuxConfiguration {
disablePasswordAuthentication?: boolean;
Expand Down Expand Up @@ -5093,6 +5121,9 @@ export type SharedGalleriesListResponse = SharedGalleryList;

// @public
export interface SharedGallery extends PirSharedGalleryResource {
readonly artifactTags?: {
[propertyName: string]: string;
};
}

// @public
Expand All @@ -5112,6 +5143,9 @@ export type SharedGalleryHostCaching = string;
// @public
export interface SharedGalleryImage extends PirSharedGalleryResource {
architecture?: Architecture;
artifactTags?: {
[propertyName: string]: string;
};
disallowed?: Disallowed;
endOfLifeDate?: Date;
eula?: string;
Expand Down Expand Up @@ -5161,6 +5195,9 @@ export type SharedGalleryImagesListResponse = SharedGalleryImageList;

// @public
export interface SharedGalleryImageVersion extends PirSharedGalleryResource {
artifactTags?: {
[propertyName: string]: string;
};
endOfLifeDate?: Date;
excludeFromLatest?: boolean;
publishedDate?: Date;
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.0.1`;
const packageDetails = `azsdk-js-arm-compute/22.0.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down
Loading