Skip to content

Commit 3dc85d2

Browse files
author
SDKAuto
committed
CodeGen from PR 19888 in Azure/azure-rest-api-specs
Merge 2be0f35303c3d0ec22e8fec21089a8dd4ccbb2df into 402c7fb924c5c0a30650d1c11338d4d516585933
1 parent 9899204 commit 3dc85d2

File tree

10 files changed

+220
-206
lines changed

10 files changed

+220
-206
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Release History
22

3+
## 1.1.0 (2022-07-26)
4+
5+
**Features**
6+
7+
- Added Type Alias ApiVersionParameter
8+
- Added Type Alias AzureTrafficCollector
9+
- Added Type Alias CollectorPolicy
10+
- Added Type Alias TrackedResourceSystemData
11+
- Interface CollectorPoliciesCreateOrUpdateOptionalParams has a new optional parameter location
12+
- Interface CollectorPoliciesCreateOrUpdateOptionalParams has a new optional parameter tags
13+
- Added Enum KnownApiVersionParameter
14+
15+
316
## 1.0.0 (2022-07-13)
417

518
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).
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "96c6e14d4dfd2aef59a69a43185308567fec8c07",
2+
"commit": "341d0cda9c5c82a4e82bbd1fe6f3133265c6717c",
33
"readme": "specification/networkfunction/resource-manager/readme.md",
4-
"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",
4+
"autorest_command": "",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/[email protected].0",
7-
"use": "@autorest/[email protected]rc.1"
6+
"release_tool": "@azure-tools/[email protected].1",
7+
"use": "@autorest/[email protected]alpha.19.20220425.1"
88
}

sdk/networkfunction/arm-networkfunction/package.json

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for AzureTrafficCollectorClient.",
6-
"version": "1.0.0",
6+
"version": "1.1.0",
77
"engines": {
88
"node": ">=12.0.0"
99
},
@@ -43,8 +43,6 @@
4343
"@azure-tools/test-recorder": "^2.0.0",
4444
"@azure-tools/test-credential": "^1.0.0",
4545
"mocha": "^7.1.1",
46-
"@types/chai": "^4.2.8",
47-
"chai": "^4.2.0",
4846
"cross-env": "^7.0.2",
4947
"@azure/dev-tool": "^1.0.0"
5048
},
@@ -98,7 +96,8 @@
9896
"unit-test:browser": "echo skipped",
9997
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
10098
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
101-
"integration-test:browser": "echo skipped"
99+
"integration-test:browser": "echo skipped",
100+
"docs": "echo skipped"
102101
},
103102
"sideEffects": false,
104103
"//metadata": {
@@ -109,13 +108,5 @@
109108
}
110109
]
111110
},
112-
"autoPublish": true,
113-
"//sampleConfiguration": {
114-
"productName": "",
115-
"productSlugs": [
116-
"azure"
117-
],
118-
"disableDocsMs": true,
119-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-networkfunction?view=azure-node-preview"
120-
}
111+
"autoPublish": true
121112
}

sdk/networkfunction/arm-networkfunction/review/arm-networkfunction.api.md

Lines changed: 35 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@ import { PollerLike } from '@azure/core-lro';
1111
import { PollOperationState } from '@azure/core-lro';
1212

1313
// @public
14-
export interface AzureTrafficCollector extends TrackedResource {
15-
collectorPolicies?: CollectorPolicy[];
14+
export type ApiVersionParameter = string;
15+
16+
// @public
17+
export type AzureTrafficCollector = TrackedResource & {
1618
readonly etag?: string;
17-
readonly provisioningState?: ProvisioningState;
19+
collectorPolicies?: CollectorPolicy[];
1820
virtualHub?: ResourceReference;
19-
}
21+
readonly provisioningState?: ProvisioningState;
22+
};
2023

2124
// @public (undocumented)
2225
export class AzureTrafficCollectorClient extends coreClient.ServiceClient {
@@ -162,7 +165,11 @@ export interface CollectorPolicies {
162165
export interface CollectorPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
163166
emissionPolicies?: EmissionPoliciesPropertiesFormat[];
164167
ingestionPolicy?: IngestionPolicyPropertiesFormat;
168+
location?: string;
165169
resumeFrom?: string;
170+
tags?: {
171+
[propertyName: string]: string;
172+
};
166173
updateIntervalInMs?: number;
167174
}
168175

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

199206
// @public
200-
export interface CollectorPolicy extends ProxyResource {
201-
emissionPolicies?: EmissionPoliciesPropertiesFormat[];
207+
export type CollectorPolicy = TrackedResource & {
202208
readonly etag?: string;
203209
ingestionPolicy?: IngestionPolicyPropertiesFormat;
210+
emissionPolicies?: EmissionPoliciesPropertiesFormat[];
204211
readonly provisioningState?: ProvisioningState;
205-
readonly systemData?: CollectorPolicySystemData;
206-
}
212+
};
207213

208214
// @public
209215
export interface CollectorPolicyListResult {
210216
readonly nextLink?: string;
211217
value?: CollectorPolicy[];
212218
}
213219

214-
// @public
215-
export interface CollectorPolicySystemData extends SystemData {
216-
}
217-
218220
// @public
219221
export type CreatedByType = string;
220222

@@ -250,39 +252,59 @@ export interface IngestionSourcesPropertiesFormat {
250252
// @public
251253
export type IngestionType = string;
252254

255+
// @public
256+
export enum KnownApiVersionParameter {
257+
// (undocumented)
258+
TwoThousandTwentyTwo0501 = "2022-05-01",
259+
// (undocumented)
260+
TwoThousandTwentyTwo0801 = "2022-08-01"
261+
}
262+
253263
// @public
254264
export enum KnownCreatedByType {
265+
// (undocumented)
255266
Application = "Application",
267+
// (undocumented)
256268
Key = "Key",
269+
// (undocumented)
257270
ManagedIdentity = "ManagedIdentity",
271+
// (undocumented)
258272
User = "User"
259273
}
260274

261275
// @public
262276
export enum KnownDestinationType {
277+
// (undocumented)
263278
AzureMonitor = "AzureMonitor"
264279
}
265280

266281
// @public
267282
export enum KnownEmissionType {
283+
// (undocumented)
268284
Ipfix = "IPFIX"
269285
}
270286

271287
// @public
272288
export enum KnownIngestionType {
289+
// (undocumented)
273290
Ipfix = "IPFIX"
274291
}
275292

276293
// @public
277294
export enum KnownProvisioningState {
295+
// (undocumented)
278296
Deleting = "Deleting",
297+
// (undocumented)
279298
Failed = "Failed",
299+
// (undocumented)
280300
Succeeded = "Succeeded",
301+
// (undocumented)
281302
Updating = "Updating"
282303
}
283304

284305
// @public
285306
export enum KnownSourceType {
307+
// (undocumented)
286308
Resource = "Resource"
287309
}
288310

@@ -367,8 +389,7 @@ export interface TrackedResource {
367389
}
368390

369391
// @public
370-
export interface TrackedResourceSystemData extends SystemData {
371-
}
392+
export type TrackedResourceSystemData = SystemData & {};
372393

373394
// (No @packageDocumentation comment for this package)
374395

sdk/networkfunction/arm-networkfunction/src/azureTrafficCollectorClient.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class AzureTrafficCollectorClient extends coreClient.ServiceClient {
6262
credential: credentials
6363
};
6464

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

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

0 commit comments

Comments
 (0)