@azure/arm-databricks 3.0.1-alpha.20250718.1 → 3.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 (89) hide show
  1. package/dist/browser/azureDatabricksManagementClient.js +19 -5
  2. package/dist/browser/azureDatabricksManagementClient.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 +62 -29
  6. package/dist/browser/models/mappers.js.map +1 -1
  7. package/dist/browser/operations/accessConnectors.js +78 -97
  8. package/dist/browser/operations/accessConnectors.js.map +1 -1
  9. package/dist/browser/operations/operations.js +23 -40
  10. package/dist/browser/operations/operations.js.map +1 -1
  11. package/dist/browser/operations/outboundNetworkDependenciesEndpoints.js +1 -0
  12. package/dist/browser/operations/outboundNetworkDependenciesEndpoints.js.map +1 -1
  13. package/dist/browser/operations/privateEndpointConnections.js +45 -52
  14. package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
  15. package/dist/browser/operations/privateLinkResources.js +23 -40
  16. package/dist/browser/operations/privateLinkResources.js.map +1 -1
  17. package/dist/browser/operations/vNetPeering.js +45 -52
  18. package/dist/browser/operations/vNetPeering.js.map +1 -1
  19. package/dist/browser/operations/workspaces.js +78 -97
  20. package/dist/browser/operations/workspaces.js.map +1 -1
  21. package/dist/browser/pagingHelper.js +2 -4
  22. package/dist/browser/pagingHelper.js.map +1 -1
  23. package/dist/commonjs/azureDatabricksManagementClient.js +19 -5
  24. package/dist/commonjs/azureDatabricksManagementClient.js.map +1 -1
  25. package/dist/commonjs/lroImpl.js +7 -3
  26. package/dist/commonjs/lroImpl.js.map +1 -1
  27. package/dist/commonjs/models/mappers.js +62 -29
  28. package/dist/commonjs/models/mappers.js.map +1 -1
  29. package/dist/commonjs/operations/accessConnectors.js +78 -96
  30. package/dist/commonjs/operations/accessConnectors.js.map +1 -1
  31. package/dist/commonjs/operations/operations.js +23 -39
  32. package/dist/commonjs/operations/operations.js.map +1 -1
  33. package/dist/commonjs/operations/outboundNetworkDependenciesEndpoints.js +1 -0
  34. package/dist/commonjs/operations/outboundNetworkDependenciesEndpoints.js.map +1 -1
  35. package/dist/commonjs/operations/privateEndpointConnections.js +45 -51
  36. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
  37. package/dist/commonjs/operations/privateLinkResources.js +23 -39
  38. package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
  39. package/dist/commonjs/operations/vNetPeering.js +45 -51
  40. package/dist/commonjs/operations/vNetPeering.js.map +1 -1
  41. package/dist/commonjs/operations/workspaces.js +78 -96
  42. package/dist/commonjs/operations/workspaces.js.map +1 -1
  43. package/dist/commonjs/pagingHelper.js +2 -4
  44. package/dist/commonjs/pagingHelper.js.map +1 -1
  45. package/dist/esm/azureDatabricksManagementClient.js +19 -5
  46. package/dist/esm/azureDatabricksManagementClient.js.map +1 -1
  47. package/dist/esm/lroImpl.js +7 -3
  48. package/dist/esm/lroImpl.js.map +1 -1
  49. package/dist/esm/models/mappers.js +62 -29
  50. package/dist/esm/models/mappers.js.map +1 -1
  51. package/dist/esm/operations/accessConnectors.js +78 -97
  52. package/dist/esm/operations/accessConnectors.js.map +1 -1
  53. package/dist/esm/operations/operations.js +23 -40
  54. package/dist/esm/operations/operations.js.map +1 -1
  55. package/dist/esm/operations/outboundNetworkDependenciesEndpoints.js +1 -0
  56. package/dist/esm/operations/outboundNetworkDependenciesEndpoints.js.map +1 -1
  57. package/dist/esm/operations/privateEndpointConnections.js +45 -52
  58. package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
  59. package/dist/esm/operations/privateLinkResources.js +23 -40
  60. package/dist/esm/operations/privateLinkResources.js.map +1 -1
  61. package/dist/esm/operations/vNetPeering.js +45 -52
  62. package/dist/esm/operations/vNetPeering.js.map +1 -1
  63. package/dist/esm/operations/workspaces.js +78 -97
  64. package/dist/esm/operations/workspaces.js.map +1 -1
  65. package/dist/esm/pagingHelper.js +2 -4
  66. package/dist/esm/pagingHelper.js.map +1 -1
  67. package/dist/react-native/azureDatabricksManagementClient.js +19 -5
  68. package/dist/react-native/azureDatabricksManagementClient.js.map +1 -1
  69. package/dist/react-native/lroImpl.js +7 -3
  70. package/dist/react-native/lroImpl.js.map +1 -1
  71. package/dist/react-native/models/mappers.js +62 -29
  72. package/dist/react-native/models/mappers.js.map +1 -1
  73. package/dist/react-native/operations/accessConnectors.js +78 -97
  74. package/dist/react-native/operations/accessConnectors.js.map +1 -1
  75. package/dist/react-native/operations/operations.js +23 -40
  76. package/dist/react-native/operations/operations.js.map +1 -1
  77. package/dist/react-native/operations/outboundNetworkDependenciesEndpoints.js +1 -0
  78. package/dist/react-native/operations/outboundNetworkDependenciesEndpoints.js.map +1 -1
  79. package/dist/react-native/operations/privateEndpointConnections.js +45 -52
  80. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
  81. package/dist/react-native/operations/privateLinkResources.js +23 -40
  82. package/dist/react-native/operations/privateLinkResources.js.map +1 -1
  83. package/dist/react-native/operations/vNetPeering.js +45 -52
  84. package/dist/react-native/operations/vNetPeering.js.map +1 -1
  85. package/dist/react-native/operations/workspaces.js +78 -97
  86. package/dist/react-native/operations/workspaces.js.map +1 -1
  87. package/dist/react-native/pagingHelper.js +2 -4
  88. package/dist/react-native/pagingHelper.js.map +1 -1
  89. package/package.json +2 -2
@@ -9,6 +9,8 @@ import * as coreClient from "@azure/core-client";
9
9
  import * as coreRestPipeline from "@azure/core-rest-pipeline";
10
10
  import { WorkspacesImpl, OperationsImpl, PrivateLinkResourcesImpl, PrivateEndpointConnectionsImpl, OutboundNetworkDependenciesEndpointsImpl, VNetPeeringImpl, AccessConnectorsImpl } from "./operations/index.js";
11
11
  export class AzureDatabricksManagementClient extends coreClient.ServiceClient {
12
+ $host;
13
+ subscriptionId;
12
14
  /**
13
15
  * Initializes a new instance of the AzureDatabricksManagementClient class.
14
16
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -16,7 +18,6 @@ export class AzureDatabricksManagementClient extends coreClient.ServiceClient {
16
18
  * @param options The parameter options
17
19
  */
18
20
  constructor(credentials, subscriptionId, options) {
19
- var _a, _b, _c;
20
21
  if (credentials === undefined) {
21
22
  throw new Error("'credentials' cannot be null");
22
23
  }
@@ -35,12 +36,17 @@ export class AzureDatabricksManagementClient extends coreClient.ServiceClient {
35
36
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
36
37
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
37
38
  : `${packageDetails}`;
38
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
39
+ const optionsWithDefaults = {
40
+ ...defaults,
41
+ ...options,
42
+ userAgentOptions: {
39
43
  userAgentPrefix
40
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
44
+ },
45
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
46
+ };
41
47
  super(optionsWithDefaults);
42
48
  let bearerTokenAuthenticationPolicyFound = false;
43
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
49
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
44
50
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
45
51
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
46
52
  coreRestPipeline.bearerTokenAuthenticationPolicyName);
@@ -54,7 +60,8 @@ export class AzureDatabricksManagementClient extends coreClient.ServiceClient {
54
60
  });
55
61
  this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
56
62
  credential: credentials,
57
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
63
+ scopes: optionsWithDefaults.credentialScopes ??
64
+ `${optionsWithDefaults.endpoint}/.default`,
58
65
  challengeCallbacks: {
59
66
  authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
60
67
  }
@@ -72,5 +79,12 @@ export class AzureDatabricksManagementClient extends coreClient.ServiceClient {
72
79
  this.vNetPeering = new VNetPeeringImpl(this);
73
80
  this.accessConnectors = new AccessConnectorsImpl(this);
74
81
  }
82
+ workspaces;
83
+ operations;
84
+ privateLinkResources;
85
+ privateEndpointConnections;
86
+ outboundNetworkDependenciesEndpoints;
87
+ vNetPeering;
88
+ accessConnectors;
75
89
  }
76
90
  //# sourceMappingURL=azureDatabricksManagementClient.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"azureDatabricksManagementClient.js","sourceRoot":"","sources":["../../src/azureDatabricksManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,cAAc,EACd,cAAc,EACd,wBAAwB,EACxB,8BAA8B,EAC9B,wCAAwC,EACxC,eAAe,EACf,oBAAoB,EACrB,MAAM,uBAAuB,CAAC;AAY/B,MAAM,OAAO,+BAAgC,SAAQ,UAAU,CAAC,aAAa;IAI3E;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAuD;;QAEvD,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,GAAkD;YAC9D,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,C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gBACvB,MAAM,EACJ,MAAA,mBAAmB,CAAC,gBAAgB,mCACpC,GAAG,mBAAmB,CAAC,QAAQ,WAAW;gBAC5C,kBAAkB,EAAE;oBAClB,2BAA2B,EACzB,UAAU,CAAC,gCAAgC;iBAC9C;aACF,CAAC,CACH,CAAC;QACJ,CAAC;QACD,wBAAwB;QACxB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QAErC,0CAA0C;QAC1C,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,8BAA8B,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,oBAAoB,GAAG,IAAI,wBAAwB,CAAC,IAAI,CAAC,CAAC;QAC/D,IAAI,CAAC,0BAA0B,GAAG,IAAI,8BAA8B,CAAC,IAAI,CAAC,CAAC;QAC3E,IAAI,CAAC,oCAAoC,GAAG,IAAI,wCAAwC,CACtF,IAAI,CACL,CAAC;QACF,IAAI,CAAC,WAAW,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,gBAAgB,GAAG,IAAI,oBAAoB,CAAC,IAAI,CAAC,CAAC;IACzD,CAAC;CASF","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 * as coreAuth from \"@azure/core-auth\";\nimport {\n WorkspacesImpl,\n OperationsImpl,\n PrivateLinkResourcesImpl,\n PrivateEndpointConnectionsImpl,\n OutboundNetworkDependenciesEndpointsImpl,\n VNetPeeringImpl,\n AccessConnectorsImpl\n} from \"./operations/index.js\";\nimport {\n Workspaces,\n Operations,\n PrivateLinkResources,\n PrivateEndpointConnections,\n OutboundNetworkDependenciesEndpoints,\n VNetPeering,\n AccessConnectors\n} from \"./operationsInterfaces/index.js\";\nimport { AzureDatabricksManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class AzureDatabricksManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the AzureDatabricksManagementClient 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?: AzureDatabricksManagementClientOptionalParams\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: AzureDatabricksManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-databricks/3.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[] = 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.workspaces = new WorkspacesImpl(this);\n this.operations = new OperationsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.outboundNetworkDependenciesEndpoints = new OutboundNetworkDependenciesEndpointsImpl(\n this\n );\n this.vNetPeering = new VNetPeeringImpl(this);\n this.accessConnectors = new AccessConnectorsImpl(this);\n }\n\n workspaces: Workspaces;\n operations: Operations;\n privateLinkResources: PrivateLinkResources;\n privateEndpointConnections: PrivateEndpointConnections;\n outboundNetworkDependenciesEndpoints: OutboundNetworkDependenciesEndpoints;\n vNetPeering: VNetPeering;\n accessConnectors: AccessConnectors;\n}\n"]}
1
+ {"version":3,"file":"azureDatabricksManagementClient.js","sourceRoot":"","sources":["../../src/azureDatabricksManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,cAAc,EACd,cAAc,EACd,wBAAwB,EACxB,8BAA8B,EAC9B,wCAAwC,EACxC,eAAe,EACf,oBAAoB,EACrB,MAAM,uBAAuB,CAAC;AAY/B,MAAM,OAAO,+BAAgC,SAAQ,UAAU,CAAC,aAAa;IAC3E,KAAK,CAAS;IACd,cAAc,CAAS;IAEvB;;;;;OAKG;IACH,YACE,WAAqC,EAC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vB,UAAU,CAAa;IACvB,oBAAoB,CAAuB;IAC3C,0BAA0B,CAA6B;IACvD,oCAAoC,CAAuC;IAC3E,WAAW,CAAc;IACzB,gBAAgB,CAAmB;CACpC","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 * as coreAuth from \"@azure/core-auth\";\nimport {\n WorkspacesImpl,\n OperationsImpl,\n PrivateLinkResourcesImpl,\n PrivateEndpointConnectionsImpl,\n OutboundNetworkDependenciesEndpointsImpl,\n VNetPeeringImpl,\n AccessConnectorsImpl\n} from \"./operations/index.js\";\nimport {\n Workspaces,\n Operations,\n PrivateLinkResources,\n PrivateEndpointConnections,\n OutboundNetworkDependenciesEndpoints,\n VNetPeering,\n AccessConnectors\n} from \"./operationsInterfaces/index.js\";\nimport { AzureDatabricksManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class AzureDatabricksManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the AzureDatabricksManagementClient 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?: AzureDatabricksManagementClientOptionalParams\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: AzureDatabricksManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-databricks/3.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[] = 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.workspaces = new WorkspacesImpl(this);\n this.operations = new OperationsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.outboundNetworkDependenciesEndpoints = new OutboundNetworkDependenciesEndpointsImpl(\n this\n );\n this.vNetPeering = new VNetPeeringImpl(this);\n this.accessConnectors = new AccessConnectorsImpl(this);\n }\n\n workspaces: Workspaces;\n operations: Operations;\n privateLinkResources: PrivateLinkResources;\n privateEndpointConnections: PrivateEndpointConnections;\n outboundNetworkDependenciesEndpoints: OutboundNetworkDependenciesEndpoints;\n vNetPeering: VNetPeering;\n accessConnectors: AccessConnectors;\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"]}
@@ -1354,74 +1354,89 @@ export const TrackedResource = {
1354
1354
  type: {
1355
1355
  name: "Composite",
1356
1356
  className: "TrackedResource",
1357
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
1357
+ modelProperties: {
1358
+ ...Resource.type.modelProperties,
1359
+ tags: {
1358
1360
  serializedName: "tags",
1359
1361
  type: {
1360
1362
  name: "Dictionary",
1361
1363
  value: { type: { name: "String" } }
1362
1364
  }
1363
- }, location: {
1365
+ },
1366
+ location: {
1364
1367
  serializedName: "location",
1365
1368
  required: true,
1366
1369
  type: {
1367
1370
  name: "String"
1368
1371
  }
1369
- } })
1372
+ }
1373
+ }
1370
1374
  }
1371
1375
  };
1372
1376
  export const GroupIdInformation = {
1373
1377
  type: {
1374
1378
  name: "Composite",
1375
1379
  className: "GroupIdInformation",
1376
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { properties: {
1380
+ modelProperties: {
1381
+ ...Resource.type.modelProperties,
1382
+ properties: {
1377
1383
  serializedName: "properties",
1378
1384
  type: {
1379
1385
  name: "Composite",
1380
1386
  className: "GroupIdInformationProperties"
1381
1387
  }
1382
- } })
1388
+ }
1389
+ }
1383
1390
  }
1384
1391
  };
1385
1392
  export const Workspace = {
1386
1393
  type: {
1387
1394
  name: "Composite",
1388
1395
  className: "Workspace",
1389
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { sku: {
1396
+ modelProperties: {
1397
+ ...TrackedResource.type.modelProperties,
1398
+ sku: {
1390
1399
  serializedName: "sku",
1391
1400
  type: {
1392
1401
  name: "Composite",
1393
1402
  className: "Sku"
1394
1403
  }
1395
- }, systemData: {
1404
+ },
1405
+ systemData: {
1396
1406
  serializedName: "systemData",
1397
1407
  type: {
1398
1408
  name: "Composite",
1399
1409
  className: "SystemData"
1400
1410
  }
1401
- }, managedResourceGroupId: {
1411
+ },
1412
+ managedResourceGroupId: {
1402
1413
  serializedName: "properties.managedResourceGroupId",
1403
1414
  required: true,
1404
1415
  type: {
1405
1416
  name: "String"
1406
1417
  }
1407
- }, parameters: {
1418
+ },
1419
+ parameters: {
1408
1420
  serializedName: "properties.parameters",
1409
1421
  type: {
1410
1422
  name: "Composite",
1411
1423
  className: "WorkspaceCustomParameters"
1412
1424
  }
1413
- }, provisioningState: {
1425
+ },
1426
+ provisioningState: {
1414
1427
  serializedName: "properties.provisioningState",
1415
1428
  readOnly: true,
1416
1429
  type: {
1417
1430
  name: "String"
1418
1431
  }
1419
- }, uiDefinitionUri: {
1432
+ },
1433
+ uiDefinitionUri: {
1420
1434
  serializedName: "properties.uiDefinitionUri",
1421
1435
  type: {
1422
1436
  name: "String"
1423
1437
  }
1424
- }, authorizations: {
1438
+ },
1439
+ authorizations: {
1425
1440
  serializedName: "properties.authorizations",
1426
1441
  type: {
1427
1442
  name: "Sequence",
@@ -1432,61 +1447,71 @@ export const Workspace = {
1432
1447
  }
1433
1448
  }
1434
1449
  }
1435
- }, createdBy: {
1450
+ },
1451
+ createdBy: {
1436
1452
  serializedName: "properties.createdBy",
1437
1453
  type: {
1438
1454
  name: "Composite",
1439
1455
  className: "CreatedBy"
1440
1456
  }
1441
- }, updatedBy: {
1457
+ },
1458
+ updatedBy: {
1442
1459
  serializedName: "properties.updatedBy",
1443
1460
  type: {
1444
1461
  name: "Composite",
1445
1462
  className: "CreatedBy"
1446
1463
  }
1447
- }, createdDateTime: {
1464
+ },
1465
+ createdDateTime: {
1448
1466
  serializedName: "properties.createdDateTime",
1449
1467
  readOnly: true,
1450
1468
  type: {
1451
1469
  name: "DateTime"
1452
1470
  }
1453
- }, workspaceId: {
1471
+ },
1472
+ workspaceId: {
1454
1473
  serializedName: "properties.workspaceId",
1455
1474
  readOnly: true,
1456
1475
  type: {
1457
1476
  name: "String"
1458
1477
  }
1459
- }, workspaceUrl: {
1478
+ },
1479
+ workspaceUrl: {
1460
1480
  serializedName: "properties.workspaceUrl",
1461
1481
  readOnly: true,
1462
1482
  type: {
1463
1483
  name: "String"
1464
1484
  }
1465
- }, storageAccountIdentity: {
1485
+ },
1486
+ storageAccountIdentity: {
1466
1487
  serializedName: "properties.storageAccountIdentity",
1467
1488
  type: {
1468
1489
  name: "Composite",
1469
1490
  className: "ManagedIdentityConfiguration"
1470
1491
  }
1471
- }, managedDiskIdentity: {
1492
+ },
1493
+ managedDiskIdentity: {
1472
1494
  serializedName: "properties.managedDiskIdentity",
1473
1495
  type: {
1474
1496
  name: "Composite",
1475
1497
  className: "ManagedIdentityConfiguration"
1476
1498
  }
1477
- }, diskEncryptionSetId: {
1499
+ },
1500
+ diskEncryptionSetId: {
1478
1501
  serializedName: "properties.diskEncryptionSetId",
1479
1502
  readOnly: true,
1480
1503
  type: {
1481
1504
  name: "String"
1482
1505
  }
1483
- }, encryption: {
1506
+ },
1507
+ encryption: {
1484
1508
  serializedName: "properties.encryption",
1485
1509
  type: {
1486
1510
  name: "Composite",
1487
1511
  className: "WorkspacePropertiesEncryption"
1488
1512
  }
1489
- }, privateEndpointConnections: {
1513
+ },
1514
+ privateEndpointConnections: {
1490
1515
  serializedName: "properties.privateEndpointConnections",
1491
1516
  readOnly: true,
1492
1517
  type: {
@@ -1498,42 +1523,50 @@ export const Workspace = {
1498
1523
  }
1499
1524
  }
1500
1525
  }
1501
- }, publicNetworkAccess: {
1526
+ },
1527
+ publicNetworkAccess: {
1502
1528
  serializedName: "properties.publicNetworkAccess",
1503
1529
  type: {
1504
1530
  name: "String"
1505
1531
  }
1506
- }, requiredNsgRules: {
1532
+ },
1533
+ requiredNsgRules: {
1507
1534
  serializedName: "properties.requiredNsgRules",
1508
1535
  type: {
1509
1536
  name: "String"
1510
1537
  }
1511
- } })
1538
+ }
1539
+ }
1512
1540
  }
1513
1541
  };
1514
1542
  export const AccessConnector = {
1515
1543
  type: {
1516
1544
  name: "Composite",
1517
1545
  className: "AccessConnector",
1518
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { identity: {
1546
+ modelProperties: {
1547
+ ...TrackedResource.type.modelProperties,
1548
+ identity: {
1519
1549
  serializedName: "identity",
1520
1550
  type: {
1521
1551
  name: "Composite",
1522
1552
  className: "ManagedServiceIdentity"
1523
1553
  }
1524
- }, systemData: {
1554
+ },
1555
+ systemData: {
1525
1556
  serializedName: "systemData",
1526
1557
  type: {
1527
1558
  name: "Composite",
1528
1559
  className: "SystemData"
1529
1560
  }
1530
- }, properties: {
1561
+ },
1562
+ properties: {
1531
1563
  serializedName: "properties",
1532
1564
  type: {
1533
1565
  name: "Composite",
1534
1566
  className: "AccessConnectorProperties"
1535
1567
  }
1536
- } })
1568
+ }
1569
+ }
1537
1570
  }
1538
1571
  };
1539
1572
  //# sourceMappingURL=mappers.js.map