Skip to content
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

[AutoPR track2_@azure/arm-compute] DiskRP swagger 2021-12-01 #7453

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
27 changes: 21 additions & 6 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

## 17.3.0 (2022-02-23)

**Features**

- Added Type Alias Architecture
- Added Type Alias DataAccessAuthMode
- Interface DiskUpdate has a new optional parameter dataAccessAuthMode
- Interface SnapshotUpdate has a new optional parameter dataAccessAuthMode
- Interface SupportedCapabilities has a new optional parameter architecture
- Type Alias Disk has a new parameter dataAccessAuthMode
- Type Alias Snapshot has a new parameter dataAccessAuthMode
- Added Enum KnownArchitecture
- Added Enum KnownDataAccessAuthMode


## 17.2.0 (2022-02-14)

**Features**
Expand Down
6 changes: 3 additions & 3 deletions sdk/compute/arm-compute/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"commit": "7c98de7664d4565c088350015ccd0cfc102eab49",
"commit": "3024f3d4cf472288cadf8f35bbf9b4d9989e6a59",
"readme": "specification/compute/resource-manager/readme.md",
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/compute/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220128.1 --generate-sample=true",
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/compute/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/typescript@6.0.0-alpha.16.20220128.1"
"use": "@autorest/typescript@6.0.0-alpha.16.20220105.1"
}
23 changes: 3 additions & 20 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": "17.2.0",
"version": "1.0.0-beta.1",
"engines": {
"node": ">=12.0.0"
},
Expand Down Expand Up @@ -42,8 +42,7 @@
"@azure/identity": "^2.0.1",
"@azure-tools/test-recorder": "^1.0.0",
"mocha": "^7.1.1",
"cross-env": "^7.0.2",
"@azure/arm-network": "^26.0.0"
"cross-env": "^7.0.2"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute",
"repository": {
Expand Down Expand Up @@ -99,21 +98,5 @@
"docs": "echo skipped"
},
"sideEffects": false,
"//metadata": {
"constantPaths": [
{
"path": "src/computeManagementClient.ts",
"prefix": "packageDetails"
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-compute?view=azure-node-preview"
}
"autoPublish": true
}
25 changes: 25 additions & 0 deletions sdk/compute/arm-compute/review/arm-compute.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ export interface ApplicationProfile {
galleryApplications?: VMGalleryApplication[];
}

// @public
export type Architecture = string;

// @public
export interface AutomaticOSUpgradePolicy {
disableAutomaticRollback?: boolean;
Expand Down Expand Up @@ -1120,6 +1123,9 @@ export interface CreationData {
uploadSizeBytes?: number;
}

// @public
export type DataAccessAuthMode = string;

// @public
export interface DataDisk {
caching?: CachingTypes;
Expand Down Expand Up @@ -1431,6 +1437,7 @@ export type Disk = Resource & {
securityProfile?: DiskSecurityProfile;
completionPercent?: number;
publicNetworkAccess?: PublicNetworkAccess;
dataAccessAuthMode?: DataAccessAuthMode;
};

// @public
Expand Down Expand Up @@ -1936,6 +1943,7 @@ export type DisksUpdateResponse = Disk;
// @public
export interface DiskUpdate {
burstingEnabled?: boolean;
dataAccessAuthMode?: DataAccessAuthMode;
diskAccessId?: string;
diskIopsReadOnly?: number;
diskIopsReadWrite?: number;
Expand Down Expand Up @@ -2852,6 +2860,14 @@ export enum KnownAggregatedReplicationState {
Unknown = "Unknown"
}

// @public
export enum KnownArchitecture {
// (undocumented)
Arm64 = "Arm64",
// (undocumented)
X64 = "x64"
}

// @public
export enum KnownAvailabilitySetSkuTypes {
// (undocumented)
Expand Down Expand Up @@ -2902,6 +2918,12 @@ export enum KnownConsistencyModeTypes {
FileSystemConsistent = "FileSystemConsistent"
}

// @public
export enum KnownDataAccessAuthMode {
AzureActiveDirectory = "AzureActiveDirectory",
None = "None"
}

// @public
export enum KnownDeleteOptions {
// (undocumented)
Expand Down Expand Up @@ -5269,6 +5291,7 @@ export type Snapshot = Resource & {
supportsHibernation?: boolean;
publicNetworkAccess?: PublicNetworkAccess;
completionPercent?: number;
dataAccessAuthMode?: DataAccessAuthMode;
};

// @public
Expand Down Expand Up @@ -5379,6 +5402,7 @@ export type SnapshotsUpdateResponse = Snapshot;

// @public
export interface SnapshotUpdate {
dataAccessAuthMode?: DataAccessAuthMode;
diskAccessId?: string;
diskSizeGB?: number;
encryption?: Encryption;
Expand Down Expand Up @@ -5555,6 +5579,7 @@ export type SubResourceWithColocationStatus = SubResource & {
// @public
export interface SupportedCapabilities {
acceleratedNetwork?: boolean;
architecture?: Architecture;
}

// @public
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 @@ -144,7 +144,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-compute/17.2.0`;
const packageDetails = `azsdk-js-arm-compute/17.3.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down
54 changes: 49 additions & 5 deletions sdk/compute/arm-compute/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2688,10 +2688,12 @@ export interface PurchasePlanAutoGenerated {
promotionCode?: string;
}

/** List of supported capabilities (like accelerated networking) persisted on the disk resource for VM use. */
/** List of supported capabilities persisted on the disk resource for VM use. */
export interface SupportedCapabilities {
/** True if the image from which the OS disk is created supports accelerated networking. */
acceleratedNetwork?: boolean;
/** CPU architecture supported by an OS disk. */
architecture?: Architecture;
}

/** Data used when creating a disk. */
Expand Down Expand Up @@ -2833,7 +2835,7 @@ export interface DiskUpdate {
burstingEnabled?: boolean;
/** Purchase plan information to be added on the OS disk */
purchasePlan?: PurchasePlanAutoGenerated;
/** List of supported capabilities (like accelerated networking) to be added on the OS disk. */
/** List of supported capabilities to be added on the OS disk. */
supportedCapabilities?: SupportedCapabilities;
/**
* Properties of the disk for which update is pending.
Expand All @@ -2844,6 +2846,8 @@ export interface DiskUpdate {
supportsHibernation?: boolean;
/** Policy for controlling export on the disk. */
publicNetworkAccess?: PublicNetworkAccess;
/** Additional authentication requirements when exporting or uploading to a disk or snapshot. */
dataAccessAuthMode?: DataAccessAuthMode;
}

/** The List Disks operation response. */
Expand Down Expand Up @@ -2910,7 +2914,9 @@ export interface SnapshotUpdate {
supportsHibernation?: boolean;
/** Policy for controlling export on the disk. */
publicNetworkAccess?: PublicNetworkAccess;
/** List of supported capabilities (like accelerated networking) for the image from which the OS disk was created. */
/** Additional authentication requirements when exporting or uploading to a disk or snapshot. */
dataAccessAuthMode?: DataAccessAuthMode;
/** List of supported capabilities for the image from which the OS disk was created. */
supportedCapabilities?: SupportedCapabilities;
}

Expand Down Expand Up @@ -4912,6 +4918,8 @@ export type Disk = Resource & {
completionPercent?: number;
/** Policy for controlling export on the disk. */
publicNetworkAccess?: PublicNetworkAccess;
/** Additional authentication requirements when exporting or uploading to a disk or snapshot. */
dataAccessAuthMode?: DataAccessAuthMode;
};

/** Snapshot resource. */
Expand All @@ -4936,7 +4944,7 @@ export type Snapshot = Resource & {
hyperVGeneration?: HyperVGeneration;
/** Purchase plan information for the image from which the source disk for the snapshot was originally created. */
purchasePlan?: PurchasePlanAutoGenerated;
/** List of supported capabilities (like Accelerated Networking) for the image from which the source disk from the snapshot was originally created. */
/** List of supported capabilities for the image from which the source disk from the snapshot was originally created. */
supportedCapabilities?: SupportedCapabilities;
/** Disk source information. CreationData information cannot be changed after the disk has been created. */
creationData?: CreationData;
Expand Down Expand Up @@ -4980,6 +4988,8 @@ export type Snapshot = Resource & {
publicNetworkAccess?: PublicNetworkAccess;
/** Percentage complete for the background copy when a resource is created via the CopyStart operation. */
completionPercent?: number;
/** Additional authentication requirements when exporting or uploading to a disk or snapshot. */
dataAccessAuthMode?: DataAccessAuthMode;
};

/** disk encryption set resource. */
Expand Down Expand Up @@ -5736,7 +5746,7 @@ export type DiskRestorePoint = ProxyOnlyResource & {
hyperVGeneration?: HyperVGeneration;
/** Purchase plan information for the the image from which the OS disk was created. */
purchasePlan?: PurchasePlanAutoGenerated;
/** List of supported capabilities (like accelerated networking) for the image from which the OS disk was created. */
/** List of supported capabilities for the image from which the OS disk was created. */
supportedCapabilities?: SupportedCapabilities;
/**
* id of the backing snapshot's MIS family
Expand Down Expand Up @@ -7253,6 +7263,22 @@ export enum KnownHyperVGeneration {
*/
export type HyperVGeneration = string;

/** Known values of {@link Architecture} that the service accepts. */
export enum KnownArchitecture {
X64 = "x64",
Arm64 = "Arm64"
}

/**
* Defines values for Architecture. \
* {@link KnownArchitecture} can be used interchangeably with Architecture,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **x64** \
* **Arm64**
*/
export type Architecture = string;

/** Known values of {@link DiskCreateOption} that the service accepts. */
export enum KnownDiskCreateOption {
/** Create an empty data disk of a size given by diskSizeGB. */
Expand Down Expand Up @@ -7415,6 +7441,24 @@ export enum KnownPublicNetworkAccess {
*/
export type PublicNetworkAccess = string;

/** Known values of {@link DataAccessAuthMode} that the service accepts. */
export enum KnownDataAccessAuthMode {
/** When export/upload URL is used, the system checks if the user has an identity in Azure Active Directory and has necessary permissions to export/upload the data. Please refer to aka.ms/DisksAzureADAuth. */
AzureActiveDirectory = "AzureActiveDirectory",
/** No additional authentication would be performed when accessing export/upload URL. */
None = "None"
}

/**
* Defines values for DataAccessAuthMode. \
* {@link KnownDataAccessAuthMode} can be used interchangeably with DataAccessAuthMode,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **AzureActiveDirectory**: When export\/upload URL is used, the system checks if the user has an identity in Azure Active Directory and has necessary permissions to export\/upload the data. Please refer to aka.ms\/DisksAzureADAuth. \
* **None**: No additional authentication would be performed when accessing export\/upload URL.
*/
export type DataAccessAuthMode = string;

/** Known values of {@link AccessLevel} that the service accepts. */
export enum KnownAccessLevel {
None = "None",
Expand Down
Loading