@azure/arm-sqlvirtualmachine 5.0.0-beta.2 → 5.0.0-beta.5

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 (136) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/LICENSE +1 -1
  3. package/README.md +11 -0
  4. package/dist/index.js +719 -91
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/availabilityGroupListenersCreateOrUpdateSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/availabilityGroupListenersCreateOrUpdateSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/availabilityGroupListenersCreateOrUpdateSample.js +50 -0
  11. package/dist-esm/samples-dev/availabilityGroupListenersCreateOrUpdateSample.js.map +1 -0
  12. package/dist-esm/samples-dev/availabilityGroupListenersDeleteSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/availabilityGroupListenersDeleteSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/availabilityGroupListenersDeleteSample.js +32 -0
  15. package/dist-esm/samples-dev/availabilityGroupListenersDeleteSample.js.map +1 -0
  16. package/dist-esm/samples-dev/availabilityGroupListenersGetSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/availabilityGroupListenersGetSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/availabilityGroupListenersGetSample.js +32 -0
  19. package/dist-esm/samples-dev/availabilityGroupListenersGetSample.js.map +1 -0
  20. package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.js +45 -0
  23. package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.js.map +1 -0
  24. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/operationsListSample.js +43 -0
  27. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  28. package/dist-esm/samples-dev/sqlVirtualMachineGroupsCreateOrUpdateSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/sqlVirtualMachineGroupsCreateOrUpdateSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/sqlVirtualMachineGroupsCreateOrUpdateSample.js +46 -0
  31. package/dist-esm/samples-dev/sqlVirtualMachineGroupsCreateOrUpdateSample.js.map +1 -0
  32. package/dist-esm/samples-dev/sqlVirtualMachineGroupsDeleteSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/sqlVirtualMachineGroupsDeleteSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/sqlVirtualMachineGroupsDeleteSample.js +31 -0
  35. package/dist-esm/samples-dev/sqlVirtualMachineGroupsDeleteSample.js.map +1 -0
  36. package/dist-esm/samples-dev/sqlVirtualMachineGroupsGetSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/sqlVirtualMachineGroupsGetSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/sqlVirtualMachineGroupsGetSample.js +31 -0
  39. package/dist-esm/samples-dev/sqlVirtualMachineGroupsGetSample.js.map +1 -0
  40. package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.js +44 -0
  43. package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.js.map +1 -0
  44. package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.js +43 -0
  47. package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.js.map +1 -0
  48. package/dist-esm/samples-dev/sqlVirtualMachineGroupsUpdateSample.d.ts +2 -0
  49. package/dist-esm/samples-dev/sqlVirtualMachineGroupsUpdateSample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/sqlVirtualMachineGroupsUpdateSample.js +32 -0
  51. package/dist-esm/samples-dev/sqlVirtualMachineGroupsUpdateSample.js.map +1 -0
  52. package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.d.ts +2 -0
  53. package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.js +269 -0
  55. package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.js.map +1 -0
  56. package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.d.ts +2 -0
  57. package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.js +31 -0
  59. package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.js.map +1 -0
  60. package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.d.ts +2 -0
  61. package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.js +31 -0
  63. package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.js.map +1 -0
  64. package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.d.ts +2 -0
  65. package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.js +44 -0
  67. package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.js.map +1 -0
  68. package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.d.ts +2 -0
  69. package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.js +45 -0
  71. package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.js.map +1 -0
  72. package/dist-esm/samples-dev/sqlVirtualMachinesListSample.d.ts +2 -0
  73. package/dist-esm/samples-dev/sqlVirtualMachinesListSample.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/sqlVirtualMachinesListSample.js +43 -0
  75. package/dist-esm/samples-dev/sqlVirtualMachinesListSample.js.map +1 -0
  76. package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.d.ts +2 -0
  77. package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.js +31 -0
  79. package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.js.map +1 -0
  80. package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.d.ts +2 -0
  81. package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.d.ts.map +1 -0
  82. package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.js +31 -0
  83. package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.js.map +1 -0
  84. package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.d.ts +2 -0
  85. package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.d.ts.map +1 -0
  86. package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.js +32 -0
  87. package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.js.map +1 -0
  88. package/dist-esm/src/models/index.d.ts +237 -4
  89. package/dist-esm/src/models/index.d.ts.map +1 -1
  90. package/dist-esm/src/models/index.js +45 -0
  91. package/dist-esm/src/models/index.js.map +1 -1
  92. package/dist-esm/src/models/mappers.d.ts +7 -0
  93. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  94. package/dist-esm/src/models/mappers.js +334 -3
  95. package/dist-esm/src/models/mappers.js.map +1 -1
  96. package/dist-esm/src/models/parameters.d.ts +1 -1
  97. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  98. package/dist-esm/src/models/parameters.js +10 -10
  99. package/dist-esm/src/models/parameters.js.map +1 -1
  100. package/dist-esm/src/operations/availabilityGroupListeners.d.ts.map +1 -1
  101. package/dist-esm/src/operations/availabilityGroupListeners.js +7 -3
  102. package/dist-esm/src/operations/availabilityGroupListeners.js.map +1 -1
  103. package/dist-esm/src/operations/operations.d.ts +2 -2
  104. package/dist-esm/src/operations/operations.js +2 -2
  105. package/dist-esm/src/operations/sqlVirtualMachineGroups.d.ts.map +1 -1
  106. package/dist-esm/src/operations/sqlVirtualMachineGroups.js +9 -3
  107. package/dist-esm/src/operations/sqlVirtualMachineGroups.js.map +1 -1
  108. package/dist-esm/src/operations/sqlVirtualMachines.d.ts +33 -1
  109. package/dist-esm/src/operations/sqlVirtualMachines.d.ts.map +1 -1
  110. package/dist-esm/src/operations/sqlVirtualMachines.js +142 -4
  111. package/dist-esm/src/operations/sqlVirtualMachines.js.map +1 -1
  112. package/dist-esm/src/operationsInterfaces/operations.d.ts +1 -1
  113. package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts +33 -1
  114. package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts.map +1 -1
  115. package/dist-esm/src/sqlVirtualMachineManagementClient.d.ts +2 -0
  116. package/dist-esm/src/sqlVirtualMachineManagementClient.d.ts.map +1 -1
  117. package/dist-esm/src/sqlVirtualMachineManagementClient.js +50 -3
  118. package/dist-esm/src/sqlVirtualMachineManagementClient.js.map +1 -1
  119. package/dist-esm/test/sampleTest.js +11 -13
  120. package/dist-esm/test/sampleTest.js.map +1 -1
  121. package/package.json +48 -18
  122. package/review/arm-sqlvirtualmachine.api.md +176 -3
  123. package/rollup.config.js +6 -72
  124. package/src/models/index.ts +269 -4
  125. package/src/models/mappers.ts +344 -1
  126. package/src/models/parameters.ts +11 -11
  127. package/src/operations/availabilityGroupListeners.ts +7 -3
  128. package/src/operations/operations.ts +2 -2
  129. package/src/operations/sqlVirtualMachineGroups.ts +9 -3
  130. package/src/operations/sqlVirtualMachines.ts +208 -4
  131. package/src/operationsInterfaces/operations.ts +1 -1
  132. package/src/operationsInterfaces/sqlVirtualMachines.ts +51 -1
  133. package/src/sqlVirtualMachineManagementClient.ts +62 -3
  134. package/tsconfig.json +19 -5
  135. package/types/arm-sqlvirtualmachine.d.ts +294 -5
  136. package/types/tsdoc-metadata.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"sqlVirtualMachineManagementClient.d.ts","sourceRoot":"","sources":["../../src/sqlVirtualMachineManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAO7C,OAAO,EACL,0BAA0B,EAC1B,UAAU,EACV,uBAAuB,EACvB,kBAAkB,EACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,+CAA+C,EAAE,MAAM,UAAU,CAAC;AAE3E,qBAAa,iCAAkC,SAAQ,UAAU,CAAC,aAAa;IAC7E,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,+CAA+C;IAgD3D,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,UAAU,EAAE,UAAU,CAAC;IACvB,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,kBAAkB,EAAE,kBAAkB,CAAC;CACxC"}
1
+ {"version":3,"file":"sqlVirtualMachineManagementClient.d.ts","sourceRoot":"","sources":["../../src/sqlVirtualMachineManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAO7C,OAAO,EACL,0BAA0B,EAC1B,UAAU,EACV,uBAAuB,EACvB,kBAAkB,EACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,+CAA+C,EAAE,MAAM,UAAU,CAAC;AAE3E,qBAAa,iCAAkC,SAAQ,UAAU,CAAC,aAAa;IAC7E,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,+CAA+C;IAyE3D,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,UAAU,EAAE,UAAU,CAAC;IACvB,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,kBAAkB,EAAE,kBAAkB,CAAC;CACxC"}
@@ -5,7 +5,9 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
+ import { __awaiter } from "tslib";
8
9
  import * as coreClient from "@azure/core-client";
10
+ import * as coreRestPipeline from "@azure/core-rest-pipeline";
9
11
  import { AvailabilityGroupListenersImpl, OperationsImpl, SqlVirtualMachineGroupsImpl, SqlVirtualMachinesImpl } from "./operations";
10
12
  export class SqlVirtualMachineManagementClient extends coreClient.ServiceClient {
11
13
  /**
@@ -15,6 +17,7 @@ export class SqlVirtualMachineManagementClient extends coreClient.ServiceClient
15
17
  * @param options The parameter options
16
18
  */
17
19
  constructor(credentials, subscriptionId, options) {
20
+ var _a, _b;
18
21
  if (credentials === undefined) {
19
22
  throw new Error("'credentials' cannot be null");
20
23
  }
@@ -29,7 +32,7 @@ export class SqlVirtualMachineManagementClient extends coreClient.ServiceClient
29
32
  requestContentType: "application/json; charset=utf-8",
30
33
  credential: credentials
31
34
  };
32
- const packageDetails = `azsdk-js-arm-sqlvirtualmachine/5.0.0-beta.2`;
35
+ const packageDetails = `azsdk-js-arm-sqlvirtualmachine/5.0.0-beta.5`;
33
36
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
34
37
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
35
38
  : `${packageDetails}`;
@@ -38,17 +41,61 @@ export class SqlVirtualMachineManagementClient extends coreClient.ServiceClient
38
41
  }
39
42
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
40
43
  userAgentPrefix
41
- }, baseUri: options.endpoint || "https://management.azure.com" });
44
+ }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
42
45
  super(optionsWithDefaults);
46
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
47
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
48
+ const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
49
+ coreRestPipeline.bearerTokenAuthenticationPolicyName);
50
+ if (!bearerTokenAuthenticationPolicyFound) {
51
+ this.pipeline.removePolicy({
52
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
53
+ });
54
+ this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
55
+ scopes: `${optionsWithDefaults.baseUri}/.default`,
56
+ challengeCallbacks: {
57
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
58
+ }
59
+ }));
60
+ }
61
+ }
43
62
  // Parameter assignments
44
63
  this.subscriptionId = subscriptionId;
45
64
  // Assigning values to Constant parameters
46
65
  this.$host = options.$host || "https://management.azure.com";
47
- this.apiVersion = options.apiVersion || "2017-03-01-preview";
66
+ this.apiVersion = options.apiVersion || "2021-11-01-preview";
48
67
  this.availabilityGroupListeners = new AvailabilityGroupListenersImpl(this);
49
68
  this.operations = new OperationsImpl(this);
50
69
  this.sqlVirtualMachineGroups = new SqlVirtualMachineGroupsImpl(this);
51
70
  this.sqlVirtualMachines = new SqlVirtualMachinesImpl(this);
71
+ this.addCustomApiVersionPolicy(options.apiVersion);
72
+ }
73
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
74
+ addCustomApiVersionPolicy(apiVersion) {
75
+ if (!apiVersion) {
76
+ return;
77
+ }
78
+ const apiVersionPolicy = {
79
+ name: "CustomApiVersionPolicy",
80
+ sendRequest(request, next) {
81
+ return __awaiter(this, void 0, void 0, function* () {
82
+ const param = request.url.split("?");
83
+ if (param.length > 1) {
84
+ const newParams = param[1].split("&").map((item) => {
85
+ if (item.indexOf("api-version") > -1) {
86
+ return item.replace(/(?<==).*$/, apiVersion);
87
+ }
88
+ else {
89
+ return item;
90
+ }
91
+ });
92
+ request.url = param[0] + "?" + newParams.join("&");
93
+ }
94
+ return next(request);
95
+ });
96
+ }
97
+ };
98
+ this.pipeline.addPolicy(apiVersionPolicy);
52
99
  }
53
100
  }
54
101
  //# sourceMappingURL=sqlVirtualMachineManagementClient.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sqlVirtualMachineManagementClient.js","sourceRoot":"","sources":["../../src/sqlVirtualMachineManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EACL,8BAA8B,EAC9B,cAAc,EACd,2BAA2B,EAC3B,sBAAsB,EACvB,MAAM,cAAc,CAAC;AAStB,MAAM,OAAO,iCAAkC,SAAQ,UAAU,CAAC,aAAa;IAK7E;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAyD;QAEzD,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QACD,IAAI,cAAc,KAAK,S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,sBAAsB,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;CAMF"}
1
+ {"version":3,"file":"sqlVirtualMachineManagementClient.js","sourceRoot":"","sources":["../../src/sqlVirtualMachineManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,8BAA8B,EAC9B,cAAc,EACd,2BAA2B,EAC3B,sBAAsB,EACvB,MAAM,cAAc,CAAC;AAStB,MAAM,OAAO,iCAAkC,SAAQ,UAAU,CAAC,aAAa;IAK7E;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAyD;;QAEzD,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QACD,IAAI,cAAc,KAAK,SAAS,EAAE;YAChC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACpD;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAAoD;YAChE,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,6CAA6C,CAAC;QACrE,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,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE;YAC7B,OAAO,CAAC,gBAAgB,GAAG,CAAC,uCAAuC,CAAC,CAAC;SACtE;QACD,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB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AAC;QAC3C,IAAI,CAAC,uBAAuB,GAAG,IAAI,2BAA2B,CAAC,IAAI,CAAC,CAAC;QACrE,IAAI,CAAC,kBAAkB,GAAG,IAAI,sBAAsB,CAAC,IAAI,CAAC,CAAC;QAC3D,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;IAED,8GAA8G;IACtG,yBAAyB,CAAC,UAAmB;QACnD,IAAI,CAAC,UAAU,EAAE;YACf,OAAO;SACR;QACD,MAAM,gBAAgB,GAAG;YACvB,IAAI,EAAE,wBAAwB;YACxB,WAAW,CACf,OAAwB,EACxB,IAAiB;;oBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;oBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;wBACpB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;4BACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE;gCACpC,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;6BAC9C;iCAAM;gCACL,OAAO,IAAI,CAAC;6BACb;wBACH,CAAC,CAAC,CAAC;wBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;qBACpD;oBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;gBACvB,CAAC;aAAA;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAMF"}
@@ -6,24 +6,22 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  import { __awaiter } from "tslib";
9
- import { record } from "@azure-tools/test-recorder";
10
- const recorderEnvSetup = {
11
- replaceableVariables: {
12
- AZURE_CLIENT_ID: "azure_client_id",
13
- AZURE_CLIENT_SECRET: "azure_client_secret",
14
- AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
15
- SUBSCRIPTION_ID: "azure_subscription_id"
16
- },
17
- customizationsOnRecordings: [
18
- (recording) => recording.replace(/"access_token":"[^"]*"/g, `"access_token":"access_token"`)
19
- ],
20
- queryParametersToSkip: []
9
+ import { Recorder } from "@azure-tools/test-recorder";
10
+ const replaceableVariables = {
11
+ AZURE_CLIENT_ID: "azure_client_id",
12
+ AZURE_CLIENT_SECRET: "azure_client_secret",
13
+ AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
14
+ SUBSCRIPTION_ID: "azure_subscription_id"
15
+ };
16
+ const recorderOptions = {
17
+ envSetupForPlayback: replaceableVariables
21
18
  };
22
19
  describe("My test", () => {
23
20
  let recorder;
24
21
  beforeEach(function () {
25
22
  return __awaiter(this, void 0, void 0, function* () {
26
- recorder = record(this, recorderEnvSetup);
23
+ recorder = new Recorder(this.currentTest);
24
+ yield recorder.start(recorderOptions);
27
25
  });
28
26
  });
29
27
  afterEach(function () {
@@ -1 +1 @@
1
- {"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EAEL,MAAM,EAGP,MAAM,4BAA4B,CAAC;AAGpC,MAAM,gBAAgB,GAA6B;IACjD,oBAAoB,EAAE;QACpB,eAAe,EAAE,iBAAiB;QAClC,mBAAmB,EAAE,qBAAqB;QAC1C,eAAe,EAAE,sCAAsC;QACvD,eAAe,EAAE,uBAAuB;KACzC;IACD,0BAA0B,EAAE;QAC1B,CAAC,SAAc,EAAO,EAAE,CACtB,SAAS,CAAC,OAAO,CACf,yBAAyB,EACzB,+BAA+B,CAChC;KACJ;IACD,qBAAqB,EAAE,EAAE;CAC1B,CAAC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AAC,CAAC"}
package/package.json CHANGED
@@ -3,45 +3,59 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for SqlVirtualMachineManagementClient.",
6
- "version": "5.0.0-beta.2",
7
- "engines": { "node": ">=12.0.0" },
6
+ "version": "5.0.0-beta.5",
7
+ "engines": {
8
+ "node": ">=12.0.0"
9
+ },
8
10
  "dependencies": {
9
11
  "@azure/core-lro": "^2.2.0",
10
12
  "@azure/abort-controller": "^1.0.0",
11
13
  "@azure/core-paging": "^1.2.0",
12
- "@azure/core-client": "^1.0.0",
14
+ "@azure/core-client": "^1.5.0",
13
15
  "@azure/core-auth": "^1.3.0",
14
- "@azure/core-rest-pipeline": "^1.1.0",
16
+ "@azure/core-rest-pipeline": "^1.8.0",
15
17
  "tslib": "^2.2.0"
16
18
  },
17
- "keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
19
+ "keywords": [
20
+ "node",
21
+ "azure",
22
+ "typescript",
23
+ "browser",
24
+ "isomorphic"
25
+ ],
18
26
  "license": "MIT",
19
27
  "main": "./dist/index.js",
20
28
  "module": "./dist-esm/src/index.js",
21
29
  "types": "./types/arm-sqlvirtualmachine.d.ts",
22
30
  "devDependencies": {
23
- "@microsoft/api-extractor": "^7.18.11",
24
- "@rollup/plugin-commonjs": "11.0.2",
25
- "@rollup/plugin-json": "^4.0.0",
26
- "@rollup/plugin-multi-entry": "^3.0.0",
27
- "@rollup/plugin-node-resolve": "^8.0.0",
31
+ "@microsoft/api-extractor": "7.18.11",
32
+ "@rollup/plugin-commonjs": "^21.0.1",
33
+ "@rollup/plugin-json": "^4.1.0",
34
+ "@rollup/plugin-multi-entry": "^4.1.0",
35
+ "@rollup/plugin-node-resolve": "^13.1.3",
28
36
  "mkdirp": "^1.0.4",
29
- "rollup": "^1.16.3",
30
- "rollup-plugin-sourcemaps": "^0.4.2",
37
+ "rollup": "^2.66.1",
38
+ "rollup-plugin-sourcemaps": "^0.6.3",
31
39
  "typescript": "~4.2.0",
32
40
  "uglify-js": "^3.4.9",
33
41
  "rimraf": "^3.0.0",
34
42
  "@azure/identity": "^2.0.1",
35
- "@azure-tools/test-recorder": "^1.0.0",
43
+ "@azure-tools/test-recorder": "^2.0.0",
44
+ "@azure-tools/test-credential": "^1.0.0",
36
45
  "mocha": "^7.1.1",
37
- "cross-env": "^7.0.2"
46
+ "@types/chai": "^4.2.8",
47
+ "chai": "^4.2.0",
48
+ "cross-env": "^7.0.2",
49
+ "@azure/dev-tool": "^1.0.0"
38
50
  },
39
51
  "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/sqlvirtualmachine/arm-sqlvirtualmachine",
40
52
  "repository": {
41
53
  "type": "git",
42
54
  "url": "https://github.com/Azure/azure-sdk-for-js.git"
43
55
  },
44
- "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
56
+ "bugs": {
57
+ "url": "https://github.com/Azure/azure-sdk-for-js/issues"
58
+ },
45
59
  "files": [
46
60
  "dist/**/*.js",
47
61
  "dist/**/*.js.map",
@@ -83,10 +97,26 @@
83
97
  "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
84
98
  "unit-test:browser": "echo skipped",
85
99
  "integration-test": "npm run integration-test:node && npm run integration-test:browser",
86
- "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
100
+ "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
87
101
  "integration-test:browser": "echo skipped",
88
102
  "docs": "echo skipped"
89
103
  },
90
104
  "sideEffects": false,
91
- "autoPublish": true
92
- }
105
+ "//metadata": {
106
+ "constantPaths": [
107
+ {
108
+ "path": "src/sqlVirtualMachineManagementClient.ts",
109
+ "prefix": "packageDetails"
110
+ }
111
+ ]
112
+ },
113
+ "autoPublish": true,
114
+ "//sampleConfiguration": {
115
+ "productName": "",
116
+ "productSlugs": [
117
+ "azure"
118
+ ],
119
+ "disableDocsMs": true,
120
+ "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-sqlvirtualmachine?view=azure-node-preview"
121
+ }
122
+ }
@@ -15,10 +15,38 @@ export interface AdditionalFeaturesServerConfigurations {
15
15
  isRServicesEnabled?: boolean;
16
16
  }
17
17
 
18
+ // @public
19
+ export interface AgConfiguration {
20
+ readonly replicas?: AgReplica[];
21
+ }
22
+
23
+ // @public
24
+ export interface AgReplica {
25
+ commit?: Commit;
26
+ failover?: Failover;
27
+ readableSecondary?: ReadableSecondary;
28
+ role?: Role;
29
+ sqlVirtualMachineInstanceId?: string;
30
+ }
31
+
32
+ // @public
33
+ export type AssessmentDayOfWeek = "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday";
34
+
35
+ // @public
36
+ export interface AssessmentSettings {
37
+ enable?: boolean;
38
+ runImmediately?: boolean;
39
+ schedule?: Schedule;
40
+ }
41
+
42
+ // @public
43
+ export type AutoBackupDaysOfWeek = string;
44
+
18
45
  // @public
19
46
  export interface AutoBackupSettings {
20
47
  backupScheduleType?: BackupScheduleType;
21
48
  backupSystemDbs?: boolean;
49
+ daysOfWeek?: AutoBackupDaysOfWeek[];
22
50
  enable?: boolean;
23
51
  enableEncryption?: boolean;
24
52
  fullBackupFrequency?: FullBackupFrequencyType;
@@ -29,6 +57,7 @@ export interface AutoBackupSettings {
29
57
  retentionPeriod?: number;
30
58
  storageAccessKey?: string;
31
59
  storageAccountUrl?: string;
60
+ storageContainerName?: string;
32
61
  }
33
62
 
34
63
  // @public
@@ -41,11 +70,13 @@ export interface AutoPatchingSettings {
41
70
 
42
71
  // @public
43
72
  export type AvailabilityGroupListener = ProxyResource & {
73
+ readonly systemData?: SystemData;
44
74
  readonly provisioningState?: string;
45
75
  availabilityGroupName?: string;
46
76
  loadBalancerConfigurations?: LoadBalancerConfiguration[];
47
77
  createDefaultAvailabilityGroupIfNotExist?: boolean;
48
78
  port?: number;
79
+ availabilityGroupConfiguration?: AgConfiguration;
49
80
  };
50
81
 
51
82
  // @public
@@ -81,6 +112,7 @@ export interface AvailabilityGroupListenersDeleteOptionalParams extends coreClie
81
112
 
82
113
  // @public
83
114
  export interface AvailabilityGroupListenersGetOptionalParams extends coreClient.OperationOptions {
115
+ expand?: string;
84
116
  }
85
117
 
86
118
  // @public
@@ -109,15 +141,24 @@ export type ClusterConfiguration = string;
109
141
  // @public
110
142
  export type ClusterManagerType = string;
111
143
 
144
+ // @public
145
+ export type Commit = string;
146
+
112
147
  // @public
113
148
  export type ConnectivityType = string;
114
149
 
115
150
  // @public
116
- export type DayOfWeek = "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday";
151
+ export type CreatedByType = string;
152
+
153
+ // @public
154
+ export type DayOfWeek = "Everyday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday";
117
155
 
118
156
  // @public
119
157
  export type DiskConfigurationType = string;
120
158
 
159
+ // @public
160
+ export type Failover = string;
161
+
121
162
  // @public
122
163
  export type FullBackupFrequencyType = string;
123
164
 
@@ -133,6 +174,24 @@ export interface KeyVaultCredentialSettings {
133
174
  servicePrincipalSecret?: string;
134
175
  }
135
176
 
177
+ // @public
178
+ export enum KnownAutoBackupDaysOfWeek {
179
+ // (undocumented)
180
+ Friday = "Friday",
181
+ // (undocumented)
182
+ Monday = "Monday",
183
+ // (undocumented)
184
+ Saturday = "Saturday",
185
+ // (undocumented)
186
+ Sunday = "Sunday",
187
+ // (undocumented)
188
+ Thursday = "Thursday",
189
+ // (undocumented)
190
+ Tuesday = "Tuesday",
191
+ // (undocumented)
192
+ Wednesday = "Wednesday"
193
+ }
194
+
136
195
  // @public
137
196
  export enum KnownBackupScheduleType {
138
197
  // (undocumented)
@@ -153,6 +212,14 @@ export enum KnownClusterManagerType {
153
212
  Wsfc = "WSFC"
154
213
  }
155
214
 
215
+ // @public
216
+ export enum KnownCommit {
217
+ // (undocumented)
218
+ AsynchronousCommit = "ASYNCHRONOUS_COMMIT",
219
+ // (undocumented)
220
+ SynchronousCommit = "SYNCHRONOUS_COMMIT"
221
+ }
222
+
156
223
  // @public
157
224
  export enum KnownConnectivityType {
158
225
  // (undocumented)
@@ -163,6 +230,18 @@ export enum KnownConnectivityType {
163
230
  Public = "PUBLIC"
164
231
  }
165
232
 
233
+ // @public
234
+ export enum KnownCreatedByType {
235
+ // (undocumented)
236
+ Application = "Application",
237
+ // (undocumented)
238
+ Key = "Key",
239
+ // (undocumented)
240
+ ManagedIdentity = "ManagedIdentity",
241
+ // (undocumented)
242
+ User = "User"
243
+ }
244
+
166
245
  // @public
167
246
  export enum KnownDiskConfigurationType {
168
247
  // (undocumented)
@@ -173,6 +252,14 @@ export enum KnownDiskConfigurationType {
173
252
  NEW = "NEW"
174
253
  }
175
254
 
255
+ // @public
256
+ export enum KnownFailover {
257
+ // (undocumented)
258
+ Automatic = "AUTOMATIC",
259
+ // (undocumented)
260
+ Manual = "MANUAL"
261
+ }
262
+
176
263
  // @public
177
264
  export enum KnownFullBackupFrequencyType {
178
265
  // (undocumented)
@@ -183,6 +270,8 @@ export enum KnownFullBackupFrequencyType {
183
270
 
184
271
  // @public
185
272
  export enum KnownIdentityType {
273
+ // (undocumented)
274
+ None = "None",
186
275
  // (undocumented)
187
276
  SystemAssigned = "SystemAssigned"
188
277
  }
@@ -195,6 +284,24 @@ export enum KnownOperationOrigin {
195
284
  User = "user"
196
285
  }
197
286
 
287
+ // @public
288
+ export enum KnownReadableSecondary {
289
+ // (undocumented)
290
+ ALL = "ALL",
291
+ // (undocumented)
292
+ NO = "NO",
293
+ // (undocumented)
294
+ ReadOnly = "READ_ONLY"
295
+ }
296
+
297
+ // @public
298
+ export enum KnownRole {
299
+ // (undocumented)
300
+ Primary = "PRIMARY",
301
+ // (undocumented)
302
+ Secondary = "SECONDARY"
303
+ }
304
+
198
305
  // @public
199
306
  export enum KnownScaleType {
200
307
  // (undocumented)
@@ -325,7 +432,10 @@ export interface PrivateIPAddress {
325
432
  }
326
433
 
327
434
  // @public
328
- export type ProxyResource = Resource & {};
435
+ export type ProxyResource = Resource;
436
+
437
+ // @public
438
+ export type ReadableSecondary = string;
329
439
 
330
440
  // @public
331
441
  export interface Resource {
@@ -341,13 +451,26 @@ export interface ResourceIdentity {
341
451
  type?: IdentityType;
342
452
  }
343
453
 
454
+ // @public
455
+ export type Role = string;
456
+
344
457
  // @public
345
458
  export type ScaleType = string;
346
459
 
460
+ // @public (undocumented)
461
+ export interface Schedule {
462
+ dayOfWeek?: AssessmentDayOfWeek;
463
+ enable?: boolean;
464
+ monthlyOccurrence?: number;
465
+ startTime?: string;
466
+ weeklyInterval?: number;
467
+ }
468
+
347
469
  // @public
348
470
  export interface ServerConfigurationsManagementSettings {
349
471
  additionalFeaturesServerConfigurations?: AdditionalFeaturesServerConfigurations;
350
472
  sqlConnectivityUpdateSettings?: SqlConnectivityUpdateSettings;
473
+ sqlInstanceSettings?: SQLInstanceSettings;
351
474
  sqlStorageUpdateSettings?: SqlStorageUpdateSettings;
352
475
  sqlWorkloadTypeUpdateSettings?: SqlWorkloadTypeUpdateSettings;
353
476
  }
@@ -363,6 +486,15 @@ export interface SqlConnectivityUpdateSettings {
363
486
  // @public
364
487
  export type SqlImageSku = string;
365
488
 
489
+ // @public
490
+ export interface SQLInstanceSettings {
491
+ collation?: string;
492
+ isOptimizeForAdHocWorkloadsEnabled?: boolean;
493
+ maxDop?: number;
494
+ maxServerMemoryMB?: number;
495
+ minServerMemoryMB?: number;
496
+ }
497
+
366
498
  // @public
367
499
  export type SqlManagementMode = string;
368
500
 
@@ -382,9 +514,21 @@ export interface SqlStorageUpdateSettings {
382
514
  startingDeviceId?: number;
383
515
  }
384
516
 
517
+ // @public (undocumented)
518
+ export interface SQLTempDbSettings {
519
+ dataFileCount?: number;
520
+ dataFileSize?: number;
521
+ dataGrowth?: number;
522
+ defaultFilePath?: string;
523
+ logFileSize?: number;
524
+ logGrowth?: number;
525
+ luns?: number[];
526
+ }
527
+
385
528
  // @public
386
529
  export type SqlVirtualMachine = TrackedResource & {
387
530
  identity?: ResourceIdentity;
531
+ readonly systemData?: SystemData;
388
532
  virtualMachineResourceId?: string;
389
533
  readonly provisioningState?: string;
390
534
  sqlImageOffer?: string;
@@ -398,10 +542,12 @@ export type SqlVirtualMachine = TrackedResource & {
398
542
  keyVaultCredentialSettings?: KeyVaultCredentialSettings;
399
543
  serverConfigurationsManagementSettings?: ServerConfigurationsManagementSettings;
400
544
  storageConfigurationSettings?: StorageConfigurationSettings;
545
+ assessmentSettings?: AssessmentSettings;
401
546
  };
402
547
 
403
548
  // @public
404
549
  export type SqlVirtualMachineGroup = TrackedResource & {
550
+ readonly systemData?: SystemData;
405
551
  readonly provisioningState?: string;
406
552
  sqlImageOffer?: string;
407
553
  sqlImageSku?: SqlVmGroupImageSku;
@@ -534,6 +680,10 @@ export interface SqlVirtualMachines {
534
680
  beginCreateOrUpdateAndWait(resourceGroupName: string, sqlVirtualMachineName: string, parameters: SqlVirtualMachine, options?: SqlVirtualMachinesCreateOrUpdateOptionalParams): Promise<SqlVirtualMachinesCreateOrUpdateResponse>;
535
681
  beginDelete(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
536
682
  beginDeleteAndWait(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesDeleteOptionalParams): Promise<void>;
683
+ beginRedeploy(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesRedeployOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
684
+ beginRedeployAndWait(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesRedeployOptionalParams): Promise<void>;
685
+ beginStartAssessment(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesStartAssessmentOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
686
+ beginStartAssessmentAndWait(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesStartAssessmentOptionalParams): Promise<void>;
537
687
  beginUpdate(resourceGroupName: string, sqlVirtualMachineName: string, parameters: SqlVirtualMachineUpdate, options?: SqlVirtualMachinesUpdateOptionalParams): Promise<PollerLike<PollOperationState<SqlVirtualMachinesUpdateResponse>, SqlVirtualMachinesUpdateResponse>>;
538
688
  beginUpdateAndWait(resourceGroupName: string, sqlVirtualMachineName: string, parameters: SqlVirtualMachineUpdate, options?: SqlVirtualMachinesUpdateOptionalParams): Promise<SqlVirtualMachinesUpdateResponse>;
539
689
  get(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesGetOptionalParams): Promise<SqlVirtualMachinesGetResponse>;
@@ -607,6 +757,18 @@ export interface SqlVirtualMachinesListOptionalParams extends coreClient.Operati
607
757
  // @public
608
758
  export type SqlVirtualMachinesListResponse = SqlVirtualMachineListResult;
609
759
 
760
+ // @public
761
+ export interface SqlVirtualMachinesRedeployOptionalParams extends coreClient.OperationOptions {
762
+ resumeFrom?: string;
763
+ updateIntervalInMs?: number;
764
+ }
765
+
766
+ // @public
767
+ export interface SqlVirtualMachinesStartAssessmentOptionalParams extends coreClient.OperationOptions {
768
+ resumeFrom?: string;
769
+ updateIntervalInMs?: number;
770
+ }
771
+
610
772
  // @public
611
773
  export interface SqlVirtualMachinesUpdateOptionalParams extends coreClient.OperationOptions {
612
774
  resumeFrom?: string;
@@ -639,13 +801,24 @@ export interface StorageConfigurationSettings {
639
801
  diskConfigurationType?: DiskConfigurationType;
640
802
  sqlDataSettings?: SQLStorageSettings;
641
803
  sqlLogSettings?: SQLStorageSettings;
642
- sqlTempDbSettings?: SQLStorageSettings;
804
+ sqlSystemDbOnDataDisk?: boolean;
805
+ sqlTempDbSettings?: SQLTempDbSettings;
643
806
  storageWorkloadType?: StorageWorkloadType;
644
807
  }
645
808
 
646
809
  // @public
647
810
  export type StorageWorkloadType = string;
648
811
 
812
+ // @public
813
+ export interface SystemData {
814
+ createdAt?: Date;
815
+ createdBy?: string;
816
+ createdByType?: CreatedByType;
817
+ lastModifiedAt?: Date;
818
+ lastModifiedBy?: string;
819
+ lastModifiedByType?: CreatedByType;
820
+ }
821
+
649
822
  // @public
650
823
  export type TrackedResource = Resource & {
651
824
  location: string;