@azure/arm-sphere 1.0.1-alpha.20250718.1 → 1.0.1-alpha.20250721.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 (99) hide show
  1. package/dist/browser/azureSphereManagementClient.js +21 -5
  2. package/dist/browser/azureSphereManagementClient.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 +54 -21
  6. package/dist/browser/models/mappers.js.map +1 -1
  7. package/dist/browser/operations/catalogs.js +166 -253
  8. package/dist/browser/operations/catalogs.js.map +1 -1
  9. package/dist/browser/operations/certificates.js +23 -40
  10. package/dist/browser/operations/certificates.js.map +1 -1
  11. package/dist/browser/operations/deployments.js +45 -52
  12. package/dist/browser/operations/deployments.js.map +1 -1
  13. package/dist/browser/operations/deviceGroups.js +67 -64
  14. package/dist/browser/operations/deviceGroups.js.map +1 -1
  15. package/dist/browser/operations/devices.js +67 -64
  16. package/dist/browser/operations/devices.js.map +1 -1
  17. package/dist/browser/operations/images.js +45 -52
  18. package/dist/browser/operations/images.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/products.js +78 -97
  22. package/dist/browser/operations/products.js.map +1 -1
  23. package/dist/browser/pagingHelper.js +2 -4
  24. package/dist/browser/pagingHelper.js.map +1 -1
  25. package/dist/commonjs/azureSphereManagementClient.js +21 -5
  26. package/dist/commonjs/azureSphereManagementClient.js.map +1 -1
  27. package/dist/commonjs/lroImpl.js +7 -3
  28. package/dist/commonjs/lroImpl.js.map +1 -1
  29. package/dist/commonjs/models/mappers.js +54 -21
  30. package/dist/commonjs/models/mappers.js.map +1 -1
  31. package/dist/commonjs/operations/catalogs.js +166 -252
  32. package/dist/commonjs/operations/catalogs.js.map +1 -1
  33. package/dist/commonjs/operations/certificates.js +23 -39
  34. package/dist/commonjs/operations/certificates.js.map +1 -1
  35. package/dist/commonjs/operations/deployments.js +45 -51
  36. package/dist/commonjs/operations/deployments.js.map +1 -1
  37. package/dist/commonjs/operations/deviceGroups.js +67 -63
  38. package/dist/commonjs/operations/deviceGroups.js.map +1 -1
  39. package/dist/commonjs/operations/devices.js +67 -63
  40. package/dist/commonjs/operations/devices.js.map +1 -1
  41. package/dist/commonjs/operations/images.js +45 -51
  42. package/dist/commonjs/operations/images.js.map +1 -1
  43. package/dist/commonjs/operations/operations.js +23 -39
  44. package/dist/commonjs/operations/operations.js.map +1 -1
  45. package/dist/commonjs/operations/products.js +78 -96
  46. package/dist/commonjs/operations/products.js.map +1 -1
  47. package/dist/commonjs/pagingHelper.js +2 -4
  48. package/dist/commonjs/pagingHelper.js.map +1 -1
  49. package/dist/commonjs/tsdoc-metadata.json +11 -11
  50. package/dist/esm/azureSphereManagementClient.js +21 -5
  51. package/dist/esm/azureSphereManagementClient.js.map +1 -1
  52. package/dist/esm/lroImpl.js +7 -3
  53. package/dist/esm/lroImpl.js.map +1 -1
  54. package/dist/esm/models/mappers.js +54 -21
  55. package/dist/esm/models/mappers.js.map +1 -1
  56. package/dist/esm/operations/catalogs.js +166 -253
  57. package/dist/esm/operations/catalogs.js.map +1 -1
  58. package/dist/esm/operations/certificates.js +23 -40
  59. package/dist/esm/operations/certificates.js.map +1 -1
  60. package/dist/esm/operations/deployments.js +45 -52
  61. package/dist/esm/operations/deployments.js.map +1 -1
  62. package/dist/esm/operations/deviceGroups.js +67 -64
  63. package/dist/esm/operations/deviceGroups.js.map +1 -1
  64. package/dist/esm/operations/devices.js +67 -64
  65. package/dist/esm/operations/devices.js.map +1 -1
  66. package/dist/esm/operations/images.js +45 -52
  67. package/dist/esm/operations/images.js.map +1 -1
  68. package/dist/esm/operations/operations.js +23 -40
  69. package/dist/esm/operations/operations.js.map +1 -1
  70. package/dist/esm/operations/products.js +78 -97
  71. package/dist/esm/operations/products.js.map +1 -1
  72. package/dist/esm/pagingHelper.js +2 -4
  73. package/dist/esm/pagingHelper.js.map +1 -1
  74. package/dist/react-native/azureSphereManagementClient.js +21 -5
  75. package/dist/react-native/azureSphereManagementClient.js.map +1 -1
  76. package/dist/react-native/lroImpl.js +7 -3
  77. package/dist/react-native/lroImpl.js.map +1 -1
  78. package/dist/react-native/models/mappers.js +54 -21
  79. package/dist/react-native/models/mappers.js.map +1 -1
  80. package/dist/react-native/operations/catalogs.js +166 -253
  81. package/dist/react-native/operations/catalogs.js.map +1 -1
  82. package/dist/react-native/operations/certificates.js +23 -40
  83. package/dist/react-native/operations/certificates.js.map +1 -1
  84. package/dist/react-native/operations/deployments.js +45 -52
  85. package/dist/react-native/operations/deployments.js.map +1 -1
  86. package/dist/react-native/operations/deviceGroups.js +67 -64
  87. package/dist/react-native/operations/deviceGroups.js.map +1 -1
  88. package/dist/react-native/operations/devices.js +67 -64
  89. package/dist/react-native/operations/devices.js.map +1 -1
  90. package/dist/react-native/operations/images.js +45 -52
  91. package/dist/react-native/operations/images.js.map +1 -1
  92. package/dist/react-native/operations/operations.js +23 -40
  93. package/dist/react-native/operations/operations.js.map +1 -1
  94. package/dist/react-native/operations/products.js +78 -97
  95. package/dist/react-native/operations/products.js.map +1 -1
  96. package/dist/react-native/pagingHelper.js +2 -4
  97. package/dist/react-native/pagingHelper.js.map +1 -1
  98. package/package.json +2 -2
  99. package/review/arm-sphere-node.api.md +1163 -1163
@@ -9,6 +9,9 @@ import * as coreClient from "@azure/core-client";
9
9
  import * as coreRestPipeline from "@azure/core-rest-pipeline";
10
10
  import { OperationsImpl, CatalogsImpl, CertificatesImpl, ImagesImpl, ProductsImpl, DeviceGroupsImpl, DeploymentsImpl, DevicesImpl, } from "./operations/index.js";
11
11
  export class AzureSphereManagementClient extends coreClient.ServiceClient {
12
+ $host;
13
+ apiVersion;
14
+ subscriptionId;
12
15
  /**
13
16
  * Initializes a new instance of the AzureSphereManagementClient class.
14
17
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -16,7 +19,6 @@ export class AzureSphereManagementClient extends coreClient.ServiceClient {
16
19
  * @param options The parameter options
17
20
  */
18
21
  constructor(credentials, subscriptionId, options) {
19
- var _a, _b, _c;
20
22
  if (credentials === undefined) {
21
23
  throw new Error("'credentials' cannot be null");
22
24
  }
@@ -35,12 +37,17 @@ export class AzureSphereManagementClient extends coreClient.ServiceClient {
35
37
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
36
38
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
37
39
  : `${packageDetails}`;
38
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
40
+ const optionsWithDefaults = {
41
+ ...defaults,
42
+ ...options,
43
+ userAgentOptions: {
39
44
  userAgentPrefix,
40
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
45
+ },
46
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
47
+ };
41
48
  super(optionsWithDefaults);
42
49
  let bearerTokenAuthenticationPolicyFound = false;
43
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
50
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
44
51
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
45
52
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
46
53
  coreRestPipeline.bearerTokenAuthenticationPolicyName);
@@ -54,7 +61,8 @@ export class AzureSphereManagementClient extends coreClient.ServiceClient {
54
61
  });
55
62
  this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
56
63
  credential: credentials,
57
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
64
+ scopes: optionsWithDefaults.credentialScopes ??
65
+ `${optionsWithDefaults.endpoint}/.default`,
58
66
  challengeCallbacks: {
59
67
  authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
60
68
  },
@@ -100,5 +108,13 @@ export class AzureSphereManagementClient extends coreClient.ServiceClient {
100
108
  };
101
109
  this.pipeline.addPolicy(apiVersionPolicy);
102
110
  }
111
+ operations;
112
+ catalogs;
113
+ certificates;
114
+ images;
115
+ products;
116
+ deviceGroups;
117
+ deployments;
118
+ devices;
103
119
  }
104
120
  //# sourceMappingURL=azureSphereManagementClient.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"azureSphereManagementClient.js","sourceRoot":"","sources":["../../src/azureSphereManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,WAAW,GACZ,MAAM,uBAAuB,CAAC;AAa/B,MAAM,OAAO,2BAA4B,SAAQ,UAAU,CAAC,aAAa;IAKvE;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAmD;;QAEnD,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,GAA8C;YAC1D,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,2BAA2B,CAAC;QACnD,MAAM,eAAe,GACnB,OAAO,CAAC,gBA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AAK,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;CAUF","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 OperationsImpl,\n CatalogsImpl,\n CertificatesImpl,\n ImagesImpl,\n ProductsImpl,\n DeviceGroupsImpl,\n DeploymentsImpl,\n DevicesImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n Catalogs,\n Certificates,\n Images,\n Products,\n DeviceGroups,\n Deployments,\n Devices,\n} from \"./operationsInterfaces/index.js\";\nimport { AzureSphereManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class AzureSphereManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the AzureSphereManagementClient 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?: AzureSphereManagementClientOptionalParams,\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: AzureSphereManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-sphere/1.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-04-01\";\n this.operations = new OperationsImpl(this);\n this.catalogs = new CatalogsImpl(this);\n this.certificates = new CertificatesImpl(this);\n this.images = new ImagesImpl(this);\n this.products = new ProductsImpl(this);\n this.deviceGroups = new DeviceGroupsImpl(this);\n this.deployments = new DeploymentsImpl(this);\n this.devices = new DevicesImpl(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 operations: Operations;\n catalogs: Catalogs;\n certificates: Certificates;\n images: Images;\n products: Products;\n deviceGroups: DeviceGroups;\n deployments: Deployments;\n devices: Devices;\n}\n"]}
1
+ {"version":3,"file":"azureSphereManagementClient.js","sourceRoot":"","sources":["../../src/azureSphereManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,gB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C,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,UAAU,CAAa;IACvB,QAAQ,CAAW;IACnB,YAAY,CAAe;IAC3B,MAAM,CAAS;IACf,QAAQ,CAAW;IACnB,YAAY,CAAe;IAC3B,WAAW,CAAc;IACzB,OAAO,CAAU;CAClB","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 OperationsImpl,\n CatalogsImpl,\n CertificatesImpl,\n ImagesImpl,\n ProductsImpl,\n DeviceGroupsImpl,\n DeploymentsImpl,\n DevicesImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n Catalogs,\n Certificates,\n Images,\n Products,\n DeviceGroups,\n Deployments,\n Devices,\n} from \"./operationsInterfaces/index.js\";\nimport { AzureSphereManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class AzureSphereManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the AzureSphereManagementClient 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?: AzureSphereManagementClientOptionalParams,\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: AzureSphereManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-sphere/1.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-04-01\";\n this.operations = new OperationsImpl(this);\n this.catalogs = new CatalogsImpl(this);\n this.certificates = new CertificatesImpl(this);\n this.images = new ImagesImpl(this);\n this.products = new ProductsImpl(this);\n this.deviceGroups = new DeviceGroupsImpl(this);\n this.deployments = new DeploymentsImpl(this);\n this.devices = new DevicesImpl(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 operations: Operations;\n catalogs: Catalogs;\n certificates: Certificates;\n images: Images;\n products: Products;\n deviceGroups: DeviceGroups;\n deployments: Deployments;\n devices: Devices;\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"]}
@@ -1133,138 +1133,171 @@ export const TrackedResource = {
1133
1133
  type: {
1134
1134
  name: "Composite",
1135
1135
  className: "TrackedResource",
1136
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
1136
+ modelProperties: {
1137
+ ...Resource.type.modelProperties,
1138
+ tags: {
1137
1139
  serializedName: "tags",
1138
1140
  type: {
1139
1141
  name: "Dictionary",
1140
1142
  value: { type: { name: "String" } },
1141
1143
  },
1142
- }, location: {
1144
+ },
1145
+ location: {
1143
1146
  serializedName: "location",
1144
1147
  required: true,
1145
1148
  type: {
1146
1149
  name: "String",
1147
1150
  },
1148
- } }),
1151
+ },
1152
+ },
1149
1153
  },
1150
1154
  };
1151
1155
  export const ProxyResource = {
1152
1156
  type: {
1153
1157
  name: "Composite",
1154
1158
  className: "ProxyResource",
1155
- modelProperties: Object.assign({}, Resource.type.modelProperties),
1159
+ modelProperties: {
1160
+ ...Resource.type.modelProperties,
1161
+ },
1156
1162
  },
1157
1163
  };
1158
1164
  export const ProofOfPossessionNonceResponse = {
1159
1165
  type: {
1160
1166
  name: "Composite",
1161
1167
  className: "ProofOfPossessionNonceResponse",
1162
- modelProperties: Object.assign({}, CertificateProperties.type.modelProperties),
1168
+ modelProperties: {
1169
+ ...CertificateProperties.type.modelProperties,
1170
+ },
1163
1171
  },
1164
1172
  };
1165
1173
  export const CountDevicesResponse = {
1166
1174
  type: {
1167
1175
  name: "Composite",
1168
1176
  className: "CountDevicesResponse",
1169
- modelProperties: Object.assign({}, CountElementsResponse.type.modelProperties),
1177
+ modelProperties: {
1178
+ ...CountElementsResponse.type.modelProperties,
1179
+ },
1170
1180
  },
1171
1181
  };
1172
1182
  export const CountDeviceResponse = {
1173
1183
  type: {
1174
1184
  name: "Composite",
1175
1185
  className: "CountDeviceResponse",
1176
- modelProperties: Object.assign({}, CountElementsResponse.type.modelProperties),
1186
+ modelProperties: {
1187
+ ...CountElementsResponse.type.modelProperties,
1188
+ },
1177
1189
  },
1178
1190
  };
1179
1191
  export const Catalog = {
1180
1192
  type: {
1181
1193
  name: "Composite",
1182
1194
  className: "Catalog",
1183
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { properties: {
1195
+ modelProperties: {
1196
+ ...TrackedResource.type.modelProperties,
1197
+ properties: {
1184
1198
  serializedName: "properties",
1185
1199
  type: {
1186
1200
  name: "Composite",
1187
1201
  className: "CatalogProperties",
1188
1202
  },
1189
- } }),
1203
+ },
1204
+ },
1190
1205
  },
1191
1206
  };
1192
1207
  export const Certificate = {
1193
1208
  type: {
1194
1209
  name: "Composite",
1195
1210
  className: "Certificate",
1196
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
1211
+ modelProperties: {
1212
+ ...ProxyResource.type.modelProperties,
1213
+ properties: {
1197
1214
  serializedName: "properties",
1198
1215
  type: {
1199
1216
  name: "Composite",
1200
1217
  className: "CertificateProperties",
1201
1218
  },
1202
- } }),
1219
+ },
1220
+ },
1203
1221
  },
1204
1222
  };
1205
1223
  export const Image = {
1206
1224
  type: {
1207
1225
  name: "Composite",
1208
1226
  className: "Image",
1209
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
1227
+ modelProperties: {
1228
+ ...ProxyResource.type.modelProperties,
1229
+ properties: {
1210
1230
  serializedName: "properties",
1211
1231
  type: {
1212
1232
  name: "Composite",
1213
1233
  className: "ImageProperties",
1214
1234
  },
1215
- } }),
1235
+ },
1236
+ },
1216
1237
  },
1217
1238
  };
1218
1239
  export const Deployment = {
1219
1240
  type: {
1220
1241
  name: "Composite",
1221
1242
  className: "Deployment",
1222
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
1243
+ modelProperties: {
1244
+ ...ProxyResource.type.modelProperties,
1245
+ properties: {
1223
1246
  serializedName: "properties",
1224
1247
  type: {
1225
1248
  name: "Composite",
1226
1249
  className: "DeploymentProperties",
1227
1250
  },
1228
- } }),
1251
+ },
1252
+ },
1229
1253
  },
1230
1254
  };
1231
1255
  export const DeviceGroup = {
1232
1256
  type: {
1233
1257
  name: "Composite",
1234
1258
  className: "DeviceGroup",
1235
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
1259
+ modelProperties: {
1260
+ ...ProxyResource.type.modelProperties,
1261
+ properties: {
1236
1262
  serializedName: "properties",
1237
1263
  type: {
1238
1264
  name: "Composite",
1239
1265
  className: "DeviceGroupProperties",
1240
1266
  },
1241
- } }),
1267
+ },
1268
+ },
1242
1269
  },
1243
1270
  };
1244
1271
  export const Device = {
1245
1272
  type: {
1246
1273
  name: "Composite",
1247
1274
  className: "Device",
1248
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
1275
+ modelProperties: {
1276
+ ...ProxyResource.type.modelProperties,
1277
+ properties: {
1249
1278
  serializedName: "properties",
1250
1279
  type: {
1251
1280
  name: "Composite",
1252
1281
  className: "DeviceProperties",
1253
1282
  },
1254
- } }),
1283
+ },
1284
+ },
1255
1285
  },
1256
1286
  };
1257
1287
  export const Product = {
1258
1288
  type: {
1259
1289
  name: "Composite",
1260
1290
  className: "Product",
1261
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
1291
+ modelProperties: {
1292
+ ...ProxyResource.type.modelProperties,
1293
+ properties: {
1262
1294
  serializedName: "properties",
1263
1295
  type: {
1264
1296
  name: "Composite",
1265
1297
  className: "ProductProperties",
1266
1298
  },
1267
- } }),
1299
+ },
1300
+ },
1268
1301
  },
1269
1302
  };
1270
1303
  export const CatalogsCreateOrUpdateHeaders = {