Skip to content

Commit

Permalink
CodeGen from PR 24030 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 557c017db1e68c2a5328bedcd2b478382964fd47 into 307f92162c4d9258de1ebe28b51a912b6bff61a8
  • Loading branch information
SDKAuto committed Jul 26, 2023
1 parent 8337958 commit 3357640
Show file tree
Hide file tree
Showing 12 changed files with 83 additions and 159 deletions.
12 changes: 8 additions & 4 deletions sdk/compute/arm-compute/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# Release History

## 21.1.0 (2023-07-07)
## 22.0.0 (2023-07-26)

**Features**

- Added Type Alias FileFormat
- Interface GrantAccessData has a new optional parameter fileFormat
- Added Enum KnownFileFormat
- Enum KnownStorageAccountType has a new value StandardSSDLRS

**Breaking Changes**

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


## 21.0.0 (2023-05-17)
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": "2c2e90b31c85a21a1a5e0c66542fa1baf8fd8b49",
"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.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.7.0",
"use": "@autorest/typescript@6.0.5"
"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.1.0",
"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",
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"
}
33 changes: 3 additions & 30 deletions sdk/compute/arm-compute/review/arm-compute.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -941,21 +941,14 @@ export interface CommunityGalleryImage extends PirCommunityGalleryResource {
eula?: string;
features?: GalleryImageFeature[];
hyperVGeneration?: HyperVGeneration;
identifier?: CommunityGalleryImageIdentifier;
identifier?: GalleryImageIdentifier;
osState?: OperatingSystemStateTypes;
osType?: OperatingSystemTypes;
privacyStatementUri?: string;
purchasePlan?: ImagePurchasePlan;
recommended?: RecommendedMachineConfiguration;
}

// @public
export interface CommunityGalleryImageIdentifier {
offer?: string;
publisher?: string;
sku?: string;
}

// @public
export interface CommunityGalleryImageList {
nextLink?: string;
Expand Down Expand Up @@ -2080,9 +2073,6 @@ export interface DiskUpdate {
tier?: string;
}

// @public
export type EdgeZoneStorageAccountType = string;

// @public
export interface Encryption {
diskEncryptionSetId?: string;
Expand Down Expand Up @@ -2154,9 +2144,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 @@ -2761,7 +2748,7 @@ export interface GalleryTargetExtendedLocation {
extendedLocation?: GalleryExtendedLocation;
extendedLocationReplicaCount?: number;
name?: string;
storageAccountType?: EdgeZoneStorageAccountType;
storageAccountType?: StorageAccountType;
}

// @public
Expand All @@ -2782,7 +2769,6 @@ export interface GrantAccessData {
// (undocumented)
access: AccessLevel;
durationInSeconds: number;
fileFormat?: FileFormat;
getSecureVMGuestStateSAS?: boolean;
}

Expand Down Expand Up @@ -3223,14 +3209,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 @@ -3280,12 +3258,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 @@ -3597,6 +3569,7 @@ export enum KnownSnapshotStorageAccountTypes {
export enum KnownStorageAccountType {
PremiumLRS = "Premium_LRS",
StandardLRS = "Standard_LRS",
StandardSSDLRS = "StandardSSD_LRS",
StandardZRS = "Standard_ZRS"
}

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.0`;
const packageDetails = `azsdk-js-arm-compute/22.0.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down
67 changes: 8 additions & 59 deletions sdk/compute/arm-compute/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3010,8 +3010,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 @@ -3714,7 +3712,7 @@ export interface GalleryTargetExtendedLocation {
/** The number of replicas of the Image Version to be created per extended location. This property is updatable. */
extendedLocationReplicaCount?: number;
/** Specifies the storage account type to be used to store the image. This property is not updatable. */
storageAccountType?: EdgeZoneStorageAccountType;
storageAccountType?: StorageAccountType;
/** Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. */
encryption?: EncryptionImages;
}
Expand Down Expand Up @@ -3984,16 +3982,6 @@ export interface PirCommunityGalleryResource {
uniqueId?: string;
}

/** This is the community gallery image definition identifier. */
export interface CommunityGalleryImageIdentifier {
/** The name of the gallery image definition publisher. */
publisher?: string;
/** The name of the gallery image definition offer. */
offer?: string;
/** The name of the gallery image definition SKU. */
sku?: string;
}

/** The List Community Gallery Images operation response. */
export interface CommunityGalleryImageList {
/** A list of community gallery images. */
Expand Down Expand Up @@ -6525,8 +6513,8 @@ export interface CommunityGalleryImage extends PirCommunityGalleryResource {
osState?: OperatingSystemStateTypes;
/** The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable. */
endOfLifeDate?: Date;
/** This is the community gallery image definition identifier. */
identifier?: CommunityGalleryImageIdentifier;
/** This is the gallery image definition identifier. */
identifier?: GalleryImageIdentifier;
/** The properties describe the recommended machine configuration for this Image Definition. These properties are updatable. */
recommended?: RecommendedMachineConfiguration;
/** Describes the disallowed disk types. */
Expand Down Expand Up @@ -8559,24 +8547,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 @@ -8848,7 +8818,9 @@ export enum KnownStorageAccountType {
/** StandardZRS */
StandardZRS = "Standard_ZRS",
/** PremiumLRS */
PremiumLRS = "Premium_LRS"
PremiumLRS = "Premium_LRS",
/** StandardSSDLRS */
StandardSSDLRS = "StandardSSD_LRS"
}

/**
Expand All @@ -8858,7 +8830,8 @@ export enum KnownStorageAccountType {
* ### Known values supported by the service
* **Standard_LRS** \
* **Standard_ZRS** \
* **Premium_LRS**
* **Premium_LRS** \
* **StandardSSD_LRS**
*/
export type StorageAccountType = string;

Expand Down Expand Up @@ -8919,30 +8892,6 @@ export enum KnownGalleryExtendedLocationType {
*/
export type GalleryExtendedLocationType = string;

/** Known values of {@link EdgeZoneStorageAccountType} that the service accepts. */
export enum KnownEdgeZoneStorageAccountType {
/** StandardLRS */
StandardLRS = "Standard_LRS",
/** StandardZRS */
StandardZRS = "Standard_ZRS",
/** StandardSSDLRS */
StandardSSDLRS = "StandardSSD_LRS",
/** PremiumLRS */
PremiumLRS = "Premium_LRS"
}

/**
* Defines values for EdgeZoneStorageAccountType. \
* {@link KnownEdgeZoneStorageAccountType} can be used interchangeably with EdgeZoneStorageAccountType,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **Standard_LRS** \
* **Standard_ZRS** \
* **StandardSSD_LRS** \
* **Premium_LRS**
*/
export type EdgeZoneStorageAccountType = string;

/** Known values of {@link PolicyViolationCategory} that the service accepts. */
export enum KnownPolicyViolationCategory {
/** Other */
Expand Down
35 changes: 1 addition & 34 deletions sdk/compute/arm-compute/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8008,12 +8008,6 @@ export const GrantAccessData: coreClient.CompositeMapper = {
type: {
name: "Boolean"
}
},
fileFormat: {
serializedName: "fileFormat",
type: {
name: "String"
}
}
}
}
Expand Down Expand Up @@ -10410,33 +10404,6 @@ export const PirCommunityGalleryResource: coreClient.CompositeMapper = {
}
};

export const CommunityGalleryImageIdentifier: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "CommunityGalleryImageIdentifier",
modelProperties: {
publisher: {
serializedName: "publisher",
type: {
name: "String"
}
},
offer: {
serializedName: "offer",
type: {
name: "String"
}
},
sku: {
serializedName: "sku",
type: {
name: "String"
}
}
}
}
};

export const CommunityGalleryImageList: coreClient.CompositeMapper = {
type: {
name: "Composite",
Expand Down Expand Up @@ -16739,7 +16706,7 @@ export const CommunityGalleryImage: coreClient.CompositeMapper = {
serializedName: "properties.identifier",
type: {
name: "Composite",
className: "CommunityGalleryImageIdentifier"
className: "GalleryImageIdentifier"
}
},
recommended: {
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-07-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
6 changes: 4 additions & 2 deletions sdk/compute/arm-compute/src/operations/images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ export class ImagesImpl implements Images {
}

/**
* Gets the list of images under a resource group.
* Gets the list of images under a resource group. Use nextLink property in the response to get the
* next page of Images. Do this till nextLink is null to fetch all the Images.
* @param resourceGroupName The name of the resource group.
* @param options The options parameters.
*/
Expand Down Expand Up @@ -463,7 +464,8 @@ export class ImagesImpl implements Images {
}

/**
* Gets the list of images under a resource group.
* Gets the list of images under a resource group. Use nextLink property in the response to get the
* next page of Images. Do this till nextLink is null to fetch all the Images.
* @param resourceGroupName The name of the resource group.
* @param options The options parameters.
*/
Expand Down
Loading

0 comments on commit 3357640

Please sign in to comment.