Skip to content
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
8 changes: 4 additions & 4 deletions sdk/policy/arm-policy/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "ac155b972d0619a6e5bf665a863fb05ee7eeb30f",
"commit": "6ab7b389e84025ddb72fe56039265c5033357d97",
"readme": "specification/resources/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:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\resources\\resource-manager\\readme.md --use=@autorest/[email protected]rc.1 --generate-sample=true --azure-arm=true",
"autorest_command": "autorest --version=3.7.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/resources/resource-manager/readme.md --use=@autorest/[email protected]alpha.19.20220425.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.3.2",
"use": "@autorest/[email protected]rc.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.0",
"use": "@autorest/[email protected]alpha.19.20220425.1"
}
17 changes: 4 additions & 13 deletions sdk/policy/arm-policy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
"@azure-tools/test-recorder": "^2.0.0",
"@azure-tools/test-credential": "^1.0.0",
"mocha": "^7.1.1",
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@azure/dev-tool": "^1.0.0"
},
Expand Down Expand Up @@ -96,7 +94,8 @@
"unit-test:browser": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
"integration-test:browser": "echo skipped"
"integration-test:browser": "echo skipped",
"docs": "echo skipped"
},
"sideEffects": false,
"//metadata": {
Expand All @@ -107,13 +106,5 @@
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-policy?view=azure-node-preview"
}
}
"autoPublish": true
}
15 changes: 15 additions & 0 deletions sdk/policy/arm-policy/review/arm-policy.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,13 @@ export enum KnownAliasPathTokenType {

// @public
export enum KnownCreatedByType {
// (undocumented)
Application = "Application",
// (undocumented)
Key = "Key",
// (undocumented)
ManagedIdentity = "ManagedIdentity",
// (undocumented)
User = "User"
}

Expand All @@ -194,20 +198,31 @@ export enum KnownExemptionCategory {

// @public
export enum KnownParameterType {
// (undocumented)
Array = "Array",
// (undocumented)
Boolean = "Boolean",
// (undocumented)
DateTime = "DateTime",
// (undocumented)
Float = "Float",
// (undocumented)
Integer = "Integer",
// (undocumented)
Object = "Object",
// (undocumented)
String = "String"
}

// @public
export enum KnownPolicyType {
// (undocumented)
BuiltIn = "BuiltIn",
// (undocumented)
Custom = "Custom",
// (undocumented)
NotSpecified = "NotSpecified",
// (undocumented)
Static = "Static"
}

Expand Down
15 changes: 0 additions & 15 deletions sdk/policy/arm-policy/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -579,13 +579,9 @@ export type EnforcementMode = string;

/** Known values of {@link CreatedByType} that the service accepts. */
export enum KnownCreatedByType {
/** User */
User = "User",
/** Application */
Application = "Application",
/** ManagedIdentity */
ManagedIdentity = "ManagedIdentity",
/** Key */
Key = "Key"
}

Expand All @@ -603,13 +599,9 @@ export type CreatedByType = string;

/** Known values of {@link PolicyType} that the service accepts. */
export enum KnownPolicyType {
/** NotSpecified */
NotSpecified = "NotSpecified",
/** BuiltIn */
BuiltIn = "BuiltIn",
/** Custom */
Custom = "Custom",
/** Static */
Static = "Static"
}

Expand All @@ -627,19 +619,12 @@ export type PolicyType = string;

/** Known values of {@link ParameterType} that the service accepts. */
export enum KnownParameterType {
/** String */
String = "String",
/** Array */
Array = "Array",
/** Object */
Object = "Object",
/** Boolean */
Boolean = "Boolean",
/** Integer */
Integer = "Integer",
/** Float */
Float = "Float",
/** DateTime */
DateTime = "DateTime"
}

Expand Down
43 changes: 43 additions & 0 deletions sdk/policy/arm-policy/test/sampleTest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*
* 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 {
Recorder,
RecorderStartOptions,
env
} from "@azure-tools/test-recorder";
import { assert } from "chai";
import { Context } from "mocha";

const replaceableVariables: Record<string, string> = {
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"
};

const recorderOptions: RecorderStartOptions = {
envSetupForPlayback: replaceableVariables
};

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

beforeEach(async function(this: Context) {
recorder = new Recorder(this.currentTest);
await recorder.start(recorderOptions);
});

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

it("sample test", async function() {
console.log("Hi, I'm a test!");
});
});
11 changes: 4 additions & 7 deletions sdk/policy/arm-policy/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,14 @@
],
"declaration": true,
"outDir": "./dist-esm",
"importHelpers": true,
"paths": {
"@azure/arm-policy": [
"./src/index"
]
}
"importHelpers": true
},
"include": [
"./src/**/*.ts",
"./test/**/*.ts",
"samples-dev/**/*.ts"
"./test/**/*.ts",
"./test/**/*.ts",
"./test/**/*.ts"
],
"exclude": [
"node_modules"
Expand Down