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
13 changes: 13 additions & 0 deletions sdk/networkfunction/arm-networkfunction/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Release History

## 1.1.0 (2022-07-26)

**Features**

- Added Type Alias ApiVersionParameter
- Added Type Alias AzureTrafficCollector
- Added Type Alias CollectorPolicy
- Added Type Alias TrackedResourceSystemData
- Interface CollectorPoliciesCreateOrUpdateOptionalParams has a new optional parameter location
- Interface CollectorPoliciesCreateOrUpdateOptionalParams has a new optional parameter tags
- Added Enum KnownApiVersionParameter


## 1.0.0 (2022-07-13)

The package of @azure/arm-networkfunction is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
8 changes: 4 additions & 4 deletions sdk/networkfunction/arm-networkfunction/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "96c6e14d4dfd2aef59a69a43185308567fec8c07",
"commit": "341d0cda9c5c82a4e82bbd1fe6f3133265c6717c",
"readme": "specification/networkfunction/resource-manager/readme.md",
"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=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\networkfunction\\resource-manager\\readme.md --use=@autorest/[email protected] --generate-sample=true",
"autorest_command": "",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/[email protected].0",
"use": "@autorest/[email protected]rc.1"
"release_tool": "@azure-tools/[email protected].1",
"use": "@autorest/[email protected]alpha.19.20220425.1"
}
17 changes: 4 additions & 13 deletions sdk/networkfunction/arm-networkfunction/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 AzureTrafficCollectorClient.",
"version": "1.0.0",
"version": "1.1.0",
"engines": {
"node": ">=12.0.0"
},
Expand Down Expand Up @@ -43,8 +43,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 @@ -98,7 +96,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 @@ -109,13 +108,5 @@
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-networkfunction?view=azure-node-preview"
}
"autoPublish": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ import { PollerLike } from '@azure/core-lro';
import { PollOperationState } from '@azure/core-lro';

// @public
export interface AzureTrafficCollector extends TrackedResource {
collectorPolicies?: CollectorPolicy[];
export type ApiVersionParameter = string;

// @public
export type AzureTrafficCollector = TrackedResource & {
readonly etag?: string;
readonly provisioningState?: ProvisioningState;
collectorPolicies?: CollectorPolicy[];
virtualHub?: ResourceReference;
}
readonly provisioningState?: ProvisioningState;
};

// @public (undocumented)
export class AzureTrafficCollectorClient extends coreClient.ServiceClient {
Expand Down Expand Up @@ -162,7 +165,11 @@ export interface CollectorPolicies {
export interface CollectorPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
emissionPolicies?: EmissionPoliciesPropertiesFormat[];
ingestionPolicy?: IngestionPolicyPropertiesFormat;
location?: string;
resumeFrom?: string;
tags?: {
[propertyName: string]: string;
};
updateIntervalInMs?: number;
}

Expand Down Expand Up @@ -197,24 +204,19 @@ export interface CollectorPoliciesListOptionalParams extends coreClient.Operatio
export type CollectorPoliciesListResponse = CollectorPolicyListResult;

// @public
export interface CollectorPolicy extends ProxyResource {
emissionPolicies?: EmissionPoliciesPropertiesFormat[];
export type CollectorPolicy = TrackedResource & {
readonly etag?: string;
ingestionPolicy?: IngestionPolicyPropertiesFormat;
emissionPolicies?: EmissionPoliciesPropertiesFormat[];
readonly provisioningState?: ProvisioningState;
readonly systemData?: CollectorPolicySystemData;
}
};

// @public
export interface CollectorPolicyListResult {
readonly nextLink?: string;
value?: CollectorPolicy[];
}

// @public
export interface CollectorPolicySystemData extends SystemData {
}

// @public
export type CreatedByType = string;

Expand Down Expand Up @@ -250,39 +252,59 @@ export interface IngestionSourcesPropertiesFormat {
// @public
export type IngestionType = string;

// @public
export enum KnownApiVersionParameter {
// (undocumented)
TwoThousandTwentyTwo0501 = "2022-05-01",
// (undocumented)
TwoThousandTwentyTwo0801 = "2022-08-01"
}

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

// @public
export enum KnownDestinationType {
// (undocumented)
AzureMonitor = "AzureMonitor"
}

// @public
export enum KnownEmissionType {
// (undocumented)
Ipfix = "IPFIX"
}

// @public
export enum KnownIngestionType {
// (undocumented)
Ipfix = "IPFIX"
}

// @public
export enum KnownProvisioningState {
// (undocumented)
Deleting = "Deleting",
// (undocumented)
Failed = "Failed",
// (undocumented)
Succeeded = "Succeeded",
// (undocumented)
Updating = "Updating"
}

// @public
export enum KnownSourceType {
// (undocumented)
Resource = "Resource"
}

Expand Down Expand Up @@ -367,8 +389,7 @@ export interface TrackedResource {
}

// @public
export interface TrackedResourceSystemData extends SystemData {
}
export type TrackedResourceSystemData = SystemData & {};

// (No @packageDocumentation comment for this package)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class AzureTrafficCollectorClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-networkfunction/1.0.0`;
const packageDetails = `azsdk-js-arm-networkfunction/1.1.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down Expand Up @@ -109,7 +109,7 @@ export class AzureTrafficCollectorClient extends coreClient.ServiceClient {

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2022-05-01";
this.apiVersion = options.apiVersion || "2022-08-01";
this.networkFunction = new NetworkFunctionImpl(this);
this.azureTrafficCollectorsBySubscription = new AzureTrafficCollectorsBySubscriptionImpl(
this
Expand Down Expand Up @@ -137,7 +137,7 @@ export class AzureTrafficCollectorClient extends coreClient.ServiceClient {
if (param.length > 1) {
const newParams = param[1].split("&").map((item) => {
if (item.indexOf("api-version") > -1) {
return "api-version=" + apiVersion;
return item.replace(/(?<==).*$/, apiVersion);
} else {
return item;
}
Expand Down
Loading