@azure/arm-networkfunction 1.0.0-alpha.20220714.3

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 (151) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +109 -0
  4. package/dist/index.js +1809 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/samples-dev/azureTrafficCollectorsByResourceGroupListSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/azureTrafficCollectorsByResourceGroupListSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/azureTrafficCollectorsByResourceGroupListSample.js +44 -0
  11. package/dist-esm/samples-dev/azureTrafficCollectorsByResourceGroupListSample.js.map +1 -0
  12. package/dist-esm/samples-dev/azureTrafficCollectorsBySubscriptionListSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/azureTrafficCollectorsBySubscriptionListSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/azureTrafficCollectorsBySubscriptionListSample.js +43 -0
  15. package/dist-esm/samples-dev/azureTrafficCollectorsBySubscriptionListSample.js.map +1 -0
  16. package/dist-esm/samples-dev/azureTrafficCollectorsCreateOrUpdateSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/azureTrafficCollectorsCreateOrUpdateSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/azureTrafficCollectorsCreateOrUpdateSample.js +37 -0
  19. package/dist-esm/samples-dev/azureTrafficCollectorsCreateOrUpdateSample.js.map +1 -0
  20. package/dist-esm/samples-dev/azureTrafficCollectorsDeleteSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/azureTrafficCollectorsDeleteSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/azureTrafficCollectorsDeleteSample.js +31 -0
  23. package/dist-esm/samples-dev/azureTrafficCollectorsDeleteSample.js.map +1 -0
  24. package/dist-esm/samples-dev/azureTrafficCollectorsGetSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/azureTrafficCollectorsGetSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/azureTrafficCollectorsGetSample.js +31 -0
  27. package/dist-esm/samples-dev/azureTrafficCollectorsGetSample.js.map +1 -0
  28. package/dist-esm/samples-dev/azureTrafficCollectorsUpdateTagsSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/azureTrafficCollectorsUpdateTagsSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/azureTrafficCollectorsUpdateTagsSample.js +32 -0
  31. package/dist-esm/samples-dev/azureTrafficCollectorsUpdateTagsSample.js.map +1 -0
  32. package/dist-esm/samples-dev/collectorPoliciesCreateOrUpdateSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/collectorPoliciesCreateOrUpdateSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/collectorPoliciesCreateOrUpdateSample.js +32 -0
  35. package/dist-esm/samples-dev/collectorPoliciesCreateOrUpdateSample.js.map +1 -0
  36. package/dist-esm/samples-dev/collectorPoliciesDeleteSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/collectorPoliciesDeleteSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/collectorPoliciesDeleteSample.js +32 -0
  39. package/dist-esm/samples-dev/collectorPoliciesDeleteSample.js.map +1 -0
  40. package/dist-esm/samples-dev/collectorPoliciesGetSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/collectorPoliciesGetSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/collectorPoliciesGetSample.js +32 -0
  43. package/dist-esm/samples-dev/collectorPoliciesGetSample.js.map +1 -0
  44. package/dist-esm/samples-dev/collectorPoliciesListSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/collectorPoliciesListSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/collectorPoliciesListSample.js +45 -0
  47. package/dist-esm/samples-dev/collectorPoliciesListSample.js.map +1 -0
  48. package/dist-esm/samples-dev/networkFunctionListOperationsSample.d.ts +2 -0
  49. package/dist-esm/samples-dev/networkFunctionListOperationsSample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/networkFunctionListOperationsSample.js +43 -0
  51. package/dist-esm/samples-dev/networkFunctionListOperationsSample.js.map +1 -0
  52. package/dist-esm/src/azureTrafficCollectorClient.d.ts +24 -0
  53. package/dist-esm/src/azureTrafficCollectorClient.d.ts.map +1 -0
  54. package/dist-esm/src/azureTrafficCollectorClient.js +102 -0
  55. package/dist-esm/src/azureTrafficCollectorClient.js.map +1 -0
  56. package/dist-esm/src/index.d.ts +5 -0
  57. package/dist-esm/src/index.d.ts.map +1 -0
  58. package/dist-esm/src/index.js +12 -0
  59. package/dist-esm/src/index.js.map +1 -0
  60. package/dist-esm/src/lroImpl.d.ts +16 -0
  61. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  62. package/dist-esm/src/lroImpl.js +29 -0
  63. package/dist-esm/src/lroImpl.js.map +1 -0
  64. package/dist-esm/src/models/index.d.ts +414 -0
  65. package/dist-esm/src/models/index.d.ts.map +1 -0
  66. package/dist-esm/src/models/index.js +56 -0
  67. package/dist-esm/src/models/index.js.map +1 -0
  68. package/dist-esm/src/models/mappers.d.ts +22 -0
  69. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  70. package/dist-esm/src/models/mappers.js +531 -0
  71. package/dist-esm/src/models/mappers.js.map +1 -0
  72. package/dist-esm/src/models/parameters.d.ts +18 -0
  73. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  74. package/dist-esm/src/models/parameters.js +132 -0
  75. package/dist-esm/src/models/parameters.js.map +1 -0
  76. package/dist-esm/src/operations/azureTrafficCollectors.d.ts +57 -0
  77. package/dist-esm/src/operations/azureTrafficCollectors.d.ts.map +1 -0
  78. package/dist-esm/src/operations/azureTrafficCollectors.js +255 -0
  79. package/dist-esm/src/operations/azureTrafficCollectors.js.map +1 -0
  80. package/dist-esm/src/operations/azureTrafficCollectorsByResourceGroup.d.ts +35 -0
  81. package/dist-esm/src/operations/azureTrafficCollectorsByResourceGroup.d.ts.map +1 -0
  82. package/dist-esm/src/operations/azureTrafficCollectorsByResourceGroup.js +132 -0
  83. package/dist-esm/src/operations/azureTrafficCollectorsByResourceGroup.js.map +1 -0
  84. package/dist-esm/src/operations/azureTrafficCollectorsBySubscription.d.ts +32 -0
  85. package/dist-esm/src/operations/azureTrafficCollectorsBySubscription.d.ts.map +1 -0
  86. package/dist-esm/src/operations/azureTrafficCollectorsBySubscription.js +124 -0
  87. package/dist-esm/src/operations/azureTrafficCollectorsBySubscription.js.map +1 -0
  88. package/dist-esm/src/operations/collectorPolicies.d.ts +79 -0
  89. package/dist-esm/src/operations/collectorPolicies.d.ts.map +1 -0
  90. package/dist-esm/src/operations/collectorPolicies.js +356 -0
  91. package/dist-esm/src/operations/collectorPolicies.js.map +1 -0
  92. package/dist-esm/src/operations/index.d.ts +6 -0
  93. package/dist-esm/src/operations/index.d.ts.map +1 -0
  94. package/dist-esm/src/operations/index.js +13 -0
  95. package/dist-esm/src/operations/index.js.map +1 -0
  96. package/dist-esm/src/operations/networkFunction.d.ts +26 -0
  97. package/dist-esm/src/operations/networkFunction.d.ts.map +1 -0
  98. package/dist-esm/src/operations/networkFunction.js +90 -0
  99. package/dist-esm/src/operations/networkFunction.js.map +1 -0
  100. package/dist-esm/src/operationsInterfaces/azureTrafficCollectors.d.ts +49 -0
  101. package/dist-esm/src/operationsInterfaces/azureTrafficCollectors.d.ts.map +1 -0
  102. package/dist-esm/src/operationsInterfaces/azureTrafficCollectors.js +9 -0
  103. package/dist-esm/src/operationsInterfaces/azureTrafficCollectors.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/azureTrafficCollectorsByResourceGroup.d.ts +12 -0
  105. package/dist-esm/src/operationsInterfaces/azureTrafficCollectorsByResourceGroup.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js +9 -0
  107. package/dist-esm/src/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/azureTrafficCollectorsBySubscription.d.ts +11 -0
  109. package/dist-esm/src/operationsInterfaces/azureTrafficCollectorsBySubscription.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/azureTrafficCollectorsBySubscription.js +9 -0
  111. package/dist-esm/src/operationsInterfaces/azureTrafficCollectorsBySubscription.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/collectorPolicies.d.ts +54 -0
  113. package/dist-esm/src/operationsInterfaces/collectorPolicies.d.ts.map +1 -0
  114. package/dist-esm/src/operationsInterfaces/collectorPolicies.js +9 -0
  115. package/dist-esm/src/operationsInterfaces/collectorPolicies.js.map +1 -0
  116. package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
  117. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  118. package/dist-esm/src/operationsInterfaces/index.js +13 -0
  119. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/networkFunction.d.ts +11 -0
  121. package/dist-esm/src/operationsInterfaces/networkFunction.d.ts.map +1 -0
  122. package/dist-esm/src/operationsInterfaces/networkFunction.js +9 -0
  123. package/dist-esm/src/operationsInterfaces/networkFunction.js.map +1 -0
  124. package/dist-esm/test/sampleTest.d.ts +2 -0
  125. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  126. package/dist-esm/test/sampleTest.js +38 -0
  127. package/dist-esm/test/sampleTest.js.map +1 -0
  128. package/package.json +121 -0
  129. package/review/arm-networkfunction.api.md +375 -0
  130. package/rollup.config.js +122 -0
  131. package/src/azureTrafficCollectorClient.ts +158 -0
  132. package/src/index.ts +12 -0
  133. package/src/lroImpl.ts +34 -0
  134. package/src/models/index.ts +477 -0
  135. package/src/models/mappers.ts +569 -0
  136. package/src/models/parameters.ts +157 -0
  137. package/src/operations/azureTrafficCollectors.ts +358 -0
  138. package/src/operations/azureTrafficCollectorsByResourceGroup.ts +163 -0
  139. package/src/operations/azureTrafficCollectorsBySubscription.ts +143 -0
  140. package/src/operations/collectorPolicies.ts +498 -0
  141. package/src/operations/index.ts +13 -0
  142. package/src/operations/networkFunction.ts +101 -0
  143. package/src/operationsInterfaces/azureTrafficCollectors.ts +96 -0
  144. package/src/operationsInterfaces/azureTrafficCollectorsByResourceGroup.ts +27 -0
  145. package/src/operationsInterfaces/azureTrafficCollectorsBySubscription.ts +25 -0
  146. package/src/operationsInterfaces/collectorPolicies.ts +105 -0
  147. package/src/operationsInterfaces/index.ts +13 -0
  148. package/src/operationsInterfaces/networkFunction.ts +25 -0
  149. package/tsconfig.json +33 -0
  150. package/types/arm-networkfunction.d.ts +624 -0
  151. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,375 @@
1
+ ## API Report File for "@azure/arm-networkfunction"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import * as coreAuth from '@azure/core-auth';
8
+ import * as coreClient from '@azure/core-client';
9
+ import { PagedAsyncIterableIterator } from '@azure/core-paging';
10
+ import { PollerLike } from '@azure/core-lro';
11
+ import { PollOperationState } from '@azure/core-lro';
12
+
13
+ // @public
14
+ export interface AzureTrafficCollector extends TrackedResource {
15
+ collectorPolicies?: CollectorPolicy[];
16
+ readonly etag?: string;
17
+ readonly provisioningState?: ProvisioningState;
18
+ virtualHub?: ResourceReference;
19
+ }
20
+
21
+ // @public (undocumented)
22
+ export class AzureTrafficCollectorClient extends coreClient.ServiceClient {
23
+ // (undocumented)
24
+ $host: string;
25
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AzureTrafficCollectorClientOptionalParams);
26
+ // (undocumented)
27
+ apiVersion: string;
28
+ // (undocumented)
29
+ azureTrafficCollectors: AzureTrafficCollectors;
30
+ // (undocumented)
31
+ azureTrafficCollectorsByResourceGroup: AzureTrafficCollectorsByResourceGroup;
32
+ // (undocumented)
33
+ azureTrafficCollectorsBySubscription: AzureTrafficCollectorsBySubscription;
34
+ // (undocumented)
35
+ collectorPolicies: CollectorPolicies;
36
+ // (undocumented)
37
+ networkFunction: NetworkFunction;
38
+ // (undocumented)
39
+ subscriptionId: string;
40
+ }
41
+
42
+ // @public
43
+ export interface AzureTrafficCollectorClientOptionalParams extends coreClient.ServiceClientOptions {
44
+ $host?: string;
45
+ apiVersion?: string;
46
+ endpoint?: string;
47
+ }
48
+
49
+ // @public
50
+ export interface AzureTrafficCollectorListResult {
51
+ readonly nextLink?: string;
52
+ value?: AzureTrafficCollector[];
53
+ }
54
+
55
+ // @public
56
+ export interface AzureTrafficCollectors {
57
+ beginCreateOrUpdate(resourceGroupName: string, azureTrafficCollectorName: string, options?: AzureTrafficCollectorsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<AzureTrafficCollectorsCreateOrUpdateResponse>, AzureTrafficCollectorsCreateOrUpdateResponse>>;
58
+ beginCreateOrUpdateAndWait(resourceGroupName: string, azureTrafficCollectorName: string, options?: AzureTrafficCollectorsCreateOrUpdateOptionalParams): Promise<AzureTrafficCollectorsCreateOrUpdateResponse>;
59
+ beginDelete(resourceGroupName: string, azureTrafficCollectorName: string, options?: AzureTrafficCollectorsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
60
+ beginDeleteAndWait(resourceGroupName: string, azureTrafficCollectorName: string, options?: AzureTrafficCollectorsDeleteOptionalParams): Promise<void>;
61
+ get(resourceGroupName: string, azureTrafficCollectorName: string, options?: AzureTrafficCollectorsGetOptionalParams): Promise<AzureTrafficCollectorsGetResponse>;
62
+ updateTags(resourceGroupName: string, azureTrafficCollectorName: string, parameters: TagsObject, options?: AzureTrafficCollectorsUpdateTagsOptionalParams): Promise<AzureTrafficCollectorsUpdateTagsResponse>;
63
+ }
64
+
65
+ // @public
66
+ export interface AzureTrafficCollectorsByResourceGroup {
67
+ list(resourceGroupName: string, options?: AzureTrafficCollectorsByResourceGroupListOptionalParams): PagedAsyncIterableIterator<AzureTrafficCollector>;
68
+ }
69
+
70
+ // @public
71
+ export interface AzureTrafficCollectorsByResourceGroupListNextOptionalParams extends coreClient.OperationOptions {
72
+ }
73
+
74
+ // @public
75
+ export type AzureTrafficCollectorsByResourceGroupListNextResponse = AzureTrafficCollectorListResult;
76
+
77
+ // @public
78
+ export interface AzureTrafficCollectorsByResourceGroupListOptionalParams extends coreClient.OperationOptions {
79
+ }
80
+
81
+ // @public
82
+ export type AzureTrafficCollectorsByResourceGroupListResponse = AzureTrafficCollectorListResult;
83
+
84
+ // @public
85
+ export interface AzureTrafficCollectorsBySubscription {
86
+ list(options?: AzureTrafficCollectorsBySubscriptionListOptionalParams): PagedAsyncIterableIterator<AzureTrafficCollector>;
87
+ }
88
+
89
+ // @public
90
+ export interface AzureTrafficCollectorsBySubscriptionListNextOptionalParams extends coreClient.OperationOptions {
91
+ }
92
+
93
+ // @public
94
+ export type AzureTrafficCollectorsBySubscriptionListNextResponse = AzureTrafficCollectorListResult;
95
+
96
+ // @public
97
+ export interface AzureTrafficCollectorsBySubscriptionListOptionalParams extends coreClient.OperationOptions {
98
+ }
99
+
100
+ // @public
101
+ export type AzureTrafficCollectorsBySubscriptionListResponse = AzureTrafficCollectorListResult;
102
+
103
+ // @public
104
+ export interface AzureTrafficCollectorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
105
+ collectorPolicies?: CollectorPolicy[];
106
+ location?: string;
107
+ resumeFrom?: string;
108
+ tags?: {
109
+ [propertyName: string]: string;
110
+ };
111
+ updateIntervalInMs?: number;
112
+ virtualHub?: ResourceReference;
113
+ }
114
+
115
+ // @public
116
+ export type AzureTrafficCollectorsCreateOrUpdateResponse = AzureTrafficCollector;
117
+
118
+ // @public
119
+ export interface AzureTrafficCollectorsDeleteOptionalParams extends coreClient.OperationOptions {
120
+ resumeFrom?: string;
121
+ updateIntervalInMs?: number;
122
+ }
123
+
124
+ // @public
125
+ export interface AzureTrafficCollectorsGetOptionalParams extends coreClient.OperationOptions {
126
+ }
127
+
128
+ // @public
129
+ export type AzureTrafficCollectorsGetResponse = AzureTrafficCollector;
130
+
131
+ // @public
132
+ export interface AzureTrafficCollectorsUpdateTagsOptionalParams extends coreClient.OperationOptions {
133
+ }
134
+
135
+ // @public
136
+ export type AzureTrafficCollectorsUpdateTagsResponse = AzureTrafficCollector;
137
+
138
+ // @public
139
+ export interface CloudError {
140
+ error?: CloudErrorBody;
141
+ }
142
+
143
+ // @public
144
+ export interface CloudErrorBody {
145
+ code?: string;
146
+ details?: CloudErrorBody[];
147
+ message?: string;
148
+ target?: string;
149
+ }
150
+
151
+ // @public
152
+ export interface CollectorPolicies {
153
+ beginCreateOrUpdate(resourceGroupName: string, azureTrafficCollectorName: string, collectorPolicyName: string, options?: CollectorPoliciesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<CollectorPoliciesCreateOrUpdateResponse>, CollectorPoliciesCreateOrUpdateResponse>>;
154
+ beginCreateOrUpdateAndWait(resourceGroupName: string, azureTrafficCollectorName: string, collectorPolicyName: string, options?: CollectorPoliciesCreateOrUpdateOptionalParams): Promise<CollectorPoliciesCreateOrUpdateResponse>;
155
+ beginDelete(resourceGroupName: string, azureTrafficCollectorName: string, collectorPolicyName: string, options?: CollectorPoliciesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
156
+ beginDeleteAndWait(resourceGroupName: string, azureTrafficCollectorName: string, collectorPolicyName: string, options?: CollectorPoliciesDeleteOptionalParams): Promise<void>;
157
+ get(resourceGroupName: string, azureTrafficCollectorName: string, collectorPolicyName: string, options?: CollectorPoliciesGetOptionalParams): Promise<CollectorPoliciesGetResponse>;
158
+ list(resourceGroupName: string, azureTrafficCollectorName: string, options?: CollectorPoliciesListOptionalParams): PagedAsyncIterableIterator<CollectorPolicy>;
159
+ }
160
+
161
+ // @public
162
+ export interface CollectorPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
163
+ emissionPolicies?: EmissionPoliciesPropertiesFormat[];
164
+ ingestionPolicy?: IngestionPolicyPropertiesFormat;
165
+ resumeFrom?: string;
166
+ updateIntervalInMs?: number;
167
+ }
168
+
169
+ // @public
170
+ export type CollectorPoliciesCreateOrUpdateResponse = CollectorPolicy;
171
+
172
+ // @public
173
+ export interface CollectorPoliciesDeleteOptionalParams extends coreClient.OperationOptions {
174
+ resumeFrom?: string;
175
+ updateIntervalInMs?: number;
176
+ }
177
+
178
+ // @public
179
+ export interface CollectorPoliciesGetOptionalParams extends coreClient.OperationOptions {
180
+ }
181
+
182
+ // @public
183
+ export type CollectorPoliciesGetResponse = CollectorPolicy;
184
+
185
+ // @public
186
+ export interface CollectorPoliciesListNextOptionalParams extends coreClient.OperationOptions {
187
+ }
188
+
189
+ // @public
190
+ export type CollectorPoliciesListNextResponse = CollectorPolicyListResult;
191
+
192
+ // @public
193
+ export interface CollectorPoliciesListOptionalParams extends coreClient.OperationOptions {
194
+ }
195
+
196
+ // @public
197
+ export type CollectorPoliciesListResponse = CollectorPolicyListResult;
198
+
199
+ // @public
200
+ export interface CollectorPolicy extends ProxyResource {
201
+ emissionPolicies?: EmissionPoliciesPropertiesFormat[];
202
+ readonly etag?: string;
203
+ ingestionPolicy?: IngestionPolicyPropertiesFormat;
204
+ readonly provisioningState?: ProvisioningState;
205
+ readonly systemData?: CollectorPolicySystemData;
206
+ }
207
+
208
+ // @public
209
+ export interface CollectorPolicyListResult {
210
+ readonly nextLink?: string;
211
+ value?: CollectorPolicy[];
212
+ }
213
+
214
+ // @public
215
+ export interface CollectorPolicySystemData extends SystemData {
216
+ }
217
+
218
+ // @public
219
+ export type CreatedByType = string;
220
+
221
+ // @public
222
+ export type DestinationType = string;
223
+
224
+ // @public
225
+ export interface EmissionPoliciesPropertiesFormat {
226
+ emissionDestinations?: EmissionPolicyDestination[];
227
+ emissionType?: EmissionType;
228
+ }
229
+
230
+ // @public
231
+ export interface EmissionPolicyDestination {
232
+ destinationType?: DestinationType;
233
+ }
234
+
235
+ // @public
236
+ export type EmissionType = string;
237
+
238
+ // @public
239
+ export interface IngestionPolicyPropertiesFormat {
240
+ ingestionSources?: IngestionSourcesPropertiesFormat[];
241
+ ingestionType?: IngestionType;
242
+ }
243
+
244
+ // @public
245
+ export interface IngestionSourcesPropertiesFormat {
246
+ resourceId?: string;
247
+ sourceType?: SourceType;
248
+ }
249
+
250
+ // @public
251
+ export type IngestionType = string;
252
+
253
+ // @public
254
+ export enum KnownCreatedByType {
255
+ Application = "Application",
256
+ Key = "Key",
257
+ ManagedIdentity = "ManagedIdentity",
258
+ User = "User"
259
+ }
260
+
261
+ // @public
262
+ export enum KnownDestinationType {
263
+ AzureMonitor = "AzureMonitor"
264
+ }
265
+
266
+ // @public
267
+ export enum KnownEmissionType {
268
+ Ipfix = "IPFIX"
269
+ }
270
+
271
+ // @public
272
+ export enum KnownIngestionType {
273
+ Ipfix = "IPFIX"
274
+ }
275
+
276
+ // @public
277
+ export enum KnownProvisioningState {
278
+ Deleting = "Deleting",
279
+ Failed = "Failed",
280
+ Succeeded = "Succeeded",
281
+ Updating = "Updating"
282
+ }
283
+
284
+ // @public
285
+ export enum KnownSourceType {
286
+ Resource = "Resource"
287
+ }
288
+
289
+ // @public
290
+ export interface NetworkFunction {
291
+ listOperations(options?: NetworkFunctionListOperationsOptionalParams): PagedAsyncIterableIterator<Operation>;
292
+ }
293
+
294
+ // @public
295
+ export interface NetworkFunctionListOperationsOptionalParams extends coreClient.OperationOptions {
296
+ }
297
+
298
+ // @public
299
+ export type NetworkFunctionListOperationsResponse = OperationListResult;
300
+
301
+ // @public
302
+ export interface Operation {
303
+ display?: OperationDisplay;
304
+ isDataAction?: boolean;
305
+ name?: string;
306
+ origin?: string;
307
+ }
308
+
309
+ // @public
310
+ export interface OperationDisplay {
311
+ description?: string;
312
+ operation?: string;
313
+ provider?: string;
314
+ resource?: string;
315
+ }
316
+
317
+ // @public
318
+ export interface OperationListResult {
319
+ nextLink?: string;
320
+ value?: Operation[];
321
+ }
322
+
323
+ // @public
324
+ export type ProvisioningState = string;
325
+
326
+ // @public
327
+ export interface ProxyResource {
328
+ readonly id?: string;
329
+ readonly name?: string;
330
+ readonly type?: string;
331
+ }
332
+
333
+ // @public
334
+ export interface ResourceReference {
335
+ readonly id?: string;
336
+ }
337
+
338
+ // @public
339
+ export type SourceType = string;
340
+
341
+ // @public
342
+ export interface SystemData {
343
+ createdAt?: Date;
344
+ createdBy?: string;
345
+ createdByType?: CreatedByType;
346
+ lastModifiedBy?: string;
347
+ lastModifiedByType?: CreatedByType;
348
+ }
349
+
350
+ // @public
351
+ export interface TagsObject {
352
+ tags?: {
353
+ [propertyName: string]: string;
354
+ };
355
+ }
356
+
357
+ // @public
358
+ export interface TrackedResource {
359
+ readonly id?: string;
360
+ location?: string;
361
+ readonly name?: string;
362
+ readonly systemData?: TrackedResourceSystemData;
363
+ tags?: {
364
+ [propertyName: string]: string;
365
+ };
366
+ readonly type?: string;
367
+ }
368
+
369
+ // @public
370
+ export interface TrackedResourceSystemData extends SystemData {
371
+ }
372
+
373
+ // (No @packageDocumentation comment for this package)
374
+
375
+ ```
@@ -0,0 +1,122 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import nodeResolve from "@rollup/plugin-node-resolve";
10
+ import cjs from "@rollup/plugin-commonjs";
11
+ import sourcemaps from "rollup-plugin-sourcemaps";
12
+ import multiEntry from "@rollup/plugin-multi-entry";
13
+ import json from "@rollup/plugin-json";
14
+
15
+ import nodeBuiltins from "builtin-modules";
16
+
17
+ // #region Warning Handler
18
+
19
+ /**
20
+ * A function that can determine whether a rollup warning should be ignored. If
21
+ * the function returns `true`, then the warning will not be displayed.
22
+ */
23
+
24
+ function ignoreNiseSinonEval(warning) {
25
+ return (
26
+ warning.code === "EVAL" &&
27
+ warning.id &&
28
+ (warning.id.includes("node_modules/nise") ||
29
+ warning.id.includes("node_modules/sinon")) === true
30
+ );
31
+ }
32
+
33
+ function ignoreChaiCircularDependency(warning) {
34
+ return (
35
+ warning.code === "CIRCULAR_DEPENDENCY" &&
36
+ warning.importer && warning.importer.includes("node_modules/chai") === true
37
+ );
38
+ }
39
+
40
+ const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
41
+
42
+ /**
43
+ * Construct a warning handler for the shared rollup configuration
44
+ * that ignores certain warnings that are not relevant to testing.
45
+ */
46
+ function makeOnWarnForTesting() {
47
+ return (warning, warn) => {
48
+ // If every inhibitor returns false (i.e. no inhibitors), then show the warning
49
+ if (warningInhibitors.every((inhib) => !inhib(warning))) {
50
+ warn(warning);
51
+ }
52
+ };
53
+ }
54
+
55
+ // #endregion
56
+
57
+ function makeBrowserTestConfig() {
58
+ const config = {
59
+ input: {
60
+ include: ["dist-esm/test/**/*.spec.js"],
61
+ exclude: ["dist-esm/test/**/node/**"]
62
+ },
63
+ output: {
64
+ file: `dist-test/index.browser.js`,
65
+ format: "umd",
66
+ sourcemap: true
67
+ },
68
+ preserveSymlinks: false,
69
+ plugins: [
70
+ multiEntry({ exports: false }),
71
+ nodeResolve({
72
+ mainFields: ["module", "browser"]
73
+ }),
74
+ cjs(),
75
+ json(),
76
+ sourcemaps()
77
+ //viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
78
+ ],
79
+ onwarn: makeOnWarnForTesting(),
80
+ // Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
81
+ // rollup started respecting the "sideEffects" field in package.json. Since
82
+ // our package.json sets "sideEffects=false", this also applies to test
83
+ // code, which causes all tests to be removed by tree-shaking.
84
+ treeshake: false
85
+ };
86
+
87
+ return config;
88
+ }
89
+
90
+ const defaultConfigurationOptions = {
91
+ disableBrowserBundle: false
92
+ };
93
+
94
+ export function makeConfig(pkg, options) {
95
+ options = {
96
+ ...defaultConfigurationOptions,
97
+ ...(options || {})
98
+ };
99
+
100
+ const baseConfig = {
101
+ // Use the package's module field if it has one
102
+ input: pkg["module"] || "dist-esm/src/index.js",
103
+ external: [
104
+ ...nodeBuiltins,
105
+ ...Object.keys(pkg.dependencies),
106
+ ...Object.keys(pkg.devDependencies)
107
+ ],
108
+ output: { file: "dist/index.js", format: "cjs", sourcemap: true },
109
+ preserveSymlinks: false,
110
+ plugins: [sourcemaps(), nodeResolve()]
111
+ };
112
+
113
+ const config = [baseConfig];
114
+
115
+ if (!options.disableBrowserBundle) {
116
+ config.push(makeBrowserTestConfig());
117
+ }
118
+
119
+ return config;
120
+ }
121
+
122
+ export default makeConfig(require("./package.json"));
@@ -0,0 +1,158 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as coreRestPipeline from "@azure/core-rest-pipeline";
11
+ import {
12
+ PipelineRequest,
13
+ PipelineResponse,
14
+ SendRequest
15
+ } from "@azure/core-rest-pipeline";
16
+ import * as coreAuth from "@azure/core-auth";
17
+ import {
18
+ NetworkFunctionImpl,
19
+ AzureTrafficCollectorsBySubscriptionImpl,
20
+ AzureTrafficCollectorsByResourceGroupImpl,
21
+ AzureTrafficCollectorsImpl,
22
+ CollectorPoliciesImpl
23
+ } from "./operations";
24
+ import {
25
+ NetworkFunction,
26
+ AzureTrafficCollectorsBySubscription,
27
+ AzureTrafficCollectorsByResourceGroup,
28
+ AzureTrafficCollectors,
29
+ CollectorPolicies
30
+ } from "./operationsInterfaces";
31
+ import { AzureTrafficCollectorClientOptionalParams } from "./models";
32
+
33
+ export class AzureTrafficCollectorClient extends coreClient.ServiceClient {
34
+ $host: string;
35
+ apiVersion: string;
36
+ subscriptionId: string;
37
+
38
+ /**
39
+ * Initializes a new instance of the AzureTrafficCollectorClient class.
40
+ * @param credentials Subscription credentials which uniquely identify client subscription.
41
+ * @param subscriptionId Azure Subscription ID.
42
+ * @param options The parameter options
43
+ */
44
+ constructor(
45
+ credentials: coreAuth.TokenCredential,
46
+ subscriptionId: string,
47
+ options?: AzureTrafficCollectorClientOptionalParams
48
+ ) {
49
+ if (credentials === undefined) {
50
+ throw new Error("'credentials' cannot be null");
51
+ }
52
+ if (subscriptionId === undefined) {
53
+ throw new Error("'subscriptionId' cannot be null");
54
+ }
55
+
56
+ // Initializing default values for options
57
+ if (!options) {
58
+ options = {};
59
+ }
60
+ const defaults: AzureTrafficCollectorClientOptionalParams = {
61
+ requestContentType: "application/json; charset=utf-8",
62
+ credential: credentials
63
+ };
64
+
65
+ const packageDetails = `azsdk-js-arm-networkfunction/1.0.0`;
66
+ const userAgentPrefix =
67
+ options.userAgentOptions && options.userAgentOptions.userAgentPrefix
68
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
69
+ : `${packageDetails}`;
70
+
71
+ if (!options.credentialScopes) {
72
+ options.credentialScopes = ["https://management.azure.com/.default"];
73
+ }
74
+ const optionsWithDefaults = {
75
+ ...defaults,
76
+ ...options,
77
+ userAgentOptions: {
78
+ userAgentPrefix
79
+ },
80
+ baseUri:
81
+ options.endpoint ?? options.baseUri ?? "https://management.azure.com"
82
+ };
83
+ super(optionsWithDefaults);
84
+
85
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
86
+ const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
87
+ const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
88
+ (pipelinePolicy) =>
89
+ pipelinePolicy.name ===
90
+ coreRestPipeline.bearerTokenAuthenticationPolicyName
91
+ );
92
+ if (!bearerTokenAuthenticationPolicyFound) {
93
+ this.pipeline.removePolicy({
94
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
95
+ });
96
+ this.pipeline.addPolicy(
97
+ coreRestPipeline.bearerTokenAuthenticationPolicy({
98
+ scopes: `${optionsWithDefaults.baseUri}/.default`,
99
+ challengeCallbacks: {
100
+ authorizeRequestOnChallenge:
101
+ coreClient.authorizeRequestOnClaimChallenge
102
+ }
103
+ })
104
+ );
105
+ }
106
+ }
107
+ // Parameter assignments
108
+ this.subscriptionId = subscriptionId;
109
+
110
+ // Assigning values to Constant parameters
111
+ this.$host = options.$host || "https://management.azure.com";
112
+ this.apiVersion = options.apiVersion || "2022-05-01";
113
+ this.networkFunction = new NetworkFunctionImpl(this);
114
+ this.azureTrafficCollectorsBySubscription = new AzureTrafficCollectorsBySubscriptionImpl(
115
+ this
116
+ );
117
+ this.azureTrafficCollectorsByResourceGroup = new AzureTrafficCollectorsByResourceGroupImpl(
118
+ this
119
+ );
120
+ this.azureTrafficCollectors = new AzureTrafficCollectorsImpl(this);
121
+ this.collectorPolicies = new CollectorPoliciesImpl(this);
122
+ this.addCustomApiVersionPolicy(options.apiVersion);
123
+ }
124
+
125
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
126
+ private addCustomApiVersionPolicy(apiVersion?: string) {
127
+ if (!apiVersion) {
128
+ return;
129
+ }
130
+ const apiVersionPolicy = {
131
+ name: "CustomApiVersionPolicy",
132
+ async sendRequest(
133
+ request: PipelineRequest,
134
+ next: SendRequest
135
+ ): Promise<PipelineResponse> {
136
+ const param = request.url.split("?");
137
+ if (param.length > 1) {
138
+ const newParams = param[1].split("&").map((item) => {
139
+ if (item.indexOf("api-version") > -1) {
140
+ return "api-version=" + apiVersion;
141
+ } else {
142
+ return item;
143
+ }
144
+ });
145
+ request.url = param[0] + "?" + newParams.join("&");
146
+ }
147
+ return next(request);
148
+ }
149
+ };
150
+ this.pipeline.addPolicy(apiVersionPolicy);
151
+ }
152
+
153
+ networkFunction: NetworkFunction;
154
+ azureTrafficCollectorsBySubscription: AzureTrafficCollectorsBySubscription;
155
+ azureTrafficCollectorsByResourceGroup: AzureTrafficCollectorsByResourceGroup;
156
+ azureTrafficCollectors: AzureTrafficCollectors;
157
+ collectorPolicies: CollectorPolicies;
158
+ }
package/src/index.ts ADDED
@@ -0,0 +1,12 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ /// <reference lib="esnext.asynciterable" />
10
+ export * from "./models";
11
+ export { AzureTrafficCollectorClient } from "./azureTrafficCollectorClient";
12
+ export * from "./operationsInterfaces";
package/src/lroImpl.ts ADDED
@@ -0,0 +1,34 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { LongRunningOperation, LroResponse } from "@azure/core-lro";
10
+
11
+ export class LroImpl<T> implements LongRunningOperation<T> {
12
+ constructor(
13
+ private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,
14
+ private args: Record<string, unknown>,
15
+ private spec: {
16
+ readonly requestBody?: unknown;
17
+ readonly path?: string;
18
+ readonly httpMethod: string;
19
+ } & Record<string, any>,
20
+ public requestPath: string = spec.path!,
21
+ public requestMethod: string = spec.httpMethod
22
+ ) {}
23
+ public async sendInitialRequest(): Promise<LroResponse<T>> {
24
+ return this.sendOperationFn(this.args, this.spec);
25
+ }
26
+ public async sendPollRequest(path: string): Promise<LroResponse<T>> {
27
+ const { requestBody, ...restSpec } = this.spec;
28
+ return this.sendOperationFn(this.args, {
29
+ ...restSpec,
30
+ path,
31
+ httpMethod: "GET"
32
+ });
33
+ }
34
+ }