@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.
- 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,119 +1,135 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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 azureTrafficCollectorClient_exports = {};
|
|
29
|
+
__export(azureTrafficCollectorClient_exports, {
|
|
30
|
+
AzureTrafficCollectorClient: () => AzureTrafficCollectorClient
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(azureTrafficCollectorClient_exports);
|
|
33
|
+
var coreClient = __toESM(require("@azure/core-client"));
|
|
34
|
+
var coreRestPipeline = __toESM(require("@azure/core-rest-pipeline"));
|
|
35
|
+
var import_operations = require("./operations/index.js");
|
|
15
36
|
class AzureTrafficCollectorClient extends coreClient.ServiceClient {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
if (subscriptionId === undefined) {
|
|
30
|
-
throw new Error("'subscriptionId' cannot be null");
|
|
31
|
-
}
|
|
32
|
-
// Initializing default values for options
|
|
33
|
-
if (!options) {
|
|
34
|
-
options = {};
|
|
35
|
-
}
|
|
36
|
-
const defaults = {
|
|
37
|
-
requestContentType: "application/json; charset=utf-8",
|
|
38
|
-
credential: credentials
|
|
39
|
-
};
|
|
40
|
-
const packageDetails = `azsdk-js-arm-networkfunction/2.0.2`;
|
|
41
|
-
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
42
|
-
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
43
|
-
: `${packageDetails}`;
|
|
44
|
-
const optionsWithDefaults = {
|
|
45
|
-
...defaults,
|
|
46
|
-
...options,
|
|
47
|
-
userAgentOptions: {
|
|
48
|
-
userAgentPrefix
|
|
49
|
-
},
|
|
50
|
-
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
51
|
-
};
|
|
52
|
-
super(optionsWithDefaults);
|
|
53
|
-
let bearerTokenAuthenticationPolicyFound = false;
|
|
54
|
-
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
55
|
-
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
56
|
-
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
57
|
-
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
58
|
-
}
|
|
59
|
-
if (!options ||
|
|
60
|
-
!options.pipeline ||
|
|
61
|
-
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
62
|
-
!bearerTokenAuthenticationPolicyFound) {
|
|
63
|
-
this.pipeline.removePolicy({
|
|
64
|
-
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
65
|
-
});
|
|
66
|
-
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
67
|
-
credential: credentials,
|
|
68
|
-
scopes: optionsWithDefaults.credentialScopes ??
|
|
69
|
-
`${optionsWithDefaults.endpoint}/.default`,
|
|
70
|
-
challengeCallbacks: {
|
|
71
|
-
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
72
|
-
}
|
|
73
|
-
}));
|
|
74
|
-
}
|
|
75
|
-
// Parameter assignments
|
|
76
|
-
this.subscriptionId = subscriptionId;
|
|
77
|
-
// Assigning values to Constant parameters
|
|
78
|
-
this.$host = options.$host || "https://management.azure.com";
|
|
79
|
-
this.apiVersion = options.apiVersion || "2022-11-01";
|
|
80
|
-
this.networkFunction = new index_js_1.NetworkFunctionImpl(this);
|
|
81
|
-
this.azureTrafficCollectorsBySubscription = new index_js_1.AzureTrafficCollectorsBySubscriptionImpl(this);
|
|
82
|
-
this.azureTrafficCollectorsByResourceGroup = new index_js_1.AzureTrafficCollectorsByResourceGroupImpl(this);
|
|
83
|
-
this.azureTrafficCollectors = new index_js_1.AzureTrafficCollectorsImpl(this);
|
|
84
|
-
this.collectorPolicies = new index_js_1.CollectorPoliciesImpl(this);
|
|
85
|
-
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
37
|
+
$host;
|
|
38
|
+
apiVersion;
|
|
39
|
+
subscriptionId;
|
|
40
|
+
/**
|
|
41
|
+
* Initializes a new instance of the AzureTrafficCollectorClient class.
|
|
42
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
43
|
+
* @param subscriptionId Azure Subscription ID.
|
|
44
|
+
* @param options The parameter options
|
|
45
|
+
*/
|
|
46
|
+
constructor(credentials, subscriptionId, options) {
|
|
47
|
+
if (credentials === void 0) {
|
|
48
|
+
throw new Error("'credentials' cannot be null");
|
|
86
49
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
if (!apiVersion) {
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
const apiVersionPolicy = {
|
|
93
|
-
name: "CustomApiVersionPolicy",
|
|
94
|
-
async sendRequest(request, next) {
|
|
95
|
-
const param = request.url.split("?");
|
|
96
|
-
if (param.length > 1) {
|
|
97
|
-
const newParams = param[1].split("&").map((item) => {
|
|
98
|
-
if (item.indexOf("api-version") > -1) {
|
|
99
|
-
return "api-version=" + apiVersion;
|
|
100
|
-
}
|
|
101
|
-
else {
|
|
102
|
-
return item;
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
request.url = param[0] + "?" + newParams.join("&");
|
|
106
|
-
}
|
|
107
|
-
return next(request);
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
this.pipeline.addPolicy(apiVersionPolicy);
|
|
50
|
+
if (subscriptionId === void 0) {
|
|
51
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
111
52
|
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
53
|
+
if (!options) {
|
|
54
|
+
options = {};
|
|
55
|
+
}
|
|
56
|
+
const defaults = {
|
|
57
|
+
requestContentType: "application/json; charset=utf-8",
|
|
58
|
+
credential: credentials
|
|
59
|
+
};
|
|
60
|
+
const packageDetails = `azsdk-js-arm-networkfunction/2.0.2`;
|
|
61
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` : `${packageDetails}`;
|
|
62
|
+
const optionsWithDefaults = {
|
|
63
|
+
...defaults,
|
|
64
|
+
...options,
|
|
65
|
+
userAgentOptions: {
|
|
66
|
+
userAgentPrefix
|
|
67
|
+
},
|
|
68
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
69
|
+
};
|
|
70
|
+
super(optionsWithDefaults);
|
|
71
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
72
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
73
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
74
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
|
75
|
+
(pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
if (!options || !options.pipeline || options.pipeline.getOrderedPolicies().length == 0 || !bearerTokenAuthenticationPolicyFound) {
|
|
79
|
+
this.pipeline.removePolicy({
|
|
80
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
81
|
+
});
|
|
82
|
+
this.pipeline.addPolicy(
|
|
83
|
+
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
84
|
+
credential: credentials,
|
|
85
|
+
scopes: optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,
|
|
86
|
+
challengeCallbacks: {
|
|
87
|
+
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
88
|
+
}
|
|
89
|
+
})
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
this.subscriptionId = subscriptionId;
|
|
93
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
94
|
+
this.apiVersion = options.apiVersion || "2022-11-01";
|
|
95
|
+
this.networkFunction = new import_operations.NetworkFunctionImpl(this);
|
|
96
|
+
this.azureTrafficCollectorsBySubscription = new import_operations.AzureTrafficCollectorsBySubscriptionImpl(
|
|
97
|
+
this
|
|
98
|
+
);
|
|
99
|
+
this.azureTrafficCollectorsByResourceGroup = new import_operations.AzureTrafficCollectorsByResourceGroupImpl(
|
|
100
|
+
this
|
|
101
|
+
);
|
|
102
|
+
this.azureTrafficCollectors = new import_operations.AzureTrafficCollectorsImpl(this);
|
|
103
|
+
this.collectorPolicies = new import_operations.CollectorPoliciesImpl(this);
|
|
104
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
105
|
+
}
|
|
106
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
107
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
108
|
+
if (!apiVersion) {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
const apiVersionPolicy = {
|
|
112
|
+
name: "CustomApiVersionPolicy",
|
|
113
|
+
async sendRequest(request, next) {
|
|
114
|
+
const param = request.url.split("?");
|
|
115
|
+
if (param.length > 1) {
|
|
116
|
+
const newParams = param[1].split("&").map((item) => {
|
|
117
|
+
if (item.indexOf("api-version") > -1) {
|
|
118
|
+
return "api-version=" + apiVersion;
|
|
119
|
+
} else {
|
|
120
|
+
return item;
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
124
|
+
}
|
|
125
|
+
return next(request);
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
129
|
+
}
|
|
130
|
+
networkFunction;
|
|
131
|
+
azureTrafficCollectorsBySubscription;
|
|
132
|
+
azureTrafficCollectorsByResourceGroup;
|
|
133
|
+
azureTrafficCollectors;
|
|
134
|
+
collectorPolicies;
|
|
117
135
|
}
|
|
118
|
-
exports.AzureTrafficCollectorClient = AzureTrafficCollectorClient;
|
|
119
|
-
//# sourceMappingURL=azureTrafficCollectorClient.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["/mnt/vss/_work/1/s/sdk/networkfunction/arm-networkfunction/src/azureTrafficCollectorClient.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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n NetworkFunctionImpl,\n AzureTrafficCollectorsBySubscriptionImpl,\n AzureTrafficCollectorsByResourceGroupImpl,\n AzureTrafficCollectorsImpl,\n CollectorPoliciesImpl\n} from \"./operations/index.js\";\nimport {\n NetworkFunction,\n AzureTrafficCollectorsBySubscription,\n AzureTrafficCollectorsByResourceGroup,\n AzureTrafficCollectors,\n CollectorPolicies\n} from \"./operationsInterfaces/index.js\";\nimport { AzureTrafficCollectorClientOptionalParams } from \"./models/index.js\";\n\nexport class AzureTrafficCollectorClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the AzureTrafficCollectorClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Azure Subscription ID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: AzureTrafficCollectorClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: AzureTrafficCollectorClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-networkfunction/2.0.2`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2022-11-01\";\n this.networkFunction = new NetworkFunctionImpl(this);\n this.azureTrafficCollectorsBySubscription = new AzureTrafficCollectorsBySubscriptionImpl(\n this\n );\n this.azureTrafficCollectorsByResourceGroup = new AzureTrafficCollectorsByResourceGroupImpl(\n this\n );\n this.azureTrafficCollectors = new AzureTrafficCollectorsImpl(this);\n this.collectorPolicies = new CollectorPoliciesImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n networkFunction: NetworkFunction;\n azureTrafficCollectorsBySubscription: AzureTrafficCollectorsBySubscription;\n azureTrafficCollectorsByResourceGroup: AzureTrafficCollectorsByResourceGroup;\n azureTrafficCollectors: AzureTrafficCollectors;\n collectorPolicies: CollectorPolicies;\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,iBAA4B;AAC5B,uBAAkC;AAOlC,wBAMO;AA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
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var src_exports = {};
|
|
20
|
+
__export(src_exports, {
|
|
21
|
+
AzureTrafficCollectorClient: () => import_azureTrafficCollectorClient.AzureTrafficCollectorClient,
|
|
22
|
+
getContinuationToken: () => import_pagingHelper.getContinuationToken
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(src_exports);
|
|
25
|
+
var import_pagingHelper = require("./pagingHelper.js");
|
|
26
|
+
__reExport(src_exports, require("./models/index.js"), module.exports);
|
|
27
|
+
var import_azureTrafficCollectorClient = require("./azureTrafficCollectorClient.js");
|
|
28
|
+
__reExport(src_exports, require("./operationsInterfaces/index.js"), module.exports);
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["/mnt/vss/_work/1/s/sdk/networkfunction/arm-networkfunction/src/index.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\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { AzureTrafficCollectorClient } from \"./azureTrafficCollectorClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,0BAAqC;AACrC,wBAAc,8BAVd;AAWA,yCAA4C;AAC5C,wBAAc,4CAZd;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/dist/commonjs/lroImpl.js
CHANGED
|
@@ -1,37 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var lroImpl_exports = {};
|
|
19
|
+
__export(lroImpl_exports, {
|
|
20
|
+
LroImpl: () => LroImpl
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(lroImpl_exports);
|
|
11
23
|
class LroImpl {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
...restSpec,
|
|
31
|
-
path,
|
|
32
|
-
httpMethod: "GET"
|
|
33
|
-
});
|
|
34
|
-
}
|
|
24
|
+
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
|
25
|
+
this.sendOperationFn = sendOperationFn;
|
|
26
|
+
this.args = args;
|
|
27
|
+
this.spec = spec;
|
|
28
|
+
this.requestPath = requestPath;
|
|
29
|
+
this.requestMethod = requestMethod;
|
|
30
|
+
}
|
|
31
|
+
async sendInitialRequest() {
|
|
32
|
+
return this.sendOperationFn(this.args, this.spec);
|
|
33
|
+
}
|
|
34
|
+
async sendPollRequest(path) {
|
|
35
|
+
const { requestBody, ...restSpec } = this.spec;
|
|
36
|
+
return this.sendOperationFn(this.args, {
|
|
37
|
+
...restSpec,
|
|
38
|
+
path,
|
|
39
|
+
httpMethod: "GET"
|
|
40
|
+
});
|
|
41
|
+
}
|
|
35
42
|
}
|
|
36
|
-
exports.LroImpl = LroImpl;
|
|
37
|
-
//# sourceMappingURL=lroImpl.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["/mnt/vss/_work/1/s/sdk/networkfunction/arm-networkfunction/src/lroImpl.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 { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport class LroImpl<T> implements LongRunningOperation<T> {\n constructor(\n private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,\n private args: Record<string, unknown>,\n private spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>,\n public requestPath: string = spec.path!,\n public requestMethod: string = spec.httpMethod\n ) {}\n public async sendInitialRequest(): Promise<LroResponse<T>> {\n return this.sendOperationFn(this.args, this.spec);\n }\n public async sendPollRequest(path: string): Promise<LroResponse<T>> {\n const { requestBody, ...restSpec } = this.spec;\n return this.sendOperationFn(this.args, {\n ...restSpec,\n path,\n httpMethod: \"GET\"\n });\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAUO,MAAM,QAA8C;AAAA,EACzD,YACU,iBACA,MACA,MAKD,cAAsB,KAAK,MAC3B,gBAAwB,KAAK,YACpC;AATQ;AACA;AACA;AAKD;AACA;AAAA,EACN;AAAA,EACH,MAAa,qBAA8C;AACzD,WAAO,KAAK,gBAAgB,KAAK,MAAM,KAAK,IAAI;AAAA,EAClD;AAAA,EACA,MAAa,gBAAgB,MAAuC;AAClE,UAAM,EAAE,aAAa,GAAG,SAAS,IAAI,KAAK;AAC1C,WAAO,KAAK,gBAAgB,KAAK,MAAM;AAAA,MACrC,GAAG;AAAA,MACH;AAAA,MACA,YAAY;AAAA,IACd,CAAC;AAAA,EACH;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,69 +1,64 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
var
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
})(
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
})(KnownDestinationType ||
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
KnownApiVersionParameter["TwoThousandTwentyTwo0801"] = "2022-08-01";
|
|
66
|
-
/** TwoThousandTwentyTwo1101 */
|
|
67
|
-
KnownApiVersionParameter["TwoThousandTwentyTwo1101"] = "2022-11-01";
|
|
68
|
-
})(KnownApiVersionParameter || (exports.KnownApiVersionParameter = KnownApiVersionParameter = {}));
|
|
69
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var models_exports = {};
|
|
19
|
+
__export(models_exports, {
|
|
20
|
+
KnownApiVersionParameter: () => KnownApiVersionParameter,
|
|
21
|
+
KnownCreatedByType: () => KnownCreatedByType,
|
|
22
|
+
KnownDestinationType: () => KnownDestinationType,
|
|
23
|
+
KnownEmissionType: () => KnownEmissionType,
|
|
24
|
+
KnownIngestionType: () => KnownIngestionType,
|
|
25
|
+
KnownProvisioningState: () => KnownProvisioningState,
|
|
26
|
+
KnownSourceType: () => KnownSourceType
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(models_exports);
|
|
29
|
+
var KnownProvisioningState = /* @__PURE__ */ ((KnownProvisioningState2) => {
|
|
30
|
+
KnownProvisioningState2["Succeeded"] = "Succeeded";
|
|
31
|
+
KnownProvisioningState2["Updating"] = "Updating";
|
|
32
|
+
KnownProvisioningState2["Deleting"] = "Deleting";
|
|
33
|
+
KnownProvisioningState2["Failed"] = "Failed";
|
|
34
|
+
return KnownProvisioningState2;
|
|
35
|
+
})(KnownProvisioningState || {});
|
|
36
|
+
var KnownCreatedByType = /* @__PURE__ */ ((KnownCreatedByType2) => {
|
|
37
|
+
KnownCreatedByType2["User"] = "User";
|
|
38
|
+
KnownCreatedByType2["Application"] = "Application";
|
|
39
|
+
KnownCreatedByType2["ManagedIdentity"] = "ManagedIdentity";
|
|
40
|
+
KnownCreatedByType2["Key"] = "Key";
|
|
41
|
+
return KnownCreatedByType2;
|
|
42
|
+
})(KnownCreatedByType || {});
|
|
43
|
+
var KnownIngestionType = /* @__PURE__ */ ((KnownIngestionType2) => {
|
|
44
|
+
KnownIngestionType2["Ipfix"] = "IPFIX";
|
|
45
|
+
return KnownIngestionType2;
|
|
46
|
+
})(KnownIngestionType || {});
|
|
47
|
+
var KnownSourceType = /* @__PURE__ */ ((KnownSourceType2) => {
|
|
48
|
+
KnownSourceType2["Resource"] = "Resource";
|
|
49
|
+
return KnownSourceType2;
|
|
50
|
+
})(KnownSourceType || {});
|
|
51
|
+
var KnownEmissionType = /* @__PURE__ */ ((KnownEmissionType2) => {
|
|
52
|
+
KnownEmissionType2["Ipfix"] = "IPFIX";
|
|
53
|
+
return KnownEmissionType2;
|
|
54
|
+
})(KnownEmissionType || {});
|
|
55
|
+
var KnownDestinationType = /* @__PURE__ */ ((KnownDestinationType2) => {
|
|
56
|
+
KnownDestinationType2["AzureMonitor"] = "AzureMonitor";
|
|
57
|
+
return KnownDestinationType2;
|
|
58
|
+
})(KnownDestinationType || {});
|
|
59
|
+
var KnownApiVersionParameter = /* @__PURE__ */ ((KnownApiVersionParameter2) => {
|
|
60
|
+
KnownApiVersionParameter2["TwoThousandTwentyTwo0501"] = "2022-05-01";
|
|
61
|
+
KnownApiVersionParameter2["TwoThousandTwentyTwo0801"] = "2022-08-01";
|
|
62
|
+
KnownApiVersionParameter2["TwoThousandTwentyTwo1101"] = "2022-11-01";
|
|
63
|
+
return KnownApiVersionParameter2;
|
|
64
|
+
})(KnownApiVersionParameter || {});
|