Skip to content

Commit

Permalink
CodeGen from PR 21308 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[Hub Generated] Publish private branch 'release-trafficmanager-Microsoft.Network-2022-04-01-preview' (Azure#21308)

* Adds base for updating Microsoft.Network from version stable/2018-08-01 to version 2022-04-01-preview

* Updates readme

* Updates API version in new specs and examples

* Add new property AlwaysServer for endpoints.

* Fix examples, update swagger to sdk in the readme.

* Added a new example for alwaysServe

* Use parameters like SubsId and apiVersion from common-types/v3

* Use parameter ResourceGroupNameParameter from common-types/v3

* Use ErrorDetail obj from common-types/v3 and remove CloudErrorObject.

* Revert breaking changes: Use ErrorDetail obj from common-types/v3 and remove CloudErrorObject.
  • Loading branch information
SDKAuto committed Oct 27, 2022
1 parent 663e926 commit 39a3d7c
Show file tree
Hide file tree
Showing 18 changed files with 255 additions and 193 deletions.
13 changes: 7 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.

24 changes: 14 additions & 10 deletions sdk/trafficmanager/arm-trafficmanager/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
# Release History

## 6.1.0-beta.1 (2022-10-27)

**Features**

## 6.0.2 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Added Interface Endpoint
- Added Interface HeatMapModel
- Added Interface Profile
- Added Interface ProxyResource
- Added Interface TrackedResource
- Added Interface TrafficManagerGeographicHierarchy
- Added Interface UserMetricsModel
- Added Type Alias AlwaysServe
- Added Enum KnownAlwaysServe
## 6.0.1 (2022-05-05)

**Features**
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) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-trafficmanager?view=azure-node-preview) |
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)

## Getting started
Expand Down
12 changes: 6 additions & 6 deletions sdk/trafficmanager/arm-trafficmanager/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "d600759c3516b61a7c353bc8682bccbab85a6f65",
"readme": "specification\\trafficmanager\\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\\trafficmanager\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-alpha.19.20220408.1 --generate-sample=true",
"commit": "cf0b8f61c70927094eae34082c66be5ed4e48b86",
"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=/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.2",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.3.0",
"use": "@autorest/typescript@6.0.0-alpha.19.20220408.1"
}
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.4",
"use": "@autorest/typescript@6.0.0-rc.2"
}
29 changes: 12 additions & 17 deletions sdk/trafficmanager/arm-trafficmanager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for TrafficManagerManagementClient.",
"version": "6.0.2",
"version": "6.1.0-beta.1",
"engines": {
"node": ">=14.0.0"
},
Expand Down Expand Up @@ -34,13 +34,17 @@
"mkdirp": "^1.0.4",
"rollup": "^2.66.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"typescript": "~4.2.0",
"typescript": "~4.6.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"@azure/identity": "^2.0.1",
"@azure-tools/test-recorder": "^1.0.0",
"@azure-tools/test-recorder": "^2.0.0",
"@azure-tools/test-credential": "^1.0.0",
"mocha": "^7.1.1",
"cross-env": "^7.0.2"
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@azure/dev-tool": "^1.0.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/trafficmanager/arm-trafficmanager",
"repository": {
Expand Down Expand Up @@ -91,9 +95,8 @@
"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 --reporter ../../../common/tools/mocha-multi-reporter.js",
"integration-test:browser": "echo skipped",
"docs": "echo skipped"
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
"integration-test:browser": "echo skipped"
},
"sideEffects": false,
"//metadata": {
Expand All @@ -104,13 +107,5 @@
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-trafficmanager?view=azure-node-preview"
}
}
"autoPublish": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ import { PagedAsyncIterableIterator } from '@azure/core-paging';
// @public
export type AllowedEndpointRecordType = string;

// @public
export type AlwaysServe = string;

// @public
export interface CheckTrafficManagerRelativeDnsNameAvailabilityParameters {
name?: string;
Expand Down Expand Up @@ -43,21 +46,22 @@ export interface DnsConfig {
}

// @public
export type Endpoint = ProxyResource & {
targetResourceId?: string;
target?: string;
endpointStatus?: EndpointStatus;
weight?: number;
priority?: number;
export interface Endpoint extends ProxyResource {
alwaysServe?: AlwaysServe;
customHeaders?: EndpointPropertiesCustomHeadersItem[];
endpointLocation?: string;
endpointMonitorStatus?: EndpointMonitorStatus;
endpointStatus?: EndpointStatus;
geoMapping?: string[];
minChildEndpoints?: number;
minChildEndpointsIPv4?: number;
minChildEndpointsIPv6?: number;
geoMapping?: string[];
priority?: number;
subnets?: EndpointPropertiesSubnetsItem[];
customHeaders?: EndpointPropertiesCustomHeadersItem[];
};
target?: string;
targetResourceId?: string;
weight?: number;
}

// @public
export type EndpointMonitorStatus = string;
Expand Down Expand Up @@ -150,102 +154,78 @@ export interface HeatMapGetOptionalParams extends coreClient.OperationOptions {
export type HeatMapGetResponse = HeatMapModel;

// @public
export type HeatMapModel = ProxyResource & {
startTime?: Date;
endTime?: Date;
export interface HeatMapModel extends ProxyResource {
endpoints?: HeatMapEndpoint[];
endTime?: Date;
startTime?: Date;
trafficFlows?: TrafficFlow[];
};
}

// @public
export enum KnownAllowedEndpointRecordType {
// (undocumented)
Any = "Any",
// (undocumented)
DomainName = "DomainName",
// (undocumented)
IPv4Address = "IPv4Address",
// (undocumented)
IPv6Address = "IPv6Address"
}

// @public
export enum KnownAlwaysServe {
Disabled = "Disabled",
Enabled = "Enabled"
}

// @public
export enum KnownEndpointMonitorStatus {
// (undocumented)
CheckingEndpoint = "CheckingEndpoint",
// (undocumented)
Degraded = "Degraded",
// (undocumented)
Disabled = "Disabled",
// (undocumented)
Inactive = "Inactive",
// (undocumented)
Online = "Online",
// (undocumented)
Stopped = "Stopped"
}

// @public
export enum KnownEndpointStatus {
// (undocumented)
Disabled = "Disabled",
// (undocumented)
Enabled = "Enabled"
}

// @public
export enum KnownMonitorProtocol {
// (undocumented)
Http = "HTTP",
// (undocumented)
Https = "HTTPS",
// (undocumented)
TCP = "TCP"
}

// @public
export enum KnownProfileMonitorStatus {
// (undocumented)
CheckingEndpoints = "CheckingEndpoints",
// (undocumented)
Degraded = "Degraded",
// (undocumented)
Disabled = "Disabled",
// (undocumented)
Inactive = "Inactive",
// (undocumented)
Online = "Online"
}

// @public
export enum KnownProfileStatus {
// (undocumented)
Disabled = "Disabled",
// (undocumented)
Enabled = "Enabled"
}

// @public
export enum KnownTrafficRoutingMethod {
// (undocumented)
Geographic = "Geographic",
// (undocumented)
MultiValue = "MultiValue",
// (undocumented)
Performance = "Performance",
// (undocumented)
Priority = "Priority",
// (undocumented)
Subnet = "Subnet",
// (undocumented)
Weighted = "Weighted"
}

// @public
export enum KnownTrafficViewEnrollmentStatus {
// (undocumented)
Disabled = "Disabled",
// (undocumented)
Enabled = "Enabled"
}

Expand Down Expand Up @@ -278,16 +258,16 @@ export interface MonitorConfigExpectedStatusCodeRangesItem {
export type MonitorProtocol = string;

// @public
export type Profile = TrackedResource & {
profileStatus?: ProfileStatus;
trafficRoutingMethod?: TrafficRoutingMethod;
export interface Profile extends TrackedResource {
allowedEndpointRecordTypes?: AllowedEndpointRecordType[];
dnsConfig?: DnsConfig;
monitorConfig?: MonitorConfig;
endpoints?: Endpoint[];
trafficViewEnrollmentStatus?: TrafficViewEnrollmentStatus;
allowedEndpointRecordTypes?: AllowedEndpointRecordType[];
maxReturn?: number;
};
monitorConfig?: MonitorConfig;
profileStatus?: ProfileStatus;
trafficRoutingMethod?: TrafficRoutingMethod;
trafficViewEnrollmentStatus?: TrafficViewEnrollmentStatus;
}

// @public
export interface ProfileListResult {
Expand Down Expand Up @@ -361,7 +341,8 @@ export interface ProfilesUpdateOptionalParams extends coreClient.OperationOption
export type ProfilesUpdateResponse = Profile;

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

// @public
export interface QueryExperience {
Expand All @@ -385,12 +366,12 @@ export interface Resource {
}

// @public
export type TrackedResource = Resource & {
export interface TrackedResource extends Resource {
location?: string;
tags?: {
[propertyName: string]: string;
};
location?: string;
};
}

// @public
export interface TrafficFlow {
Expand All @@ -401,9 +382,9 @@ export interface TrafficFlow {
}

// @public
export type TrafficManagerGeographicHierarchy = ProxyResource & {
export interface TrafficManagerGeographicHierarchy extends ProxyResource {
geographicHierarchy?: Region;
};
}

// @public (undocumented)
export class TrafficManagerManagementClient extends coreClient.ServiceClient {
Expand Down Expand Up @@ -477,9 +458,9 @@ export type TrafficRoutingMethod = string;
export type TrafficViewEnrollmentStatus = string;

// @public
export type UserMetricsModel = ProxyResource & {
export interface UserMetricsModel extends ProxyResource {
key?: string;
};
}

// (No @packageDocumentation comment for this package)

Expand Down
Loading

0 comments on commit 39a3d7c

Please sign in to comment.