@azure/arm-networkfunction 1.0.1-alpha.20221128.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/CHANGELOG.md +21 -8
  2. package/dist/index.js +368 -251
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/samples-dev/azureTrafficCollectorsByResourceGroupListSample.js +1 -1
  7. package/dist-esm/samples-dev/azureTrafficCollectorsBySubscriptionListSample.js +1 -1
  8. package/dist-esm/samples-dev/azureTrafficCollectorsCreateOrUpdateSample.js +3 -6
  9. package/dist-esm/samples-dev/azureTrafficCollectorsCreateOrUpdateSample.js.map +1 -1
  10. package/dist-esm/samples-dev/azureTrafficCollectorsDeleteSample.js +1 -1
  11. package/dist-esm/samples-dev/azureTrafficCollectorsGetSample.js +1 -1
  12. package/dist-esm/samples-dev/azureTrafficCollectorsUpdateTagsSample.js +1 -1
  13. package/dist-esm/samples-dev/collectorPoliciesCreateOrUpdateSample.js +3 -2
  14. package/dist-esm/samples-dev/collectorPoliciesCreateOrUpdateSample.js.map +1 -1
  15. package/dist-esm/samples-dev/collectorPoliciesDeleteSample.js +1 -1
  16. package/dist-esm/samples-dev/collectorPoliciesGetSample.js +1 -1
  17. package/dist-esm/samples-dev/collectorPoliciesListSample.js +1 -1
  18. package/dist-esm/samples-dev/collectorPoliciesUpdateTagsSample.d.ts +2 -0
  19. package/dist-esm/samples-dev/collectorPoliciesUpdateTagsSample.d.ts.map +1 -0
  20. package/dist-esm/samples-dev/collectorPoliciesUpdateTagsSample.js +33 -0
  21. package/dist-esm/samples-dev/collectorPoliciesUpdateTagsSample.js.map +1 -0
  22. package/dist-esm/samples-dev/networkFunctionListOperationsSample.js +1 -1
  23. package/dist-esm/src/azureTrafficCollectorClient.d.ts.map +1 -1
  24. package/dist-esm/src/azureTrafficCollectorClient.js +21 -19
  25. package/dist-esm/src/azureTrafficCollectorClient.js.map +1 -1
  26. package/dist-esm/src/index.d.ts +1 -0
  27. package/dist-esm/src/index.d.ts.map +1 -1
  28. package/dist-esm/src/index.js +1 -0
  29. package/dist-esm/src/index.js.map +1 -1
  30. package/dist-esm/src/models/index.d.ts +138 -119
  31. package/dist-esm/src/models/index.d.ts.map +1 -1
  32. package/dist-esm/src/models/index.js +34 -24
  33. package/dist-esm/src/models/index.js.map +1 -1
  34. package/dist-esm/src/models/mappers.d.ts +7 -8
  35. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  36. package/dist-esm/src/models/mappers.js +152 -163
  37. package/dist-esm/src/models/mappers.js.map +1 -1
  38. package/dist-esm/src/models/parameters.d.ts +2 -1
  39. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  40. package/dist-esm/src/models/parameters.js +10 -6
  41. package/dist-esm/src/models/parameters.js.map +1 -1
  42. package/dist-esm/src/operations/azureTrafficCollectors.d.ts +4 -2
  43. package/dist-esm/src/operations/azureTrafficCollectors.d.ts.map +1 -1
  44. package/dist-esm/src/operations/azureTrafficCollectors.js +7 -6
  45. package/dist-esm/src/operations/azureTrafficCollectors.js.map +1 -1
  46. package/dist-esm/src/operations/azureTrafficCollectorsByResourceGroup.d.ts.map +1 -1
  47. package/dist-esm/src/operations/azureTrafficCollectorsByResourceGroup.js +19 -7
  48. package/dist-esm/src/operations/azureTrafficCollectorsByResourceGroup.js.map +1 -1
  49. package/dist-esm/src/operations/azureTrafficCollectorsBySubscription.d.ts.map +1 -1
  50. package/dist-esm/src/operations/azureTrafficCollectorsBySubscription.js +19 -7
  51. package/dist-esm/src/operations/azureTrafficCollectorsBySubscription.js.map +1 -1
  52. package/dist-esm/src/operations/collectorPolicies.d.ts +14 -3
  53. package/dist-esm/src/operations/collectorPolicies.d.ts.map +1 -1
  54. package/dist-esm/src/operations/collectorPolicies.js +68 -10
  55. package/dist-esm/src/operations/collectorPolicies.js.map +1 -1
  56. package/dist-esm/src/operations/networkFunction.d.ts.map +1 -1
  57. package/dist-esm/src/operations/networkFunction.js +8 -4
  58. package/dist-esm/src/operations/networkFunction.js.map +1 -1
  59. package/dist-esm/src/operationsInterfaces/azureTrafficCollectors.d.ts +4 -2
  60. package/dist-esm/src/operationsInterfaces/azureTrafficCollectors.d.ts.map +1 -1
  61. package/dist-esm/src/operationsInterfaces/collectorPolicies.d.ts +14 -3
  62. package/dist-esm/src/operationsInterfaces/collectorPolicies.d.ts.map +1 -1
  63. package/dist-esm/src/pagingHelper.d.ts +13 -0
  64. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  65. package/dist-esm/src/pagingHelper.js +32 -0
  66. package/dist-esm/src/pagingHelper.js.map +1 -0
  67. package/dist-esm/test/networkfunction_examples.spec.d.ts +4 -0
  68. package/dist-esm/test/networkfunction_examples.spec.d.ts.map +1 -0
  69. package/dist-esm/test/networkfunction_examples.spec.js +69 -0
  70. package/dist-esm/test/networkfunction_examples.spec.js.map +1 -0
  71. package/package.json +7 -6
  72. package/review/arm-networkfunction.api.md +31 -14
  73. package/src/azureTrafficCollectorClient.ts +27 -21
  74. package/src/index.ts +1 -0
  75. package/src/models/index.ts +148 -127
  76. package/src/models/mappers.ts +157 -172
  77. package/src/models/parameters.ts +12 -7
  78. package/src/operations/azureTrafficCollectors.ts +7 -3
  79. package/src/operations/azureTrafficCollectorsByResourceGroup.ts +21 -8
  80. package/src/operations/azureTrafficCollectorsBySubscription.ts +21 -8
  81. package/src/operations/collectorPolicies.ts +89 -12
  82. package/src/operations/networkFunction.ts +10 -5
  83. package/src/operationsInterfaces/azureTrafficCollectors.ts +4 -0
  84. package/src/operationsInterfaces/collectorPolicies.ts +23 -1
  85. package/src/pagingHelper.ts +39 -0
  86. package/types/arm-networkfunction.d.ts +65 -21
  87. package/dist-esm/test/sampleTest.d.ts +0 -2
  88. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  89. package/dist-esm/test/sampleTest.js +0 -38
  90. package/dist-esm/test/sampleTest.js.map +0 -1
@@ -69,69 +69,6 @@ export interface AzureTrafficCollectorListResult {
69
69
  readonly nextLink?: string;
70
70
  }
71
71
 
72
- /** Ingestion Policy properties. */
73
- export interface IngestionPolicyPropertiesFormat {
74
- /** The ingestion type. */
75
- ingestionType?: IngestionType;
76
- /** Ingestion Sources. */
77
- ingestionSources?: IngestionSourcesPropertiesFormat[];
78
- }
79
-
80
- /** Ingestion policy properties. */
81
- export interface IngestionSourcesPropertiesFormat {
82
- /** Ingestion source type. */
83
- sourceType?: SourceType;
84
- /** Resource ID. */
85
- resourceId?: string;
86
- }
87
-
88
- /** Emission policy properties. */
89
- export interface EmissionPoliciesPropertiesFormat {
90
- /** Emission format type. */
91
- emissionType?: EmissionType;
92
- /** Emission policy destinations. */
93
- emissionDestinations?: EmissionPolicyDestination[];
94
- }
95
-
96
- /** Emission policy destination properties. */
97
- export interface EmissionPolicyDestination {
98
- /** Emission destination type. */
99
- destinationType?: DestinationType;
100
- }
101
-
102
- /** Metadata pertaining to creation and last modification of the resource. */
103
- export interface SystemData {
104
- /** The identity that created the resource. */
105
- createdBy?: string;
106
- /** The type of identity that created the resource. */
107
- createdByType?: CreatedByType;
108
- /** The timestamp of resource creation (UTC). */
109
- createdAt?: Date;
110
- /** The identity that last modified the resource. */
111
- lastModifiedBy?: string;
112
- /** The type of identity that last modified the resource. */
113
- lastModifiedByType?: CreatedByType;
114
- }
115
-
116
- /** An azure resource object */
117
- export interface ProxyResource {
118
- /**
119
- * Azure resource Id
120
- * NOTE: This property will not be serialized. It can only be populated by the server.
121
- */
122
- readonly id?: string;
123
- /**
124
- * Azure resource type
125
- * NOTE: This property will not be serialized. It can only be populated by the server.
126
- */
127
- readonly type?: string;
128
- /**
129
- * Azure resource name
130
- * NOTE: This property will not be serialized. It can only be populated by the server.
131
- */
132
- readonly name?: string;
133
- }
134
-
135
72
  /** Resource reference properties. */
136
73
  export interface ResourceReference {
137
74
  /**
@@ -159,7 +96,7 @@ export interface TrackedResource {
159
96
  */
160
97
  readonly type?: string;
161
98
  /** Resource location. */
162
- location?: string;
99
+ location: string;
163
100
  /** Resource tags. */
164
101
  tags?: { [propertyName: string]: string };
165
102
  /**
@@ -169,6 +106,20 @@ export interface TrackedResource {
169
106
  readonly systemData?: TrackedResourceSystemData;
170
107
  }
171
108
 
109
+ /** Metadata pertaining to creation and last modification of the resource. */
110
+ export interface SystemData {
111
+ /** The identity that created the resource. */
112
+ createdBy?: string;
113
+ /** The type of identity that created the resource. */
114
+ createdByType?: CreatedByType;
115
+ /** The timestamp of resource creation (UTC). */
116
+ createdAt?: Date;
117
+ /** The identity that last modified the resource. */
118
+ lastModifiedBy?: string;
119
+ /** The type of identity that last modified the resource. */
120
+ lastModifiedByType?: CreatedByType;
121
+ }
122
+
172
123
  /** Tags object for patch operations. */
173
124
  export interface TagsObject {
174
125
  /** Resource tags. */
@@ -186,33 +137,53 @@ export interface CollectorPolicyListResult {
186
137
  readonly nextLink?: string;
187
138
  }
188
139
 
189
- /** Metadata pertaining to creation and last modification of the resource. */
190
- export interface CollectorPolicySystemData extends SystemData {}
140
+ /** Ingestion Policy properties. */
141
+ export interface IngestionPolicyPropertiesFormat {
142
+ /** The ingestion type. */
143
+ ingestionType?: IngestionType;
144
+ /** Ingestion Sources. */
145
+ ingestionSources?: IngestionSourcesPropertiesFormat[];
146
+ }
191
147
 
192
- /** Metadata pertaining to creation and last modification of the resource. */
193
- export interface TrackedResourceSystemData extends SystemData {}
148
+ /** Ingestion policy properties. */
149
+ export interface IngestionSourcesPropertiesFormat {
150
+ /** Ingestion source type. */
151
+ sourceType?: SourceType;
152
+ /** Resource ID. */
153
+ resourceId?: string;
154
+ }
194
155
 
195
- /** Collector policy resource. */
196
- export interface CollectorPolicy extends ProxyResource {
156
+ /** Emission policy properties. */
157
+ export interface EmissionPoliciesPropertiesFormat {
158
+ /** Emission format type. */
159
+ emissionType?: EmissionType;
160
+ /** Emission policy destinations. */
161
+ emissionDestinations?: EmissionPolicyDestination[];
162
+ }
163
+
164
+ /** Emission policy destination properties. */
165
+ export interface EmissionPolicyDestination {
166
+ /** Emission destination type. */
167
+ destinationType?: DestinationType;
168
+ }
169
+
170
+ /** An azure resource object */
171
+ export interface ProxyResource {
197
172
  /**
198
- * A unique read-only string that changes whenever the resource is updated.
173
+ * Azure resource Id
199
174
  * NOTE: This property will not be serialized. It can only be populated by the server.
200
175
  */
201
- readonly etag?: string;
176
+ readonly id?: string;
202
177
  /**
203
- * Metadata pertaining to creation and last modification of the resource.
178
+ * Azure resource type
204
179
  * NOTE: This property will not be serialized. It can only be populated by the server.
205
180
  */
206
- readonly systemData?: CollectorPolicySystemData;
207
- /** Ingestion policies. */
208
- ingestionPolicy?: IngestionPolicyPropertiesFormat;
209
- /** Emission policies. */
210
- emissionPolicies?: EmissionPoliciesPropertiesFormat[];
181
+ readonly type?: string;
211
182
  /**
212
- * The provisioning state.
183
+ * Azure resource name
213
184
  * NOTE: This property will not be serialized. It can only be populated by the server.
214
185
  */
215
- readonly provisioningState?: ProvisioningState;
186
+ readonly name?: string;
216
187
  }
217
188
 
218
189
  /** Azure Traffic Collector resource. */
@@ -222,8 +193,11 @@ export interface AzureTrafficCollector extends TrackedResource {
222
193
  * NOTE: This property will not be serialized. It can only be populated by the server.
223
194
  */
224
195
  readonly etag?: string;
225
- /** Collector Policies for Azure Traffic Collector. */
226
- collectorPolicies?: CollectorPolicy[];
196
+ /**
197
+ * Collector Policies for Azure Traffic Collector.
198
+ * NOTE: This property will not be serialized. It can only be populated by the server.
199
+ */
200
+ readonly collectorPolicies?: ResourceReference[];
227
201
  /** The virtualHub to which the Azure Traffic Collector belongs. */
228
202
  virtualHub?: ResourceReference;
229
203
  /**
@@ -233,6 +207,75 @@ export interface AzureTrafficCollector extends TrackedResource {
233
207
  readonly provisioningState?: ProvisioningState;
234
208
  }
235
209
 
210
+ /** Collector policy resource. */
211
+ export interface CollectorPolicy extends TrackedResource {
212
+ /**
213
+ * A unique read-only string that changes whenever the resource is updated.
214
+ * NOTE: This property will not be serialized. It can only be populated by the server.
215
+ */
216
+ readonly etag?: string;
217
+ /** Ingestion policies. */
218
+ ingestionPolicy?: IngestionPolicyPropertiesFormat;
219
+ /** Emission policies. */
220
+ emissionPolicies?: EmissionPoliciesPropertiesFormat[];
221
+ /**
222
+ * The provisioning state.
223
+ * NOTE: This property will not be serialized. It can only be populated by the server.
224
+ */
225
+ readonly provisioningState?: ProvisioningState;
226
+ }
227
+
228
+ /** Metadata pertaining to creation and last modification of the resource. */
229
+ export interface TrackedResourceSystemData extends SystemData {}
230
+
231
+ /** Known values of {@link ProvisioningState} that the service accepts. */
232
+ export enum KnownProvisioningState {
233
+ /** Succeeded */
234
+ Succeeded = "Succeeded",
235
+ /** Updating */
236
+ Updating = "Updating",
237
+ /** Deleting */
238
+ Deleting = "Deleting",
239
+ /** Failed */
240
+ Failed = "Failed"
241
+ }
242
+
243
+ /**
244
+ * Defines values for ProvisioningState. \
245
+ * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
246
+ * this enum contains the known values that the service supports.
247
+ * ### Known values supported by the service
248
+ * **Succeeded** \
249
+ * **Updating** \
250
+ * **Deleting** \
251
+ * **Failed**
252
+ */
253
+ export type ProvisioningState = string;
254
+
255
+ /** Known values of {@link CreatedByType} that the service accepts. */
256
+ export enum KnownCreatedByType {
257
+ /** User */
258
+ User = "User",
259
+ /** Application */
260
+ Application = "Application",
261
+ /** ManagedIdentity */
262
+ ManagedIdentity = "ManagedIdentity",
263
+ /** Key */
264
+ Key = "Key"
265
+ }
266
+
267
+ /**
268
+ * Defines values for CreatedByType. \
269
+ * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
270
+ * this enum contains the known values that the service supports.
271
+ * ### Known values supported by the service
272
+ * **User** \
273
+ * **Application** \
274
+ * **ManagedIdentity** \
275
+ * **Key**
276
+ */
277
+ export type CreatedByType = string;
278
+
236
279
  /** Known values of {@link IngestionType} that the service accepts. */
237
280
  export enum KnownIngestionType {
238
281
  /** Ipfix */
@@ -293,53 +336,26 @@ export enum KnownDestinationType {
293
336
  */
294
337
  export type DestinationType = string;
295
338
 
296
- /** Known values of {@link ProvisioningState} that the service accepts. */
297
- export enum KnownProvisioningState {
298
- /** Succeeded */
299
- Succeeded = "Succeeded",
300
- /** Updating */
301
- Updating = "Updating",
302
- /** Deleting */
303
- Deleting = "Deleting",
304
- /** Failed */
305
- Failed = "Failed"
339
+ /** Known values of {@link ApiVersionParameter} that the service accepts. */
340
+ export enum KnownApiVersionParameter {
341
+ /** TwoThousandTwentyTwo0501 */
342
+ TwoThousandTwentyTwo0501 = "2022-05-01",
343
+ /** TwoThousandTwentyTwo0801 */
344
+ TwoThousandTwentyTwo0801 = "2022-08-01",
345
+ /** TwoThousandTwentyTwo1101 */
346
+ TwoThousandTwentyTwo1101 = "2022-11-01"
306
347
  }
307
348
 
308
349
  /**
309
- * Defines values for ProvisioningState. \
310
- * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
350
+ * Defines values for ApiVersionParameter. \
351
+ * {@link KnownApiVersionParameter} can be used interchangeably with ApiVersionParameter,
311
352
  * this enum contains the known values that the service supports.
312
353
  * ### Known values supported by the service
313
- * **Succeeded** \
314
- * **Updating** \
315
- * **Deleting** \
316
- * **Failed**
354
+ * **2022-05-01** \
355
+ * **2022-08-01** \
356
+ * **2022-11-01**
317
357
  */
318
- export type ProvisioningState = string;
319
-
320
- /** Known values of {@link CreatedByType} that the service accepts. */
321
- export enum KnownCreatedByType {
322
- /** User */
323
- User = "User",
324
- /** Application */
325
- Application = "Application",
326
- /** ManagedIdentity */
327
- ManagedIdentity = "ManagedIdentity",
328
- /** Key */
329
- Key = "Key"
330
- }
331
-
332
- /**
333
- * Defines values for CreatedByType. \
334
- * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
335
- * this enum contains the known values that the service supports.
336
- * ### Known values supported by the service
337
- * **User** \
338
- * **Application** \
339
- * **ManagedIdentity** \
340
- * **Key**
341
- */
342
- export type CreatedByType = string;
358
+ export type ApiVersionParameter = string;
343
359
 
344
360
  /** Optional parameters. */
345
361
  export interface NetworkFunctionListOperationsOptionalParams
@@ -386,12 +402,8 @@ export type AzureTrafficCollectorsGetResponse = AzureTrafficCollector;
386
402
  /** Optional parameters. */
387
403
  export interface AzureTrafficCollectorsCreateOrUpdateOptionalParams
388
404
  extends coreClient.OperationOptions {
389
- /** Resource location. */
390
- location?: string;
391
405
  /** Resource tags. */
392
406
  tags?: { [propertyName: string]: string };
393
- /** Collector Policies for Azure Traffic Collector. */
394
- collectorPolicies?: CollectorPolicy[];
395
407
  /** The virtualHub to which the Azure Traffic Collector belongs. */
396
408
  virtualHub?: ResourceReference;
397
409
  /** Delay to wait until next poll, in milliseconds. */
@@ -436,6 +448,8 @@ export type CollectorPoliciesGetResponse = CollectorPolicy;
436
448
  /** Optional parameters. */
437
449
  export interface CollectorPoliciesCreateOrUpdateOptionalParams
438
450
  extends coreClient.OperationOptions {
451
+ /** Resource tags. */
452
+ tags?: { [propertyName: string]: string };
439
453
  /** Ingestion policies. */
440
454
  ingestionPolicy?: IngestionPolicyPropertiesFormat;
441
455
  /** Emission policies. */
@@ -458,6 +472,13 @@ export interface CollectorPoliciesDeleteOptionalParams
458
472
  resumeFrom?: string;
459
473
  }
460
474
 
475
+ /** Optional parameters. */
476
+ export interface CollectorPoliciesUpdateTagsOptionalParams
477
+ extends coreClient.OperationOptions {}
478
+
479
+ /** Contains response data for the updateTags operation. */
480
+ export type CollectorPoliciesUpdateTagsResponse = CollectorPolicy;
481
+
461
482
  /** Optional parameters. */
462
483
  export interface CollectorPoliciesListNextOptionalParams
463
484
  extends coreClient.OperationOptions {}