Skip to content

Commit

Permalink
CodeGen from PR 18896 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 5b022c6159f15b7f0f7d219b201d0511e85f34cb into 324a148497f28ef7588eee7bdb61dcd28b74f505
  • Loading branch information
SDKAuto committed May 9, 2022
1 parent 5058926 commit d4fd46f
Show file tree
Hide file tree
Showing 14 changed files with 617 additions and 288 deletions.
16 changes: 8 additions & 8 deletions common/config/rush/pnpm-lock.yaml

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

35 changes: 25 additions & 10 deletions sdk/imagebuilder/arm-imagebuilder/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,30 @@
# Release History

## 2.0.0 (2022-05-09)

**Features**

## 1.0.3 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Added Interface ImageTemplateInVMValidator
- Added Interface ImageTemplatePropertiesValidate
- Added Type Alias ImageTemplateInVMValidatorUnion
- Added Type Alias ImageTemplatePowerShellValidator
- Added Type Alias ImageTemplateShellValidator
- Added Type Alias ProxyResource
- Interface Resource has a new optional parameter systemData
- Add parameters of ProxyResource to TypeAlias RunOutput
- Type Alias ImageTemplate has a new parameter validate
- Type Alias ImageTemplate has a new parameter stagingResourceGroup
- Type Alias ImageTemplate has a new parameter exactStagingResourceGroup
- Enum KnownProvisioningErrorCode has a new value BadStagingResourceGroup
- Enum KnownProvisioningErrorCode has a new value BadValidatorType
- Enum KnownProvisioningErrorCode has a new value NoValidatorScript
- Enum KnownProvisioningErrorCode has a new value UnsupportedValidatorType

**Breaking Changes**

- Delete parameters of SubResource in TypeAlias RunOutput
- Type Alias ImageTemplate no longer has parameter systemData

## 1.0.2 (2022-04-26)

**Features**
Expand Down
11 changes: 0 additions & 11 deletions sdk/imagebuilder/arm-imagebuilder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ Azure Virtual Machine Image Builder Client
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
- Latest versions of Safari, Chrome, Edge and Firefox.

See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.

### Prerequisites

- An [Azure subscription][azure_sub].
Expand Down Expand Up @@ -51,17 +49,8 @@ For more information about how to create an Azure AD Application check out [this
```javascript
const { ImageBuilderClient } = require("@azure/arm-imagebuilder");
const { DefaultAzureCredential } = require("@azure/identity");
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new ImageBuilderClient(new DefaultAzureCredential(), subscriptionId);

// For client-side applications running in the browser, use this code instead:
// const credential = new InteractiveBrowserCredential({
// tenantId: "<YOUR_TENANT_ID>",
// clientId: "<YOUR_CLIENT_ID>"
// });
// const client = new ImageBuilderClient(credential, subscriptionId);
```


Expand Down
10 changes: 5 additions & 5 deletions sdk/imagebuilder/arm-imagebuilder/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "1f1d5b0b9ce6cc94605b2fd619dce374fb6e033a",
"readme": "specification\\frontdoor\\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:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\frontdoor\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-alpha.19.20220408.1 --generate-sample=true",
"commit": "b677ef20f22f87896a15ae78a6f88ea3ee63a7c4",
"readme": "specification/imagebuilder/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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/imagebuilder/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",
"release_tool": "@azure-tools/js-sdk-release-tools@2.2.6",
"use": "@autorest/typescript@6.0.0-alpha.19.20220408.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.3.0",
"use": "@autorest/typescript@6.0.0-alpha.16.20220105.1"
}
45 changes: 13 additions & 32 deletions sdk/imagebuilder/arm-imagebuilder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for ImageBuilderClient.",
"version": "1.0.3",
"version": "2.0.0",
"engines": {
"node": ">=12.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.2.0",
"@azure/abort-controller": "^1.0.0",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.5.0",
"@azure/core-client": "^1.0.0",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.8.0",
"@azure/core-rest-pipeline": "^1.1.0",
"tslib": "^2.2.0"
},
"keywords": [
Expand All @@ -28,24 +28,21 @@
"module": "./dist-esm/src/index.js",
"types": "./types/arm-imagebuilder.d.ts",
"devDependencies": {
"@microsoft/api-extractor": "7.18.11",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-multi-entry": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"@microsoft/api-extractor": "^7.18.11",
"@rollup/plugin-commonjs": "11.0.2",
"@rollup/plugin-json": "^4.0.0",
"@rollup/plugin-multi-entry": "^3.0.0",
"@rollup/plugin-node-resolve": "^8.0.0",
"mkdirp": "^1.0.4",
"rollup": "^2.66.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"rollup": "^1.16.3",
"rollup-plugin-sourcemaps": "^0.4.2",
"typescript": "~4.2.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"@azure/identity": "^2.0.1",
"@azure-tools/test-recorder": "^1.0.0",
"mocha": "^7.1.1",
"cross-env": "^7.0.2",
"@azure/arm-compute": "^17.0.0",
"@azure/arm-msi": "^2.0.0",
"@types/node": "^12.0.0"
"cross-env": "^7.0.2"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/imagebuilder/arm-imagebuilder",
"repository": {
Expand Down Expand Up @@ -101,21 +98,5 @@
"docs": "echo skipped"
},
"sideEffects": false,
"//metadata": {
"constantPaths": [
{
"path": "src/imageBuilderClient.ts",
"prefix": "packageDetails"
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-imagebuilder?view=azure-node-preview"
}
}
"autoPublish": true
}
64 changes: 53 additions & 11 deletions sdk/imagebuilder/arm-imagebuilder/review/arm-imagebuilder.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,17 @@ export interface ImageBuilderClientOptionalParams extends coreClient.ServiceClie
// @public
export type ImageTemplate = TrackedResource & {
identity: ImageTemplateIdentity;
readonly systemData?: SystemData;
source?: ImageTemplateSourceUnion;
customize?: ImageTemplateCustomizerUnion[];
validate?: ImageTemplatePropertiesValidate;
distribute?: ImageTemplateDistributorUnion[];
readonly provisioningState?: ProvisioningState;
readonly provisioningError?: ProvisioningError;
readonly lastRunStatus?: ImageTemplateLastRunStatus;
buildTimeoutInMinutes?: number;
vmProfile?: ImageTemplateVmProfile;
stagingResourceGroup?: string;
readonly exactStagingResourceGroup?: string;
};

// @public
Expand Down Expand Up @@ -105,6 +107,15 @@ export interface ImageTemplateIdentity {
};
}

// @public
export interface ImageTemplateInVMValidator {
name?: string;
type: "Shell" | "PowerShell";
}

// @public (undocumented)
export type ImageTemplateInVMValidatorUnion = ImageTemplateInVMValidator | ImageTemplateShellValidator | ImageTemplatePowerShellValidator;

// @public
export interface ImageTemplateLastRunStatus {
endTime?: Date;
Expand Down Expand Up @@ -155,6 +166,24 @@ export type ImageTemplatePowerShellCustomizer = ImageTemplateCustomizer & {
validExitCodes?: number[];
};

// @public
export type ImageTemplatePowerShellValidator = ImageTemplateInVMValidator & {
type: "PowerShell";
scriptUri?: string;
sha256Checksum?: string;
inline?: string[];
runElevated?: boolean;
runAsSystem?: boolean;
validExitCodes?: number[];
};

// @public
export interface ImageTemplatePropertiesValidate {
continueDistributeOnFailure?: boolean;
inVMValidations?: ImageTemplateInVMValidatorUnion[];
sourceValidationOnly?: boolean;
}

// @public
export type ImageTemplateRestartCustomizer = ImageTemplateCustomizer & {
type: "WindowsRestart";
Expand Down Expand Up @@ -186,6 +215,14 @@ export type ImageTemplateShellCustomizer = ImageTemplateCustomizer & {
inline?: string[];
};

// @public
export type ImageTemplateShellValidator = ImageTemplateInVMValidator & {
type: "Shell";
scriptUri?: string;
sha256Checksum?: string;
inline?: string[];
};

// @public
export interface ImageTemplateSource {
type: "PlatformImage" | "ManagedImage" | "SharedImageVersion";
Expand Down Expand Up @@ -252,13 +289,21 @@ export enum KnownProvisioningErrorCode {
// (undocumented)
BadSourceType = "BadSourceType",
// (undocumented)
BadStagingResourceGroup = "BadStagingResourceGroup",
// (undocumented)
BadValidatorType = "BadValidatorType",
// (undocumented)
NoCustomizerScript = "NoCustomizerScript",
// (undocumented)
NoValidatorScript = "NoValidatorScript",
// (undocumented)
Other = "Other",
// (undocumented)
ServerError = "ServerError",
// (undocumented)
UnsupportedCustomizerType = "UnsupportedCustomizerType"
UnsupportedCustomizerType = "UnsupportedCustomizerType",
// (undocumented)
UnsupportedValidatorType = "UnsupportedValidatorType"
}

// @public
Expand Down Expand Up @@ -330,18 +375,22 @@ export type ProvisioningErrorCode = string;
// @public
export type ProvisioningState = "Creating" | "Updating" | "Succeeded" | "Failed" | "Deleting";

// @public
export type ProxyResource = Resource & {};

// @public
export interface Resource {
readonly id?: string;
readonly name?: string;
readonly systemData?: SystemData;
readonly type?: string;
}

// @public
export type ResourceIdentityType = "UserAssigned" | "None";

// @public
export type RunOutput = SubResource & {
export type RunOutput = ProxyResource & {
artifactId?: string;
artifactUri?: string;
readonly provisioningState?: ProvisioningState;
Expand All @@ -357,18 +406,11 @@ export interface RunOutputCollection {
export type RunState = "Running" | "Canceling" | "Succeeded" | "PartiallySucceeded" | "Failed" | "Canceled";

// @public
export type RunSubState = "Queued" | "Building" | "Customizing" | "Distributing";
export type RunSubState = "Queued" | "Building" | "Customizing" | "Validating" | "Distributing";

// @public
export type SharedImageStorageAccountType = string;

// @public
export interface SubResource {
readonly id?: string;
name: string;
readonly type?: string;
}

// @public
export interface SystemData {
createdAt?: Date;
Expand Down
Loading

0 comments on commit d4fd46f

Please sign in to comment.