@azure/arm-networkfunction 2.0.2-alpha.20260302.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.
Files changed (77) hide show
  1. package/dist/commonjs/azureTrafficCollectorClient.js +131 -115
  2. package/dist/commonjs/azureTrafficCollectorClient.js.map +7 -1
  3. package/dist/commonjs/index.js +28 -19
  4. package/dist/commonjs/index.js.map +7 -1
  5. package/dist/commonjs/lroImpl.js +40 -35
  6. package/dist/commonjs/lroImpl.js.map +7 -1
  7. package/dist/commonjs/models/index.js +64 -69
  8. package/dist/commonjs/models/index.js.map +7 -1
  9. package/dist/commonjs/models/mappers.js +502 -473
  10. package/dist/commonjs/models/mappers.js.map +7 -1
  11. package/dist/commonjs/models/parameters.js +154 -127
  12. package/dist/commonjs/models/parameters.js.map +7 -1
  13. package/dist/commonjs/operations/azureTrafficCollectors.js +293 -249
  14. package/dist/commonjs/operations/azureTrafficCollectors.js.map +7 -1
  15. package/dist/commonjs/operations/azureTrafficCollectorsByResourceGroup.js +152 -122
  16. package/dist/commonjs/operations/azureTrafficCollectorsByResourceGroup.js.map +7 -1
  17. package/dist/commonjs/operations/azureTrafficCollectorsBySubscription.js +137 -114
  18. package/dist/commonjs/operations/azureTrafficCollectorsBySubscription.js.map +7 -1
  19. package/dist/commonjs/operations/collectorPolicies.js +454 -381
  20. package/dist/commonjs/operations/collectorPolicies.js.map +7 -1
  21. package/dist/commonjs/operations/index.js +21 -16
  22. package/dist/commonjs/operations/index.js.map +7 -1
  23. package/dist/commonjs/operations/networkFunction.js +100 -77
  24. package/dist/commonjs/operations/networkFunction.js.map +7 -1
  25. package/dist/commonjs/operationsInterfaces/azureTrafficCollectors.js +15 -10
  26. package/dist/commonjs/operationsInterfaces/azureTrafficCollectors.js.map +7 -1
  27. package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js +15 -10
  28. package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js.map +7 -1
  29. package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsBySubscription.js +15 -10
  30. package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsBySubscription.js.map +7 -1
  31. package/dist/commonjs/operationsInterfaces/collectorPolicies.js +15 -10
  32. package/dist/commonjs/operationsInterfaces/collectorPolicies.js.map +7 -1
  33. package/dist/commonjs/operationsInterfaces/index.js +21 -16
  34. package/dist/commonjs/operationsInterfaces/index.js.map +7 -1
  35. package/dist/commonjs/operationsInterfaces/networkFunction.js +15 -10
  36. package/dist/commonjs/operationsInterfaces/networkFunction.js.map +7 -1
  37. package/dist/commonjs/pagingHelper.js +34 -30
  38. package/dist/commonjs/pagingHelper.js.map +7 -1
  39. package/dist/esm/azureTrafficCollectorClient.js +107 -109
  40. package/dist/esm/azureTrafficCollectorClient.js.map +7 -1
  41. package/dist/esm/index.js +6 -11
  42. package/dist/esm/index.js.map +7 -1
  43. package/dist/esm/lroImpl.js +22 -32
  44. package/dist/esm/lroImpl.js.map +7 -1
  45. package/dist/esm/models/index.js +45 -66
  46. package/dist/esm/models/index.js.map +7 -1
  47. package/dist/esm/models/mappers.js +483 -470
  48. package/dist/esm/models/mappers.js.map +7 -1
  49. package/dist/esm/models/parameters.js +143 -128
  50. package/dist/esm/models/parameters.js.map +7 -1
  51. package/dist/esm/operations/azureTrafficCollectors.js +260 -240
  52. package/dist/esm/operations/azureTrafficCollectors.js.map +7 -1
  53. package/dist/esm/operations/azureTrafficCollectorsByResourceGroup.js +120 -114
  54. package/dist/esm/operations/azureTrafficCollectorsByResourceGroup.js.map +7 -1
  55. package/dist/esm/operations/azureTrafficCollectorsBySubscription.js +105 -106
  56. package/dist/esm/operations/azureTrafficCollectorsBySubscription.js.map +7 -1
  57. package/dist/esm/operations/collectorPolicies.js +420 -371
  58. package/dist/esm/operations/collectorPolicies.js.map +7 -1
  59. package/dist/esm/operations/index.js +0 -8
  60. package/dist/esm/operations/index.js.map +7 -1
  61. package/dist/esm/operations/networkFunction.js +69 -70
  62. package/dist/esm/operations/networkFunction.js.map +7 -1
  63. package/dist/esm/operationsInterfaces/azureTrafficCollectors.js +0 -9
  64. package/dist/esm/operationsInterfaces/azureTrafficCollectors.js.map +7 -1
  65. package/dist/esm/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js +0 -9
  66. package/dist/esm/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js.map +7 -1
  67. package/dist/esm/operationsInterfaces/azureTrafficCollectorsBySubscription.js +0 -9
  68. package/dist/esm/operationsInterfaces/azureTrafficCollectorsBySubscription.js.map +7 -1
  69. package/dist/esm/operationsInterfaces/collectorPolicies.js +0 -9
  70. package/dist/esm/operationsInterfaces/collectorPolicies.js.map +7 -1
  71. package/dist/esm/operationsInterfaces/index.js +0 -8
  72. package/dist/esm/operationsInterfaces/index.js.map +7 -1
  73. package/dist/esm/operationsInterfaces/networkFunction.js +0 -9
  74. package/dist/esm/operationsInterfaces/networkFunction.js.map +7 -1
  75. package/dist/esm/pagingHelper.js +17 -28
  76. package/dist/esm/pagingHelper.js.map +7 -1
  77. package/package.json +4 -21
@@ -1 +1,7 @@
1
- {"version":3,"file":"azureTrafficCollectors.js","sourceRoot":"","sources":["../../../src/operations/azureTrafficCollectors.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAYxC,0DAA0D;AAC1D,MAAa,0BAA0B;IACpB,MAAM,CAA8B;IAErD;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,iBAAyB,EACzB,yBAAiC,EACjC,OAAiD;QAEjD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,OAAO,EAAE,EACzD,gBAAgB,CACjB,C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IACjB,UAAU;CACX,CAAC","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 { AzureTrafficCollectors } 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 { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n AzureTrafficCollectorsGetOptionalParams,\n AzureTrafficCollectorsGetResponse,\n AzureTrafficCollectorsCreateOrUpdateOptionalParams,\n AzureTrafficCollectorsCreateOrUpdateResponse,\n AzureTrafficCollectorsDeleteOptionalParams,\n TagsObject,\n AzureTrafficCollectorsUpdateTagsOptionalParams,\n AzureTrafficCollectorsUpdateTagsResponse\n} from \"../models/index.js\";\n\n/** Class containing AzureTrafficCollectors operations. */\nexport class AzureTrafficCollectorsImpl implements AzureTrafficCollectors {\n private readonly client: AzureTrafficCollectorClient;\n\n /**\n * Initialize a new instance of the class AzureTrafficCollectors class.\n * @param client Reference to the service client\n */\n constructor(client: AzureTrafficCollectorClient) {\n this.client = client;\n }\n\n /**\n * Gets the specified Azure Traffic Collector in a specified resource group\n * @param resourceGroupName The name of the resource group.\n * @param azureTrafficCollectorName Azure Traffic Collector name\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n azureTrafficCollectorName: string,\n options?: AzureTrafficCollectorsGetOptionalParams\n ): Promise<AzureTrafficCollectorsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, azureTrafficCollectorName, options },\n getOperationSpec\n );\n }\n\n /**\n * Creates or updates a Azure Traffic Collector resource\n * @param resourceGroupName The name of the resource group.\n * @param azureTrafficCollectorName Azure Traffic Collector name\n * @param location Resource location.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n azureTrafficCollectorName: string,\n location: string,\n options?: AzureTrafficCollectorsCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<AzureTrafficCollectorsCreateOrUpdateResponse>,\n AzureTrafficCollectorsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<AzureTrafficCollectorsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, azureTrafficCollectorName, location, options },\n createOrUpdateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates or updates a Azure Traffic Collector resource\n * @param resourceGroupName The name of the resource group.\n * @param azureTrafficCollectorName Azure Traffic Collector name\n * @param location Resource location.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n azureTrafficCollectorName: string,\n location: string,\n options?: AzureTrafficCollectorsCreateOrUpdateOptionalParams\n ): Promise<AzureTrafficCollectorsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n azureTrafficCollectorName,\n location,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a specified Azure Traffic Collector resource.\n * @param resourceGroupName The name of the resource group.\n * @param azureTrafficCollectorName Azure Traffic Collector name\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n azureTrafficCollectorName: string,\n options?: AzureTrafficCollectorsDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, azureTrafficCollectorName, options },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a specified Azure Traffic Collector resource.\n * @param resourceGroupName The name of the resource group.\n * @param azureTrafficCollectorName Azure Traffic Collector name\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n azureTrafficCollectorName: string,\n options?: AzureTrafficCollectorsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n azureTrafficCollectorName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates the specified Azure Traffic Collector tags.\n * @param resourceGroupName The name of the resource group.\n * @param azureTrafficCollectorName Azure Traffic Collector name\n * @param parameters Parameters supplied to update Azure Traffic Collector tags.\n * @param options The options parameters.\n */\n updateTags(\n resourceGroupName: string,\n azureTrafficCollectorName: string,\n parameters: TagsObject,\n options?: AzureTrafficCollectorsUpdateTagsOptionalParams\n ): Promise<AzureTrafficCollectorsUpdateTagsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, azureTrafficCollectorName, parameters, options },\n updateTagsOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureTrafficCollector\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 Parameters.azureTrafficCollectorName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureTrafficCollector\n },\n 201: {\n bodyMapper: Mappers.AzureTrafficCollector\n },\n 202: {\n bodyMapper: Mappers.AzureTrafficCollector\n },\n 204: {\n bodyMapper: Mappers.AzureTrafficCollector\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: {\n parameterPath: {\n location: [\"location\"],\n tags: [\"options\", \"tags\"],\n virtualHub: [\"options\", \"virtualHub\"]\n },\n mapper: { ...Mappers.AzureTrafficCollector, required: true }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.azureTrafficCollectorName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.azureTrafficCollectorName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateTagsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureTrafficCollector\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.azureTrafficCollectorName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["/mnt/vss/_work/1/s/sdk/networkfunction/arm-networkfunction/src/operations/azureTrafficCollectors.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 { AzureTrafficCollectors } 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 { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n AzureTrafficCollectorsGetOptionalParams,\n AzureTrafficCollectorsGetResponse,\n AzureTrafficCollectorsCreateOrUpdateOptionalParams,\n AzureTrafficCollectorsCreateOrUpdateResponse,\n AzureTrafficCollectorsDeleteOptionalParams,\n TagsObject,\n AzureTrafficCollectorsUpdateTagsOptionalParams,\n AzureTrafficCollectorsUpdateTagsResponse\n} from \"../models/index.js\";\n\n/** Class containing AzureTrafficCollectors operations. */\nexport class AzureTrafficCollectorsImpl implements AzureTrafficCollectors {\n private readonly client: AzureTrafficCollectorClient;\n\n /**\n * Initialize a new instance of the class AzureTrafficCollectors class.\n * @param client Reference to the service client\n */\n constructor(client: AzureTrafficCollectorClient) {\n this.client = client;\n }\n\n /**\n * Gets the specified Azure Traffic Collector in a specified resource group\n * @param resourceGroupName The name of the resource group.\n * @param azureTrafficCollectorName Azure Traffic Collector name\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n azureTrafficCollectorName: string,\n options?: AzureTrafficCollectorsGetOptionalParams\n ): Promise<AzureTrafficCollectorsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, azureTrafficCollectorName, options },\n getOperationSpec\n );\n }\n\n /**\n * Creates or updates a Azure Traffic Collector resource\n * @param resourceGroupName The name of the resource group.\n * @param azureTrafficCollectorName Azure Traffic Collector name\n * @param location Resource location.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n azureTrafficCollectorName: string,\n location: string,\n options?: AzureTrafficCollectorsCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<AzureTrafficCollectorsCreateOrUpdateResponse>,\n AzureTrafficCollectorsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<AzureTrafficCollectorsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, azureTrafficCollectorName, location, options },\n createOrUpdateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates or updates a Azure Traffic Collector resource\n * @param resourceGroupName The name of the resource group.\n * @param azureTrafficCollectorName Azure Traffic Collector name\n * @param location Resource location.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n azureTrafficCollectorName: string,\n location: string,\n options?: AzureTrafficCollectorsCreateOrUpdateOptionalParams\n ): Promise<AzureTrafficCollectorsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n azureTrafficCollectorName,\n location,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a specified Azure Traffic Collector resource.\n * @param resourceGroupName The name of the resource group.\n * @param azureTrafficCollectorName Azure Traffic Collector name\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n azureTrafficCollectorName: string,\n options?: AzureTrafficCollectorsDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, azureTrafficCollectorName, options },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a specified Azure Traffic Collector resource.\n * @param resourceGroupName The name of the resource group.\n * @param azureTrafficCollectorName Azure Traffic Collector name\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n azureTrafficCollectorName: string,\n options?: AzureTrafficCollectorsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n azureTrafficCollectorName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates the specified Azure Traffic Collector tags.\n * @param resourceGroupName The name of the resource group.\n * @param azureTrafficCollectorName Azure Traffic Collector name\n * @param parameters Parameters supplied to update Azure Traffic Collector tags.\n * @param options The options parameters.\n */\n updateTags(\n resourceGroupName: string,\n azureTrafficCollectorName: string,\n parameters: TagsObject,\n options?: AzureTrafficCollectorsUpdateTagsOptionalParams\n ): Promise<AzureTrafficCollectorsUpdateTagsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, azureTrafficCollectorName, parameters, options },\n updateTagsOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureTrafficCollector\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 Parameters.azureTrafficCollectorName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureTrafficCollector\n },\n 201: {\n bodyMapper: Mappers.AzureTrafficCollector\n },\n 202: {\n bodyMapper: Mappers.AzureTrafficCollector\n },\n 204: {\n bodyMapper: Mappers.AzureTrafficCollector\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: {\n parameterPath: {\n location: [\"location\"],\n tags: [\"options\", \"tags\"],\n virtualHub: [\"options\", \"virtualHub\"]\n },\n mapper: { ...Mappers.AzureTrafficCollector, required: true }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.azureTrafficCollectorName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.azureTrafficCollectorName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateTagsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureTrafficCollector\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.azureTrafficCollectorName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,iBAA4B;AAC5B,cAAyB;AACzB,iBAA4B;AAE5B,sBAA0D;AAC1D,qBAAwB;AAajB,MAAM,2BAA6D;AAAA,EACvD;AAAA;AAAA;AAAA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,QAAQ,uBAAuB,UAAU,KAAK;AAAA,EAC7D;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,QAAQ,WAAW,WAAW;AAAA,EAC5D,WAAW;AAAA,EACX;AACF;AACA,MAAM,sBAAgD;AAAA,EACpD,MACE;AAAA,EACF,YAAY;AAAA,EACZ,WAAW;AAAA,IACT,KAAK,CAAC;AAAA,IACN,KAAK,CAAC;AAAA,IACN,KAAK,CAAC;AAAA,IACN,KAAK,CAAC;AAAA,IACN,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;AACA,MAAM,0BAAoD;AAAA,EACxD,MACE;AAAA,EACF,YAAY;AAAA,EACZ,WAAW;AAAA,IACT,KAAK;AAAA,MACH,YAAY,QAAQ;AAAA,IACtB;AAAA,IACA,SAAS;AAAA,MACP,YAAY,QAAQ;AAAA,IACtB;AAAA,EACF;AAAA,EACA,aAAa,WAAW;AAAA,EACxB,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,QAAQ,WAAW,WAAW;AAAA,EAC5D,WAAW;AAAA,EACX;AACF;",
6
+ "names": ["flatResponse"]
7
+ }
@@ -1,134 +1,164 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) Microsoft Corporation.
4
- * Licensed under the MIT License.
5
- *
6
- * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.AzureTrafficCollectorsByResourceGroupImpl = void 0;
11
- const tslib_1 = require("tslib");
12
- const pagingHelper_js_1 = require("../pagingHelper.js");
13
- const coreClient = tslib_1.__importStar(require("@azure/core-client"));
14
- const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
15
- const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
- /// <reference lib="esnext.asynciterable" />
17
- /** Class containing AzureTrafficCollectorsByResourceGroup operations. */
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var azureTrafficCollectorsByResourceGroup_exports = {};
29
+ __export(azureTrafficCollectorsByResourceGroup_exports, {
30
+ AzureTrafficCollectorsByResourceGroupImpl: () => AzureTrafficCollectorsByResourceGroupImpl
31
+ });
32
+ module.exports = __toCommonJS(azureTrafficCollectorsByResourceGroup_exports);
33
+ var import_pagingHelper = require("../pagingHelper.js");
34
+ var coreClient = __toESM(require("@azure/core-client"));
35
+ var Mappers = __toESM(require("../models/mappers.js"));
36
+ var Parameters = __toESM(require("../models/parameters.js"));
18
37
  class AzureTrafficCollectorsByResourceGroupImpl {
19
- client;
20
- /**
21
- * Initialize a new instance of the class AzureTrafficCollectorsByResourceGroup class.
22
- * @param client Reference to the service client
23
- */
24
- constructor(client) {
25
- this.client = client;
26
- }
27
- /**
28
- * Return list of Azure Traffic Collectors in a Resource Group
29
- * @param resourceGroupName The name of the resource group.
30
- * @param options The options parameters.
31
- */
32
- list(resourceGroupName, options) {
33
- const iter = this.listPagingAll(resourceGroupName, options);
34
- return {
35
- next() {
36
- return iter.next();
37
- },
38
- [Symbol.asyncIterator]() {
39
- return this;
40
- },
41
- byPage: (settings) => {
42
- if (settings?.maxPageSize) {
43
- throw new Error("maxPageSize is not supported by this operation.");
44
- }
45
- return this.listPagingPage(resourceGroupName, options, settings);
46
- }
47
- };
48
- }
49
- async *listPagingPage(resourceGroupName, options, settings) {
50
- let result;
51
- let continuationToken = settings?.continuationToken;
52
- if (!continuationToken) {
53
- result = await this._list(resourceGroupName, options);
54
- let page = result.value || [];
55
- continuationToken = result.nextLink;
56
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
57
- yield page;
58
- }
59
- while (continuationToken) {
60
- result = await this._listNext(resourceGroupName, continuationToken, options);
61
- continuationToken = result.nextLink;
62
- let page = result.value || [];
63
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
64
- yield page;
38
+ client;
39
+ /**
40
+ * Initialize a new instance of the class AzureTrafficCollectorsByResourceGroup class.
41
+ * @param client Reference to the service client
42
+ */
43
+ constructor(client) {
44
+ this.client = client;
45
+ }
46
+ /**
47
+ * Return list of Azure Traffic Collectors in a Resource Group
48
+ * @param resourceGroupName The name of the resource group.
49
+ * @param options The options parameters.
50
+ */
51
+ list(resourceGroupName, options) {
52
+ const iter = this.listPagingAll(resourceGroupName, options);
53
+ return {
54
+ next() {
55
+ return iter.next();
56
+ },
57
+ [Symbol.asyncIterator]() {
58
+ return this;
59
+ },
60
+ byPage: (settings) => {
61
+ if (settings?.maxPageSize) {
62
+ throw new Error("maxPageSize is not supported by this operation.");
65
63
  }
64
+ return this.listPagingPage(resourceGroupName, options, settings);
65
+ }
66
+ };
67
+ }
68
+ async *listPagingPage(resourceGroupName, options, settings) {
69
+ let result;
70
+ let continuationToken = settings?.continuationToken;
71
+ if (!continuationToken) {
72
+ result = await this._list(resourceGroupName, options);
73
+ let page = result.value || [];
74
+ continuationToken = result.nextLink;
75
+ (0, import_pagingHelper.setContinuationToken)(page, continuationToken);
76
+ yield page;
66
77
  }
67
- async *listPagingAll(resourceGroupName, options) {
68
- for await (const page of this.listPagingPage(resourceGroupName, options)) {
69
- yield* page;
70
- }
78
+ while (continuationToken) {
79
+ result = await this._listNext(
80
+ resourceGroupName,
81
+ continuationToken,
82
+ options
83
+ );
84
+ continuationToken = result.nextLink;
85
+ let page = result.value || [];
86
+ (0, import_pagingHelper.setContinuationToken)(page, continuationToken);
87
+ yield page;
71
88
  }
72
- /**
73
- * Return list of Azure Traffic Collectors in a Resource Group
74
- * @param resourceGroupName The name of the resource group.
75
- * @param options The options parameters.
76
- */
77
- _list(resourceGroupName, options) {
78
- return this.client.sendOperationRequest({ resourceGroupName, options }, listOperationSpec);
79
- }
80
- /**
81
- * ListNext
82
- * @param resourceGroupName The name of the resource group.
83
- * @param nextLink The nextLink from the previous successful call to the List method.
84
- * @param options The options parameters.
85
- */
86
- _listNext(resourceGroupName, nextLink, options) {
87
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listNextOperationSpec);
89
+ }
90
+ async *listPagingAll(resourceGroupName, options) {
91
+ for await (const page of this.listPagingPage(resourceGroupName, options)) {
92
+ yield* page;
88
93
  }
94
+ }
95
+ /**
96
+ * Return list of Azure Traffic Collectors in a Resource Group
97
+ * @param resourceGroupName The name of the resource group.
98
+ * @param options The options parameters.
99
+ */
100
+ _list(resourceGroupName, options) {
101
+ return this.client.sendOperationRequest(
102
+ { resourceGroupName, options },
103
+ listOperationSpec
104
+ );
105
+ }
106
+ /**
107
+ * ListNext
108
+ * @param resourceGroupName The name of the resource group.
109
+ * @param nextLink The nextLink from the previous successful call to the List method.
110
+ * @param options The options parameters.
111
+ */
112
+ _listNext(resourceGroupName, nextLink, options) {
113
+ return this.client.sendOperationRequest(
114
+ { resourceGroupName, nextLink, options },
115
+ listNextOperationSpec
116
+ );
117
+ }
89
118
  }
90
- exports.AzureTrafficCollectorsByResourceGroupImpl = AzureTrafficCollectorsByResourceGroupImpl;
91
- // Operation Specifications
92
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
119
+ const serializer = coreClient.createSerializer(
120
+ Mappers,
121
+ /* isXml */
122
+ false
123
+ );
93
124
  const listOperationSpec = {
94
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors",
95
- httpMethod: "GET",
96
- responses: {
97
- 200: {
98
- bodyMapper: Mappers.AzureTrafficCollectorListResult
99
- },
100
- default: {
101
- bodyMapper: Mappers.CloudError
102
- }
125
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors",
126
+ httpMethod: "GET",
127
+ responses: {
128
+ 200: {
129
+ bodyMapper: Mappers.AzureTrafficCollectorListResult
103
130
  },
104
- queryParameters: [Parameters.apiVersion],
105
- urlParameters: [
106
- Parameters.$host,
107
- Parameters.subscriptionId,
108
- Parameters.resourceGroupName
109
- ],
110
- headerParameters: [Parameters.accept],
111
- serializer
131
+ default: {
132
+ bodyMapper: Mappers.CloudError
133
+ }
134
+ },
135
+ queryParameters: [Parameters.apiVersion],
136
+ urlParameters: [
137
+ Parameters.$host,
138
+ Parameters.subscriptionId,
139
+ Parameters.resourceGroupName
140
+ ],
141
+ headerParameters: [Parameters.accept],
142
+ serializer
112
143
  };
113
144
  const listNextOperationSpec = {
114
- path: "{nextLink}",
115
- httpMethod: "GET",
116
- responses: {
117
- 200: {
118
- bodyMapper: Mappers.AzureTrafficCollectorListResult
119
- },
120
- default: {
121
- bodyMapper: Mappers.CloudError
122
- }
145
+ path: "{nextLink}",
146
+ httpMethod: "GET",
147
+ responses: {
148
+ 200: {
149
+ bodyMapper: Mappers.AzureTrafficCollectorListResult
123
150
  },
124
- queryParameters: [Parameters.apiVersion],
125
- urlParameters: [
126
- Parameters.$host,
127
- Parameters.subscriptionId,
128
- Parameters.nextLink,
129
- Parameters.resourceGroupName
130
- ],
131
- headerParameters: [Parameters.accept],
132
- serializer
151
+ default: {
152
+ bodyMapper: Mappers.CloudError
153
+ }
154
+ },
155
+ queryParameters: [Parameters.apiVersion],
156
+ urlParameters: [
157
+ Parameters.$host,
158
+ Parameters.subscriptionId,
159
+ Parameters.nextLink,
160
+ Parameters.resourceGroupName
161
+ ],
162
+ headerParameters: [Parameters.accept],
163
+ serializer
133
164
  };
134
- //# sourceMappingURL=azureTrafficCollectorsByResourceGroup.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"azureTrafficCollectorsByResourceGroup.js","sourceRoot":"","sources":["../../../src/operations/azureTrafficCollectorsByResourceGroup.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,yEAAyE;AACzE,MAAa,yCAAyC;IAEnC,MAAM,CAA8B;IAErD;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,iBAAyB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CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,+BAA+B;SACpD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","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"]}
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": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,0BAAqC;AAErC,iBAA4B;AAC5B,cAAyB;AACzB,iBAA4B;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;AAC5B,0BAAoB,OAAO;AAC3B,oDAAqB,MAAM,iBAAiB;AAC5C,YAAM;AAAA,IACR;AACA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