Skip to content
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
2 changes: 1 addition & 1 deletion sdk/appplatform/arm-appplatform/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Release History

## 2.0.0-beta.3 (2022-01-05)
## 2.0.0-beta.3 (2022-01-12)

The package of @azure/arm-appplatform is using our next generation design principles since version 2.0.0-beta.3, which contains breaking changes.

Expand Down
6 changes: 3 additions & 3 deletions sdk/appplatform/arm-appplatform/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"commit": "7b89a1a3fcb08b6f9f12ee67049b6b8d561ad684",
"commit": "6b4f7e4fb552adcfe390d4b1941215cc0f25ea20",
"readme": "specification/appplatform/resource-manager/readme.md",
"autorest_command": "autorest --version=3.1.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/appplatform/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211217.1",
"autorest_command": "autorest --version=3.1.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/appplatform/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.20211217.1"
"use": "@autorest/typescript@6.0.0-alpha.16.20220105.1"
}
10 changes: 10 additions & 0 deletions sdk/appplatform/arm-appplatform/review/arm-appplatform.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ import { PagedAsyncIterableIterator } from '@azure/core-paging';
import { PollerLike } from '@azure/core-lro';
import { PollOperationState } from '@azure/core-lro';

// @public
export type ActionType = string;

// @public
export interface ActiveDeploymentCollection {
activeDeploymentNames?: string[];
Expand Down Expand Up @@ -1849,6 +1852,12 @@ export type KeyVaultCertificateProperties = CertificateProperties & {
excludePrivateKey?: boolean;
};

// @public
export enum KnownActionType {
// (undocumented)
Internal = "Internal"
}

// @public
export enum KnownApiPortalProvisioningState {
// (undocumented)
Expand Down Expand Up @@ -2337,6 +2346,7 @@ export interface NetworkProfileOutboundIPs {

// @public
export interface OperationDetail {
readonly actionType?: ActionType;
display?: OperationDisplay;
isDataAction?: boolean;
name?: string;
Expand Down
19 changes: 19 additions & 0 deletions sdk/appplatform/arm-appplatform/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1236,6 +1236,11 @@ export interface OperationDetail {
isDataAction?: boolean;
/** Display of the operation */
display?: OperationDisplay;
/**
* Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly actionType?: ActionType;
/** Origin of the operation */
origin?: string;
/** Properties of the operation */
Expand Down Expand Up @@ -2449,6 +2454,20 @@ export enum KnownDeploymentResourceStatus {
*/
export type DeploymentResourceStatus = string;

/** Known values of {@link ActionType} that the service accepts. */
export enum KnownActionType {
Internal = "Internal"
}

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

/** Known values of {@link SupportedRuntimeValue} that the service accepts. */
export enum KnownSupportedRuntimeValue {
Java8 = "Java_8",
Expand Down
7 changes: 7 additions & 0 deletions sdk/appplatform/arm-appplatform/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2962,6 +2962,13 @@ export const OperationDetail: coreClient.CompositeMapper = {
className: "OperationDisplay"
}
},
actionType: {
serializedName: "actionType",
readOnly: true,
type: {
name: "String"
}
},
origin: {
serializedName: "origin",
type: {
Expand Down
48 changes: 48 additions & 0 deletions sdk/appplatform/arm-appplatform/test/sampleTest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

import {
env,
record,
RecorderEnvironmentSetup,
Recorder
} from "@azure-tools/test-recorder";
import * as assert from "assert";

const recorderEnvSetup: RecorderEnvironmentSetup = {
replaceableVariables: {
AZURE_CLIENT_ID: "azure_client_id",
AZURE_CLIENT_SECRET: "azure_client_secret",
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
SUBSCRIPTION_ID: "azure_subscription_id"
},
customizationsOnRecordings: [
(recording: any): any =>
recording.replace(
/"access_token":"[^"]*"/g,
`"access_token":"access_token"`
)
],
queryParametersToSkip: []
};

describe("My test", () => {
let recorder: Recorder;

beforeEach(async function() {
recorder = record(this, recorderEnvSetup);
});

afterEach(async function() {
await recorder.stop();
});

it("sample test", async function() {
console.log("Hi, I'm a test!");
});
});