@azure/arm-kubernetesconfiguration 6.1.1-alpha.20250718.1 → 6.1.1-alpha.20250730.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/dist/browser/lroImpl.js +7 -3
  2. package/dist/browser/lroImpl.js.map +1 -1
  3. package/dist/browser/models/mappers.js +116 -56
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/operations/extensions.js +56 -58
  6. package/dist/browser/operations/extensions.js.map +1 -1
  7. package/dist/browser/operations/fluxConfigOperationStatus.js +1 -0
  8. package/dist/browser/operations/fluxConfigOperationStatus.js.map +1 -1
  9. package/dist/browser/operations/fluxConfigurations.js +56 -58
  10. package/dist/browser/operations/fluxConfigurations.js.map +1 -1
  11. package/dist/browser/operations/operationStatus.js +23 -40
  12. package/dist/browser/operations/operationStatus.js.map +1 -1
  13. package/dist/browser/operations/operations.js +23 -40
  14. package/dist/browser/operations/operations.js.map +1 -1
  15. package/dist/browser/operations/sourceControlConfigurations.js +34 -46
  16. package/dist/browser/operations/sourceControlConfigurations.js.map +1 -1
  17. package/dist/browser/pagingHelper.js +2 -4
  18. package/dist/browser/pagingHelper.js.map +1 -1
  19. package/dist/browser/sourceControlConfigurationClient.js +19 -5
  20. package/dist/browser/sourceControlConfigurationClient.js.map +1 -1
  21. package/dist/commonjs/lroImpl.js +7 -3
  22. package/dist/commonjs/lroImpl.js.map +1 -1
  23. package/dist/commonjs/models/mappers.js +116 -56
  24. package/dist/commonjs/models/mappers.js.map +1 -1
  25. package/dist/commonjs/operations/extensions.js +56 -57
  26. package/dist/commonjs/operations/extensions.js.map +1 -1
  27. package/dist/commonjs/operations/fluxConfigOperationStatus.js +1 -0
  28. package/dist/commonjs/operations/fluxConfigOperationStatus.js.map +1 -1
  29. package/dist/commonjs/operations/fluxConfigurations.js +56 -57
  30. package/dist/commonjs/operations/fluxConfigurations.js.map +1 -1
  31. package/dist/commonjs/operations/operationStatus.js +23 -39
  32. package/dist/commonjs/operations/operationStatus.js.map +1 -1
  33. package/dist/commonjs/operations/operations.js +23 -39
  34. package/dist/commonjs/operations/operations.js.map +1 -1
  35. package/dist/commonjs/operations/sourceControlConfigurations.js +34 -45
  36. package/dist/commonjs/operations/sourceControlConfigurations.js.map +1 -1
  37. package/dist/commonjs/pagingHelper.js +2 -4
  38. package/dist/commonjs/pagingHelper.js.map +1 -1
  39. package/dist/commonjs/sourceControlConfigurationClient.js +19 -5
  40. package/dist/commonjs/sourceControlConfigurationClient.js.map +1 -1
  41. package/dist/commonjs/tsdoc-metadata.json +1 -1
  42. package/dist/esm/lroImpl.js +7 -3
  43. package/dist/esm/lroImpl.js.map +1 -1
  44. package/dist/esm/models/mappers.js +116 -56
  45. package/dist/esm/models/mappers.js.map +1 -1
  46. package/dist/esm/operations/extensions.js +56 -58
  47. package/dist/esm/operations/extensions.js.map +1 -1
  48. package/dist/esm/operations/fluxConfigOperationStatus.js +1 -0
  49. package/dist/esm/operations/fluxConfigOperationStatus.js.map +1 -1
  50. package/dist/esm/operations/fluxConfigurations.js +56 -58
  51. package/dist/esm/operations/fluxConfigurations.js.map +1 -1
  52. package/dist/esm/operations/operationStatus.js +23 -40
  53. package/dist/esm/operations/operationStatus.js.map +1 -1
  54. package/dist/esm/operations/operations.js +23 -40
  55. package/dist/esm/operations/operations.js.map +1 -1
  56. package/dist/esm/operations/sourceControlConfigurations.js +34 -46
  57. package/dist/esm/operations/sourceControlConfigurations.js.map +1 -1
  58. package/dist/esm/pagingHelper.js +2 -4
  59. package/dist/esm/pagingHelper.js.map +1 -1
  60. package/dist/esm/sourceControlConfigurationClient.js +19 -5
  61. package/dist/esm/sourceControlConfigurationClient.js.map +1 -1
  62. package/dist/react-native/lroImpl.js +7 -3
  63. package/dist/react-native/lroImpl.js.map +1 -1
  64. package/dist/react-native/models/mappers.js +116 -56
  65. package/dist/react-native/models/mappers.js.map +1 -1
  66. package/dist/react-native/operations/extensions.js +56 -58
  67. package/dist/react-native/operations/extensions.js.map +1 -1
  68. package/dist/react-native/operations/fluxConfigOperationStatus.js +1 -0
  69. package/dist/react-native/operations/fluxConfigOperationStatus.js.map +1 -1
  70. package/dist/react-native/operations/fluxConfigurations.js +56 -58
  71. package/dist/react-native/operations/fluxConfigurations.js.map +1 -1
  72. package/dist/react-native/operations/operationStatus.js +23 -40
  73. package/dist/react-native/operations/operationStatus.js.map +1 -1
  74. package/dist/react-native/operations/operations.js +23 -40
  75. package/dist/react-native/operations/operations.js.map +1 -1
  76. package/dist/react-native/operations/sourceControlConfigurations.js +34 -46
  77. package/dist/react-native/operations/sourceControlConfigurations.js.map +1 -1
  78. package/dist/react-native/pagingHelper.js +2 -4
  79. package/dist/react-native/pagingHelper.js.map +1 -1
  80. package/dist/react-native/sourceControlConfigurationClient.js +19 -5
  81. package/dist/react-native/sourceControlConfigurationClient.js.map +1 -1
  82. 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 { ExtensionsImpl, OperationStatusImpl, FluxConfigurationsImpl, FluxConfigOperationStatusImpl, SourceControlConfigurationsImpl, OperationsImpl } from "./operations/index.js";
11
11
  export class SourceControlConfigurationClient extends coreClient.ServiceClient {
12
+ $host;
13
+ subscriptionId;
14
+ apiVersion;
12
15
  /**
13
16
  * Initializes a new instance of the SourceControlConfigurationClient class.
14
17
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -16,7 +19,6 @@ export class SourceControlConfigurationClient 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 SourceControlConfigurationClient 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 SourceControlConfigurationClient 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
  }
@@ -98,5 +106,11 @@ export class SourceControlConfigurationClient extends coreClient.ServiceClient {
98
106
  };
99
107
  this.pipeline.addPolicy(apiVersionPolicy);
100
108
  }
109
+ extensions;
110
+ operationStatus;
111
+ fluxConfigurations;
112
+ fluxConfigOperationStatus;
113
+ sourceControlConfigurations;
114
+ operations;
101
115
  }
102
116
  //# sourceMappingURL=sourceControlConfigurationClient.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sourceControlConfigurationClient.js","sourceRoot":"","sources":["../../src/sourceControlConfigurationClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,sBAAsB,EACtB,6BAA6B,EAC7B,+BAA+B,EAC/B,cAAc,EACf,MAAM,uBAAuB,CAAC;AAW/B,MAAM,OAAO,gCAAiC,SAAQ,UAAU,CAAC,aAAa;IAK5E;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAwD;;QAExD,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,GAAmD;YAC/D,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,4CAA4C,CAAC;QACpE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,QAAQ,EACN,MAAA,MAAA,OAAO,CAAC,Q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,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 ExtensionsImpl,\n OperationStatusImpl,\n FluxConfigurationsImpl,\n FluxConfigOperationStatusImpl,\n SourceControlConfigurationsImpl,\n OperationsImpl\n} from \"./operations/index.js\";\nimport {\n Extensions,\n OperationStatus,\n FluxConfigurations,\n FluxConfigOperationStatus,\n SourceControlConfigurations,\n Operations\n} from \"./operationsInterfaces/index.js\";\nimport { SourceControlConfigurationClientOptionalParams } from \"./models/index.js\";\n\nexport class SourceControlConfigurationClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the SourceControlConfigurationClient 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?: SourceControlConfigurationClientOptionalParams\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: SourceControlConfigurationClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-kubernetesconfiguration/6.1.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2023-05-01\";\n this.extensions = new ExtensionsImpl(this);\n this.operationStatus = new OperationStatusImpl(this);\n this.fluxConfigurations = new FluxConfigurationsImpl(this);\n this.fluxConfigOperationStatus = new FluxConfigOperationStatusImpl(this);\n this.sourceControlConfigurations = new SourceControlConfigurationsImpl(\n this\n );\n this.operations = new OperationsImpl(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 extensions: Extensions;\n operationStatus: OperationStatus;\n fluxConfigurations: FluxConfigurations;\n fluxConfigOperationStatus: FluxConfigOperationStatus;\n sourceControlConfigurations: SourceControlConfigurations;\n operations: Operations;\n}\n"]}
1
+ {"version":3,"file":"sourceControlConfigurationClient.js","sourceRoot":"","sources":["../../src/sourceControlConfigurationClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,sBAAsB,EACtB,6BAA6B,EAC7B,+BAA+B,EAC/B,cAAc,EACf,MAAM,uBAAuB,CAAC;AAW/B,MAAM,OAAO,gCAAiC,SAAQ,UAAU,CAAC,aAAa;IAC5E,KAAK,CAAS;IACd,cAAc,CAAS;IACvB,UAAU,CAAS;IAEnB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAwD;QAExD,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,IAA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B;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;IAED,UAAU,CAAa;IACvB,eAAe,CAAkB;IACjC,kBAAkB,CAAqB;IACvC,yBAAyB,CAA4B;IACrD,2BAA2B,CAA8B;IACzD,UAAU,CAAa;CACxB","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 ExtensionsImpl,\n OperationStatusImpl,\n FluxConfigurationsImpl,\n FluxConfigOperationStatusImpl,\n SourceControlConfigurationsImpl,\n OperationsImpl\n} from \"./operations/index.js\";\nimport {\n Extensions,\n OperationStatus,\n FluxConfigurations,\n FluxConfigOperationStatus,\n SourceControlConfigurations,\n Operations\n} from \"./operationsInterfaces/index.js\";\nimport { SourceControlConfigurationClientOptionalParams } from \"./models/index.js\";\n\nexport class SourceControlConfigurationClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the SourceControlConfigurationClient 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?: SourceControlConfigurationClientOptionalParams\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: SourceControlConfigurationClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-kubernetesconfiguration/6.1.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2023-05-01\";\n this.extensions = new ExtensionsImpl(this);\n this.operationStatus = new OperationStatusImpl(this);\n this.fluxConfigurations = new FluxConfigurationsImpl(this);\n this.fluxConfigOperationStatus = new FluxConfigOperationStatusImpl(this);\n this.sourceControlConfigurations = new SourceControlConfigurationsImpl(\n this\n );\n this.operations = new OperationsImpl(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 extensions: Extensions;\n operationStatus: OperationStatus;\n fluxConfigurations: FluxConfigurations;\n fluxConfigOperationStatus: FluxConfigOperationStatus;\n sourceControlConfigurations: SourceControlConfigurations;\n operations: Operations;\n}\n"]}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createLroSpec = createLroSpec;
4
- const tslib_1 = require("tslib");
5
4
  function createLroSpec(inputs) {
6
5
  const { args, spec, sendOperationFn } = inputs;
7
6
  return {
@@ -9,8 +8,13 @@ function createLroSpec(inputs) {
9
8
  requestPath: spec.path,
10
9
  sendInitialRequest: () => sendOperationFn(args, spec),
11
10
  sendPollRequest: (path, options) => {
12
- const { requestBody } = spec, restSpec = tslib_1.__rest(spec, ["requestBody"]);
13
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
11
+ const { requestBody, ...restSpec } = spec;
12
+ return sendOperationFn(args, {
13
+ ...restSpec,
14
+ httpMethod: "GET",
15
+ path,
16
+ abortSignal: options?.abortSignal
17
+ });
14
18
  }
15
19
  };
16
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";;AAUA,sCA2BC;;AA3BD,SAAgB,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,kBAAK,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,sCA2BC;AA3BD,SAAgB,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"]}
@@ -1708,88 +1708,104 @@ exports.ProxyResource = {
1708
1708
  type: {
1709
1709
  name: "Composite",
1710
1710
  className: "ProxyResource",
1711
- modelProperties: Object.assign({}, exports.Resource.type.modelProperties)
1711
+ modelProperties: {
1712
+ ...exports.Resource.type.modelProperties
1713
+ }
1712
1714
  }
1713
1715
  };
1714
1716
  exports.Extension = {
1715
1717
  type: {
1716
1718
  name: "Composite",
1717
1719
  className: "Extension",
1718
- modelProperties: Object.assign(Object.assign({}, exports.ProxyResource.type.modelProperties), { identity: {
1720
+ modelProperties: {
1721
+ ...exports.ProxyResource.type.modelProperties,
1722
+ identity: {
1719
1723
  serializedName: "identity",
1720
1724
  type: {
1721
1725
  name: "Composite",
1722
1726
  className: "Identity"
1723
1727
  }
1724
- }, systemData: {
1728
+ },
1729
+ systemData: {
1725
1730
  serializedName: "systemData",
1726
1731
  type: {
1727
1732
  name: "Composite",
1728
1733
  className: "SystemData"
1729
1734
  }
1730
- }, plan: {
1735
+ },
1736
+ plan: {
1731
1737
  serializedName: "plan",
1732
1738
  type: {
1733
1739
  name: "Composite",
1734
1740
  className: "Plan"
1735
1741
  }
1736
- }, extensionType: {
1742
+ },
1743
+ extensionType: {
1737
1744
  serializedName: "properties.extensionType",
1738
1745
  type: {
1739
1746
  name: "String"
1740
1747
  }
1741
- }, autoUpgradeMinorVersion: {
1748
+ },
1749
+ autoUpgradeMinorVersion: {
1742
1750
  defaultValue: true,
1743
1751
  serializedName: "properties.autoUpgradeMinorVersion",
1744
1752
  type: {
1745
1753
  name: "Boolean"
1746
1754
  }
1747
- }, releaseTrain: {
1755
+ },
1756
+ releaseTrain: {
1748
1757
  defaultValue: "Stable",
1749
1758
  serializedName: "properties.releaseTrain",
1750
1759
  type: {
1751
1760
  name: "String"
1752
1761
  }
1753
- }, version: {
1762
+ },
1763
+ version: {
1754
1764
  serializedName: "properties.version",
1755
1765
  nullable: true,
1756
1766
  type: {
1757
1767
  name: "String"
1758
1768
  }
1759
- }, scope: {
1769
+ },
1770
+ scope: {
1760
1771
  serializedName: "properties.scope",
1761
1772
  type: {
1762
1773
  name: "Composite",
1763
1774
  className: "Scope"
1764
1775
  }
1765
- }, configurationSettings: {
1776
+ },
1777
+ configurationSettings: {
1766
1778
  serializedName: "properties.configurationSettings",
1767
1779
  nullable: true,
1768
1780
  type: {
1769
1781
  name: "Dictionary",
1770
1782
  value: { type: { name: "String" } }
1771
1783
  }
1772
- }, configurationProtectedSettings: {
1784
+ },
1785
+ configurationProtectedSettings: {
1773
1786
  serializedName: "properties.configurationProtectedSettings",
1774
1787
  nullable: true,
1775
1788
  type: {
1776
1789
  name: "Dictionary",
1777
1790
  value: { type: { name: "String" } }
1778
1791
  }
1779
- }, currentVersion: {
1792
+ },
1793
+ currentVersion: {
1780
1794
  serializedName: "properties.currentVersion",
1781
1795
  readOnly: true,
1782
1796
  nullable: true,
1783
1797
  type: {
1784
1798
  name: "String"
1785
1799
  }
1786
- }, provisioningState: {
1800
+ },
1801
+ provisioningState: {
1787
1802
  serializedName: "properties.provisioningState",
1788
1803
  readOnly: true,
1789
1804
  type: {
1790
1805
  name: "String"
1791
1806
  }
1792
- }, statuses: {
1807
+ },
1808
+ statuses: {
1793
1809
  serializedName: "properties.statuses",
1794
1810
  nullable: true,
1795
1811
  type: {
@@ -1801,13 +1817,15 @@ exports.Extension = {
1801
1817
  }
1802
1818
  }
1803
1819
  }
1804
- }, errorInfo: {
1820
+ },
1821
+ errorInfo: {
1805
1822
  serializedName: "properties.errorInfo",
1806
1823
  type: {
1807
1824
  name: "Composite",
1808
1825
  className: "ErrorDetail"
1809
1826
  }
1810
- }, customLocationSettings: {
1827
+ },
1828
+ customLocationSettings: {
1811
1829
  serializedName: "properties.customLocationSettings",
1812
1830
  readOnly: true,
1813
1831
  nullable: true,
@@ -1815,81 +1833,95 @@ exports.Extension = {
1815
1833
  name: "Dictionary",
1816
1834
  value: { type: { name: "String" } }
1817
1835
  }
1818
- }, packageUri: {
1836
+ },
1837
+ packageUri: {
1819
1838
  serializedName: "properties.packageUri",
1820
1839
  readOnly: true,
1821
1840
  nullable: true,
1822
1841
  type: {
1823
1842
  name: "String"
1824
1843
  }
1825
- }, aksAssignedIdentity: {
1844
+ },
1845
+ aksAssignedIdentity: {
1826
1846
  serializedName: "properties.aksAssignedIdentity",
1827
1847
  type: {
1828
1848
  name: "Composite",
1829
1849
  className: "ExtensionPropertiesAksAssignedIdentity"
1830
1850
  }
1831
- }, isSystemExtension: {
1851
+ },
1852
+ isSystemExtension: {
1832
1853
  defaultValue: false,
1833
1854
  serializedName: "properties.isSystemExtension",
1834
1855
  readOnly: true,
1835
1856
  type: {
1836
1857
  name: "Boolean"
1837
1858
  }
1838
- } })
1859
+ }
1860
+ }
1839
1861
  }
1840
1862
  };
1841
1863
  exports.FluxConfiguration = {
1842
1864
  type: {
1843
1865
  name: "Composite",
1844
1866
  className: "FluxConfiguration",
1845
- modelProperties: Object.assign(Object.assign({}, exports.ProxyResource.type.modelProperties), { systemData: {
1867
+ modelProperties: {
1868
+ ...exports.ProxyResource.type.modelProperties,
1869
+ systemData: {
1846
1870
  serializedName: "systemData",
1847
1871
  type: {
1848
1872
  name: "Composite",
1849
1873
  className: "SystemData"
1850
1874
  }
1851
- }, scope: {
1875
+ },
1876
+ scope: {
1852
1877
  defaultValue: "cluster",
1853
1878
  serializedName: "properties.scope",
1854
1879
  type: {
1855
1880
  name: "String"
1856
1881
  }
1857
- }, namespace: {
1882
+ },
1883
+ namespace: {
1858
1884
  defaultValue: "default",
1859
1885
  serializedName: "properties.namespace",
1860
1886
  type: {
1861
1887
  name: "String"
1862
1888
  }
1863
- }, sourceKind: {
1889
+ },
1890
+ sourceKind: {
1864
1891
  serializedName: "properties.sourceKind",
1865
1892
  type: {
1866
1893
  name: "String"
1867
1894
  }
1868
- }, suspend: {
1895
+ },
1896
+ suspend: {
1869
1897
  defaultValue: false,
1870
1898
  serializedName: "properties.suspend",
1871
1899
  type: {
1872
1900
  name: "Boolean"
1873
1901
  }
1874
- }, gitRepository: {
1902
+ },
1903
+ gitRepository: {
1875
1904
  serializedName: "properties.gitRepository",
1876
1905
  type: {
1877
1906
  name: "Composite",
1878
1907
  className: "GitRepositoryDefinition"
1879
1908
  }
1880
- }, bucket: {
1909
+ },
1910
+ bucket: {
1881
1911
  serializedName: "properties.bucket",
1882
1912
  type: {
1883
1913
  name: "Composite",
1884
1914
  className: "BucketDefinition"
1885
1915
  }
1886
- }, azureBlob: {
1916
+ },
1917
+ azureBlob: {
1887
1918
  serializedName: "properties.azureBlob",
1888
1919
  type: {
1889
1920
  name: "Composite",
1890
1921
  className: "AzureBlobDefinition"
1891
1922
  }
1892
- }, kustomizations: {
1923
+ },
1924
+ kustomizations: {
1893
1925
  serializedName: "properties.kustomizations",
1894
1926
  nullable: true,
1895
1927
  type: {
@@ -1898,14 +1930,16 @@ exports.FluxConfiguration = {
1898
1930
  type: { name: "Composite", className: "KustomizationDefinition" }
1899
1931
  }
1900
1932
  }
1901
- }, configurationProtectedSettings: {
1933
+ },
1934
+ configurationProtectedSettings: {
1902
1935
  serializedName: "properties.configurationProtectedSettings",
1903
1936
  nullable: true,
1904
1937
  type: {
1905
1938
  name: "Dictionary",
1906
1939
  value: { type: { name: "String" } }
1907
1940
  }
1908
- }, statuses: {
1941
+ },
1942
+ statuses: {
1909
1943
  serializedName: "properties.statuses",
1910
1944
  readOnly: true,
1911
1945
  nullable: true,
@@ -1918,152 +1952,178 @@ exports.FluxConfiguration = {
1918
1952
  }
1919
1953
  }
1920
1954
  }
1921
- }, repositoryPublicKey: {
1955
+ },
1956
+ repositoryPublicKey: {
1922
1957
  serializedName: "properties.repositoryPublicKey",
1923
1958
  readOnly: true,
1924
1959
  nullable: true,
1925
1960
  type: {
1926
1961
  name: "String"
1927
1962
  }
1928
- }, sourceSyncedCommitId: {
1963
+ },
1964
+ sourceSyncedCommitId: {
1929
1965
  serializedName: "properties.sourceSyncedCommitId",
1930
1966
  readOnly: true,
1931
1967
  nullable: true,
1932
1968
  type: {
1933
1969
  name: "String"
1934
1970
  }
1935
- }, sourceUpdatedAt: {
1971
+ },
1972
+ sourceUpdatedAt: {
1936
1973
  serializedName: "properties.sourceUpdatedAt",
1937
1974
  readOnly: true,
1938
1975
  nullable: true,
1939
1976
  type: {
1940
1977
  name: "DateTime"
1941
1978
  }
1942
- }, statusUpdatedAt: {
1979
+ },
1980
+ statusUpdatedAt: {
1943
1981
  serializedName: "properties.statusUpdatedAt",
1944
1982
  readOnly: true,
1945
1983
  nullable: true,
1946
1984
  type: {
1947
1985
  name: "DateTime"
1948
1986
  }
1949
- }, waitForReconciliation: {
1987
+ },
1988
+ waitForReconciliation: {
1950
1989
  serializedName: "properties.waitForReconciliation",
1951
1990
  nullable: true,
1952
1991
  type: {
1953
1992
  name: "Boolean"
1954
1993
  }
1955
- }, reconciliationWaitDuration: {
1994
+ },
1995
+ reconciliationWaitDuration: {
1956
1996
  serializedName: "properties.reconciliationWaitDuration",
1957
1997
  nullable: true,
1958
1998
  type: {
1959
1999
  name: "String"
1960
2000
  }
1961
- }, complianceState: {
2001
+ },
2002
+ complianceState: {
1962
2003
  defaultValue: "Unknown",
1963
2004
  serializedName: "properties.complianceState",
1964
2005
  readOnly: true,
1965
2006
  type: {
1966
2007
  name: "String"
1967
2008
  }
1968
- }, provisioningState: {
2009
+ },
2010
+ provisioningState: {
1969
2011
  serializedName: "properties.provisioningState",
1970
2012
  readOnly: true,
1971
2013
  type: {
1972
2014
  name: "String"
1973
2015
  }
1974
- }, errorMessage: {
2016
+ },
2017
+ errorMessage: {
1975
2018
  serializedName: "properties.errorMessage",
1976
2019
  readOnly: true,
1977
2020
  nullable: true,
1978
2021
  type: {
1979
2022
  name: "String"
1980
2023
  }
1981
- } })
2024
+ }
2025
+ }
1982
2026
  }
1983
2027
  };
1984
2028
  exports.SourceControlConfiguration = {
1985
2029
  type: {
1986
2030
  name: "Composite",
1987
2031
  className: "SourceControlConfiguration",
1988
- modelProperties: Object.assign(Object.assign({}, exports.ProxyResource.type.modelProperties), { systemData: {
2032
+ modelProperties: {
2033
+ ...exports.ProxyResource.type.modelProperties,
2034
+ systemData: {
1989
2035
  serializedName: "systemData",
1990
2036
  type: {
1991
2037
  name: "Composite",
1992
2038
  className: "SystemData"
1993
2039
  }
1994
- }, repositoryUrl: {
2040
+ },
2041
+ repositoryUrl: {
1995
2042
  serializedName: "properties.repositoryUrl",
1996
2043
  type: {
1997
2044
  name: "String"
1998
2045
  }
1999
- }, operatorNamespace: {
2046
+ },
2047
+ operatorNamespace: {
2000
2048
  defaultValue: "default",
2001
2049
  serializedName: "properties.operatorNamespace",
2002
2050
  type: {
2003
2051
  name: "String"
2004
2052
  }
2005
- }, operatorInstanceName: {
2053
+ },
2054
+ operatorInstanceName: {
2006
2055
  serializedName: "properties.operatorInstanceName",
2007
2056
  type: {
2008
2057
  name: "String"
2009
2058
  }
2010
- }, operatorType: {
2059
+ },
2060
+ operatorType: {
2011
2061
  serializedName: "properties.operatorType",
2012
2062
  type: {
2013
2063
  name: "String"
2014
2064
  }
2015
- }, operatorParams: {
2065
+ },
2066
+ operatorParams: {
2016
2067
  serializedName: "properties.operatorParams",
2017
2068
  type: {
2018
2069
  name: "String"
2019
2070
  }
2020
- }, configurationProtectedSettings: {
2071
+ },
2072
+ configurationProtectedSettings: {
2021
2073
  serializedName: "properties.configurationProtectedSettings",
2022
2074
  type: {
2023
2075
  name: "Dictionary",
2024
2076
  value: { type: { name: "String" } }
2025
2077
  }
2026
- }, operatorScope: {
2078
+ },
2079
+ operatorScope: {
2027
2080
  defaultValue: "cluster",
2028
2081
  serializedName: "properties.operatorScope",
2029
2082
  type: {
2030
2083
  name: "String"
2031
2084
  }
2032
- }, repositoryPublicKey: {
2085
+ },
2086
+ repositoryPublicKey: {
2033
2087
  serializedName: "properties.repositoryPublicKey",
2034
2088
  readOnly: true,
2035
2089
  type: {
2036
2090
  name: "String"
2037
2091
  }
2038
- }, sshKnownHostsContents: {
2092
+ },
2093
+ sshKnownHostsContents: {
2039
2094
  serializedName: "properties.sshKnownHostsContents",
2040
2095
  type: {
2041
2096
  name: "String"
2042
2097
  }
2043
- }, enableHelmOperator: {
2098
+ },
2099
+ enableHelmOperator: {
2044
2100
  serializedName: "properties.enableHelmOperator",
2045
2101
  type: {
2046
2102
  name: "Boolean"
2047
2103
  }
2048
- }, helmOperatorProperties: {
2104
+ },
2105
+ helmOperatorProperties: {
2049
2106
  serializedName: "properties.helmOperatorProperties",
2050
2107
  type: {
2051
2108
  name: "Composite",
2052
2109
  className: "HelmOperatorProperties"
2053
2110
  }
2054
- }, provisioningState: {
2111
+ },
2112
+ provisioningState: {
2055
2113
  serializedName: "properties.provisioningState",
2056
2114
  readOnly: true,
2057
2115
  type: {
2058
2116
  name: "String"
2059
2117
  }
2060
- }, complianceStatus: {
2118
+ },
2119
+ complianceStatus: {
2061
2120
  serializedName: "properties.complianceStatus",
2062
2121
  type: {
2063
2122
  name: "Composite",
2064
2123
  className: "ComplianceStatus"
2065
2124
  }
2066
- } })
2125
+ }
2126
+ }
2067
2127
  }
2068
2128
  };
2069
2129
  //# sourceMappingURL=mappers.js.map