@azure/provisioning-sql 0.0.0-stage → 1.0.0-beta.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.
- package/CHANGELOG.md +7 -0
- package/LICENSE +21 -0
- package/README.md +64 -2
- package/dist/browser/deleted-server.d.ts +33 -0
- package/dist/browser/deleted-server.d.ts.map +1 -0
- package/dist/browser/deleted-server.js +61 -0
- package/dist/browser/deleted-server.js.map +1 -0
- package/dist/browser/index.d.ts +14 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +16 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/instance-failover-group.d.ts +48 -0
- package/dist/browser/instance-failover-group.d.ts.map +1 -0
- package/dist/browser/instance-failover-group.js +63 -0
- package/dist/browser/instance-failover-group.js.map +1 -0
- package/dist/browser/instance-pool.d.ts +101 -0
- package/dist/browser/instance-pool.d.ts.map +1 -0
- package/dist/browser/instance-pool.js +148 -0
- package/dist/browser/instance-pool.js.map +1 -0
- package/dist/browser/managed-database-move-operation-result.d.ts +30 -0
- package/dist/browser/managed-database-move-operation-result.d.ts.map +1 -0
- package/dist/browser/managed-database-move-operation-result.js +58 -0
- package/dist/browser/managed-database-move-operation-result.js.map +1 -0
- package/dist/browser/managed-instance.d.ts +1555 -0
- package/dist/browser/managed-instance.d.ts.map +1 -0
- package/dist/browser/managed-instance.js +2234 -0
- package/dist/browser/managed-instance.js.map +1 -0
- package/dist/browser/package.json +8 -0
- package/dist/browser/resource-group-long-term-retention-managed-instance-backup.d.ts +33 -0
- package/dist/browser/resource-group-long-term-retention-managed-instance-backup.d.ts.map +1 -0
- package/dist/browser/resource-group-long-term-retention-managed-instance-backup.js +61 -0
- package/dist/browser/resource-group-long-term-retention-managed-instance-backup.js.map +1 -0
- package/dist/browser/server-trust-group.d.ts +48 -0
- package/dist/browser/server-trust-group.d.ts.map +1 -0
- package/dist/browser/server-trust-group.js +63 -0
- package/dist/browser/server-trust-group.js.map +1 -0
- package/dist/browser/server.d.ts +3137 -0
- package/dist/browser/server.d.ts.map +1 -0
- package/dist/browser/server.js +4486 -0
- package/dist/browser/server.js.map +1 -0
- package/dist/browser/subscription-long-term-retention-backup.d.ts +33 -0
- package/dist/browser/subscription-long-term-retention-backup.d.ts.map +1 -0
- package/dist/browser/subscription-long-term-retention-backup.js +61 -0
- package/dist/browser/subscription-long-term-retention-backup.js.map +1 -0
- package/dist/browser/time-zone.d.ts +30 -0
- package/dist/browser/time-zone.d.ts.map +1 -0
- package/dist/browser/time-zone.js +58 -0
- package/dist/browser/time-zone.js.map +1 -0
- package/dist/browser/types.d.ts +13481 -0
- package/dist/browser/types.d.ts.map +1 -0
- package/dist/browser/types.js +3035 -0
- package/dist/browser/types.js.map +1 -0
- package/dist/browser/usage.d.ts +33 -0
- package/dist/browser/usage.d.ts.map +1 -0
- package/dist/browser/usage.js +61 -0
- package/dist/browser/usage.js.map +1 -0
- package/dist/browser/virtual-cluster.d.ts +66 -0
- package/dist/browser/virtual-cluster.d.ts.map +1 -0
- package/dist/browser/virtual-cluster.js +85 -0
- package/dist/browser/virtual-cluster.js.map +1 -0
- package/dist/commonjs/deleted-server.d.ts +33 -0
- package/dist/commonjs/deleted-server.d.ts.map +1 -0
- package/dist/commonjs/deleted-server.js +84 -0
- package/dist/commonjs/deleted-server.js.map +7 -0
- package/dist/commonjs/index.d.ts +14 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +296 -0
- package/dist/commonjs/index.js.map +7 -0
- package/dist/commonjs/instance-failover-group.d.ts +48 -0
- package/dist/commonjs/instance-failover-group.d.ts.map +1 -0
- package/dist/commonjs/instance-failover-group.js +86 -0
- package/dist/commonjs/instance-failover-group.js.map +7 -0
- package/dist/commonjs/instance-pool.d.ts +101 -0
- package/dist/commonjs/instance-pool.d.ts.map +1 -0
- package/dist/commonjs/instance-pool.js +172 -0
- package/dist/commonjs/instance-pool.js.map +7 -0
- package/dist/commonjs/managed-database-move-operation-result.d.ts +30 -0
- package/dist/commonjs/managed-database-move-operation-result.d.ts.map +1 -0
- package/dist/commonjs/managed-database-move-operation-result.js +81 -0
- package/dist/commonjs/managed-database-move-operation-result.js.map +7 -0
- package/dist/commonjs/managed-instance.d.ts +1555 -0
- package/dist/commonjs/managed-instance.d.ts.map +1 -0
- package/dist/commonjs/managed-instance.js +2308 -0
- package/dist/commonjs/managed-instance.js.map +7 -0
- package/dist/commonjs/package.json +8 -0
- package/dist/commonjs/resource-group-long-term-retention-managed-instance-backup.d.ts +33 -0
- package/dist/commonjs/resource-group-long-term-retention-managed-instance-backup.d.ts.map +1 -0
- package/dist/commonjs/resource-group-long-term-retention-managed-instance-backup.js +88 -0
- package/dist/commonjs/resource-group-long-term-retention-managed-instance-backup.js.map +7 -0
- package/dist/commonjs/server-trust-group.d.ts +48 -0
- package/dist/commonjs/server-trust-group.d.ts.map +1 -0
- package/dist/commonjs/server-trust-group.js +86 -0
- package/dist/commonjs/server-trust-group.js.map +7 -0
- package/dist/commonjs/server.d.ts +3137 -0
- package/dist/commonjs/server.d.ts.map +1 -0
- package/dist/commonjs/server.js +4604 -0
- package/dist/commonjs/server.js.map +7 -0
- package/dist/commonjs/subscription-long-term-retention-backup.d.ts +33 -0
- package/dist/commonjs/subscription-long-term-retention-backup.d.ts.map +1 -0
- package/dist/commonjs/subscription-long-term-retention-backup.js +84 -0
- package/dist/commonjs/subscription-long-term-retention-backup.js.map +7 -0
- package/dist/commonjs/time-zone.d.ts +30 -0
- package/dist/commonjs/time-zone.d.ts.map +1 -0
- package/dist/commonjs/time-zone.js +81 -0
- package/dist/commonjs/time-zone.js.map +7 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/commonjs/types.d.ts +13481 -0
- package/dist/commonjs/types.d.ts.map +1 -0
- package/dist/commonjs/types.js +3439 -0
- package/dist/commonjs/types.js.map +7 -0
- package/dist/commonjs/usage.d.ts +33 -0
- package/dist/commonjs/usage.d.ts.map +1 -0
- package/dist/commonjs/usage.js +84 -0
- package/dist/commonjs/usage.js.map +7 -0
- package/dist/commonjs/virtual-cluster.d.ts +66 -0
- package/dist/commonjs/virtual-cluster.d.ts.map +1 -0
- package/dist/commonjs/virtual-cluster.js +108 -0
- package/dist/commonjs/virtual-cluster.js.map +7 -0
- package/dist/esm/deleted-server.d.ts +33 -0
- package/dist/esm/deleted-server.d.ts.map +1 -0
- package/dist/esm/deleted-server.js +61 -0
- package/dist/esm/deleted-server.js.map +1 -0
- package/dist/esm/index.d.ts +14 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +16 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/instance-failover-group.d.ts +48 -0
- package/dist/esm/instance-failover-group.d.ts.map +1 -0
- package/dist/esm/instance-failover-group.js +63 -0
- package/dist/esm/instance-failover-group.js.map +1 -0
- package/dist/esm/instance-pool.d.ts +101 -0
- package/dist/esm/instance-pool.d.ts.map +1 -0
- package/dist/esm/instance-pool.js +148 -0
- package/dist/esm/instance-pool.js.map +1 -0
- package/dist/esm/managed-database-move-operation-result.d.ts +30 -0
- package/dist/esm/managed-database-move-operation-result.d.ts.map +1 -0
- package/dist/esm/managed-database-move-operation-result.js +58 -0
- package/dist/esm/managed-database-move-operation-result.js.map +1 -0
- package/dist/esm/managed-instance.d.ts +1555 -0
- package/dist/esm/managed-instance.d.ts.map +1 -0
- package/dist/esm/managed-instance.js +2234 -0
- package/dist/esm/managed-instance.js.map +1 -0
- package/dist/esm/package.json +8 -0
- package/dist/esm/resource-group-long-term-retention-managed-instance-backup.d.ts +33 -0
- package/dist/esm/resource-group-long-term-retention-managed-instance-backup.d.ts.map +1 -0
- package/dist/esm/resource-group-long-term-retention-managed-instance-backup.js +61 -0
- package/dist/esm/resource-group-long-term-retention-managed-instance-backup.js.map +1 -0
- package/dist/esm/server-trust-group.d.ts +48 -0
- package/dist/esm/server-trust-group.d.ts.map +1 -0
- package/dist/esm/server-trust-group.js +63 -0
- package/dist/esm/server-trust-group.js.map +1 -0
- package/dist/esm/server.d.ts +3137 -0
- package/dist/esm/server.d.ts.map +1 -0
- package/dist/esm/server.js +4486 -0
- package/dist/esm/server.js.map +1 -0
- package/dist/esm/subscription-long-term-retention-backup.d.ts +33 -0
- package/dist/esm/subscription-long-term-retention-backup.d.ts.map +1 -0
- package/dist/esm/subscription-long-term-retention-backup.js +61 -0
- package/dist/esm/subscription-long-term-retention-backup.js.map +1 -0
- package/dist/esm/time-zone.d.ts +30 -0
- package/dist/esm/time-zone.d.ts.map +1 -0
- package/dist/esm/time-zone.js +58 -0
- package/dist/esm/time-zone.js.map +1 -0
- package/dist/esm/types.d.ts +13481 -0
- package/dist/esm/types.d.ts.map +1 -0
- package/dist/esm/types.js +3035 -0
- package/dist/esm/types.js.map +1 -0
- package/dist/esm/usage.d.ts +33 -0
- package/dist/esm/usage.d.ts.map +1 -0
- package/dist/esm/usage.js +61 -0
- package/dist/esm/usage.js.map +1 -0
- package/dist/esm/virtual-cluster.d.ts +66 -0
- package/dist/esm/virtual-cluster.d.ts.map +1 -0
- package/dist/esm/virtual-cluster.js +85 -0
- package/dist/esm/virtual-cluster.js.map +1 -0
- package/package.json +103 -3
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type ExistingResourceProps, type Expression, type ExpressionOrValue, type ProvisioningComponent, Resource, type ResourceOptions } from "@azure/provisioning-core";
|
|
2
|
+
import { type ResourceNamingRules, type ResourceProps } from "@azure/provisioning-core/internal";
|
|
3
|
+
import { type SubscriptionUsageProperties } from "./types.js";
|
|
4
|
+
/**
|
|
5
|
+
* Usage Metric of a Subscription in a Location.
|
|
6
|
+
*/
|
|
7
|
+
export declare class Usage extends Resource<"Microsoft.Sql/locations/usages"> {
|
|
8
|
+
static resourceType: "Microsoft.Sql/locations/usages";
|
|
9
|
+
static apiVersion: string;
|
|
10
|
+
protected static namingRules: ResourceNamingRules;
|
|
11
|
+
/**
|
|
12
|
+
* Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
|
|
13
|
+
* resource metadata. Shared by ordinary construction and internal resource reconstruction.
|
|
14
|
+
*
|
|
15
|
+
* @param props - Resource properties to normalize for the base constructor.
|
|
16
|
+
*/
|
|
17
|
+
protected static buildResourceProps(props?: ExistingResourceProps & {
|
|
18
|
+
existing: true;
|
|
19
|
+
}): ResourceProps<"Microsoft.Sql/locations/usages"> & Record<string, unknown>;
|
|
20
|
+
constructor(context: ProvisioningComponent, props: ExistingResourceProps & {
|
|
21
|
+
existing: true;
|
|
22
|
+
}, options?: ResourceOptions);
|
|
23
|
+
/**
|
|
24
|
+
* Name of usage metric to return.
|
|
25
|
+
*/
|
|
26
|
+
get name(): Expression<string>;
|
|
27
|
+
set name(value: ExpressionOrValue<string>);
|
|
28
|
+
/**
|
|
29
|
+
* Resource properties.
|
|
30
|
+
*/
|
|
31
|
+
get properties(): Expression<SubscriptionUsageProperties>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=usage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../src/usage.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,QAAQ,EACR,KAAK,eAAe,EACrB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAIL,KAAK,mBAAmB,EACxB,KAAK,aAAa,EACnB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,KAAK,2BAA2B,EAAoC,MAAM,YAAY,CAAC;AAIhG;;GAEG;AACH,qBAAa,KAAM,SAAQ,QAAQ,CAAC,gCAAgC,CAAC;IACnE,MAAM,CAAC,YAAY,EAAG,gCAAgC,CAAU;IAChE,MAAM,CAAC,UAAU,SAAe;IAChC,SAAS,CAAC,MAAM,CAAC,WAAW,EAAE,mBAAmB,CAI/C;IAgBF;;;;;OAKG;IACH,SAAS,CAAC,MAAM,CAAC,kBAAkB,CACjC,KAAK,CAAC,EAAE,qBAAqB,GAAG;QAAE,QAAQ,EAAE,IAAI,CAAA;KAAE,GACjD,aAAa,CAAC,gCAAgC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;gBAS1E,OAAO,EAAE,qBAAqB,EAC9B,KAAK,EAAE,qBAAqB,GAAG;QAAE,QAAQ,EAAE,IAAI,CAAA;KAAE,EACjD,OAAO,CAAC,EAAE,eAAe;IAK3B;;OAEG;IACH,IAAI,IAAI,IAAI,UAAU,CAAC,MAAM,CAAC,CAE7B;IACD,IAAI,IAAI,CAAC,KAAK,EAAE,iBAAiB,CAAC,MAAM,CAAC,EAExC;IAED;;OAEG;IACH,IAAI,UAAU,IAAI,UAAU,CAAC,2BAA2B,CAAC,CAExD;CACF"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { Resource, } from "@azure/provisioning-core";
|
|
4
|
+
import { createDeferredShape, createFlatModelShape, createStringShape, } from "@azure/provisioning-core/internal";
|
|
5
|
+
import { subscriptionUsagePropertiesShape } from "./types.js";
|
|
6
|
+
const API_VERSION = "2025-01-01";
|
|
7
|
+
/**
|
|
8
|
+
* Usage Metric of a Subscription in a Location.
|
|
9
|
+
*/
|
|
10
|
+
export class Usage extends Resource {
|
|
11
|
+
static resourceType = "Microsoft.Sql/locations/usages";
|
|
12
|
+
static apiVersion = API_VERSION;
|
|
13
|
+
static namingRules = {
|
|
14
|
+
abbreviation: "u",
|
|
15
|
+
nameSegments: 2,
|
|
16
|
+
scope: "parent",
|
|
17
|
+
};
|
|
18
|
+
static {
|
|
19
|
+
this.registerShape(createFlatModelShape({
|
|
20
|
+
name: { armPath: ["name"], value: createStringShape() },
|
|
21
|
+
properties: {
|
|
22
|
+
armPath: ["properties"],
|
|
23
|
+
value: createDeferredShape(() => subscriptionUsagePropertiesShape),
|
|
24
|
+
readOnly: true,
|
|
25
|
+
},
|
|
26
|
+
}));
|
|
27
|
+
this.register();
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
|
|
31
|
+
* resource metadata. Shared by ordinary construction and internal resource reconstruction.
|
|
32
|
+
*
|
|
33
|
+
* @param props - Resource properties to normalize for the base constructor.
|
|
34
|
+
*/
|
|
35
|
+
static buildResourceProps(props) {
|
|
36
|
+
return {
|
|
37
|
+
...props,
|
|
38
|
+
type: Usage.resourceType,
|
|
39
|
+
apiVersion: Usage.apiVersion,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
constructor(context, props, options) {
|
|
43
|
+
super(context, Usage.buildResourceProps(props), options);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Name of usage metric to return.
|
|
47
|
+
*/
|
|
48
|
+
get name() {
|
|
49
|
+
return this.expr("name");
|
|
50
|
+
}
|
|
51
|
+
set name(value) {
|
|
52
|
+
this.setProperty("name", value);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Resource properties.
|
|
56
|
+
*/
|
|
57
|
+
get properties() {
|
|
58
|
+
return this.expr("properties");
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=usage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage.js","sourceRoot":"","sources":["../../src/usage.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAKL,QAAQ,GAET,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,GAGlB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAoC,gCAAgC,EAAE,MAAM,YAAY,CAAC;AAEhG,MAAM,WAAW,GAAG,YAAY,CAAC;AAEjC;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,QAA0C;IACnE,MAAM,CAAC,YAAY,GAAG,gCAAyC,CAAC;IAChE,MAAM,CAAC,UAAU,GAAG,WAAW,CAAC;IACtB,MAAM,CAAC,WAAW,GAAwB;QAClD,YAAY,EAAE,GAAG;QACjB,YAAY,EAAE,CAAC;QACf,KAAK,EAAE,QAAQ;KAChB,CAAC;IAEF;QACE,IAAI,CAAC,aAAa,CAChB,oBAAoB,CAAC;YACnB,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,iBAAiB,EAAE,EAAE;YACvD,UAAU,EAAE;gBACV,OAAO,EAAE,CAAC,YAAY,CAAC;gBACvB,KAAK,EAAE,mBAAmB,CAAC,GAAG,EAAE,CAAC,gCAAgC,CAAC;gBAClE,QAAQ,EAAE,IAAI;aACf;SACF,CAAC,CACH,CAAC;QACF,IAAI,CAAC,QAAQ,EAAE,CAAC;IAClB,CAAC;IAED;;;;;OAKG;IACO,MAAM,CAAC,kBAAkB,CACjC,KAAkD;QAElD,OAAO;YACL,GAAG,KAAK;YACR,IAAI,EAAE,KAAK,CAAC,YAAY;YACxB,UAAU,EAAE,KAAK,CAAC,UAAU;SAC7B,CAAC;IACJ,CAAC;IAED,YACE,OAA8B,EAC9B,KAAiD,EACjD,OAAyB;QAEzB,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC3B,CAAC;IACD,IAAI,IAAI,CAAC,KAAgC;QACvC,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAClC,CAAC;IAED;;OAEG;IACH,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC,YAAY,CAAQ,CAAC;IACxC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n type ExistingResourceProps,\n type Expression,\n type ExpressionOrValue,\n type ProvisioningComponent,\n Resource,\n type ResourceOptions,\n} from \"@azure/provisioning-core\";\nimport {\n createDeferredShape,\n createFlatModelShape,\n createStringShape,\n type ResourceNamingRules,\n type ResourceProps,\n} from \"@azure/provisioning-core/internal\";\nimport { type SubscriptionUsageProperties, subscriptionUsagePropertiesShape } from \"./types.js\";\n\nconst API_VERSION = \"2025-01-01\";\n\n/**\n * Usage Metric of a Subscription in a Location.\n */\nexport class Usage extends Resource<\"Microsoft.Sql/locations/usages\"> {\n static resourceType = \"Microsoft.Sql/locations/usages\" as const;\n static apiVersion = API_VERSION;\n protected static namingRules: ResourceNamingRules = {\n abbreviation: \"u\",\n nameSegments: 2,\n scope: \"parent\",\n };\n\n static {\n this.registerShape(\n createFlatModelShape({\n name: { armPath: [\"name\"], value: createStringShape() },\n properties: {\n armPath: [\"properties\"],\n value: createDeferredShape(() => subscriptionUsagePropertiesShape),\n readOnly: true,\n },\n }),\n );\n this.register();\n }\n\n /**\n * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying\n * resource metadata. Shared by ordinary construction and internal resource reconstruction.\n *\n * @param props - Resource properties to normalize for the base constructor.\n */\n protected static buildResourceProps(\n props?: ExistingResourceProps & { existing: true },\n ): ResourceProps<\"Microsoft.Sql/locations/usages\"> & Record<string, unknown> {\n return {\n ...props,\n type: Usage.resourceType,\n apiVersion: Usage.apiVersion,\n };\n }\n\n constructor(\n context: ProvisioningComponent,\n props: ExistingResourceProps & { existing: true },\n options?: ResourceOptions,\n ) {\n super(context, Usage.buildResourceProps(props), options);\n }\n\n /**\n * Name of usage metric to return.\n */\n get name(): Expression<string> {\n return this.expr(\"name\");\n }\n set name(value: ExpressionOrValue<string>) {\n this.setProperty(\"name\", value);\n }\n\n /**\n * Resource properties.\n */\n get properties(): Expression<SubscriptionUsageProperties> {\n return this.expr(\"properties\") as any;\n }\n}\n"]}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { type ExistingResourceProps, type Expression, type ExpressionOrValue, type ProvisioningComponent, Resource, type ResourceOptions } from "@azure/provisioning-core";
|
|
2
|
+
import { type InputRecord, type ResourceNamingRules, type ResourceProps } from "@azure/provisioning-core/internal";
|
|
3
|
+
import { type VirtualClusterPropertiesInput, type VirtualClusterPropertiesView } from "./types.js";
|
|
4
|
+
export interface VirtualClusterProps {
|
|
5
|
+
/**
|
|
6
|
+
* The geo-location where the resource lives
|
|
7
|
+
*/
|
|
8
|
+
location?: ExpressionOrValue<string> | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* The name of the virtual cluster.
|
|
11
|
+
*/
|
|
12
|
+
name?: ExpressionOrValue<string> | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Resource properties.
|
|
15
|
+
*/
|
|
16
|
+
properties?: VirtualClusterPropertiesInput | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Resource tags.
|
|
19
|
+
*/
|
|
20
|
+
tags?: InputRecord<ExpressionOrValue<string>, Record<string, string>> | undefined;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* An Azure SQL virtual cluster.
|
|
24
|
+
*/
|
|
25
|
+
export declare class VirtualCluster extends Resource<"Microsoft.Sql/virtualClusters"> {
|
|
26
|
+
static resourceType: "Microsoft.Sql/virtualClusters";
|
|
27
|
+
static apiVersion: string;
|
|
28
|
+
protected static namingRules: ResourceNamingRules;
|
|
29
|
+
/**
|
|
30
|
+
* Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
|
|
31
|
+
* resource metadata. Shared by ordinary construction and internal resource reconstruction.
|
|
32
|
+
*
|
|
33
|
+
* @param props - Resource properties to normalize for the base constructor.
|
|
34
|
+
*/
|
|
35
|
+
protected static buildResourceProps(props?: (VirtualClusterProps & {
|
|
36
|
+
existing?: false;
|
|
37
|
+
}) | (ExistingResourceProps & {
|
|
38
|
+
existing: true;
|
|
39
|
+
})): ResourceProps<"Microsoft.Sql/virtualClusters"> & Record<string, unknown>;
|
|
40
|
+
constructor(context: ProvisioningComponent, props?: (VirtualClusterProps & {
|
|
41
|
+
existing?: false;
|
|
42
|
+
}) | (ExistingResourceProps & {
|
|
43
|
+
existing: true;
|
|
44
|
+
}), options?: ResourceOptions);
|
|
45
|
+
/**
|
|
46
|
+
* The geo-location where the resource lives
|
|
47
|
+
*/
|
|
48
|
+
get location(): Expression<string>;
|
|
49
|
+
set location(value: ExpressionOrValue<string>);
|
|
50
|
+
/**
|
|
51
|
+
* The name of the virtual cluster.
|
|
52
|
+
*/
|
|
53
|
+
get name(): Expression<string>;
|
|
54
|
+
set name(value: ExpressionOrValue<string>);
|
|
55
|
+
/**
|
|
56
|
+
* Resource properties.
|
|
57
|
+
*/
|
|
58
|
+
get properties(): VirtualClusterPropertiesView;
|
|
59
|
+
set properties(value: VirtualClusterPropertiesInput | undefined);
|
|
60
|
+
/**
|
|
61
|
+
* Resource tags.
|
|
62
|
+
*/
|
|
63
|
+
get tags(): InputRecord<ExpressionOrValue<string>, Record<string, string>>;
|
|
64
|
+
set tags(value: InputRecord<ExpressionOrValue<string>, Record<string, string>> | undefined);
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=virtual-cluster.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"virtual-cluster.d.ts","sourceRoot":"","sources":["../../src/virtual-cluster.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,QAAQ,EACR,KAAK,eAAe,EACrB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAKL,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EACnB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,KAAK,6BAA6B,EAElC,KAAK,4BAA4B,EAClC,MAAM,YAAY,CAAC;AAIpB,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,iBAAiB,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACjD;;OAEG;IACH,IAAI,CAAC,EAAE,iBAAiB,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IAC7C;;OAEG;IACH,UAAU,CAAC,EAAE,6BAA6B,GAAG,SAAS,CAAC;IACvD;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,SAAS,CAAC;CACnF;AAED;;GAEG;AACH,qBAAa,cAAe,SAAQ,QAAQ,CAAC,+BAA+B,CAAC;IAC3E,MAAM,CAAC,YAAY,EAAG,+BAA+B,CAAU;IAC/D,MAAM,CAAC,UAAU,SAAe;IAChC,SAAS,CAAC,MAAM,CAAC,WAAW,EAAE,mBAAmB,CAM/C;IAiBF;;;;;OAKG;IACH,SAAS,CAAC,MAAM,CAAC,kBAAkB,CACjC,KAAK,CAAC,EACJ,CAAC,mBAAmB,GAAG;QAAE,QAAQ,CAAC,EAAE,KAAK,CAAA;KAAE,CAAC,GAAG,CAAC,qBAAqB,GAAG;QAAE,QAAQ,EAAE,IAAI,CAAA;KAAE,CAAC,GAC5F,aAAa,CAAC,+BAA+B,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;gBASzE,OAAO,EAAE,qBAAqB,EAC9B,KAAK,CAAC,EACJ,CAAC,mBAAmB,GAAG;QAAE,QAAQ,CAAC,EAAE,KAAK,CAAA;KAAE,CAAC,GAAG,CAAC,qBAAqB,GAAG;QAAE,QAAQ,EAAE,IAAI,CAAA;KAAE,CAAC,EAC7F,OAAO,CAAC,EAAE,eAAe;IAK3B;;OAEG;IACH,IAAI,QAAQ,IAAI,UAAU,CAAC,MAAM,CAAC,CAEjC;IACD,IAAI,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAC,MAAM,CAAC,EAE5C;IAED;;OAEG;IACH,IAAI,IAAI,IAAI,UAAU,CAAC,MAAM,CAAC,CAE7B;IACD,IAAI,IAAI,CAAC,KAAK,EAAE,iBAAiB,CAAC,MAAM,CAAC,EAExC;IAED;;OAEG;IACH,IAAI,UAAU,IAAI,4BAA4B,CAE7C;IACD,IAAI,UAAU,CAAC,KAAK,EAAE,6BAA6B,GAAG,SAAS,EAE9D;IAED;;OAEG;IACH,IAAI,IAAI,IAAI,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAEzE;IACD,IAAI,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,SAAS,EAEzF;CACF"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { Resource, } from "@azure/provisioning-core";
|
|
4
|
+
import { createDeferredShape, createFlatModelShape, createRecordShape, createStringShape, } from "@azure/provisioning-core/internal";
|
|
5
|
+
import { virtualClusterPropertiesShape, } from "./types.js";
|
|
6
|
+
const API_VERSION = "2025-01-01";
|
|
7
|
+
/**
|
|
8
|
+
* An Azure SQL virtual cluster.
|
|
9
|
+
*/
|
|
10
|
+
export class VirtualCluster extends Resource {
|
|
11
|
+
static resourceType = "Microsoft.Sql/virtualClusters";
|
|
12
|
+
static apiVersion = API_VERSION;
|
|
13
|
+
static namingRules = {
|
|
14
|
+
abbreviation: "vc",
|
|
15
|
+
pattern: {
|
|
16
|
+
regex: "",
|
|
17
|
+
},
|
|
18
|
+
scope: "global",
|
|
19
|
+
};
|
|
20
|
+
static {
|
|
21
|
+
this.registerShape(createFlatModelShape({
|
|
22
|
+
location: { armPath: ["location"], value: createStringShape() },
|
|
23
|
+
name: { armPath: ["name"], value: createStringShape() },
|
|
24
|
+
properties: {
|
|
25
|
+
armPath: ["properties"],
|
|
26
|
+
value: createDeferredShape(() => virtualClusterPropertiesShape),
|
|
27
|
+
},
|
|
28
|
+
tags: { armPath: ["tags"], value: createRecordShape(createStringShape()) },
|
|
29
|
+
}));
|
|
30
|
+
this.register();
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
|
|
34
|
+
* resource metadata. Shared by ordinary construction and internal resource reconstruction.
|
|
35
|
+
*
|
|
36
|
+
* @param props - Resource properties to normalize for the base constructor.
|
|
37
|
+
*/
|
|
38
|
+
static buildResourceProps(props) {
|
|
39
|
+
return {
|
|
40
|
+
...props,
|
|
41
|
+
type: VirtualCluster.resourceType,
|
|
42
|
+
apiVersion: VirtualCluster.apiVersion,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
constructor(context, props, options) {
|
|
46
|
+
super(context, VirtualCluster.buildResourceProps(props), options);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The geo-location where the resource lives
|
|
50
|
+
*/
|
|
51
|
+
get location() {
|
|
52
|
+
return this.expr("location");
|
|
53
|
+
}
|
|
54
|
+
set location(value) {
|
|
55
|
+
this.setProperty("location", value);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* The name of the virtual cluster.
|
|
59
|
+
*/
|
|
60
|
+
get name() {
|
|
61
|
+
return this.expr("name");
|
|
62
|
+
}
|
|
63
|
+
set name(value) {
|
|
64
|
+
this.setProperty("name", value);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Resource properties.
|
|
68
|
+
*/
|
|
69
|
+
get properties() {
|
|
70
|
+
return this.expr("properties");
|
|
71
|
+
}
|
|
72
|
+
set properties(value) {
|
|
73
|
+
this.setProperty("properties", value);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Resource tags.
|
|
77
|
+
*/
|
|
78
|
+
get tags() {
|
|
79
|
+
return this.expr("tags");
|
|
80
|
+
}
|
|
81
|
+
set tags(value) {
|
|
82
|
+
this.setProperty("tags", value);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=virtual-cluster.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"virtual-cluster.js","sourceRoot":"","sources":["../../src/virtual-cluster.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAKL,QAAQ,GAET,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,GAIlB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAEL,6BAA6B,GAE9B,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,GAAG,YAAY,CAAC;AAqBjC;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,QAAyC;IAC3E,MAAM,CAAC,YAAY,GAAG,+BAAwC,CAAC;IAC/D,MAAM,CAAC,UAAU,GAAG,WAAW,CAAC;IACtB,MAAM,CAAC,WAAW,GAAwB;QAClD,YAAY,EAAE,IAAI;QAClB,OAAO,EAAE;YACP,KAAK,EAAE,EAAE;SACV;QACD,KAAK,EAAE,QAAQ;KAChB,CAAC;IAEF;QACE,IAAI,CAAC,aAAa,CAChB,oBAAoB,CAAC;YACnB,QAAQ,EAAE,EAAE,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,iBAAiB,EAAE,EAAE;YAC/D,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,iBAAiB,EAAE,EAAE;YACvD,UAAU,EAAE;gBACV,OAAO,EAAE,CAAC,YAAY,CAAC;gBACvB,KAAK,EAAE,mBAAmB,CAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;aAChE;YACD,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,iBAAiB,CAAC,iBAAiB,EAAE,CAAC,EAAE;SAC3E,CAAC,CACH,CAAC;QACF,IAAI,CAAC,QAAQ,EAAE,CAAC;IAClB,CAAC;IAED;;;;;OAKG;IACO,MAAM,CAAC,kBAAkB,CACjC,KAC6F;QAE7F,OAAO;YACL,GAAG,KAAK;YACR,IAAI,EAAE,cAAc,CAAC,YAAY;YACjC,UAAU,EAAE,cAAc,CAAC,UAAU;SACtC,CAAC;IACJ,CAAC;IAED,YACE,OAA8B,EAC9B,KAC6F,EAC7F,OAAyB;QAEzB,KAAK,CAAC,OAAO,EAAE,cAAc,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;OAEG;IACH,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC/B,CAAC;IACD,IAAI,QAAQ,CAAC,KAAgC;QAC3C,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;IACtC,CAAC;IAED;;OAEG;IACH,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC3B,CAAC;IACD,IAAI,IAAI,CAAC,KAAgC;QACvC,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAClC,CAAC;IAED;;OAEG;IACH,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC,YAAY,CAAQ,CAAC;IACxC,CAAC;IACD,IAAI,UAAU,CAAC,KAAgD;QAC7D,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;IACxC,CAAC;IAED;;OAEG;IACH,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC3B,CAAC;IACD,IAAI,IAAI,CAAC,KAAiF;QACxF,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAClC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n type ExistingResourceProps,\n type Expression,\n type ExpressionOrValue,\n type ProvisioningComponent,\n Resource,\n type ResourceOptions,\n} from \"@azure/provisioning-core\";\nimport {\n createDeferredShape,\n createFlatModelShape,\n createRecordShape,\n createStringShape,\n type InputRecord,\n type ResourceNamingRules,\n type ResourceProps,\n} from \"@azure/provisioning-core/internal\";\nimport {\n type VirtualClusterPropertiesInput,\n virtualClusterPropertiesShape,\n type VirtualClusterPropertiesView,\n} from \"./types.js\";\n\nconst API_VERSION = \"2025-01-01\";\n\nexport interface VirtualClusterProps {\n /**\n * The geo-location where the resource lives\n */\n location?: ExpressionOrValue<string> | undefined;\n /**\n * The name of the virtual cluster.\n */\n name?: ExpressionOrValue<string> | undefined;\n /**\n * Resource properties.\n */\n properties?: VirtualClusterPropertiesInput | undefined;\n /**\n * Resource tags.\n */\n tags?: InputRecord<ExpressionOrValue<string>, Record<string, string>> | undefined;\n}\n\n/**\n * An Azure SQL virtual cluster.\n */\nexport class VirtualCluster extends Resource<\"Microsoft.Sql/virtualClusters\"> {\n static resourceType = \"Microsoft.Sql/virtualClusters\" as const;\n static apiVersion = API_VERSION;\n protected static namingRules: ResourceNamingRules = {\n abbreviation: \"vc\",\n pattern: {\n regex: \"\",\n },\n scope: \"global\",\n };\n\n static {\n this.registerShape(\n createFlatModelShape({\n location: { armPath: [\"location\"], value: createStringShape() },\n name: { armPath: [\"name\"], value: createStringShape() },\n properties: {\n armPath: [\"properties\"],\n value: createDeferredShape(() => virtualClusterPropertiesShape),\n },\n tags: { armPath: [\"tags\"], value: createRecordShape(createStringShape()) },\n }),\n );\n this.register();\n }\n\n /**\n * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying\n * resource metadata. Shared by ordinary construction and internal resource reconstruction.\n *\n * @param props - Resource properties to normalize for the base constructor.\n */\n protected static buildResourceProps(\n props?:\n (VirtualClusterProps & { existing?: false }) | (ExistingResourceProps & { existing: true }),\n ): ResourceProps<\"Microsoft.Sql/virtualClusters\"> & Record<string, unknown> {\n return {\n ...props,\n type: VirtualCluster.resourceType,\n apiVersion: VirtualCluster.apiVersion,\n };\n }\n\n constructor(\n context: ProvisioningComponent,\n props?:\n (VirtualClusterProps & { existing?: false }) | (ExistingResourceProps & { existing: true }),\n options?: ResourceOptions,\n ) {\n super(context, VirtualCluster.buildResourceProps(props), options);\n }\n\n /**\n * The geo-location where the resource lives\n */\n get location(): Expression<string> {\n return this.expr(\"location\");\n }\n set location(value: ExpressionOrValue<string>) {\n this.setProperty(\"location\", value);\n }\n\n /**\n * The name of the virtual cluster.\n */\n get name(): Expression<string> {\n return this.expr(\"name\");\n }\n set name(value: ExpressionOrValue<string>) {\n this.setProperty(\"name\", value);\n }\n\n /**\n * Resource properties.\n */\n get properties(): VirtualClusterPropertiesView {\n return this.expr(\"properties\") as any;\n }\n set properties(value: VirtualClusterPropertiesInput | undefined) {\n this.setProperty(\"properties\", value);\n }\n\n /**\n * Resource tags.\n */\n get tags(): InputRecord<ExpressionOrValue<string>, Record<string, string>> {\n return this.expr(\"tags\");\n }\n set tags(value: InputRecord<ExpressionOrValue<string>, Record<string, string>> | undefined) {\n this.setProperty(\"tags\", value);\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,106 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/provisioning-sql",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "1.0.0-beta.1",
|
|
4
|
+
"description": "Azure SQL constructs for the Azure Provisioning library",
|
|
5
|
+
"sdk-type": "provisioning",
|
|
6
|
+
"autoPublish": false,
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "./dist/commonjs/index.js",
|
|
9
|
+
"module": "./dist/esm/index.js",
|
|
10
|
+
"types": "./dist/commonjs/index.d.ts",
|
|
11
|
+
"browser": "./dist/browser/index.js",
|
|
12
|
+
"exports": {
|
|
13
|
+
"./package.json": "./package.json",
|
|
14
|
+
".": {
|
|
15
|
+
"browser": {
|
|
16
|
+
"types": "./dist/browser/index.d.ts",
|
|
17
|
+
"default": "./dist/browser/index.js"
|
|
18
|
+
},
|
|
19
|
+
"import": {
|
|
20
|
+
"types": "./dist/esm/index.d.ts",
|
|
21
|
+
"default": "./dist/esm/index.js"
|
|
22
|
+
},
|
|
23
|
+
"require": {
|
|
24
|
+
"types": "./dist/commonjs/index.d.ts",
|
|
25
|
+
"default": "./dist/commonjs/index.js"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"./types": {
|
|
29
|
+
"browser": {
|
|
30
|
+
"types": "./dist/browser/types.d.ts",
|
|
31
|
+
"default": "./dist/browser/types.js"
|
|
32
|
+
},
|
|
33
|
+
"import": {
|
|
34
|
+
"types": "./dist/esm/types.d.ts",
|
|
35
|
+
"default": "./dist/esm/types.js"
|
|
36
|
+
},
|
|
37
|
+
"require": {
|
|
38
|
+
"types": "./dist/commonjs/types.d.ts",
|
|
39
|
+
"default": "./dist/commonjs/types.js"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"files": [
|
|
44
|
+
"dist/",
|
|
45
|
+
"LICENSE",
|
|
46
|
+
"README.md",
|
|
47
|
+
"CHANGELOG.md"
|
|
48
|
+
],
|
|
49
|
+
"engines": {
|
|
50
|
+
"node": ">=22.0.0"
|
|
51
|
+
},
|
|
52
|
+
"keywords": [
|
|
53
|
+
"azure",
|
|
54
|
+
"cloud",
|
|
55
|
+
"infrastructure",
|
|
56
|
+
"sql",
|
|
57
|
+
"provisioning"
|
|
58
|
+
],
|
|
59
|
+
"sideEffects": true,
|
|
60
|
+
"author": "Microsoft Corporation",
|
|
61
|
+
"license": "MIT",
|
|
62
|
+
"repository": {
|
|
63
|
+
"type": "git",
|
|
64
|
+
"url": "git+https://github.com/Azure/azure-sdk-for-js",
|
|
65
|
+
"directory": "sdk/sql/provisioning-sql"
|
|
66
|
+
},
|
|
67
|
+
"bugs": {
|
|
68
|
+
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
|
|
69
|
+
},
|
|
70
|
+
"homepage": "https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/sql/provisioning-sql/README.md",
|
|
71
|
+
"prettier": "@azure/eslint-plugin-azure-sdk/prettier.json",
|
|
72
|
+
"dependencies": {
|
|
73
|
+
"@azure/provisioning-core": "1.0.0-beta.2",
|
|
74
|
+
"tslib": "^2.8.1"
|
|
75
|
+
},
|
|
76
|
+
"devDependencies": {
|
|
77
|
+
"@azure/dev-tool": "^1.0.0",
|
|
78
|
+
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
|
|
79
|
+
"@types/node": "^22.0.0",
|
|
80
|
+
"@vitest/browser-playwright": "^5.0.0",
|
|
81
|
+
"@vitest/coverage-istanbul": "^5.0.0",
|
|
82
|
+
"eslint": "^10.8.0",
|
|
83
|
+
"playwright": "^1.60.0",
|
|
84
|
+
"prettier": "^3.9.1",
|
|
85
|
+
"rimraf": "^6.1.0",
|
|
86
|
+
"typescript": "~6.0.2",
|
|
87
|
+
"vitest": "^5.0.0"
|
|
88
|
+
},
|
|
89
|
+
"scripts": {
|
|
90
|
+
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
|
|
91
|
+
"build:samples": "echo Skipped.",
|
|
92
|
+
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,mjs,cjs,json}\" \"config/*.json\"",
|
|
93
|
+
"clean": "rimraf --glob dist dist-* temp types *.tgz *.log",
|
|
94
|
+
"execute:samples": "echo skipped",
|
|
95
|
+
"extract-api": "dev-tool run build-package && dev-tool run extract-api",
|
|
96
|
+
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,mjs,cjs,json}\" \"config/*.json\"",
|
|
97
|
+
"lint": "eslint package.json src",
|
|
98
|
+
"lint:fix": "eslint package.json src --fix --fix-type [problem,suggestion]",
|
|
99
|
+
"pack": "pnpm pack 2>&1",
|
|
100
|
+
"test": "tsc -b --noEmit && npm run test:node && npm run test:browser",
|
|
101
|
+
"test:browser": "echo Skipped.",
|
|
102
|
+
"test:node": "dev-tool run test:vitest --no-test-proxy",
|
|
103
|
+
"typecheck": "tsc -p config/tsconfig.test.node.json --noEmit",
|
|
104
|
+
"update-snippets": "dev-tool run update-snippets"
|
|
105
|
+
}
|
|
6
106
|
}
|