@azure/arm-networkfunction 2.0.2-alpha.20260227.1 → 2.0.2-alpha.20260303.1
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.
- package/dist/commonjs/azureTrafficCollectorClient.js +131 -115
- package/dist/commonjs/azureTrafficCollectorClient.js.map +7 -1
- package/dist/commonjs/index.js +28 -19
- package/dist/commonjs/index.js.map +7 -1
- package/dist/commonjs/lroImpl.js +40 -35
- package/dist/commonjs/lroImpl.js.map +7 -1
- package/dist/commonjs/models/index.js +64 -69
- package/dist/commonjs/models/index.js.map +7 -1
- package/dist/commonjs/models/mappers.js +502 -473
- package/dist/commonjs/models/mappers.js.map +7 -1
- package/dist/commonjs/models/parameters.js +154 -127
- package/dist/commonjs/models/parameters.js.map +7 -1
- package/dist/commonjs/operations/azureTrafficCollectors.js +293 -249
- package/dist/commonjs/operations/azureTrafficCollectors.js.map +7 -1
- package/dist/commonjs/operations/azureTrafficCollectorsByResourceGroup.js +152 -122
- package/dist/commonjs/operations/azureTrafficCollectorsByResourceGroup.js.map +7 -1
- package/dist/commonjs/operations/azureTrafficCollectorsBySubscription.js +137 -114
- package/dist/commonjs/operations/azureTrafficCollectorsBySubscription.js.map +7 -1
- package/dist/commonjs/operations/collectorPolicies.js +454 -381
- package/dist/commonjs/operations/collectorPolicies.js.map +7 -1
- package/dist/commonjs/operations/index.js +21 -16
- package/dist/commonjs/operations/index.js.map +7 -1
- package/dist/commonjs/operations/networkFunction.js +100 -77
- package/dist/commonjs/operations/networkFunction.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectors.js +15 -10
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectors.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js +15 -10
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsBySubscription.js +15 -10
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsBySubscription.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/collectorPolicies.js +15 -10
- package/dist/commonjs/operationsInterfaces/collectorPolicies.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/index.js +21 -16
- package/dist/commonjs/operationsInterfaces/index.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/networkFunction.js +15 -10
- package/dist/commonjs/operationsInterfaces/networkFunction.js.map +7 -1
- package/dist/commonjs/pagingHelper.js +34 -30
- package/dist/commonjs/pagingHelper.js.map +7 -1
- package/dist/esm/azureTrafficCollectorClient.js +107 -109
- package/dist/esm/azureTrafficCollectorClient.js.map +7 -1
- package/dist/esm/index.js +6 -11
- package/dist/esm/index.js.map +7 -1
- package/dist/esm/lroImpl.js +22 -32
- package/dist/esm/lroImpl.js.map +7 -1
- package/dist/esm/models/index.js +45 -66
- package/dist/esm/models/index.js.map +7 -1
- package/dist/esm/models/mappers.js +483 -470
- package/dist/esm/models/mappers.js.map +7 -1
- package/dist/esm/models/parameters.js +143 -128
- package/dist/esm/models/parameters.js.map +7 -1
- package/dist/esm/operations/azureTrafficCollectors.js +260 -240
- package/dist/esm/operations/azureTrafficCollectors.js.map +7 -1
- package/dist/esm/operations/azureTrafficCollectorsByResourceGroup.js +120 -114
- package/dist/esm/operations/azureTrafficCollectorsByResourceGroup.js.map +7 -1
- package/dist/esm/operations/azureTrafficCollectorsBySubscription.js +105 -106
- package/dist/esm/operations/azureTrafficCollectorsBySubscription.js.map +7 -1
- package/dist/esm/operations/collectorPolicies.js +420 -371
- package/dist/esm/operations/collectorPolicies.js.map +7 -1
- package/dist/esm/operations/index.js +0 -8
- package/dist/esm/operations/index.js.map +7 -1
- package/dist/esm/operations/networkFunction.js +69 -70
- package/dist/esm/operations/networkFunction.js.map +7 -1
- package/dist/esm/operationsInterfaces/azureTrafficCollectors.js +0 -9
- package/dist/esm/operationsInterfaces/azureTrafficCollectors.js.map +7 -1
- package/dist/esm/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js +0 -9
- package/dist/esm/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js.map +7 -1
- package/dist/esm/operationsInterfaces/azureTrafficCollectorsBySubscription.js +0 -9
- package/dist/esm/operationsInterfaces/azureTrafficCollectorsBySubscription.js.map +7 -1
- package/dist/esm/operationsInterfaces/collectorPolicies.js +0 -9
- package/dist/esm/operationsInterfaces/collectorPolicies.js.map +7 -1
- package/dist/esm/operationsInterfaces/index.js +0 -8
- package/dist/esm/operationsInterfaces/index.js.map +7 -1
- package/dist/esm/operationsInterfaces/networkFunction.js +0 -9
- package/dist/esm/operationsInterfaces/networkFunction.js.map +7 -1
- package/dist/esm/pagingHelper.js +17 -28
- package/dist/esm/pagingHelper.js.map +7 -1
- package/package.json +4 -21
|
@@ -1,129 +1,135 @@
|
|
|
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
1
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
9
2
|
import * as coreClient from "@azure/core-client";
|
|
10
3
|
import * as Mappers from "../models/mappers.js";
|
|
11
4
|
import * as Parameters from "../models/parameters.js";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
return
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
if (settings?.maxPageSize) {
|
|
39
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
40
|
-
}
|
|
41
|
-
return this.listPagingPage(resourceGroupName, options, settings);
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
async *listPagingPage(resourceGroupName, options, settings) {
|
|
46
|
-
let result;
|
|
47
|
-
let continuationToken = settings?.continuationToken;
|
|
48
|
-
if (!continuationToken) {
|
|
49
|
-
result = await this._list(resourceGroupName, options);
|
|
50
|
-
let page = result.value || [];
|
|
51
|
-
continuationToken = result.nextLink;
|
|
52
|
-
setContinuationToken(page, continuationToken);
|
|
53
|
-
yield page;
|
|
54
|
-
}
|
|
55
|
-
while (continuationToken) {
|
|
56
|
-
result = await this._listNext(resourceGroupName, continuationToken, options);
|
|
57
|
-
continuationToken = result.nextLink;
|
|
58
|
-
let page = result.value || [];
|
|
59
|
-
setContinuationToken(page, continuationToken);
|
|
60
|
-
yield page;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
async *listPagingAll(resourceGroupName, options) {
|
|
64
|
-
for await (const page of this.listPagingPage(resourceGroupName, options)) {
|
|
65
|
-
yield* page;
|
|
5
|
+
class AzureTrafficCollectorsByResourceGroupImpl {
|
|
6
|
+
client;
|
|
7
|
+
/**
|
|
8
|
+
* Initialize a new instance of the class AzureTrafficCollectorsByResourceGroup class.
|
|
9
|
+
* @param client Reference to the service client
|
|
10
|
+
*/
|
|
11
|
+
constructor(client) {
|
|
12
|
+
this.client = client;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Return list of Azure Traffic Collectors in a Resource Group
|
|
16
|
+
* @param resourceGroupName The name of the resource group.
|
|
17
|
+
* @param options The options parameters.
|
|
18
|
+
*/
|
|
19
|
+
list(resourceGroupName, options) {
|
|
20
|
+
const iter = this.listPagingAll(resourceGroupName, options);
|
|
21
|
+
return {
|
|
22
|
+
next() {
|
|
23
|
+
return iter.next();
|
|
24
|
+
},
|
|
25
|
+
[Symbol.asyncIterator]() {
|
|
26
|
+
return this;
|
|
27
|
+
},
|
|
28
|
+
byPage: (settings) => {
|
|
29
|
+
if (settings?.maxPageSize) {
|
|
30
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
66
31
|
}
|
|
32
|
+
return this.listPagingPage(resourceGroupName, options, settings);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
async *listPagingPage(resourceGroupName, options, settings) {
|
|
37
|
+
let result;
|
|
38
|
+
let continuationToken = settings?.continuationToken;
|
|
39
|
+
if (!continuationToken) {
|
|
40
|
+
result = await this._list(resourceGroupName, options);
|
|
41
|
+
let page = result.value || [];
|
|
42
|
+
continuationToken = result.nextLink;
|
|
43
|
+
setContinuationToken(page, continuationToken);
|
|
44
|
+
yield page;
|
|
67
45
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
46
|
+
while (continuationToken) {
|
|
47
|
+
result = await this._listNext(
|
|
48
|
+
resourceGroupName,
|
|
49
|
+
continuationToken,
|
|
50
|
+
options
|
|
51
|
+
);
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
setContinuationToken(page, continuationToken);
|
|
55
|
+
yield page;
|
|
75
56
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
* @param options The options parameters.
|
|
81
|
-
*/
|
|
82
|
-
_listNext(resourceGroupName, nextLink, options) {
|
|
83
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listNextOperationSpec);
|
|
57
|
+
}
|
|
58
|
+
async *listPagingAll(resourceGroupName, options) {
|
|
59
|
+
for await (const page of this.listPagingPage(resourceGroupName, options)) {
|
|
60
|
+
yield* page;
|
|
84
61
|
}
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Return list of Azure Traffic Collectors in a Resource Group
|
|
65
|
+
* @param resourceGroupName The name of the resource group.
|
|
66
|
+
* @param options The options parameters.
|
|
67
|
+
*/
|
|
68
|
+
_list(resourceGroupName, options) {
|
|
69
|
+
return this.client.sendOperationRequest(
|
|
70
|
+
{ resourceGroupName, options },
|
|
71
|
+
listOperationSpec
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* ListNext
|
|
76
|
+
* @param resourceGroupName The name of the resource group.
|
|
77
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
78
|
+
* @param options The options parameters.
|
|
79
|
+
*/
|
|
80
|
+
_listNext(resourceGroupName, nextLink, options) {
|
|
81
|
+
return this.client.sendOperationRequest(
|
|
82
|
+
{ resourceGroupName, nextLink, options },
|
|
83
|
+
listNextOperationSpec
|
|
84
|
+
);
|
|
85
|
+
}
|
|
85
86
|
}
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
const serializer = coreClient.createSerializer(
|
|
88
|
+
Mappers,
|
|
89
|
+
/* isXml */
|
|
90
|
+
false
|
|
91
|
+
);
|
|
88
92
|
const listOperationSpec = {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
},
|
|
95
|
-
default: {
|
|
96
|
-
bodyMapper: Mappers.CloudError
|
|
97
|
-
}
|
|
93
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors",
|
|
94
|
+
httpMethod: "GET",
|
|
95
|
+
responses: {
|
|
96
|
+
200: {
|
|
97
|
+
bodyMapper: Mappers.AzureTrafficCollectorListResult
|
|
98
98
|
},
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
99
|
+
default: {
|
|
100
|
+
bodyMapper: Mappers.CloudError
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
queryParameters: [Parameters.apiVersion],
|
|
104
|
+
urlParameters: [
|
|
105
|
+
Parameters.$host,
|
|
106
|
+
Parameters.subscriptionId,
|
|
107
|
+
Parameters.resourceGroupName
|
|
108
|
+
],
|
|
109
|
+
headerParameters: [Parameters.accept],
|
|
110
|
+
serializer
|
|
107
111
|
};
|
|
108
112
|
const listNextOperationSpec = {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
},
|
|
115
|
-
default: {
|
|
116
|
-
bodyMapper: Mappers.CloudError
|
|
117
|
-
}
|
|
113
|
+
path: "{nextLink}",
|
|
114
|
+
httpMethod: "GET",
|
|
115
|
+
responses: {
|
|
116
|
+
200: {
|
|
117
|
+
bodyMapper: Mappers.AzureTrafficCollectorListResult
|
|
118
118
|
},
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
119
|
+
default: {
|
|
120
|
+
bodyMapper: Mappers.CloudError
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
queryParameters: [Parameters.apiVersion],
|
|
124
|
+
urlParameters: [
|
|
125
|
+
Parameters.$host,
|
|
126
|
+
Parameters.subscriptionId,
|
|
127
|
+
Parameters.nextLink,
|
|
128
|
+
Parameters.resourceGroupName
|
|
129
|
+
],
|
|
130
|
+
headerParameters: [Parameters.accept],
|
|
131
|
+
serializer
|
|
132
|
+
};
|
|
133
|
+
export {
|
|
134
|
+
AzureTrafficCollectorsByResourceGroupImpl
|
|
128
135
|
};
|
|
129
|
-
//# sourceMappingURL=azureTrafficCollectorsByResourceGroup.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["/mnt/vss/_work/1/s/sdk/networkfunction/arm-networkfunction/src/operations/azureTrafficCollectorsByResourceGroup.ts"],
|
|
4
|
+
"sourcesContent": ["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { AzureTrafficCollectorsByResourceGroup } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureTrafficCollectorClient } from \"../azureTrafficCollectorClient.js\";\nimport {\n AzureTrafficCollector,\n AzureTrafficCollectorsByResourceGroupListNextOptionalParams,\n AzureTrafficCollectorsByResourceGroupListOptionalParams,\n AzureTrafficCollectorsByResourceGroupListResponse,\n AzureTrafficCollectorsByResourceGroupListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AzureTrafficCollectorsByResourceGroup operations. */\nexport class AzureTrafficCollectorsByResourceGroupImpl\n implements AzureTrafficCollectorsByResourceGroup {\n private readonly client: AzureTrafficCollectorClient;\n\n /**\n * Initialize a new instance of the class AzureTrafficCollectorsByResourceGroup class.\n * @param client Reference to the service client\n */\n constructor(client: AzureTrafficCollectorClient) {\n this.client = client;\n }\n\n /**\n * Return list of Azure Traffic Collectors in a Resource Group\n * @param resourceGroupName The name of the resource group.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n options?: AzureTrafficCollectorsByResourceGroupListOptionalParams\n ): PagedAsyncIterableIterator<AzureTrafficCollector> {\n const iter = this.listPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(resourceGroupName, options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n options?: AzureTrafficCollectorsByResourceGroupListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AzureTrafficCollector[]> {\n let result: AzureTrafficCollectorsByResourceGroupListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n options?: AzureTrafficCollectorsByResourceGroupListOptionalParams\n ): AsyncIterableIterator<AzureTrafficCollector> {\n for await (const page of this.listPagingPage(resourceGroupName, options)) {\n yield* page;\n }\n }\n\n /**\n * Return list of Azure Traffic Collectors in a Resource Group\n * @param resourceGroupName The name of the resource group.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n options?: AzureTrafficCollectorsByResourceGroupListOptionalParams\n ): Promise<AzureTrafficCollectorsByResourceGroupListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n nextLink: string,\n options?: AzureTrafficCollectorsByResourceGroupListNextOptionalParams\n ): Promise<AzureTrafficCollectorsByResourceGroupListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureTrafficCollectorListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureTrafficCollectorListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"],
|
|
5
|
+
"mappings": "AASA,SAAS,4BAA4B;AAErC,YAAY,gBAAgB;AAC5B,YAAY,aAAa;AACzB,YAAY,gBAAgB;AAYrB,MAAM,0CACsC;AAAA,EAChC;AAAA;AAAA;AAAA;AAAA;AAAA,EAMjB,YAAY,QAAqC;AAC/C,SAAK,SAAS;AAAA,EAChB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOO,KACL,mBACA,SACmD;AACnD,UAAM,OAAO,KAAK,cAAc,mBAAmB,OAAO;AAC1D,WAAO;AAAA,MACL,OAAO;AACL,eAAO,KAAK,KAAK;AAAA,MACnB;AAAA,MACA,CAAC,OAAO,aAAa,IAAI;AACvB,eAAO;AAAA,MACT;AAAA,MACA,QAAQ,CAAC,aAA4B;AACnC,YAAI,UAAU,aAAa;AACzB,gBAAM,IAAI,MAAM,iDAAiD;AAAA,QACnE;AACA,eAAO,KAAK,eAAe,mBAAmB,SAAS,QAAQ;AAAA,MACjE;AAAA,IACF;AAAA,EACF;AAAA,EAEA,OAAe,eACb,mBACA,SACA,UACgD;AAChD,QAAI;AACJ,QAAI,oBAAoB,UAAU;AAClC,QAAI,CAAC,mBAAmB;AACtB,eAAS,MAAM,KAAK,MAAM,mBAAmB,OAAO;AACpD,UAAI,OAAO,OAAO,SAAS,CAAC;AA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AAAA,IACT,KAAK;AAAA,MACH,YAAY,QAAQ;AAAA,IACtB;AAAA,IACA,SAAS;AAAA,MACP,YAAY,QAAQ;AAAA,IACtB;AAAA,EACF;AAAA,EACA,iBAAiB,CAAC,WAAW,UAAU;AAAA,EACvC,eAAe;AAAA,IACb,WAAW;AAAA,IACX,WAAW;AAAA,IACX,WAAW;AAAA,IACX,WAAW;AAAA,EACb;AAAA,EACA,kBAAkB,CAAC,WAAW,MAAM;AAAA,EACpC;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,121 +1,120 @@
|
|
|
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
1
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
9
2
|
import * as coreClient from "@azure/core-client";
|
|
10
3
|
import * as Mappers from "../models/mappers.js";
|
|
11
4
|
import * as Parameters from "../models/parameters.js";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
return
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
if (settings?.maxPageSize) {
|
|
38
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
39
|
-
}
|
|
40
|
-
return this.listPagingPage(options, settings);
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
async *listPagingPage(options, settings) {
|
|
45
|
-
let result;
|
|
46
|
-
let continuationToken = settings?.continuationToken;
|
|
47
|
-
if (!continuationToken) {
|
|
48
|
-
result = await this._list(options);
|
|
49
|
-
let page = result.value || [];
|
|
50
|
-
continuationToken = result.nextLink;
|
|
51
|
-
setContinuationToken(page, continuationToken);
|
|
52
|
-
yield page;
|
|
53
|
-
}
|
|
54
|
-
while (continuationToken) {
|
|
55
|
-
result = await this._listNext(continuationToken, options);
|
|
56
|
-
continuationToken = result.nextLink;
|
|
57
|
-
let page = result.value || [];
|
|
58
|
-
setContinuationToken(page, continuationToken);
|
|
59
|
-
yield page;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
async *listPagingAll(options) {
|
|
63
|
-
for await (const page of this.listPagingPage(options)) {
|
|
64
|
-
yield* page;
|
|
5
|
+
class AzureTrafficCollectorsBySubscriptionImpl {
|
|
6
|
+
client;
|
|
7
|
+
/**
|
|
8
|
+
* Initialize a new instance of the class AzureTrafficCollectorsBySubscription class.
|
|
9
|
+
* @param client Reference to the service client
|
|
10
|
+
*/
|
|
11
|
+
constructor(client) {
|
|
12
|
+
this.client = client;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Return list of Azure Traffic Collectors in a subscription
|
|
16
|
+
* @param options The options parameters.
|
|
17
|
+
*/
|
|
18
|
+
list(options) {
|
|
19
|
+
const iter = this.listPagingAll(options);
|
|
20
|
+
return {
|
|
21
|
+
next() {
|
|
22
|
+
return iter.next();
|
|
23
|
+
},
|
|
24
|
+
[Symbol.asyncIterator]() {
|
|
25
|
+
return this;
|
|
26
|
+
},
|
|
27
|
+
byPage: (settings) => {
|
|
28
|
+
if (settings?.maxPageSize) {
|
|
29
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
65
30
|
}
|
|
31
|
+
return this.listPagingPage(options, settings);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
async *listPagingPage(options, settings) {
|
|
36
|
+
let result;
|
|
37
|
+
let continuationToken = settings?.continuationToken;
|
|
38
|
+
if (!continuationToken) {
|
|
39
|
+
result = await this._list(options);
|
|
40
|
+
let page = result.value || [];
|
|
41
|
+
continuationToken = result.nextLink;
|
|
42
|
+
setContinuationToken(page, continuationToken);
|
|
43
|
+
yield page;
|
|
66
44
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
45
|
+
while (continuationToken) {
|
|
46
|
+
result = await this._listNext(continuationToken, options);
|
|
47
|
+
continuationToken = result.nextLink;
|
|
48
|
+
let page = result.value || [];
|
|
49
|
+
setContinuationToken(page, continuationToken);
|
|
50
|
+
yield page;
|
|
73
51
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
*/
|
|
79
|
-
_listNext(nextLink, options) {
|
|
80
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
52
|
+
}
|
|
53
|
+
async *listPagingAll(options) {
|
|
54
|
+
for await (const page of this.listPagingPage(options)) {
|
|
55
|
+
yield* page;
|
|
81
56
|
}
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Return list of Azure Traffic Collectors in a subscription
|
|
60
|
+
* @param options The options parameters.
|
|
61
|
+
*/
|
|
62
|
+
_list(options) {
|
|
63
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* ListNext
|
|
67
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
68
|
+
* @param options The options parameters.
|
|
69
|
+
*/
|
|
70
|
+
_listNext(nextLink, options) {
|
|
71
|
+
return this.client.sendOperationRequest(
|
|
72
|
+
{ nextLink, options },
|
|
73
|
+
listNextOperationSpec
|
|
74
|
+
);
|
|
75
|
+
}
|
|
82
76
|
}
|
|
83
|
-
|
|
84
|
-
|
|
77
|
+
const serializer = coreClient.createSerializer(
|
|
78
|
+
Mappers,
|
|
79
|
+
/* isXml */
|
|
80
|
+
false
|
|
81
|
+
);
|
|
85
82
|
const listOperationSpec = {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
},
|
|
92
|
-
default: {
|
|
93
|
-
bodyMapper: Mappers.CloudError
|
|
94
|
-
}
|
|
83
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkFunction/azureTrafficCollectors",
|
|
84
|
+
httpMethod: "GET",
|
|
85
|
+
responses: {
|
|
86
|
+
200: {
|
|
87
|
+
bodyMapper: Mappers.AzureTrafficCollectorListResult
|
|
95
88
|
},
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
89
|
+
default: {
|
|
90
|
+
bodyMapper: Mappers.CloudError
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
queryParameters: [Parameters.apiVersion],
|
|
94
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
95
|
+
headerParameters: [Parameters.accept],
|
|
96
|
+
serializer
|
|
100
97
|
};
|
|
101
98
|
const listNextOperationSpec = {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
},
|
|
108
|
-
default: {
|
|
109
|
-
bodyMapper: Mappers.CloudError
|
|
110
|
-
}
|
|
99
|
+
path: "{nextLink}",
|
|
100
|
+
httpMethod: "GET",
|
|
101
|
+
responses: {
|
|
102
|
+
200: {
|
|
103
|
+
bodyMapper: Mappers.AzureTrafficCollectorListResult
|
|
111
104
|
},
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
105
|
+
default: {
|
|
106
|
+
bodyMapper: Mappers.CloudError
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
queryParameters: [Parameters.apiVersion],
|
|
110
|
+
urlParameters: [
|
|
111
|
+
Parameters.$host,
|
|
112
|
+
Parameters.subscriptionId,
|
|
113
|
+
Parameters.nextLink
|
|
114
|
+
],
|
|
115
|
+
headerParameters: [Parameters.accept],
|
|
116
|
+
serializer
|
|
117
|
+
};
|
|
118
|
+
export {
|
|
119
|
+
AzureTrafficCollectorsBySubscriptionImpl
|
|
120
120
|
};
|
|
121
|
-
//# sourceMappingURL=azureTrafficCollectorsBySubscription.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["/mnt/vss/_work/1/s/sdk/networkfunction/arm-networkfunction/src/operations/azureTrafficCollectorsBySubscription.ts"],
|
|
4
|
+
"sourcesContent": ["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { AzureTrafficCollectorsBySubscription } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureTrafficCollectorClient } from \"../azureTrafficCollectorClient.js\";\nimport {\n AzureTrafficCollector,\n AzureTrafficCollectorsBySubscriptionListNextOptionalParams,\n AzureTrafficCollectorsBySubscriptionListOptionalParams,\n AzureTrafficCollectorsBySubscriptionListResponse,\n AzureTrafficCollectorsBySubscriptionListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AzureTrafficCollectorsBySubscription operations. */\nexport class AzureTrafficCollectorsBySubscriptionImpl\n implements AzureTrafficCollectorsBySubscription {\n private readonly client: AzureTrafficCollectorClient;\n\n /**\n * Initialize a new instance of the class AzureTrafficCollectorsBySubscription class.\n * @param client Reference to the service client\n */\n constructor(client: AzureTrafficCollectorClient) {\n this.client = client;\n }\n\n /**\n * Return list of Azure Traffic Collectors in a subscription\n * @param options The options parameters.\n */\n public list(\n options?: AzureTrafficCollectorsBySubscriptionListOptionalParams\n ): PagedAsyncIterableIterator<AzureTrafficCollector> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: AzureTrafficCollectorsBySubscriptionListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AzureTrafficCollector[]> {\n let result: AzureTrafficCollectorsBySubscriptionListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: AzureTrafficCollectorsBySubscriptionListOptionalParams\n ): AsyncIterableIterator<AzureTrafficCollector> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Return list of Azure Traffic Collectors in a subscription\n * @param options The options parameters.\n */\n private _list(\n options?: AzureTrafficCollectorsBySubscriptionListOptionalParams\n ): Promise<AzureTrafficCollectorsBySubscriptionListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: AzureTrafficCollectorsBySubscriptionListNextOptionalParams\n ): Promise<AzureTrafficCollectorsBySubscriptionListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.NetworkFunction/azureTrafficCollectors\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureTrafficCollectorListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureTrafficCollectorListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"],
|
|
5
|
+
"mappings": "AASA,SAAS,4BAA4B;AAErC,YAAY,gBAAgB;AAC5B,YAAY,aAAa;AACzB,YAAY,gBAAgB;AAYrB,MAAM,yCACqC;AAAA,EAC/B;AAAA;AAAA;AAAA;AAAA;AAAA,EAMjB,YAAY,QAAqC;AAC/C,SAAK,SAAS;AAAA,EAChB;AAAA;AAAA;AAAA;AAAA;AAAA,EAMO,KACL,SACmD;AACnD,UAAM,OAAO,KAAK,cAAc,OAAO;AACvC,WAAO;AAAA,MACL,OAAO;AACL,eAAO,KAAK,KAAK;AAAA,MACnB;AAAA,MACA,CAAC,OAAO,aAAa,IAAI;AACvB,eAAO;AAAA,MACT;AAAA,MACA,QAAQ,CAAC,aAA4B;AACnC,YAAI,UAAU,aAAa;AACzB,gBAAM,IAAI,MAAM,iDAAiD;AAAA,QACnE;AACA,eAAO,KAAK,eAAe,SAAS,QAAQ;AAAA,MAC9C;AAAA,IACF;AAAA,EACF;AAAA,EAEA,OAAe,eACb,SACA,UACgD;AAChD,QAAI;AACJ,QAAI,oBAAoB,UAAU;AAClC,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