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 @azure/arm-compute] [Compute] Config compute readme.python #7827

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
432 changes: 224 additions & 208 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

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

## 17.3.0 (2022-02-28)

**Features**

- Added Type Alias Architecture
- Added Type Alias ArchitectureTypes
- 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 GalleryImage has a new parameter architecture
- Type Alias GalleryImageUpdate has a new parameter architecture
- Type Alias Snapshot has a new parameter dataAccessAuthMode
- Type Alias VirtualMachineImage has a new parameter architecture
- Added Enum KnownArchitecture
- Added Enum KnownArchitectureTypes
- 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": "201da3d2a70977bc4596653720ed4dea3ac50b1d",
"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/[email protected].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/[email protected].20220105.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/[email protected].20220128.1"
"use": "@autorest/[email protected].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
}
39 changes: 39 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,12 @@ export interface ApplicationProfile {
galleryApplications?: VMGalleryApplication[];
}

// @public
export type Architecture = string;

// @public
export type ArchitectureTypes = string;

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

// @public
export type DataAccessAuthMode = string;

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

// @public
Expand Down Expand Up @@ -1936,6 +1946,7 @@ export type DisksUpdateResponse = Disk;
// @public
export interface DiskUpdate {
burstingEnabled?: boolean;
dataAccessAuthMode?: DataAccessAuthMode;
diskAccessId?: string;
diskIopsReadOnly?: number;
diskIopsReadWrite?: number;
Expand Down Expand Up @@ -2345,6 +2356,7 @@ export type GalleryImage = Resource & {
purchasePlan?: ImagePurchasePlan;
readonly provisioningState?: GalleryImagePropertiesProvisioningState;
features?: GalleryImageFeature[];
architecture?: Architecture;
};

// @public
Expand Down Expand Up @@ -2442,6 +2454,7 @@ export type GalleryImageUpdate = UpdateResourceDefinition & {
purchasePlan?: ImagePurchasePlan;
readonly provisioningState?: GalleryImagePropertiesProvisioningState;
features?: GalleryImageFeature[];
architecture?: Architecture;
};

// @public
Expand Down Expand Up @@ -2852,6 +2865,22 @@ export enum KnownAggregatedReplicationState {
Unknown = "Unknown"
}

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

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

// @public
export enum KnownAvailabilitySetSkuTypes {
// (undocumented)
Expand Down Expand Up @@ -2902,6 +2931,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 +5304,7 @@ export type Snapshot = Resource & {
supportsHibernation?: boolean;
publicNetworkAccess?: PublicNetworkAccess;
completionPercent?: number;
dataAccessAuthMode?: DataAccessAuthMode;
};

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

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

// @public
Expand Down Expand Up @@ -5961,6 +5999,7 @@ export type VirtualMachineImage = VirtualMachineImageResource & {
hyperVGeneration?: HyperVGenerationTypes;
disallowed?: DisallowedConfiguration;
features?: VirtualMachineImageFeature[];
architecture?: ArchitectureTypes;
};

// @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
76 changes: 71 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 @@ -5090,6 +5100,8 @@ export type GalleryImage = Resource & {
readonly provisioningState?: GalleryImagePropertiesProvisioningState;
/** A list of gallery image features. */
features?: GalleryImageFeature[];
/** The architecture of the image. Applicable to OS disks only. */
architecture?: Architecture;
};

/** Specifies information about the gallery image version that you want to create or update. */
Expand Down Expand Up @@ -5736,7 +5748,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 @@ -5830,6 +5842,8 @@ export type GalleryImageUpdate = UpdateResourceDefinition & {
readonly provisioningState?: GalleryImagePropertiesProvisioningState;
/** A list of gallery image features. */
features?: GalleryImageFeature[];
/** The architecture of the image. Applicable to OS disks only. */
architecture?: Architecture;
};

/** Specifies information about the gallery image version that you want to update. */
Expand Down Expand Up @@ -5968,6 +5982,8 @@ export type VirtualMachineImage = VirtualMachineImageResource & {
/** Specifies disallowed configuration for the VirtualMachine created from the image */
disallowed?: DisallowedConfiguration;
features?: VirtualMachineImageFeature[];
/** Specifies the Architecture Type */
architecture?: ArchitectureTypes;
};

/** Describes a Virtual Machine Scale Set VM Reimage Parameters. */
Expand Down Expand Up @@ -6057,6 +6073,22 @@ export enum KnownVmDiskTypes {
*/
export type VmDiskTypes = string;

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

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

/** Known values of {@link ExtendedLocationTypes} that the service accepts. */
export enum KnownExtendedLocationTypes {
EdgeZone = "EdgeZone"
Expand Down Expand Up @@ -7253,6 +7285,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 +7463,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