@azure/arm-paloaltonetworksngfw 1.1.1-alpha.20250718.1 → 1.1.1-alpha.20250730.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 (147) hide show
  1. package/dist/browser/lroImpl.js +7 -3
  2. package/dist/browser/lroImpl.js.map +1 -1
  3. package/dist/browser/models/mappers.js +307 -146
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/operations/certificateObjectGlobalRulestack.js +45 -52
  6. package/dist/browser/operations/certificateObjectGlobalRulestack.js.map +1 -1
  7. package/dist/browser/operations/certificateObjectLocalRulestack.js +45 -52
  8. package/dist/browser/operations/certificateObjectLocalRulestack.js.map +1 -1
  9. package/dist/browser/operations/firewallStatus.js +23 -40
  10. package/dist/browser/operations/firewallStatus.js.map +1 -1
  11. package/dist/browser/operations/firewalls.js +67 -91
  12. package/dist/browser/operations/firewalls.js.map +1 -1
  13. package/dist/browser/operations/fqdnListGlobalRulestack.js +45 -52
  14. package/dist/browser/operations/fqdnListGlobalRulestack.js.map +1 -1
  15. package/dist/browser/operations/fqdnListLocalRulestack.js +45 -52
  16. package/dist/browser/operations/fqdnListLocalRulestack.js.map +1 -1
  17. package/dist/browser/operations/globalRulestack.js +56 -58
  18. package/dist/browser/operations/globalRulestack.js.map +1 -1
  19. package/dist/browser/operations/localRules.js +45 -52
  20. package/dist/browser/operations/localRules.js.map +1 -1
  21. package/dist/browser/operations/localRulestacks.js +78 -97
  22. package/dist/browser/operations/localRulestacks.js.map +1 -1
  23. package/dist/browser/operations/operations.js +23 -40
  24. package/dist/browser/operations/operations.js.map +1 -1
  25. package/dist/browser/operations/postRules.js +45 -52
  26. package/dist/browser/operations/postRules.js.map +1 -1
  27. package/dist/browser/operations/preRules.js +45 -52
  28. package/dist/browser/operations/preRules.js.map +1 -1
  29. package/dist/browser/operations/prefixListGlobalRulestack.js +45 -52
  30. package/dist/browser/operations/prefixListGlobalRulestack.js.map +1 -1
  31. package/dist/browser/operations/prefixListLocalRulestack.js +45 -52
  32. package/dist/browser/operations/prefixListLocalRulestack.js.map +1 -1
  33. package/dist/browser/pagingHelper.js +2 -4
  34. package/dist/browser/pagingHelper.js.map +1 -1
  35. package/dist/browser/paloAltoNetworksCloudngfw.js +27 -5
  36. package/dist/browser/paloAltoNetworksCloudngfw.js.map +1 -1
  37. package/dist/commonjs/lroImpl.js +7 -3
  38. package/dist/commonjs/lroImpl.js.map +1 -1
  39. package/dist/commonjs/models/mappers.js +307 -146
  40. package/dist/commonjs/models/mappers.js.map +1 -1
  41. package/dist/commonjs/operations/certificateObjectGlobalRulestack.js +45 -51
  42. package/dist/commonjs/operations/certificateObjectGlobalRulestack.js.map +1 -1
  43. package/dist/commonjs/operations/certificateObjectLocalRulestack.js +45 -51
  44. package/dist/commonjs/operations/certificateObjectLocalRulestack.js.map +1 -1
  45. package/dist/commonjs/operations/firewallStatus.js +23 -39
  46. package/dist/commonjs/operations/firewallStatus.js.map +1 -1
  47. package/dist/commonjs/operations/firewalls.js +67 -90
  48. package/dist/commonjs/operations/firewalls.js.map +1 -1
  49. package/dist/commonjs/operations/fqdnListGlobalRulestack.js +45 -51
  50. package/dist/commonjs/operations/fqdnListGlobalRulestack.js.map +1 -1
  51. package/dist/commonjs/operations/fqdnListLocalRulestack.js +45 -51
  52. package/dist/commonjs/operations/fqdnListLocalRulestack.js.map +1 -1
  53. package/dist/commonjs/operations/globalRulestack.js +56 -57
  54. package/dist/commonjs/operations/globalRulestack.js.map +1 -1
  55. package/dist/commonjs/operations/localRules.js +45 -51
  56. package/dist/commonjs/operations/localRules.js.map +1 -1
  57. package/dist/commonjs/operations/localRulestacks.js +78 -96
  58. package/dist/commonjs/operations/localRulestacks.js.map +1 -1
  59. package/dist/commonjs/operations/operations.js +23 -39
  60. package/dist/commonjs/operations/operations.js.map +1 -1
  61. package/dist/commonjs/operations/postRules.js +45 -51
  62. package/dist/commonjs/operations/postRules.js.map +1 -1
  63. package/dist/commonjs/operations/preRules.js +45 -51
  64. package/dist/commonjs/operations/preRules.js.map +1 -1
  65. package/dist/commonjs/operations/prefixListGlobalRulestack.js +45 -51
  66. package/dist/commonjs/operations/prefixListGlobalRulestack.js.map +1 -1
  67. package/dist/commonjs/operations/prefixListLocalRulestack.js +45 -51
  68. package/dist/commonjs/operations/prefixListLocalRulestack.js.map +1 -1
  69. package/dist/commonjs/pagingHelper.js +2 -4
  70. package/dist/commonjs/pagingHelper.js.map +1 -1
  71. package/dist/commonjs/paloAltoNetworksCloudngfw.js +27 -5
  72. package/dist/commonjs/paloAltoNetworksCloudngfw.js.map +1 -1
  73. package/dist/commonjs/tsdoc-metadata.json +11 -11
  74. package/dist/esm/lroImpl.js +7 -3
  75. package/dist/esm/lroImpl.js.map +1 -1
  76. package/dist/esm/models/mappers.js +307 -146
  77. package/dist/esm/models/mappers.js.map +1 -1
  78. package/dist/esm/operations/certificateObjectGlobalRulestack.js +45 -52
  79. package/dist/esm/operations/certificateObjectGlobalRulestack.js.map +1 -1
  80. package/dist/esm/operations/certificateObjectLocalRulestack.js +45 -52
  81. package/dist/esm/operations/certificateObjectLocalRulestack.js.map +1 -1
  82. package/dist/esm/operations/firewallStatus.js +23 -40
  83. package/dist/esm/operations/firewallStatus.js.map +1 -1
  84. package/dist/esm/operations/firewalls.js +67 -91
  85. package/dist/esm/operations/firewalls.js.map +1 -1
  86. package/dist/esm/operations/fqdnListGlobalRulestack.js +45 -52
  87. package/dist/esm/operations/fqdnListGlobalRulestack.js.map +1 -1
  88. package/dist/esm/operations/fqdnListLocalRulestack.js +45 -52
  89. package/dist/esm/operations/fqdnListLocalRulestack.js.map +1 -1
  90. package/dist/esm/operations/globalRulestack.js +56 -58
  91. package/dist/esm/operations/globalRulestack.js.map +1 -1
  92. package/dist/esm/operations/localRules.js +45 -52
  93. package/dist/esm/operations/localRules.js.map +1 -1
  94. package/dist/esm/operations/localRulestacks.js +78 -97
  95. package/dist/esm/operations/localRulestacks.js.map +1 -1
  96. package/dist/esm/operations/operations.js +23 -40
  97. package/dist/esm/operations/operations.js.map +1 -1
  98. package/dist/esm/operations/postRules.js +45 -52
  99. package/dist/esm/operations/postRules.js.map +1 -1
  100. package/dist/esm/operations/preRules.js +45 -52
  101. package/dist/esm/operations/preRules.js.map +1 -1
  102. package/dist/esm/operations/prefixListGlobalRulestack.js +45 -52
  103. package/dist/esm/operations/prefixListGlobalRulestack.js.map +1 -1
  104. package/dist/esm/operations/prefixListLocalRulestack.js +45 -52
  105. package/dist/esm/operations/prefixListLocalRulestack.js.map +1 -1
  106. package/dist/esm/pagingHelper.js +2 -4
  107. package/dist/esm/pagingHelper.js.map +1 -1
  108. package/dist/esm/paloAltoNetworksCloudngfw.js +27 -5
  109. package/dist/esm/paloAltoNetworksCloudngfw.js.map +1 -1
  110. package/dist/react-native/lroImpl.js +7 -3
  111. package/dist/react-native/lroImpl.js.map +1 -1
  112. package/dist/react-native/models/mappers.js +307 -146
  113. package/dist/react-native/models/mappers.js.map +1 -1
  114. package/dist/react-native/operations/certificateObjectGlobalRulestack.js +45 -52
  115. package/dist/react-native/operations/certificateObjectGlobalRulestack.js.map +1 -1
  116. package/dist/react-native/operations/certificateObjectLocalRulestack.js +45 -52
  117. package/dist/react-native/operations/certificateObjectLocalRulestack.js.map +1 -1
  118. package/dist/react-native/operations/firewallStatus.js +23 -40
  119. package/dist/react-native/operations/firewallStatus.js.map +1 -1
  120. package/dist/react-native/operations/firewalls.js +67 -91
  121. package/dist/react-native/operations/firewalls.js.map +1 -1
  122. package/dist/react-native/operations/fqdnListGlobalRulestack.js +45 -52
  123. package/dist/react-native/operations/fqdnListGlobalRulestack.js.map +1 -1
  124. package/dist/react-native/operations/fqdnListLocalRulestack.js +45 -52
  125. package/dist/react-native/operations/fqdnListLocalRulestack.js.map +1 -1
  126. package/dist/react-native/operations/globalRulestack.js +56 -58
  127. package/dist/react-native/operations/globalRulestack.js.map +1 -1
  128. package/dist/react-native/operations/localRules.js +45 -52
  129. package/dist/react-native/operations/localRules.js.map +1 -1
  130. package/dist/react-native/operations/localRulestacks.js +78 -97
  131. package/dist/react-native/operations/localRulestacks.js.map +1 -1
  132. package/dist/react-native/operations/operations.js +23 -40
  133. package/dist/react-native/operations/operations.js.map +1 -1
  134. package/dist/react-native/operations/postRules.js +45 -52
  135. package/dist/react-native/operations/postRules.js.map +1 -1
  136. package/dist/react-native/operations/preRules.js +45 -52
  137. package/dist/react-native/operations/preRules.js.map +1 -1
  138. package/dist/react-native/operations/prefixListGlobalRulestack.js +45 -52
  139. package/dist/react-native/operations/prefixListGlobalRulestack.js.map +1 -1
  140. package/dist/react-native/operations/prefixListLocalRulestack.js +45 -52
  141. package/dist/react-native/operations/prefixListLocalRulestack.js.map +1 -1
  142. package/dist/react-native/pagingHelper.js +2 -4
  143. package/dist/react-native/pagingHelper.js.map +1 -1
  144. package/dist/react-native/paloAltoNetworksCloudngfw.js +27 -5
  145. package/dist/react-native/paloAltoNetworksCloudngfw.js.map +1 -1
  146. package/package.json +2 -2
  147. package/review/arm-paloaltonetworksngfw-node.api.md +2026 -2026
@@ -13,8 +13,10 @@ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
13
13
  const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline"));
14
14
  const index_js_1 = require("./operations/index.js");
15
15
  class PaloAltoNetworksCloudngfw extends coreClient.ServiceClient {
16
+ $host;
17
+ apiVersion;
18
+ subscriptionId;
16
19
  constructor(credentials, subscriptionIdOrOptions, options) {
17
- var _a, _b, _c;
18
20
  if (credentials === undefined) {
19
21
  throw new Error("'credentials' cannot be null");
20
22
  }
@@ -37,12 +39,17 @@ class PaloAltoNetworksCloudngfw extends coreClient.ServiceClient {
37
39
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
38
40
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
39
41
  : `${packageDetails}`;
40
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
42
+ const optionsWithDefaults = {
43
+ ...defaults,
44
+ ...options,
45
+ userAgentOptions: {
41
46
  userAgentPrefix
42
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
47
+ },
48
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
49
+ };
43
50
  super(optionsWithDefaults);
44
51
  let bearerTokenAuthenticationPolicyFound = false;
45
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
52
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
46
53
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
47
54
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
48
55
  coreRestPipeline.bearerTokenAuthenticationPolicyName);
@@ -56,7 +63,8 @@ class PaloAltoNetworksCloudngfw extends coreClient.ServiceClient {
56
63
  });
57
64
  this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
58
65
  credential: credentials,
59
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
66
+ scopes: optionsWithDefaults.credentialScopes ??
67
+ `${optionsWithDefaults.endpoint}/.default`,
60
68
  challengeCallbacks: {
61
69
  authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
62
70
  }
@@ -108,6 +116,20 @@ class PaloAltoNetworksCloudngfw extends coreClient.ServiceClient {
108
116
  };
109
117
  this.pipeline.addPolicy(apiVersionPolicy);
110
118
  }
119
+ globalRulestack;
120
+ certificateObjectGlobalRulestack;
121
+ fqdnListGlobalRulestack;
122
+ postRules;
123
+ prefixListGlobalRulestack;
124
+ preRules;
125
+ operations;
126
+ firewalls;
127
+ localRulestacks;
128
+ firewallStatus;
129
+ certificateObjectLocalRulestack;
130
+ fqdnListLocalRulestack;
131
+ localRules;
132
+ prefixListLocalRulestack;
111
133
  }
112
134
  exports.PaloAltoNetworksCloudngfw = PaloAltoNetworksCloudngfw;
113
135
  //# sourceMappingURL=paloAltoNetworksCloudngfw.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"paloAltoNetworksCloudngfw.js","sourceRoot":"","sources":["../../src/paloAltoNetworksCloudngfw.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAe+B;AAmB/B,MAAa,yBAA0B,SAAQ,UAAU,CAAC,aAAa;IAoBrE,YACE,WAAqC,EACrC,uBAA0E,EAC1E,OAAiD;;QAEjD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QAED,IAAI,cAAkC,CAAC;QAEvC,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YAChD,cAAc,GAAG,uBAAuB,CAAC;QAC3C,CAAC;aAAM,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YACvD,OAAO,GAAG,uBAAuB,CAAC;QACpC,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAA4C;YACxD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,yCAAyC,CAAC;QACjE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,QAAQ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G;YACvB,IAAI,EAAE,wBAAwB;YAC9B,KAAK,CAAC,WAAW,CACf,OAAwB,EACxB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAgBF;AAnKD,8DAmKC","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 GlobalRulestackImpl,\n CertificateObjectGlobalRulestackImpl,\n FqdnListGlobalRulestackImpl,\n PostRulesImpl,\n PrefixListGlobalRulestackImpl,\n PreRulesImpl,\n OperationsImpl,\n FirewallsImpl,\n LocalRulestacksImpl,\n FirewallStatusImpl,\n CertificateObjectLocalRulestackImpl,\n FqdnListLocalRulestackImpl,\n LocalRulesImpl,\n PrefixListLocalRulestackImpl\n} from \"./operations/index.js\";\nimport {\n GlobalRulestack,\n CertificateObjectGlobalRulestack,\n FqdnListGlobalRulestack,\n PostRules,\n PrefixListGlobalRulestack,\n PreRules,\n Operations,\n Firewalls,\n LocalRulestacks,\n FirewallStatus,\n CertificateObjectLocalRulestack,\n FqdnListLocalRulestack,\n LocalRules,\n PrefixListLocalRulestack\n} from \"./operationsInterfaces/index.js\";\nimport { PaloAltoNetworksCloudngfwOptionalParams } from \"./models/index.js\";\n\nexport class PaloAltoNetworksCloudngfw extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the PaloAltoNetworksCloudngfw class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: PaloAltoNetworksCloudngfwOptionalParams\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: PaloAltoNetworksCloudngfwOptionalParams\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: PaloAltoNetworksCloudngfwOptionalParams | string,\n options?: PaloAltoNetworksCloudngfwOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: PaloAltoNetworksCloudngfwOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-paloaltonetworksngfw/1.1.1`;\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 || \"2023-09-01\";\n this.globalRulestack = new GlobalRulestackImpl(this);\n this.certificateObjectGlobalRulestack = new CertificateObjectGlobalRulestackImpl(\n this\n );\n this.fqdnListGlobalRulestack = new FqdnListGlobalRulestackImpl(this);\n this.postRules = new PostRulesImpl(this);\n this.prefixListGlobalRulestack = new PrefixListGlobalRulestackImpl(this);\n this.preRules = new PreRulesImpl(this);\n this.operations = new OperationsImpl(this);\n this.firewalls = new FirewallsImpl(this);\n this.localRulestacks = new LocalRulestacksImpl(this);\n this.firewallStatus = new FirewallStatusImpl(this);\n this.certificateObjectLocalRulestack = new CertificateObjectLocalRulestackImpl(\n this\n );\n this.fqdnListLocalRulestack = new FqdnListLocalRulestackImpl(this);\n this.localRules = new LocalRulesImpl(this);\n this.prefixListLocalRulestack = new PrefixListLocalRulestackImpl(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 globalRulestack: GlobalRulestack;\n certificateObjectGlobalRulestack: CertificateObjectGlobalRulestack;\n fqdnListGlobalRulestack: FqdnListGlobalRulestack;\n postRules: PostRules;\n prefixListGlobalRulestack: PrefixListGlobalRulestack;\n preRules: PreRules;\n operations: Operations;\n firewalls: Firewalls;\n localRulestacks: LocalRulestacks;\n firewallStatus: FirewallStatus;\n certificateObjectLocalRulestack: CertificateObjectLocalRulestack;\n fqdnListLocalRulestack: FqdnListLocalRulestack;\n localRules: LocalRules;\n prefixListLocalRulestack: PrefixListLocalRulestack;\n}\n"]}
1
+ {"version":3,"file":"paloAltoNetworksCloudngfw.js","sourceRoot":"","sources":["../../src/paloAltoNetworksCloudngfw.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAe+B;AAmB/B,MAAa,yBAA0B,SAAQ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G,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,eAAe,CAAkB;IACjC,gCAAgC,CAAmC;IACnE,uBAAuB,CAA0B;IACjD,SAAS,CAAY;IACrB,yBAAyB,CAA4B;IACrD,QAAQ,CAAW;IACnB,UAAU,CAAa;IACvB,SAAS,CAAY;IACrB,eAAe,CAAkB;IACjC,cAAc,CAAiB;IAC/B,+BAA+B,CAAkC;IACjE,sBAAsB,CAAyB;IAC/C,UAAU,CAAa;IACvB,wBAAwB,CAA2B;CACpD;AAnKD,8DAmKC","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 GlobalRulestackImpl,\n CertificateObjectGlobalRulestackImpl,\n FqdnListGlobalRulestackImpl,\n PostRulesImpl,\n PrefixListGlobalRulestackImpl,\n PreRulesImpl,\n OperationsImpl,\n FirewallsImpl,\n LocalRulestacksImpl,\n FirewallStatusImpl,\n CertificateObjectLocalRulestackImpl,\n FqdnListLocalRulestackImpl,\n LocalRulesImpl,\n PrefixListLocalRulestackImpl\n} from \"./operations/index.js\";\nimport {\n GlobalRulestack,\n CertificateObjectGlobalRulestack,\n FqdnListGlobalRulestack,\n PostRules,\n PrefixListGlobalRulestack,\n PreRules,\n Operations,\n Firewalls,\n LocalRulestacks,\n FirewallStatus,\n CertificateObjectLocalRulestack,\n FqdnListLocalRulestack,\n LocalRules,\n PrefixListLocalRulestack\n} from \"./operationsInterfaces/index.js\";\nimport { PaloAltoNetworksCloudngfwOptionalParams } from \"./models/index.js\";\n\nexport class PaloAltoNetworksCloudngfw extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the PaloAltoNetworksCloudngfw class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: PaloAltoNetworksCloudngfwOptionalParams\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: PaloAltoNetworksCloudngfwOptionalParams\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: PaloAltoNetworksCloudngfwOptionalParams | string,\n options?: PaloAltoNetworksCloudngfwOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: PaloAltoNetworksCloudngfwOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-paloaltonetworksngfw/1.1.1`;\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 || \"2023-09-01\";\n this.globalRulestack = new GlobalRulestackImpl(this);\n this.certificateObjectGlobalRulestack = new CertificateObjectGlobalRulestackImpl(\n this\n );\n this.fqdnListGlobalRulestack = new FqdnListGlobalRulestackImpl(this);\n this.postRules = new PostRulesImpl(this);\n this.prefixListGlobalRulestack = new PrefixListGlobalRulestackImpl(this);\n this.preRules = new PreRulesImpl(this);\n this.operations = new OperationsImpl(this);\n this.firewalls = new FirewallsImpl(this);\n this.localRulestacks = new LocalRulestacksImpl(this);\n this.firewallStatus = new FirewallStatusImpl(this);\n this.certificateObjectLocalRulestack = new CertificateObjectLocalRulestackImpl(\n this\n );\n this.fqdnListLocalRulestack = new FqdnListLocalRulestackImpl(this);\n this.localRules = new LocalRulesImpl(this);\n this.prefixListLocalRulestack = new PrefixListLocalRulestackImpl(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 globalRulestack: GlobalRulestack;\n certificateObjectGlobalRulestack: CertificateObjectGlobalRulestack;\n fqdnListGlobalRulestack: FqdnListGlobalRulestack;\n postRules: PostRules;\n prefixListGlobalRulestack: PrefixListGlobalRulestack;\n preRules: PreRules;\n operations: Operations;\n firewalls: Firewalls;\n localRulestacks: LocalRulestacks;\n firewallStatus: FirewallStatus;\n certificateObjectLocalRulestack: CertificateObjectLocalRulestack;\n fqdnListLocalRulestack: FqdnListLocalRulestack;\n localRules: LocalRules;\n prefixListLocalRulestack: PrefixListLocalRulestack;\n}\n"]}
@@ -1,11 +1,11 @@
1
- // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
- // It should be published with your NPM package. It should not be tracked by Git.
3
- {
4
- "tsdocVersion": "0.12",
5
- "toolPackages": [
6
- {
7
- "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.52.8"
9
- }
10
- ]
11
- }
1
+ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
+ // It should be published with your NPM package. It should not be tracked by Git.
3
+ {
4
+ "tsdocVersion": "0.12",
5
+ "toolPackages": [
6
+ {
7
+ "packageName": "@microsoft/api-extractor",
8
+ "packageVersion": "7.52.9"
9
+ }
10
+ ]
11
+ }
@@ -1,4 +1,3 @@
1
- import { __rest } from "tslib";
2
1
  export function createLroSpec(inputs) {
3
2
  const { args, spec, sendOperationFn } = inputs;
4
3
  return {
@@ -6,8 +5,13 @@ export function createLroSpec(inputs) {
6
5
  requestPath: spec.path,
7
6
  sendInitialRequest: () => sendOperationFn(args, spec),
8
7
  sendPollRequest: (path, options) => {
9
- const { requestBody } = spec, restSpec = __rest(spec, ["requestBody"]);
10
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
8
+ const { requestBody, ...restSpec } = spec;
9
+ return sendOperationFn(args, {
10
+ ...restSpec,
11
+ httpMethod: "GET",
12
+ path,
13
+ abortSignal: options?.abortSignal
14
+ });
11
15
  }
12
16
  };
13
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";AAUA,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,KAAkB,IAAI,EAAjB,QAAQ,UAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,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 */\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike }\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal\n });\n }\n };\n}\n"]}
1
+ {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAUA,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,EAAE;gBAC3B,GAAG,QAAQ;gBACX,UAAU,EAAE,KAAK;gBACjB,IAAI;gBACJ,WAAW,EAAE,OAAO,EAAE,WAAW;aAClC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,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 */\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike }\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal\n });\n }\n };\n}\n"]}