@azure/arm-batch 10.0.1-alpha.20250718.1 → 10.0.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 (114) hide show
  1. package/dist/browser/batchManagementClient.js +23 -5
  2. package/dist/browser/batchManagementClient.js.map +1 -1
  3. package/dist/browser/lroImpl.js +7 -3
  4. package/dist/browser/lroImpl.js.map +1 -1
  5. package/dist/browser/models/mappers.js +218 -102
  6. package/dist/browser/models/mappers.js.map +1 -1
  7. package/dist/browser/operations/applicationOperations.js +23 -40
  8. package/dist/browser/operations/applicationOperations.js.map +1 -1
  9. package/dist/browser/operations/applicationPackageOperations.js +23 -40
  10. package/dist/browser/operations/applicationPackageOperations.js.map +1 -1
  11. package/dist/browser/operations/batchAccountOperations.js +111 -169
  12. package/dist/browser/operations/batchAccountOperations.js.map +1 -1
  13. package/dist/browser/operations/certificateOperations.js +34 -46
  14. package/dist/browser/operations/certificateOperations.js.map +1 -1
  15. package/dist/browser/operations/location.js +23 -40
  16. package/dist/browser/operations/location.js.map +1 -1
  17. package/dist/browser/operations/networkSecurityPerimeterOperations.js +34 -46
  18. package/dist/browser/operations/networkSecurityPerimeterOperations.js.map +1 -1
  19. package/dist/browser/operations/operations.js +23 -40
  20. package/dist/browser/operations/operations.js.map +1 -1
  21. package/dist/browser/operations/poolOperations.js +34 -46
  22. package/dist/browser/operations/poolOperations.js.map +1 -1
  23. package/dist/browser/operations/privateEndpointConnectionOperations.js +45 -52
  24. package/dist/browser/operations/privateEndpointConnectionOperations.js.map +1 -1
  25. package/dist/browser/operations/privateLinkResourceOperations.js +23 -40
  26. package/dist/browser/operations/privateLinkResourceOperations.js.map +1 -1
  27. package/dist/browser/pagingHelper.js +2 -4
  28. package/dist/browser/pagingHelper.js.map +1 -1
  29. package/dist/commonjs/batchManagementClient.js +23 -5
  30. package/dist/commonjs/batchManagementClient.js.map +1 -1
  31. package/dist/commonjs/lroImpl.js +7 -3
  32. package/dist/commonjs/lroImpl.js.map +1 -1
  33. package/dist/commonjs/models/mappers.js +218 -102
  34. package/dist/commonjs/models/mappers.js.map +1 -1
  35. package/dist/commonjs/operations/applicationOperations.js +23 -39
  36. package/dist/commonjs/operations/applicationOperations.js.map +1 -1
  37. package/dist/commonjs/operations/applicationPackageOperations.js +23 -39
  38. package/dist/commonjs/operations/applicationPackageOperations.js.map +1 -1
  39. package/dist/commonjs/operations/batchAccountOperations.js +111 -168
  40. package/dist/commonjs/operations/batchAccountOperations.js.map +1 -1
  41. package/dist/commonjs/operations/certificateOperations.js +34 -45
  42. package/dist/commonjs/operations/certificateOperations.js.map +1 -1
  43. package/dist/commonjs/operations/location.js +23 -39
  44. package/dist/commonjs/operations/location.js.map +1 -1
  45. package/dist/commonjs/operations/networkSecurityPerimeterOperations.js +34 -45
  46. package/dist/commonjs/operations/networkSecurityPerimeterOperations.js.map +1 -1
  47. package/dist/commonjs/operations/operations.js +23 -39
  48. package/dist/commonjs/operations/operations.js.map +1 -1
  49. package/dist/commonjs/operations/poolOperations.js +34 -45
  50. package/dist/commonjs/operations/poolOperations.js.map +1 -1
  51. package/dist/commonjs/operations/privateEndpointConnectionOperations.js +45 -51
  52. package/dist/commonjs/operations/privateEndpointConnectionOperations.js.map +1 -1
  53. package/dist/commonjs/operations/privateLinkResourceOperations.js +23 -39
  54. package/dist/commonjs/operations/privateLinkResourceOperations.js.map +1 -1
  55. package/dist/commonjs/pagingHelper.js +2 -4
  56. package/dist/commonjs/pagingHelper.js.map +1 -1
  57. package/dist/commonjs/tsdoc-metadata.json +1 -1
  58. package/dist/esm/batchManagementClient.js +23 -5
  59. package/dist/esm/batchManagementClient.js.map +1 -1
  60. package/dist/esm/lroImpl.js +7 -3
  61. package/dist/esm/lroImpl.js.map +1 -1
  62. package/dist/esm/models/mappers.js +218 -102
  63. package/dist/esm/models/mappers.js.map +1 -1
  64. package/dist/esm/operations/applicationOperations.js +23 -40
  65. package/dist/esm/operations/applicationOperations.js.map +1 -1
  66. package/dist/esm/operations/applicationPackageOperations.js +23 -40
  67. package/dist/esm/operations/applicationPackageOperations.js.map +1 -1
  68. package/dist/esm/operations/batchAccountOperations.js +111 -169
  69. package/dist/esm/operations/batchAccountOperations.js.map +1 -1
  70. package/dist/esm/operations/certificateOperations.js +34 -46
  71. package/dist/esm/operations/certificateOperations.js.map +1 -1
  72. package/dist/esm/operations/location.js +23 -40
  73. package/dist/esm/operations/location.js.map +1 -1
  74. package/dist/esm/operations/networkSecurityPerimeterOperations.js +34 -46
  75. package/dist/esm/operations/networkSecurityPerimeterOperations.js.map +1 -1
  76. package/dist/esm/operations/operations.js +23 -40
  77. package/dist/esm/operations/operations.js.map +1 -1
  78. package/dist/esm/operations/poolOperations.js +34 -46
  79. package/dist/esm/operations/poolOperations.js.map +1 -1
  80. package/dist/esm/operations/privateEndpointConnectionOperations.js +45 -52
  81. package/dist/esm/operations/privateEndpointConnectionOperations.js.map +1 -1
  82. package/dist/esm/operations/privateLinkResourceOperations.js +23 -40
  83. package/dist/esm/operations/privateLinkResourceOperations.js.map +1 -1
  84. package/dist/esm/pagingHelper.js +2 -4
  85. package/dist/esm/pagingHelper.js.map +1 -1
  86. package/dist/react-native/batchManagementClient.js +23 -5
  87. package/dist/react-native/batchManagementClient.js.map +1 -1
  88. package/dist/react-native/lroImpl.js +7 -3
  89. package/dist/react-native/lroImpl.js.map +1 -1
  90. package/dist/react-native/models/mappers.js +218 -102
  91. package/dist/react-native/models/mappers.js.map +1 -1
  92. package/dist/react-native/operations/applicationOperations.js +23 -40
  93. package/dist/react-native/operations/applicationOperations.js.map +1 -1
  94. package/dist/react-native/operations/applicationPackageOperations.js +23 -40
  95. package/dist/react-native/operations/applicationPackageOperations.js.map +1 -1
  96. package/dist/react-native/operations/batchAccountOperations.js +111 -169
  97. package/dist/react-native/operations/batchAccountOperations.js.map +1 -1
  98. package/dist/react-native/operations/certificateOperations.js +34 -46
  99. package/dist/react-native/operations/certificateOperations.js.map +1 -1
  100. package/dist/react-native/operations/location.js +23 -40
  101. package/dist/react-native/operations/location.js.map +1 -1
  102. package/dist/react-native/operations/networkSecurityPerimeterOperations.js +34 -46
  103. package/dist/react-native/operations/networkSecurityPerimeterOperations.js.map +1 -1
  104. package/dist/react-native/operations/operations.js +23 -40
  105. package/dist/react-native/operations/operations.js.map +1 -1
  106. package/dist/react-native/operations/poolOperations.js +34 -46
  107. package/dist/react-native/operations/poolOperations.js.map +1 -1
  108. package/dist/react-native/operations/privateEndpointConnectionOperations.js +45 -52
  109. package/dist/react-native/operations/privateEndpointConnectionOperations.js.map +1 -1
  110. package/dist/react-native/operations/privateLinkResourceOperations.js +23 -40
  111. package/dist/react-native/operations/privateLinkResourceOperations.js.map +1 -1
  112. package/dist/react-native/pagingHelper.js +2 -4
  113. package/dist/react-native/pagingHelper.js.map +1 -1
  114. package/package.json +2 -2
@@ -9,6 +9,9 @@ import * as coreClient from "@azure/core-client";
9
9
  import * as coreRestPipeline from "@azure/core-rest-pipeline";
10
10
  import { BatchAccountOperationsImpl, ApplicationPackageOperationsImpl, ApplicationOperationsImpl, LocationImpl, OperationsImpl, CertificateOperationsImpl, PrivateLinkResourceOperationsImpl, PrivateEndpointConnectionOperationsImpl, PoolOperationsImpl, NetworkSecurityPerimeterOperationsImpl, } from "./operations/index.js";
11
11
  export class BatchManagementClient extends coreClient.ServiceClient {
12
+ $host;
13
+ apiVersion;
14
+ subscriptionId;
12
15
  /**
13
16
  * Initializes a new instance of the BatchManagementClient class.
14
17
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -17,7 +20,6 @@ export class BatchManagementClient extends coreClient.ServiceClient {
17
20
  * @param options The parameter options
18
21
  */
19
22
  constructor(credentials, subscriptionId, options) {
20
- var _a, _b, _c;
21
23
  if (credentials === undefined) {
22
24
  throw new Error("'credentials' cannot be null");
23
25
  }
@@ -36,12 +38,17 @@ export class BatchManagementClient extends coreClient.ServiceClient {
36
38
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
37
39
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
38
40
  : `${packageDetails}`;
39
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
41
+ const optionsWithDefaults = {
42
+ ...defaults,
43
+ ...options,
44
+ userAgentOptions: {
40
45
  userAgentPrefix,
41
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
46
+ },
47
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
48
+ };
42
49
  super(optionsWithDefaults);
43
50
  let bearerTokenAuthenticationPolicyFound = false;
44
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
51
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
45
52
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
46
53
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
47
54
  coreRestPipeline.bearerTokenAuthenticationPolicyName);
@@ -55,7 +62,8 @@ export class BatchManagementClient extends coreClient.ServiceClient {
55
62
  });
56
63
  this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
57
64
  credential: credentials,
58
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
65
+ scopes: optionsWithDefaults.credentialScopes ??
66
+ `${optionsWithDefaults.endpoint}/.default`,
59
67
  challengeCallbacks: {
60
68
  authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
61
69
  },
@@ -105,5 +113,15 @@ export class BatchManagementClient extends coreClient.ServiceClient {
105
113
  };
106
114
  this.pipeline.addPolicy(apiVersionPolicy);
107
115
  }
116
+ batchAccountOperations;
117
+ applicationPackageOperations;
118
+ applicationOperations;
119
+ location;
120
+ operations;
121
+ certificateOperations;
122
+ privateLinkResourceOperations;
123
+ privateEndpointConnectionOperations;
124
+ poolOperations;
125
+ networkSecurityPerimeterOperations;
108
126
  }
109
127
  //# sourceMappingURL=batchManagementClient.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"batchManagementClient.js","sourceRoot":"","sources":["../../src/batchManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,0BAA0B,EAC1B,gCAAgC,EAChC,yBAAyB,EACzB,YAAY,EACZ,cAAc,EACd,yBAAyB,EACzB,iCAAiC,EACjC,uCAAuC,EACvC,kBAAkB,EAClB,sCAAsC,GACvC,MAAM,uBAAuB,CAAC;AAe/B,MAAM,OAAO,qBAAsB,SAAQ,UAAU,CAAC,aAAa;IAKjE;;;;;;OAMG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA6C;;QAE7C,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAAwC;YACpD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,2BAA2B,CAAC;QACnD,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,CAA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,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;CAYF","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 BatchAccountOperationsImpl,\n ApplicationPackageOperationsImpl,\n ApplicationOperationsImpl,\n LocationImpl,\n OperationsImpl,\n CertificateOperationsImpl,\n PrivateLinkResourceOperationsImpl,\n PrivateEndpointConnectionOperationsImpl,\n PoolOperationsImpl,\n NetworkSecurityPerimeterOperationsImpl,\n} from \"./operations/index.js\";\nimport {\n BatchAccountOperations,\n ApplicationPackageOperations,\n ApplicationOperations,\n Location,\n Operations,\n CertificateOperations,\n PrivateLinkResourceOperations,\n PrivateEndpointConnectionOperations,\n PoolOperations,\n NetworkSecurityPerimeterOperations,\n} from \"./operationsInterfaces/index.js\";\nimport { BatchManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class BatchManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the BatchManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.\n * 00000000-0000-0000-0000-000000000000)\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: BatchManagementClientOptionalParams,\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: BatchManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-batch/10.0.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[] =\n 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 || \"2024-07-01\";\n this.batchAccountOperations = new BatchAccountOperationsImpl(this);\n this.applicationPackageOperations = new ApplicationPackageOperationsImpl(\n this,\n );\n this.applicationOperations = new ApplicationOperationsImpl(this);\n this.location = new LocationImpl(this);\n this.operations = new OperationsImpl(this);\n this.certificateOperations = new CertificateOperationsImpl(this);\n this.privateLinkResourceOperations = new PrivateLinkResourceOperationsImpl(\n this,\n );\n this.privateEndpointConnectionOperations =\n new PrivateEndpointConnectionOperationsImpl(this);\n this.poolOperations = new PoolOperationsImpl(this);\n this.networkSecurityPerimeterOperations =\n new NetworkSecurityPerimeterOperationsImpl(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 batchAccountOperations: BatchAccountOperations;\n applicationPackageOperations: ApplicationPackageOperations;\n applicationOperations: ApplicationOperations;\n location: Location;\n operations: Operations;\n certificateOperations: CertificateOperations;\n privateLinkResourceOperations: PrivateLinkResourceOperations;\n privateEndpointConnectionOperations: PrivateEndpointConnectionOperations;\n poolOperations: PoolOperations;\n networkSecurityPerimeterOperations: NetworkSecurityPerimeterOperations;\n}\n"]}
1
+ {"version":3,"file":"batchManagementClient.js","sourceRoot":"","sources":["../../src/batchManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,0BAA0B,EAC1B,gCAAgC,EAChC,yBAAyB,EACzB,YAAY,EACZ,cAAc,EACd,yBAAyB,EACzB,iCAAiC,EACjC,uCAAuC,EACvC,kBAAkB,EAClB,sCAAsC,GACvC,MAAM,uBAAuB,CAAC;AAe/B,MAAM,OAAO,qBAAsB,SAAQ,UAAU,CAAC,aAAa;IACjE,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAS;IAEvB;;;;;;OAMG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA6C;QAE7C,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAAwC;YACpD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,2BAA2B,CAAC;QACnD,MAAM,eAAe,GACnB,OAA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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;IAED,sBAAsB,CAAyB;IAC/C,4BAA4B,CAA+B;IAC3D,qBAAqB,CAAwB;IAC7C,QAAQ,CAAW;IACnB,UAAU,CAAa;IACvB,qBAAqB,CAAwB;IAC7C,6BAA6B,CAAgC;IAC7D,mCAAmC,CAAsC;IACzE,cAAc,CAAiB;IAC/B,kCAAkC,CAAqC;CACxE","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 BatchAccountOperationsImpl,\n ApplicationPackageOperationsImpl,\n ApplicationOperationsImpl,\n LocationImpl,\n OperationsImpl,\n CertificateOperationsImpl,\n PrivateLinkResourceOperationsImpl,\n PrivateEndpointConnectionOperationsImpl,\n PoolOperationsImpl,\n NetworkSecurityPerimeterOperationsImpl,\n} from \"./operations/index.js\";\nimport {\n BatchAccountOperations,\n ApplicationPackageOperations,\n ApplicationOperations,\n Location,\n Operations,\n CertificateOperations,\n PrivateLinkResourceOperations,\n PrivateEndpointConnectionOperations,\n PoolOperations,\n NetworkSecurityPerimeterOperations,\n} from \"./operationsInterfaces/index.js\";\nimport { BatchManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class BatchManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the BatchManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.\n * 00000000-0000-0000-0000-000000000000)\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: BatchManagementClientOptionalParams,\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: BatchManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-batch/10.0.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[] =\n 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 || \"2024-07-01\";\n this.batchAccountOperations = new BatchAccountOperationsImpl(this);\n this.applicationPackageOperations = new ApplicationPackageOperationsImpl(\n this,\n );\n this.applicationOperations = new ApplicationOperationsImpl(this);\n this.location = new LocationImpl(this);\n this.operations = new OperationsImpl(this);\n this.certificateOperations = new CertificateOperationsImpl(this);\n this.privateLinkResourceOperations = new PrivateLinkResourceOperationsImpl(\n this,\n );\n this.privateEndpointConnectionOperations =\n new PrivateEndpointConnectionOperationsImpl(this);\n this.poolOperations = new PoolOperationsImpl(this);\n this.networkSecurityPerimeterOperations =\n new NetworkSecurityPerimeterOperationsImpl(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 batchAccountOperations: BatchAccountOperations;\n applicationPackageOperations: ApplicationPackageOperations;\n applicationOperations: ApplicationOperations;\n location: Location;\n operations: Operations;\n certificateOperations: CertificateOperations;\n privateLinkResourceOperations: PrivateLinkResourceOperations;\n privateEndpointConnectionOperations: PrivateEndpointConnectionOperations;\n poolOperations: PoolOperations;\n networkSecurityPerimeterOperations: NetworkSecurityPerimeterOperations;\n}\n"]}
@@ -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"]}