@azure/arm-azurestack 3.0.0-alpha.20250718.1 → 3.0.0-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 (75) hide show
  1. package/dist/browser/azureStackManagementClient.js +19 -5
  2. package/dist/browser/azureStackManagementClient.js.map +1 -1
  3. package/dist/browser/models/mappers.js +83 -38
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/operations/cloudManifestFile.js +1 -0
  6. package/dist/browser/operations/cloudManifestFile.js.map +1 -1
  7. package/dist/browser/operations/customerSubscriptions.js +23 -40
  8. package/dist/browser/operations/customerSubscriptions.js.map +1 -1
  9. package/dist/browser/operations/linkedSubscriptions.js +45 -79
  10. package/dist/browser/operations/linkedSubscriptions.js.map +1 -1
  11. package/dist/browser/operations/operations.js +23 -40
  12. package/dist/browser/operations/operations.js.map +1 -1
  13. package/dist/browser/operations/products.js +23 -40
  14. package/dist/browser/operations/products.js.map +1 -1
  15. package/dist/browser/operations/registrations.js +45 -79
  16. package/dist/browser/operations/registrations.js.map +1 -1
  17. package/dist/browser/pagingHelper.js +2 -4
  18. package/dist/browser/pagingHelper.js.map +1 -1
  19. package/dist/commonjs/azureStackManagementClient.js +19 -5
  20. package/dist/commonjs/azureStackManagementClient.js.map +1 -1
  21. package/dist/commonjs/models/mappers.js +83 -38
  22. package/dist/commonjs/models/mappers.js.map +1 -1
  23. package/dist/commonjs/operations/cloudManifestFile.js +1 -0
  24. package/dist/commonjs/operations/cloudManifestFile.js.map +1 -1
  25. package/dist/commonjs/operations/customerSubscriptions.js +23 -39
  26. package/dist/commonjs/operations/customerSubscriptions.js.map +1 -1
  27. package/dist/commonjs/operations/linkedSubscriptions.js +45 -78
  28. package/dist/commonjs/operations/linkedSubscriptions.js.map +1 -1
  29. package/dist/commonjs/operations/operations.js +23 -39
  30. package/dist/commonjs/operations/operations.js.map +1 -1
  31. package/dist/commonjs/operations/products.js +23 -39
  32. package/dist/commonjs/operations/products.js.map +1 -1
  33. package/dist/commonjs/operations/registrations.js +45 -78
  34. package/dist/commonjs/operations/registrations.js.map +1 -1
  35. package/dist/commonjs/pagingHelper.js +2 -4
  36. package/dist/commonjs/pagingHelper.js.map +1 -1
  37. package/dist/commonjs/tsdoc-metadata.json +11 -11
  38. package/dist/esm/azureStackManagementClient.js +19 -5
  39. package/dist/esm/azureStackManagementClient.js.map +1 -1
  40. package/dist/esm/models/mappers.js +83 -38
  41. package/dist/esm/models/mappers.js.map +1 -1
  42. package/dist/esm/operations/cloudManifestFile.js +1 -0
  43. package/dist/esm/operations/cloudManifestFile.js.map +1 -1
  44. package/dist/esm/operations/customerSubscriptions.js +23 -40
  45. package/dist/esm/operations/customerSubscriptions.js.map +1 -1
  46. package/dist/esm/operations/linkedSubscriptions.js +45 -79
  47. package/dist/esm/operations/linkedSubscriptions.js.map +1 -1
  48. package/dist/esm/operations/operations.js +23 -40
  49. package/dist/esm/operations/operations.js.map +1 -1
  50. package/dist/esm/operations/products.js +23 -40
  51. package/dist/esm/operations/products.js.map +1 -1
  52. package/dist/esm/operations/registrations.js +45 -79
  53. package/dist/esm/operations/registrations.js.map +1 -1
  54. package/dist/esm/pagingHelper.js +2 -4
  55. package/dist/esm/pagingHelper.js.map +1 -1
  56. package/dist/react-native/azureStackManagementClient.js +19 -5
  57. package/dist/react-native/azureStackManagementClient.js.map +1 -1
  58. package/dist/react-native/models/mappers.js +83 -38
  59. package/dist/react-native/models/mappers.js.map +1 -1
  60. package/dist/react-native/operations/cloudManifestFile.js +1 -0
  61. package/dist/react-native/operations/cloudManifestFile.js.map +1 -1
  62. package/dist/react-native/operations/customerSubscriptions.js +23 -40
  63. package/dist/react-native/operations/customerSubscriptions.js.map +1 -1
  64. package/dist/react-native/operations/linkedSubscriptions.js +45 -79
  65. package/dist/react-native/operations/linkedSubscriptions.js.map +1 -1
  66. package/dist/react-native/operations/operations.js +23 -40
  67. package/dist/react-native/operations/operations.js.map +1 -1
  68. package/dist/react-native/operations/products.js +23 -40
  69. package/dist/react-native/operations/products.js.map +1 -1
  70. package/dist/react-native/operations/registrations.js +45 -79
  71. package/dist/react-native/operations/registrations.js.map +1 -1
  72. package/dist/react-native/pagingHelper.js +2 -4
  73. package/dist/react-native/pagingHelper.js.map +1 -1
  74. package/package.json +2 -2
  75. package/review/arm-azurestack-node.api.md +675 -675
@@ -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, CloudManifestFileImpl, CustomerSubscriptionsImpl, ProductsImpl, RegistrationsImpl, LinkedSubscriptionsImpl } from "./operations/index.js";
11
11
  export class AzureStackManagementClient extends coreClient.ServiceClient {
12
+ $host;
13
+ apiVersion;
14
+ subscriptionId;
12
15
  /**
13
16
  * Initializes a new instance of the AzureStackManagementClient class.
14
17
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -17,7 +20,6 @@ export class AzureStackManagementClient 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 AzureStackManagementClient 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 AzureStackManagementClient 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
  }
@@ -99,5 +107,11 @@ export class AzureStackManagementClient extends coreClient.ServiceClient {
99
107
  };
100
108
  this.pipeline.addPolicy(apiVersionPolicy);
101
109
  }
110
+ operations;
111
+ cloudManifestFile;
112
+ customerSubscriptions;
113
+ products;
114
+ registrations;
115
+ linkedSubscriptions;
102
116
  }
103
117
  //# sourceMappingURL=azureStackManagementClient.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"azureStackManagementClient.js","sourceRoot":"","sources":["../../src/azureStackManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,yBAAyB,EACzB,YAAY,EACZ,iBAAiB,EACjB,uBAAuB,EACxB,MAAM,uBAAuB,CAAC;AAW/B,MAAM,OAAO,0B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;QACjD,IAAI,CAAC,mBAAmB,GAAG,IAAI,uBAAuB,CAAC,IAAI,CAAC,CAAC;QAC7D,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;IAED,8GAA8G;IACtG,yBAAyB,CAAC,UAAmB;QACnD,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO;QACT,CAAC;QACD,MAAM,gBAAgB,GAAG;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;CAQF","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 CloudManifestFileImpl,\n CustomerSubscriptionsImpl,\n ProductsImpl,\n RegistrationsImpl,\n LinkedSubscriptionsImpl\n} from \"./operations/index.js\";\nimport {\n Operations,\n CloudManifestFile,\n CustomerSubscriptions,\n Products,\n Registrations,\n LinkedSubscriptions\n} from \"./operationsInterfaces/index.js\";\nimport { AzureStackManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class AzureStackManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the AzureStackManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Subscription credentials that uniquely identify Microsoft Azure subscription.\n * The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: AzureStackManagementClientOptionalParams\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: AzureStackManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-azurestack/3.0.0-beta.6`;\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 || \"2020-06-01-preview\";\n this.operations = new OperationsImpl(this);\n this.cloudManifestFile = new CloudManifestFileImpl(this);\n this.customerSubscriptions = new CustomerSubscriptionsImpl(this);\n this.products = new ProductsImpl(this);\n this.registrations = new RegistrationsImpl(this);\n this.linkedSubscriptions = new LinkedSubscriptionsImpl(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 cloudManifestFile: CloudManifestFile;\n customerSubscriptions: CustomerSubscriptions;\n products: Products;\n registrations: Registrations;\n linkedSubscriptions: LinkedSubscriptions;\n}\n"]}
1
+ {"version":3,"file":"azureStackManagementClient.js","sourceRoot":"","sources":["../../src/azureStackManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,yBAAyB,EACzB,YAAY,EACZ,iBAAiB,EACjB,uBAAuB,EACxB,MAAM,uBAAuB,CAAC;AAW/B,MAAM,OAAO,0BAA2B,SAAQ,UAAU,CAAC,aAAa;IACtE,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAS;IAEvB;;;;;;OAMG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAkD;QAElD,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,GAA6C;YACzD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAA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ACrC,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,UAAU,CAAa;IACvB,iBAAiB,CAAoB;IACrC,qBAAqB,CAAwB;IAC7C,QAAQ,CAAW;IACnB,aAAa,CAAgB;IAC7B,mBAAmB,CAAsB;CAC1C","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 CloudManifestFileImpl,\n CustomerSubscriptionsImpl,\n ProductsImpl,\n RegistrationsImpl,\n LinkedSubscriptionsImpl\n} from \"./operations/index.js\";\nimport {\n Operations,\n CloudManifestFile,\n CustomerSubscriptions,\n Products,\n Registrations,\n LinkedSubscriptions\n} from \"./operationsInterfaces/index.js\";\nimport { AzureStackManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class AzureStackManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the AzureStackManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Subscription credentials that uniquely identify Microsoft Azure subscription.\n * The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: AzureStackManagementClientOptionalParams\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: AzureStackManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-azurestack/3.0.0-beta.6`;\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 || \"2020-06-01-preview\";\n this.operations = new OperationsImpl(this);\n this.cloudManifestFile = new CloudManifestFileImpl(this);\n this.customerSubscriptions = new CustomerSubscriptionsImpl(this);\n this.products = new ProductsImpl(this);\n this.registrations = new RegistrationsImpl(this);\n this.linkedSubscriptions = new LinkedSubscriptionsImpl(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 cloudManifestFile: CloudManifestFile;\n customerSubscriptions: CustomerSubscriptions;\n products: Products;\n registrations: Registrations;\n linkedSubscriptions: LinkedSubscriptions;\n}\n"]}
@@ -988,100 +988,121 @@ export const CloudManifestFileResponse = {
988
988
  type: {
989
989
  name: "Composite",
990
990
  className: "CloudManifestFileResponse",
991
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { properties: {
991
+ modelProperties: {
992
+ ...Resource.type.modelProperties,
993
+ properties: {
992
994
  serializedName: "properties",
993
995
  type: {
994
996
  name: "Composite",
995
997
  className: "CloudManifestFileProperties"
996
998
  }
997
- } })
999
+ }
1000
+ }
998
1001
  }
999
1002
  };
1000
1003
  export const CustomerSubscription = {
1001
1004
  type: {
1002
1005
  name: "Composite",
1003
1006
  className: "CustomerSubscription",
1004
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { systemData: {
1007
+ modelProperties: {
1008
+ ...Resource.type.modelProperties,
1009
+ systemData: {
1005
1010
  serializedName: "systemData",
1006
1011
  type: {
1007
1012
  name: "Composite",
1008
1013
  className: "SystemData"
1009
1014
  }
1010
- }, tenantId: {
1015
+ },
1016
+ tenantId: {
1011
1017
  serializedName: "properties.tenantId",
1012
1018
  type: {
1013
1019
  name: "String"
1014
1020
  }
1015
- } })
1021
+ }
1022
+ }
1016
1023
  }
1017
1024
  };
1018
1025
  export const Product = {
1019
1026
  type: {
1020
1027
  name: "Composite",
1021
1028
  className: "Product",
1022
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { systemData: {
1029
+ modelProperties: {
1030
+ ...Resource.type.modelProperties,
1031
+ systemData: {
1023
1032
  serializedName: "systemData",
1024
1033
  type: {
1025
1034
  name: "Composite",
1026
1035
  className: "SystemData"
1027
1036
  }
1028
- }, displayName: {
1037
+ },
1038
+ displayName: {
1029
1039
  serializedName: "properties.displayName",
1030
1040
  type: {
1031
1041
  name: "String"
1032
1042
  }
1033
- }, description: {
1043
+ },
1044
+ description: {
1034
1045
  serializedName: "properties.description",
1035
1046
  type: {
1036
1047
  name: "String"
1037
1048
  }
1038
- }, publisherDisplayName: {
1049
+ },
1050
+ publisherDisplayName: {
1039
1051
  serializedName: "properties.publisherDisplayName",
1040
1052
  type: {
1041
1053
  name: "String"
1042
1054
  }
1043
- }, publisherIdentifier: {
1055
+ },
1056
+ publisherIdentifier: {
1044
1057
  serializedName: "properties.publisherIdentifier",
1045
1058
  type: {
1046
1059
  name: "String"
1047
1060
  }
1048
- }, offer: {
1061
+ },
1062
+ offer: {
1049
1063
  serializedName: "properties.offer",
1050
1064
  type: {
1051
1065
  name: "String"
1052
1066
  }
1053
- }, offerVersion: {
1067
+ },
1068
+ offerVersion: {
1054
1069
  serializedName: "properties.offerVersion",
1055
1070
  type: {
1056
1071
  name: "String"
1057
1072
  }
1058
- }, sku: {
1073
+ },
1074
+ sku: {
1059
1075
  serializedName: "properties.sku",
1060
1076
  type: {
1061
1077
  name: "String"
1062
1078
  }
1063
- }, billingPartNumber: {
1079
+ },
1080
+ billingPartNumber: {
1064
1081
  serializedName: "properties.billingPartNumber",
1065
1082
  type: {
1066
1083
  name: "String"
1067
1084
  }
1068
- }, vmExtensionType: {
1085
+ },
1086
+ vmExtensionType: {
1069
1087
  serializedName: "properties.vmExtensionType",
1070
1088
  type: {
1071
1089
  name: "String"
1072
1090
  }
1073
- }, galleryItemIdentity: {
1091
+ },
1092
+ galleryItemIdentity: {
1074
1093
  serializedName: "properties.galleryItemIdentity",
1075
1094
  type: {
1076
1095
  name: "String"
1077
1096
  }
1078
- }, iconUris: {
1097
+ },
1098
+ iconUris: {
1079
1099
  serializedName: "properties.iconUris",
1080
1100
  type: {
1081
1101
  name: "Composite",
1082
1102
  className: "IconUris"
1083
1103
  }
1084
- }, links: {
1104
+ },
1105
+ links: {
1085
1106
  serializedName: "properties.links",
1086
1107
  type: {
1087
1108
  name: "Sequence",
@@ -1092,115 +1113,139 @@ export const Product = {
1092
1113
  }
1093
1114
  }
1094
1115
  }
1095
- }, legalTerms: {
1116
+ },
1117
+ legalTerms: {
1096
1118
  serializedName: "properties.legalTerms",
1097
1119
  type: {
1098
1120
  name: "String"
1099
1121
  }
1100
- }, privacyPolicy: {
1122
+ },
1123
+ privacyPolicy: {
1101
1124
  serializedName: "properties.privacyPolicy",
1102
1125
  type: {
1103
1126
  name: "String"
1104
1127
  }
1105
- }, payloadLength: {
1128
+ },
1129
+ payloadLength: {
1106
1130
  serializedName: "properties.payloadLength",
1107
1131
  type: {
1108
1132
  name: "Number"
1109
1133
  }
1110
- }, productKind: {
1134
+ },
1135
+ productKind: {
1111
1136
  serializedName: "properties.productKind",
1112
1137
  type: {
1113
1138
  name: "String"
1114
1139
  }
1115
- }, productProperties: {
1140
+ },
1141
+ productProperties: {
1116
1142
  serializedName: "properties.productProperties",
1117
1143
  type: {
1118
1144
  name: "Composite",
1119
1145
  className: "ProductProperties"
1120
1146
  }
1121
- }, compatibility: {
1147
+ },
1148
+ compatibility: {
1122
1149
  serializedName: "properties.compatibility",
1123
1150
  type: {
1124
1151
  name: "Composite",
1125
1152
  className: "Compatibility"
1126
1153
  }
1127
- } })
1154
+ }
1155
+ }
1128
1156
  }
1129
1157
  };
1130
1158
  export const ExtendedProductProperties = {
1131
1159
  type: {
1132
1160
  name: "Composite",
1133
1161
  className: "ExtendedProductProperties",
1134
- modelProperties: Object.assign(Object.assign({}, VirtualMachineExtensionProductProperties.type.modelProperties), VirtualMachineProductProperties.type.modelProperties)
1162
+ modelProperties: {
1163
+ ...VirtualMachineExtensionProductProperties.type.modelProperties,
1164
+ ...VirtualMachineProductProperties.type.modelProperties
1165
+ }
1135
1166
  }
1136
1167
  };
1137
1168
  export const Registration = {
1138
1169
  type: {
1139
1170
  name: "Composite",
1140
1171
  className: "Registration",
1141
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { objectId: {
1172
+ modelProperties: {
1173
+ ...TrackedResource.type.modelProperties,
1174
+ objectId: {
1142
1175
  serializedName: "properties.objectId",
1143
1176
  type: {
1144
1177
  name: "String"
1145
1178
  }
1146
- }, cloudId: {
1179
+ },
1180
+ cloudId: {
1147
1181
  serializedName: "properties.cloudId",
1148
1182
  type: {
1149
1183
  name: "String"
1150
1184
  }
1151
- }, billingModel: {
1185
+ },
1186
+ billingModel: {
1152
1187
  serializedName: "properties.billingModel",
1153
1188
  type: {
1154
1189
  name: "String"
1155
1190
  }
1156
- } })
1191
+ }
1192
+ }
1157
1193
  }
1158
1194
  };
1159
1195
  export const LinkedSubscription = {
1160
1196
  type: {
1161
1197
  name: "Composite",
1162
1198
  className: "LinkedSubscription",
1163
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { linkedSubscriptionId: {
1199
+ modelProperties: {
1200
+ ...TrackedResource.type.modelProperties,
1201
+ linkedSubscriptionId: {
1164
1202
  serializedName: "properties.linkedSubscriptionId",
1165
1203
  type: {
1166
1204
  name: "String"
1167
1205
  }
1168
- }, registrationResourceId: {
1206
+ },
1207
+ registrationResourceId: {
1169
1208
  serializedName: "properties.registrationResourceId",
1170
1209
  type: {
1171
1210
  name: "String"
1172
1211
  }
1173
- }, deviceId: {
1212
+ },
1213
+ deviceId: {
1174
1214
  serializedName: "properties.deviceId",
1175
1215
  readOnly: true,
1176
1216
  type: {
1177
1217
  name: "String"
1178
1218
  }
1179
- }, deviceObjectId: {
1219
+ },
1220
+ deviceObjectId: {
1180
1221
  serializedName: "properties.deviceObjectId",
1181
1222
  readOnly: true,
1182
1223
  type: {
1183
1224
  name: "String"
1184
1225
  }
1185
- }, deviceLinkState: {
1226
+ },
1227
+ deviceLinkState: {
1186
1228
  serializedName: "properties.deviceLinkState",
1187
1229
  readOnly: true,
1188
1230
  type: {
1189
1231
  name: "String"
1190
1232
  }
1191
- }, lastConnectedTime: {
1233
+ },
1234
+ lastConnectedTime: {
1192
1235
  serializedName: "properties.lastConnectedTime",
1193
1236
  readOnly: true,
1194
1237
  type: {
1195
1238
  name: "String"
1196
1239
  }
1197
- }, deviceConnectionStatus: {
1240
+ },
1241
+ deviceConnectionStatus: {
1198
1242
  serializedName: "properties.deviceConnectionStatus",
1199
1243
  readOnly: true,
1200
1244
  type: {
1201
1245
  name: "String"
1202
1246
  }
1203
- } })
1247
+ }
1248
+ }
1204
1249
  }
1205
1250
  };
1206
1251
  //# sourceMappingURL=mappers.js.map