Skip to content
Merged
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
4 changes: 2 additions & 2 deletions common/config/rush/pnpm-lock.yaml

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

13 changes: 5 additions & 8 deletions sdk/apimanagement/arm-apimanagement/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
# Release History

## 8.0.0-beta.2 (Unreleased)
## 8.0.0-beta.2 (2021-11-17)

**Features**

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes
- Added Interface PerformConnectivityCheckAsyncOptionalParams
- Added Type Alias PerformConnectivityCheckAsyncResponse

## 8.0.0-beta.1 (2021-10-09)

Expand Down
6 changes: 5 additions & 1 deletion sdk/apimanagement/arm-apimanagement/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ApiManagement Client

[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/apimanagement/arm-apimanagement) |
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-apimanagement) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-apimanagement) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-apimanagement?view=azure-node-preview) |
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)

## Getting started
Expand Down Expand Up @@ -53,6 +53,10 @@ const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new ApiManagementClient(new DefaultAzureCredential(), subscriptionId);
```


### JavaScript Bundle
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).

## Key concepts

### ApiManagementClient
Expand Down
6 changes: 3 additions & 3 deletions sdk/apimanagement/arm-apimanagement/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"commit": "e5b604e04e917bc2b0c9673449491b89edb09211",
"commit": "c4d6f92d3fd35a69ebce68f4c73c35c4238c2ac5",
"readme": "specification/apimanagement/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/apimanagement/resource-manager/readme.md --use=@autorest/typescript@6.0.0-beta.13",
"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/apimanagement/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.15.20211116.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/typescript@6.0.0-beta.13"
"use": "@autorest/typescript@6.0.0-alpha.15.20211116.1"
}
26 changes: 8 additions & 18 deletions sdk/apimanagement/arm-apimanagement/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,17 @@
"author": "Microsoft Corporation",
"description": "A generated SDK for ApiManagementClient.",
"version": "8.0.0-beta.2",
"engines": {
"node": ">=12.0.0"
},
"engines": { "node": ">=12.0.0" },
"dependencies": {
"@azure/core-lro": "^2.2.0",
"@azure/abort-controller": "^1.0.0",
"@azure/core-paging": "^1.1.1",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.0.0",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.1.0",
"tslib": "^2.2.0"
},
"keywords": [
"node",
"azure",
"typescript",
"browser",
"isomorphic"
],
"keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
"license": "MIT",
"main": "./dist/index.js",
"module": "./dist-esm/src/index.js",
Expand All @@ -38,6 +30,7 @@
"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",
Expand All @@ -48,9 +41,7 @@
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"bugs": {
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": [
"dist/**/*.js",
"dist/**/*.js.map",
Expand All @@ -70,14 +61,14 @@
"types/*"
],
"scripts": {
"build": "tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
"build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"prepack": "npm run build",
"pack": "npm pack 2>&1",
"extract-api": "api-extractor run --local",
"lint": "echo skipped",
"audit": "echo skipped",
"clean": "echo skipped",
"clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"build:node": "echo skipped",
"build:browser": "echo skipped",
"build:test": "echo skipped",
Expand All @@ -86,14 +77,13 @@
"execute:samples": "echo skipped",
"format": "echo skipped",
"test": "npm run integration-test",
"prebuild": "echo skipped",
"test:node": "echo skipped",
"test:browser": "echo skipped",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
"unit-test:browser": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts",
"integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
"integration-test:browser": "echo skipped",
"docs": "echo skipped"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -674,8 +674,8 @@ export class ApiManagementClient extends ApiManagementClientContext {
authorizationServer: AuthorizationServer;
// (undocumented)
backend: Backend;
beginPerformConnectivityCheckAsync(resourceGroupName: string, serviceName: string, connectivityCheckRequestParams: ConnectivityCheckRequest, options?: ApiManagementClientPerformConnectivityCheckAsyncOptionalParams): Promise<PollerLike<PollOperationState<ApiManagementClientPerformConnectivityCheckAsyncResponse>, ApiManagementClientPerformConnectivityCheckAsyncResponse>>;
beginPerformConnectivityCheckAsyncAndWait(resourceGroupName: string, serviceName: string, connectivityCheckRequestParams: ConnectivityCheckRequest, options?: ApiManagementClientPerformConnectivityCheckAsyncOptionalParams): Promise<ApiManagementClientPerformConnectivityCheckAsyncResponse>;
beginPerformConnectivityCheckAsync(resourceGroupName: string, serviceName: string, connectivityCheckRequestParams: ConnectivityCheckRequest, options?: PerformConnectivityCheckAsyncOptionalParams): Promise<PollerLike<PollOperationState<PerformConnectivityCheckAsyncResponse>, PerformConnectivityCheckAsyncResponse>>;
beginPerformConnectivityCheckAsyncAndWait(resourceGroupName: string, serviceName: string, connectivityCheckRequestParams: ConnectivityCheckRequest, options?: PerformConnectivityCheckAsyncOptionalParams): Promise<PerformConnectivityCheckAsyncResponse>;
// (undocumented)
cache: Cache_2;
// (undocumented)
Expand Down Expand Up @@ -802,15 +802,6 @@ export interface ApiManagementClientOptionalParams extends coreClient.ServiceCli
endpoint?: string;
}

// @public
export interface ApiManagementClientPerformConnectivityCheckAsyncOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
updateIntervalInMs?: number;
}

// @public
export type ApiManagementClientPerformConnectivityCheckAsyncResponse = ConnectivityCheckResponse;

// @public
export interface ApiManagementOperations {
list(options?: ApiManagementOperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
Expand Down Expand Up @@ -5458,6 +5449,15 @@ export interface ParameterExampleContract {
value?: any;
}

// @public
export interface PerformConnectivityCheckAsyncOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
updateIntervalInMs?: number;
}

// @public
export type PerformConnectivityCheckAsyncResponse = ConnectivityCheckResponse;

// @public
export interface PipelineDiagnosticSettings {
request?: HttpMessageDiagnostic;
Expand Down
18 changes: 8 additions & 10 deletions sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ import { ApiManagementClientContext } from "./apiManagementClientContext";
import {
ApiManagementClientOptionalParams,
ConnectivityCheckRequest,
ApiManagementClientPerformConnectivityCheckAsyncOptionalParams,
ApiManagementClientPerformConnectivityCheckAsyncResponse
PerformConnectivityCheckAsyncOptionalParams,
PerformConnectivityCheckAsyncResponse
} from "./models";

export class ApiManagementClient extends ApiManagementClientContext {
Expand Down Expand Up @@ -282,19 +282,17 @@ export class ApiManagementClient extends ApiManagementClientContext {
resourceGroupName: string,
serviceName: string,
connectivityCheckRequestParams: ConnectivityCheckRequest,
options?: ApiManagementClientPerformConnectivityCheckAsyncOptionalParams
options?: PerformConnectivityCheckAsyncOptionalParams
): Promise<
PollerLike<
PollOperationState<
ApiManagementClientPerformConnectivityCheckAsyncResponse
>,
ApiManagementClientPerformConnectivityCheckAsyncResponse
PollOperationState<PerformConnectivityCheckAsyncResponse>,
PerformConnectivityCheckAsyncResponse
>
> {
const directSendOperation = async (
args: coreClient.OperationArguments,
spec: coreClient.OperationSpec
): Promise<ApiManagementClientPerformConnectivityCheckAsyncResponse> => {
): Promise<PerformConnectivityCheckAsyncResponse> => {
return this.sendOperationRequest(args, spec);
};
const sendOperation = async (
Expand Down Expand Up @@ -359,8 +357,8 @@ export class ApiManagementClient extends ApiManagementClientContext {
resourceGroupName: string,
serviceName: string,
connectivityCheckRequestParams: ConnectivityCheckRequest,
options?: ApiManagementClientPerformConnectivityCheckAsyncOptionalParams
): Promise<ApiManagementClientPerformConnectivityCheckAsyncResponse> {
options?: PerformConnectivityCheckAsyncOptionalParams
): Promise<PerformConnectivityCheckAsyncResponse> {
const poller = await this.beginPerformConnectivityCheckAsync(
resourceGroupName,
serviceName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class ApiManagementClientContext extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-apimanagement/8.0.0-beta.1`;
const packageDetails = `azsdk-js-arm-apimanagement/8.0.0-beta.2`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand All @@ -66,6 +66,6 @@ export class ApiManagementClientContext extends coreClient.ServiceClient {

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2021-04-01-preview";
this.apiVersion = options.apiVersion || "2021-08-01";
}
}
Loading