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
19 changes: 13 additions & 6 deletions common/config/rush/pnpm-lock.yaml

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

19 changes: 7 additions & 12 deletions sdk/trafficmanager/arm-trafficmanager/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,23 @@
# Release History

## 6.1.0-beta.2 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 6.1.0-beta.1 (2022-11-15)

## 6.1.0 (2023-05-25)

**Features**

- Added operation Profiles.checkTrafficManagerNameAvailabilityV2
- Added Interface Endpoint
- Added Interface HeatMapModel
- Added Interface Profile
- Added Interface ProfilesCheckTrafficManagerNameAvailabilityV2OptionalParams
- Added Interface ProxyResource
- Added Interface TrackedResource
- Added Interface TrafficManagerGeographicHierarchy
- Added Interface UserMetricsModel
- Added Type Alias AlwaysServe
- Added Type Alias ProfilesCheckTrafficManagerNameAvailabilityV2Response
- Added Enum KnownAlwaysServe
- Enum KnownEndpointMonitorStatus has a new value Unmonitored
- Added function getContinuationToken

## 6.0.1 (2022-05-05)

Expand Down
2 changes: 1 addition & 1 deletion sdk/trafficmanager/arm-trafficmanager/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2022 Microsoft
Copyright (c) 2023 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion sdk/trafficmanager/arm-trafficmanager/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f

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

## Getting started
Expand Down
8 changes: 4 additions & 4 deletions sdk/trafficmanager/arm-trafficmanager/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "3eb2a407e29fa9c79cf537722384b12b9753d59e",
"commit": "296717161fee89211156676660ba9f890eb18124",
"readme": "specification/trafficmanager/resource-manager/readme.md",
"autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --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\\trafficmanager\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.3.20221108.1 --generate-sample=true",
"autorest_command": "autorest --version=3.9.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/trafficmanager/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.10",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
"use": "@autorest/typescript@6.0.0-rc.3.20221108.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.0",
"use": "@autorest/typescript@6.0.0-rc.10"
}
21 changes: 7 additions & 14 deletions sdk/trafficmanager/arm-trafficmanager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for TrafficManagerManagementClient.",
"version": "6.1.0-beta.2",
"version": "6.1.0",
"engines": {
"node": ">=14.0.0"
},
"dependencies": {
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.6.1",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.8.0",
"tslib": "^2.2.0"
Expand All @@ -31,12 +31,13 @@
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-multi-entry": "^6.0.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"mkdirp": "^1.0.4",
"mkdirp": "^2.1.2",
"rollup": "^2.66.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"typescript": "~5.0.0",
"typescript": "~4.8.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"dotenv": "^16.0.0",
"@azure/identity": "^2.0.1",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.0.0",
Expand All @@ -47,7 +48,6 @@
"@types/node": "^14.0.0",
"@azure/dev-tool": "^1.0.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/trafficmanager/arm-trafficmanager",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
Expand Down Expand Up @@ -109,12 +109,5 @@
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-trafficmanager?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/trafficmanager/arm-trafficmanager"
}
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ export enum KnownEndpointMonitorStatus {
Disabled = "Disabled",
Inactive = "Inactive",
Online = "Online",
Stopped = "Stopped"
Stopped = "Stopped",
Unmonitored = "Unmonitored"
}

// @public
Expand Down Expand Up @@ -282,6 +283,7 @@ export type ProfileMonitorStatus = string;

// @public
export interface Profiles {
checkTrafficManagerNameAvailabilityV2(parameters: CheckTrafficManagerRelativeDnsNameAvailabilityParameters, options?: ProfilesCheckTrafficManagerNameAvailabilityV2OptionalParams): Promise<ProfilesCheckTrafficManagerNameAvailabilityV2Response>;
checkTrafficManagerRelativeDnsNameAvailability(parameters: CheckTrafficManagerRelativeDnsNameAvailabilityParameters, options?: ProfilesCheckTrafficManagerRelativeDnsNameAvailabilityOptionalParams): Promise<ProfilesCheckTrafficManagerRelativeDnsNameAvailabilityResponse>;
createOrUpdate(resourceGroupName: string, profileName: string, parameters: Profile, options?: ProfilesCreateOrUpdateOptionalParams): Promise<ProfilesCreateOrUpdateResponse>;
delete(resourceGroupName: string, profileName: string, options?: ProfilesDeleteOptionalParams): Promise<ProfilesDeleteResponse>;
Expand All @@ -291,6 +293,13 @@ export interface Profiles {
update(resourceGroupName: string, profileName: string, parameters: Profile, options?: ProfilesUpdateOptionalParams): Promise<ProfilesUpdateResponse>;
}

// @public
export interface ProfilesCheckTrafficManagerNameAvailabilityV2OptionalParams extends coreClient.OperationOptions {
}

// @public
export type ProfilesCheckTrafficManagerNameAvailabilityV2Response = TrafficManagerNameAvailability;

// @public
export interface ProfilesCheckTrafficManagerRelativeDnsNameAvailabilityOptionalParams extends coreClient.OperationOptions {
}
Expand Down
14 changes: 12 additions & 2 deletions sdk/trafficmanager/arm-trafficmanager/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,9 @@ export enum KnownEndpointMonitorStatus {
/** Inactive */
Inactive = "Inactive",
/** Stopped */
Stopped = "Stopped"
Stopped = "Stopped",
/** Unmonitored */
Unmonitored = "Unmonitored"
}

/**
Expand All @@ -313,7 +315,8 @@ export enum KnownEndpointMonitorStatus {
* **Degraded** \
* **Disabled** \
* **Inactive** \
* **Stopped**
* **Stopped** \
* **Unmonitored**
*/
export type EndpointMonitorStatus = string;

Expand Down Expand Up @@ -513,6 +516,13 @@ export interface ProfilesCheckTrafficManagerRelativeDnsNameAvailabilityOptionalP
/** Contains response data for the checkTrafficManagerRelativeDnsNameAvailability operation. */
export type ProfilesCheckTrafficManagerRelativeDnsNameAvailabilityResponse = TrafficManagerNameAvailability;

/** Optional parameters. */
export interface ProfilesCheckTrafficManagerNameAvailabilityV2OptionalParams
extends coreClient.OperationOptions {}

/** Contains response data for the checkTrafficManagerNameAvailabilityV2 operation. */
export type ProfilesCheckTrafficManagerNameAvailabilityV2Response = TrafficManagerNameAvailability;

/** Optional parameters. */
export interface ProfilesListByResourceGroupOptionalParams
extends coreClient.OperationOptions {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const endpointName: OperationURLParameter = {
export const apiVersion: OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
defaultValue: "2022-04-01-preview",
defaultValue: "2022-04-01",
isConstant: true,
serializedName: "api-version",
type: {
Expand Down
37 changes: 37 additions & 0 deletions sdk/trafficmanager/arm-trafficmanager/src/operations/profiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import {
CheckTrafficManagerRelativeDnsNameAvailabilityParameters,
ProfilesCheckTrafficManagerRelativeDnsNameAvailabilityOptionalParams,
ProfilesCheckTrafficManagerRelativeDnsNameAvailabilityResponse,
ProfilesCheckTrafficManagerNameAvailabilityV2OptionalParams,
ProfilesCheckTrafficManagerNameAvailabilityV2Response,
ProfilesGetOptionalParams,
ProfilesGetResponse,
ProfilesCreateOrUpdateOptionalParams,
Expand Down Expand Up @@ -153,6 +155,22 @@ export class ProfilesImpl implements Profiles {
);
}

/**
* Checks the availability of a Traffic Manager Relative DNS name.
* @param parameters The Traffic Manager name parameters supplied to the
* CheckTrafficManagerNameAvailability operation.
* @param options The options parameters.
*/
checkTrafficManagerNameAvailabilityV2(
parameters: CheckTrafficManagerRelativeDnsNameAvailabilityParameters,
options?: ProfilesCheckTrafficManagerNameAvailabilityV2OptionalParams
): Promise<ProfilesCheckTrafficManagerNameAvailabilityV2Response> {
return this.client.sendOperationRequest(
{ parameters, options },
checkTrafficManagerNameAvailabilityV2OperationSpec
);
}

/**
* Lists all Traffic Manager profiles within a resource group.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
Expand Down Expand Up @@ -274,6 +292,25 @@ const checkTrafficManagerRelativeDnsNameAvailabilityOperationSpec: coreClient.Op
mediaType: "json",
serializer
};
const checkTrafficManagerNameAvailabilityV2OperationSpec: coreClient.OperationSpec = {
path:
"/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkTrafficManagerNameAvailabilityV2",
httpMethod: "POST",
responses: {
200: {
bodyMapper: Mappers.TrafficManagerNameAvailability
},
default: {
bodyMapper: Mappers.CloudError
}
},
requestBody: Parameters.parameters1,
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host, Parameters.subscriptionId],
headerParameters: [Parameters.contentType, Parameters.accept],
mediaType: "json",
serializer
};
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
path:
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import {
CheckTrafficManagerRelativeDnsNameAvailabilityParameters,
ProfilesCheckTrafficManagerRelativeDnsNameAvailabilityOptionalParams,
ProfilesCheckTrafficManagerRelativeDnsNameAvailabilityResponse,
ProfilesCheckTrafficManagerNameAvailabilityV2OptionalParams,
ProfilesCheckTrafficManagerNameAvailabilityV2Response,
ProfilesGetOptionalParams,
ProfilesGetResponse,
ProfilesCreateOrUpdateOptionalParams,
Expand Down Expand Up @@ -53,6 +55,16 @@ export interface Profiles {
parameters: CheckTrafficManagerRelativeDnsNameAvailabilityParameters,
options?: ProfilesCheckTrafficManagerRelativeDnsNameAvailabilityOptionalParams
): Promise<ProfilesCheckTrafficManagerRelativeDnsNameAvailabilityResponse>;
/**
* Checks the availability of a Traffic Manager Relative DNS name.
* @param parameters The Traffic Manager name parameters supplied to the
* CheckTrafficManagerNameAvailability operation.
* @param options The options parameters.
*/
checkTrafficManagerNameAvailabilityV2(
parameters: CheckTrafficManagerRelativeDnsNameAvailabilityParameters,
options?: ProfilesCheckTrafficManagerNameAvailabilityV2OptionalParams
): Promise<ProfilesCheckTrafficManagerNameAvailabilityV2Response>;
/**
* Gets a Traffic Manager profile.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
Expand Down
8 changes: 4 additions & 4 deletions sdk/trafficmanager/arm-trafficmanager/src/pagingHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ export interface PageInfo {
const pageMap = new WeakMap<object, PageInfo>();

/**
* Given a result page from a pageable operation, returns a
* continuation token that can be used to begin paging from
* Given the last `.value` produced by the `byPage` iterator,
* returns a continuation token that can be used to begin paging from
* that point later.
* @param page A result object from calling .byPage() on a paged operation.
* @returns The continuation token that can be passed into byPage().
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
* @returns The continuation token that can be passed into byPage() during future calls.
*/
export function getContinuationToken(page: unknown): string | undefined {
if (typeof page !== "object" || page === null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class TrafficManagerManagementClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-trafficmanager/6.1.0-beta.2`;
const packageDetails = `azsdk-js-arm-trafficmanager/6.1.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down Expand Up @@ -115,7 +115,7 @@ export class TrafficManagerManagementClient extends coreClient.ServiceClient {

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2022-04-01-preview";
this.apiVersion = options.apiVersion || "2022-04-01";
this.endpoints = new EndpointsImpl(this);
this.profiles = new ProfilesImpl(this);
this.geographicHierarchies = new GeographicHierarchiesImpl(this);
Expand Down
Loading