@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
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Release History
|
|
2
|
+
|
|
3
|
+
## 1.0.0-beta.1 (2026-11-03)
|
|
4
|
+
|
|
5
|
+
### Features Added
|
|
6
|
+
|
|
7
|
+
This is the first preview release of the @azure/provisioning-sql package. It introduces a new SDK generation with layered APIs, smaller bundles, and improved ergonomics. For more details, see the https://aka.ms/azsdk/js/sdk/quickstart.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Copyright (c) Microsoft Corporation.
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,65 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Azure Sql provisioning library for JavaScript
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
`@azure/provisioning-sql` provides typed Azure Sql resources for authoring pre-deployment infrastructure definitions.
|
|
4
|
+
Creating or editing these definitions does not create or modify live Azure resources.
|
|
5
|
+
|
|
6
|
+
## Getting started
|
|
7
|
+
|
|
8
|
+
Install the service library and the core authoring library with npm:
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
npm install @azure/provisioning-sql @azure/provisioning-core
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
1. Create a `Stack` using `@azure/provisioning-core` and define the resource's parent context.
|
|
15
|
+
2. Import resource classes from `@azure/provisioning-sql` and add them to your definition with their required properties.
|
|
16
|
+
3. Serialize the definition using `@azure/provisioning-core/serialization`.
|
|
17
|
+
|
|
18
|
+
```ts snippet:ReadmeSampleCreateDatabase
|
|
19
|
+
import { Stack } from "@azure/provisioning-core";
|
|
20
|
+
import { Server, ServerDatabase } from "@azure/provisioning-sql";
|
|
21
|
+
import { serialize } from "@azure/provisioning-core/serialization";
|
|
22
|
+
|
|
23
|
+
const stack = new Stack("sql-deployment", {
|
|
24
|
+
targetScope: "resourceGroup",
|
|
25
|
+
location: "eastus",
|
|
26
|
+
});
|
|
27
|
+
const administratorLogin = stack.parameters.add("administratorLogin", "string");
|
|
28
|
+
const administratorObjectId = stack.parameters.add("administratorObjectId", "string");
|
|
29
|
+
const administratorTenantId = stack.parameters.add("administratorTenantId", "string");
|
|
30
|
+
const server = new Server(stack, {
|
|
31
|
+
name: "my-unique-sql-server",
|
|
32
|
+
location: "eastus",
|
|
33
|
+
properties: {
|
|
34
|
+
version: "12.0",
|
|
35
|
+
minimalTlsVersion: "1.2",
|
|
36
|
+
administrators: {
|
|
37
|
+
administratorType: "ActiveDirectory",
|
|
38
|
+
principalType: "Group",
|
|
39
|
+
login: administratorLogin,
|
|
40
|
+
sid: administratorObjectId,
|
|
41
|
+
tenantId: administratorTenantId,
|
|
42
|
+
azureAdOnlyAuthentication: true,
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
const database = new ServerDatabase(server, {
|
|
47
|
+
name: "my-database",
|
|
48
|
+
location: "eastus",
|
|
49
|
+
sku: { name: "Basic", tier: "Basic" },
|
|
50
|
+
});
|
|
51
|
+
stack.outputs.add("databaseId", "string", database.id);
|
|
52
|
+
console.log(JSON.stringify(serialize(stack), null, 2));
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
See the [core library documentation](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/provisioning-core/README.md) for the authoring model and serialization APIs.
|
|
56
|
+
|
|
57
|
+
## Resource types
|
|
58
|
+
|
|
59
|
+
Resource classes are exported from `@azure/provisioning-sql`.
|
|
60
|
+
Shared model, input, and view types are available from `@azure/provisioning-sql/types`.
|
|
61
|
+
Use `existing: true` in resource constructor properties to reference an existing resource instead of declaring a new one.
|
|
62
|
+
|
|
63
|
+
## License
|
|
64
|
+
|
|
65
|
+
This library is licensed under the MIT License.
|
|
@@ -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 DeletedServerProperties } from "./types.js";
|
|
4
|
+
/**
|
|
5
|
+
* A deleted server.
|
|
6
|
+
*/
|
|
7
|
+
export declare class DeletedServer extends Resource<"Microsoft.Sql/locations/deletedServers"> {
|
|
8
|
+
static resourceType: "Microsoft.Sql/locations/deletedServers";
|
|
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/deletedServers"> & Record<string, unknown>;
|
|
20
|
+
constructor(context: ProvisioningComponent, props: ExistingResourceProps & {
|
|
21
|
+
existing: true;
|
|
22
|
+
}, options?: ResourceOptions);
|
|
23
|
+
/**
|
|
24
|
+
* The name of the deleted server.
|
|
25
|
+
*/
|
|
26
|
+
get name(): Expression<string>;
|
|
27
|
+
set name(value: ExpressionOrValue<string>);
|
|
28
|
+
/**
|
|
29
|
+
* Resource properties.
|
|
30
|
+
*/
|
|
31
|
+
get properties(): Expression<DeletedServerProperties>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=deleted-server.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleted-server.d.ts","sourceRoot":"","sources":["../../src/deleted-server.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,uBAAuB,EAAgC,MAAM,YAAY,CAAC;AAIxF;;GAEG;AACH,qBAAa,aAAc,SAAQ,QAAQ,CAAC,wCAAwC,CAAC;IACnF,MAAM,CAAC,YAAY,EAAG,wCAAwC,CAAU;IACxE,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,wCAAwC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;gBASlF,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,uBAAuB,CAAC,CAEpD;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 { deletedServerPropertiesShape } from "./types.js";
|
|
6
|
+
const API_VERSION = "2025-01-01";
|
|
7
|
+
/**
|
|
8
|
+
* A deleted server.
|
|
9
|
+
*/
|
|
10
|
+
export class DeletedServer extends Resource {
|
|
11
|
+
static resourceType = "Microsoft.Sql/locations/deletedServers";
|
|
12
|
+
static apiVersion = API_VERSION;
|
|
13
|
+
static namingRules = {
|
|
14
|
+
abbreviation: "ds",
|
|
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(() => deletedServerPropertiesShape),
|
|
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: DeletedServer.resourceType,
|
|
39
|
+
apiVersion: DeletedServer.apiVersion,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
constructor(context, props, options) {
|
|
43
|
+
super(context, DeletedServer.buildResourceProps(props), options);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* The name of the deleted server.
|
|
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=deleted-server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleted-server.js","sourceRoot":"","sources":["../../src/deleted-server.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,EAAgC,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAExF,MAAM,WAAW,GAAG,YAAY,CAAC;AAEjC;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,QAAkD;IACnF,MAAM,CAAC,YAAY,GAAG,wCAAiD,CAAC;IACxE,MAAM,CAAC,UAAU,GAAG,WAAW,CAAC;IACtB,MAAM,CAAC,WAAW,GAAwB;QAClD,YAAY,EAAE,IAAI;QAClB,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,4BAA4B,CAAC;gBAC9D,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,aAAa,CAAC,YAAY;YAChC,UAAU,EAAE,aAAa,CAAC,UAAU;SACrC,CAAC;IACJ,CAAC;IAED,YACE,OAA8B,EAC9B,KAAiD,EACjD,OAAyB;QAEzB,KAAK,CAAC,OAAO,EAAE,aAAa,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC;IACnE,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 DeletedServerProperties, deletedServerPropertiesShape } from \"./types.js\";\n\nconst API_VERSION = \"2025-01-01\";\n\n/**\n * A deleted server.\n */\nexport class DeletedServer extends Resource<\"Microsoft.Sql/locations/deletedServers\"> {\n static resourceType = \"Microsoft.Sql/locations/deletedServers\" as const;\n static apiVersion = API_VERSION;\n protected static namingRules: ResourceNamingRules = {\n abbreviation: \"ds\",\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(() => deletedServerPropertiesShape),\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/deletedServers\"> & Record<string, unknown> {\n return {\n ...props,\n type: DeletedServer.resourceType,\n apiVersion: DeletedServer.apiVersion,\n };\n }\n\n constructor(\n context: ProvisioningComponent,\n props: ExistingResourceProps & { existing: true },\n options?: ResourceOptions,\n ) {\n super(context, DeletedServer.buildResourceProps(props), options);\n }\n\n /**\n * The name of the deleted server.\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<DeletedServerProperties> {\n return this.expr(\"properties\") as any;\n }\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * as types from "./types.js";
|
|
2
|
+
export { InstancePool, type InstancePoolProps, InstancePoolOperation } from "./instance-pool.js";
|
|
3
|
+
export { DeletedServer } from "./deleted-server.js";
|
|
4
|
+
export { InstanceFailoverGroup, type InstanceFailoverGroupProps, } from "./instance-failover-group.js";
|
|
5
|
+
export { ResourceGroupLongTermRetentionManagedInstanceBackup } from "./resource-group-long-term-retention-managed-instance-backup.js";
|
|
6
|
+
export { SubscriptionLongTermRetentionBackup } from "./subscription-long-term-retention-backup.js";
|
|
7
|
+
export { ManagedDatabaseMoveOperationResult } from "./managed-database-move-operation-result.js";
|
|
8
|
+
export { ServerTrustGroup, type ServerTrustGroupProps } from "./server-trust-group.js";
|
|
9
|
+
export { TimeZone } from "./time-zone.js";
|
|
10
|
+
export { Usage } from "./usage.js";
|
|
11
|
+
export { ManagedInstance, type ManagedInstanceProps, ManagedInstanceAdministrator, type ManagedInstanceAdministratorProps, ManagedInstanceAdvancedThreatProtection, type ManagedInstanceAdvancedThreatProtectionProps, ManagedInstanceAzureAdOnlyAuthentication, type ManagedInstanceAzureAdOnlyAuthenticationProps, ManagedInstanceDatabase, type ManagedInstanceDatabaseProps, ManagedDatabaseAdvancedThreatProtection, type ManagedDatabaseAdvancedThreatProtectionProps, ManagedInstanceLongTermRetentionPolicy, type ManagedInstanceLongTermRetentionPolicyProps, ManagedBackupShortTermRetentionPolicy, type ManagedBackupShortTermRetentionPolicyProps, ManagedInstanceDatabaseLedgerDigestUpload, type ManagedInstanceDatabaseLedgerDigestUploadProps, Query, RestoreDetail, ManagedDatabaseSchema, ManagedDatabaseTable, ManagedDatabaseColumn, ManagedDatabaseSensitivityLabel, type ManagedDatabaseSensitivityLabelProps, ManagedInstanceDatabaseSecurityAlertPolicy, type ManagedInstanceDatabaseSecurityAlertPolicyProps, ManagedInstanceDatabaseTransparentDataEncryption, type ManagedInstanceDatabaseTransparentDataEncryptionProps, ManagedDatabaseVulnerabilityAssessment, type ManagedDatabaseVulnerabilityAssessmentProps, ManagedDatabaseVulnerabilityAssessmentRuleBaseline, type ManagedDatabaseVulnerabilityAssessmentRuleBaselineProps, ManagedDatabaseVulnerabilityAssessmentScan, DistributedAvailabilityGroup, type DistributedAvailabilityGroupProps, ManagedInstanceDnsAlias, type ManagedInstanceDnsAliasProps, Dtc, type DtcProps, ManagedInstanceEncryptionProtector, type ManagedInstanceEncryptionProtectorProps, EndpointCertificate, ManagedInstanceKey, type ManagedInstanceKeyProps, ManagedInstanceOperation, ManagedInstancePrivateEndpointConnection, type ManagedInstancePrivateEndpointConnectionProps, ManagedInstancePrivateLink, RecoverableManagedDatabase, RestorableDroppedManagedDatabase, ManagedRestorableDroppedDbBackupShortTermRetentionPolicy, type ManagedRestorableDroppedDbBackupShortTermRetentionPolicyProps, ManagedInstanceSecurityAlertPolicy, type ManagedInstanceSecurityAlertPolicyProps, ServerConfigurationOption, type ServerConfigurationOptionProps, ManagedInstanceServerTrustCertificate, type ManagedInstanceServerTrustCertificateProps, SqlAgent, type SqlAgentProps, StartStopManagedInstanceSchedule, type StartStopManagedInstanceScheduleProps, ManagedInstanceVulnerabilityAssessment, type ManagedInstanceVulnerabilityAssessmentProps, } from "./managed-instance.js";
|
|
12
|
+
export { Server, type ServerProps, ServerAdministrator, type ServerAdministratorProps, ServerAdvancedThreatProtection, type ServerAdvancedThreatProtectionProps, SqlServerAdvisor, SqlServerBlobAuditingPolicy, type SqlServerBlobAuditingPolicyProps, ServerAutomaticTuning, ServerAzureAdOnlyAuthentication, type ServerAzureAdOnlyAuthenticationProps, ConnectionPolicy, type ConnectionPolicyProps, ServerDatabase, type ServerDatabaseProps, DatabaseAdvancedThreatProtection, type DatabaseAdvancedThreatProtectionProps, SqlDatabaseAdvisor, RecommendedAction, DatabaseBlobAuditingPolicy, type DatabaseBlobAuditingPolicyProps, DatabaseAutomaticTuning, LongTermRetentionPolicy, type LongTermRetentionPolicyProps, BackupShortTermRetentionPolicy, type BackupShortTermRetentionPolicyProps, DataMaskingPolicy, type DataMaskingPolicyProps, Rule, type RuleProps, DataWarehouseUserActivities, ExtendedDatabaseBlobAuditingPolicy, type ExtendedDatabaseBlobAuditingPolicyProps, Extension, type ExtensionProps, GeoBackupPolicy, type GeoBackupPolicyProps, ServerDatabaseLedgerDigestUpload, type ServerDatabaseLedgerDigestUploadProps, ReplicationLink, type ReplicationLinkProps, RestorePoint, SqlDatabaseSchema, SqlDatabaseTable, SqlDatabaseColumn, SqlDatabaseSensitivityLabel, type SqlDatabaseSensitivityLabelProps, ServerDatabaseSecurityAlertPolicy, type ServerDatabaseSecurityAlertPolicyProps, SqlDatabaseSqlVulnerabilityAssessment, SqlDatabaseSqlVulnerabilityAssessmentBaseline, type SqlDatabaseSqlVulnerabilityAssessmentBaselineProps, SqlDatabaseSqlVulnerabilityAssessmentBaselineRule, type SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleProps, SqlDatabaseSqlVulnerabilityAssessmentScan, SqlDatabaseSqlVulnerabilityAssessmentScanResult, SyncGroup, type SyncGroupProps, SyncMember, type SyncMemberProps, ServerDatabaseTransparentDataEncryption, type ServerDatabaseTransparentDataEncryptionProps, SqlDatabaseVulnerabilityAssessment, type SqlDatabaseVulnerabilityAssessmentProps, SqlDatabaseVulnerabilityAssessmentRuleBaseline, type SqlDatabaseVulnerabilityAssessmentRuleBaselineProps, SqlDatabaseVulnerabilityAssessmentScan, WorkloadGroup, type WorkloadGroupProps, WorkloadClassifier, type WorkloadClassifierProps, DevOpsAuditingSetting, type DevOpsAuditingSettingProps, ServerDnsAlias, type ServerDnsAliasProps, ElasticPool, type ElasticPoolProps, ServerEncryptionProtector, type ServerEncryptionProtectorProps, ExtendedServerBlobAuditingPolicy, type ExtendedServerBlobAuditingPolicyProps, FailoverGroup, type FailoverGroupProps, FirewallRule, type FirewallRuleProps, IPv6FirewallRule, type IPv6FirewallRuleProps, JobAgent, type JobAgentProps, Credential, type CredentialProps, Job, type JobProps, SqlServerJobExecution, type SqlServerJobExecutionProps, SqlServerJobExecutionStep, SqlServerJobExecutionStepTarget, SqlServerJobStep, type SqlServerJobStepProps, Version, SqlServerJobVersionStep, PrivateEndpoint, type PrivateEndpointProps, TargetGroup, type TargetGroupProps, ServerKey, type ServerKeyProps, NetworkSecurityPerimeterConfiguration, OutboundFirewallRule, type OutboundFirewallRuleProps, ServerPrivateEndpointConnection, type ServerPrivateEndpointConnectionProps, PrivateLinkResource, RecoverableDatabase, RestorableDroppedDatabase, ServerSecurityAlertPolicy, type ServerSecurityAlertPolicyProps, SqlServerSqlVulnerabilityAssessment, type SqlServerSqlVulnerabilityAssessmentProps, SyncAgent, type SyncAgentProps, VirtualNetworkRule, type VirtualNetworkRuleProps, ServerVulnerabilityAssessment, type ServerVulnerabilityAssessmentProps, } from "./server.js";
|
|
13
|
+
export { VirtualCluster, type VirtualClusterProps } from "./virtual-cluster.js";
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,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EACzB,KAAK,8BAA8B,EACnC,mCAAmC,EACnC,KAAK,wCAAwC,EAC7C,SAAS,EACT,KAAK,cAAc,EACnB,kBAAkB,EAClB,KAAK,uBAAuB,EAC5B,6BAA6B,EAC7B,KAAK,kCAAkC,GACxC,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
export * as types from "./types.js";
|
|
4
|
+
export { InstancePool, InstancePoolOperation } from "./instance-pool.js";
|
|
5
|
+
export { DeletedServer } from "./deleted-server.js";
|
|
6
|
+
export { InstanceFailoverGroup, } from "./instance-failover-group.js";
|
|
7
|
+
export { ResourceGroupLongTermRetentionManagedInstanceBackup } from "./resource-group-long-term-retention-managed-instance-backup.js";
|
|
8
|
+
export { SubscriptionLongTermRetentionBackup } from "./subscription-long-term-retention-backup.js";
|
|
9
|
+
export { ManagedDatabaseMoveOperationResult } from "./managed-database-move-operation-result.js";
|
|
10
|
+
export { ServerTrustGroup } from "./server-trust-group.js";
|
|
11
|
+
export { TimeZone } from "./time-zone.js";
|
|
12
|
+
export { Usage } from "./usage.js";
|
|
13
|
+
export { ManagedInstance, ManagedInstanceAdministrator, ManagedInstanceAdvancedThreatProtection, ManagedInstanceAzureAdOnlyAuthentication, ManagedInstanceDatabase, ManagedDatabaseAdvancedThreatProtection, ManagedInstanceLongTermRetentionPolicy, ManagedBackupShortTermRetentionPolicy, ManagedInstanceDatabaseLedgerDigestUpload, Query, RestoreDetail, ManagedDatabaseSchema, ManagedDatabaseTable, ManagedDatabaseColumn, ManagedDatabaseSensitivityLabel, ManagedInstanceDatabaseSecurityAlertPolicy, ManagedInstanceDatabaseTransparentDataEncryption, ManagedDatabaseVulnerabilityAssessment, ManagedDatabaseVulnerabilityAssessmentRuleBaseline, ManagedDatabaseVulnerabilityAssessmentScan, DistributedAvailabilityGroup, ManagedInstanceDnsAlias, Dtc, ManagedInstanceEncryptionProtector, EndpointCertificate, ManagedInstanceKey, ManagedInstanceOperation, ManagedInstancePrivateEndpointConnection, ManagedInstancePrivateLink, RecoverableManagedDatabase, RestorableDroppedManagedDatabase, ManagedRestorableDroppedDbBackupShortTermRetentionPolicy, ManagedInstanceSecurityAlertPolicy, ServerConfigurationOption, ManagedInstanceServerTrustCertificate, SqlAgent, StartStopManagedInstanceSchedule, ManagedInstanceVulnerabilityAssessment, } from "./managed-instance.js";
|
|
14
|
+
export { Server, ServerAdministrator, ServerAdvancedThreatProtection, SqlServerAdvisor, SqlServerBlobAuditingPolicy, ServerAutomaticTuning, ServerAzureAdOnlyAuthentication, ConnectionPolicy, ServerDatabase, DatabaseAdvancedThreatProtection, SqlDatabaseAdvisor, RecommendedAction, DatabaseBlobAuditingPolicy, DatabaseAutomaticTuning, LongTermRetentionPolicy, BackupShortTermRetentionPolicy, DataMaskingPolicy, Rule, DataWarehouseUserActivities, ExtendedDatabaseBlobAuditingPolicy, Extension, GeoBackupPolicy, ServerDatabaseLedgerDigestUpload, ReplicationLink, RestorePoint, SqlDatabaseSchema, SqlDatabaseTable, SqlDatabaseColumn, SqlDatabaseSensitivityLabel, ServerDatabaseSecurityAlertPolicy, SqlDatabaseSqlVulnerabilityAssessment, SqlDatabaseSqlVulnerabilityAssessmentBaseline, SqlDatabaseSqlVulnerabilityAssessmentBaselineRule, SqlDatabaseSqlVulnerabilityAssessmentScan, SqlDatabaseSqlVulnerabilityAssessmentScanResult, SyncGroup, SyncMember, ServerDatabaseTransparentDataEncryption, SqlDatabaseVulnerabilityAssessment, SqlDatabaseVulnerabilityAssessmentRuleBaseline, SqlDatabaseVulnerabilityAssessmentScan, WorkloadGroup, WorkloadClassifier, DevOpsAuditingSetting, ServerDnsAlias, ElasticPool, ServerEncryptionProtector, ExtendedServerBlobAuditingPolicy, FailoverGroup, FirewallRule, IPv6FirewallRule, JobAgent, Credential, Job, SqlServerJobExecution, SqlServerJobExecutionStep, SqlServerJobExecutionStepTarget, SqlServerJobStep, Version, SqlServerJobVersionStep, PrivateEndpoint, TargetGroup, ServerKey, NetworkSecurityPerimeterConfiguration, OutboundFirewallRule, ServerPrivateEndpointConnection, PrivateLinkResource, RecoverableDatabase, RestorableDroppedDatabase, ServerSecurityAlertPolicy, SqlServerSqlVulnerabilityAssessment, SyncAgent, VirtualNetworkRule, ServerVulnerabilityAssessment, } from "./server.js";
|
|
15
|
+
export { VirtualCluster } from "./virtual-cluster.js";
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,YAAY,EAA0B,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AACjG,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EACL,qBAAqB,GAEtB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,mDAAmD,EAAE,MAAM,iEAAiE,CAAC;AACtI,OAAO,EAAE,mCAAmC,EAAE,MAAM,8CAA8C,CAAC;AACnG,OAAO,EAAE,kCAAkC,EAAE,MAAM,6CAA6C,CAAC;AACjG,OAAO,EAAE,gBAAgB,EAA8B,MAAM,yBAAyB,CAAC;AACvF,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EACL,eAAe,EAEf,4BAA4B,EAE5B,uCAAuC,EAEvC,wCAAwC,EAExC,uBAAuB,EAEvB,uCAAuC,EAEvC,sCAAsC,EAEtC,qCAAqC,EAErC,yCAAyC,EAEzC,KAAK,EACL,aAAa,EACb,qBAAqB,EACrB,oBAAoB,EACpB,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B,OAAO,EACP,uBAAuB,EACvB,eAAe,EAEf,WAAW,EAEX,SAAS,EAET,qCAAqC,EACrC,oBAAoB,EAEpB,+BAA+B,EAE/B,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB,yBAAyB,EAEzB,mCAAmC,EAEnC,SAAS,EAET,kBAAkB,EAElB,6BAA6B,GAE9B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,cAAc,EAA4B,MAAM,sBAAsB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * as types from \"./types.js\";\nexport { InstancePool, type InstancePoolProps, InstancePoolOperation } from \"./instance-pool.js\";\nexport { DeletedServer } from \"./deleted-server.js\";\nexport {\n InstanceFailoverGroup,\n type InstanceFailoverGroupProps,\n} from \"./instance-failover-group.js\";\nexport { ResourceGroupLongTermRetentionManagedInstanceBackup } from \"./resource-group-long-term-retention-managed-instance-backup.js\";\nexport { SubscriptionLongTermRetentionBackup } from \"./subscription-long-term-retention-backup.js\";\nexport { ManagedDatabaseMoveOperationResult } from \"./managed-database-move-operation-result.js\";\nexport { ServerTrustGroup, type ServerTrustGroupProps } from \"./server-trust-group.js\";\nexport { TimeZone } from \"./time-zone.js\";\nexport { Usage } from \"./usage.js\";\nexport {\n ManagedInstance,\n type ManagedInstanceProps,\n ManagedInstanceAdministrator,\n type ManagedInstanceAdministratorProps,\n ManagedInstanceAdvancedThreatProtection,\n type ManagedInstanceAdvancedThreatProtectionProps,\n ManagedInstanceAzureAdOnlyAuthentication,\n type ManagedInstanceAzureAdOnlyAuthenticationProps,\n ManagedInstanceDatabase,\n type ManagedInstanceDatabaseProps,\n ManagedDatabaseAdvancedThreatProtection,\n type ManagedDatabaseAdvancedThreatProtectionProps,\n ManagedInstanceLongTermRetentionPolicy,\n type ManagedInstanceLongTermRetentionPolicyProps,\n ManagedBackupShortTermRetentionPolicy,\n type ManagedBackupShortTermRetentionPolicyProps,\n ManagedInstanceDatabaseLedgerDigestUpload,\n type ManagedInstanceDatabaseLedgerDigestUploadProps,\n Query,\n RestoreDetail,\n ManagedDatabaseSchema,\n ManagedDatabaseTable,\n ManagedDatabaseColumn,\n ManagedDatabaseSensitivityLabel,\n type ManagedDatabaseSensitivityLabelProps,\n ManagedInstanceDatabaseSecurityAlertPolicy,\n type ManagedInstanceDatabaseSecurityAlertPolicyProps,\n ManagedInstanceDatabaseTransparentDataEncryption,\n type ManagedInstanceDatabaseTransparentDataEncryptionProps,\n ManagedDatabaseVulnerabilityAssessment,\n type ManagedDatabaseVulnerabilityAssessmentProps,\n ManagedDatabaseVulnerabilityAssessmentRuleBaseline,\n type ManagedDatabaseVulnerabilityAssessmentRuleBaselineProps,\n ManagedDatabaseVulnerabilityAssessmentScan,\n DistributedAvailabilityGroup,\n type DistributedAvailabilityGroupProps,\n ManagedInstanceDnsAlias,\n type ManagedInstanceDnsAliasProps,\n Dtc,\n type DtcProps,\n ManagedInstanceEncryptionProtector,\n type ManagedInstanceEncryptionProtectorProps,\n EndpointCertificate,\n ManagedInstanceKey,\n type ManagedInstanceKeyProps,\n ManagedInstanceOperation,\n ManagedInstancePrivateEndpointConnection,\n type ManagedInstancePrivateEndpointConnectionProps,\n ManagedInstancePrivateLink,\n RecoverableManagedDatabase,\n RestorableDroppedManagedDatabase,\n ManagedRestorableDroppedDbBackupShortTermRetentionPolicy,\n type ManagedRestorableDroppedDbBackupShortTermRetentionPolicyProps,\n ManagedInstanceSecurityAlertPolicy,\n type ManagedInstanceSecurityAlertPolicyProps,\n ServerConfigurationOption,\n type ServerConfigurationOptionProps,\n ManagedInstanceServerTrustCertificate,\n type ManagedInstanceServerTrustCertificateProps,\n SqlAgent,\n type SqlAgentProps,\n StartStopManagedInstanceSchedule,\n type StartStopManagedInstanceScheduleProps,\n ManagedInstanceVulnerabilityAssessment,\n type ManagedInstanceVulnerabilityAssessmentProps,\n} from \"./managed-instance.js\";\nexport {\n Server,\n type ServerProps,\n ServerAdministrator,\n type ServerAdministratorProps,\n ServerAdvancedThreatProtection,\n type ServerAdvancedThreatProtectionProps,\n SqlServerAdvisor,\n SqlServerBlobAuditingPolicy,\n type SqlServerBlobAuditingPolicyProps,\n ServerAutomaticTuning,\n ServerAzureAdOnlyAuthentication,\n type ServerAzureAdOnlyAuthenticationProps,\n ConnectionPolicy,\n type ConnectionPolicyProps,\n ServerDatabase,\n type ServerDatabaseProps,\n DatabaseAdvancedThreatProtection,\n type DatabaseAdvancedThreatProtectionProps,\n SqlDatabaseAdvisor,\n RecommendedAction,\n DatabaseBlobAuditingPolicy,\n type DatabaseBlobAuditingPolicyProps,\n DatabaseAutomaticTuning,\n LongTermRetentionPolicy,\n type LongTermRetentionPolicyProps,\n BackupShortTermRetentionPolicy,\n type BackupShortTermRetentionPolicyProps,\n DataMaskingPolicy,\n type DataMaskingPolicyProps,\n Rule,\n type RuleProps,\n DataWarehouseUserActivities,\n ExtendedDatabaseBlobAuditingPolicy,\n type ExtendedDatabaseBlobAuditingPolicyProps,\n Extension,\n type ExtensionProps,\n GeoBackupPolicy,\n type GeoBackupPolicyProps,\n ServerDatabaseLedgerDigestUpload,\n type ServerDatabaseLedgerDigestUploadProps,\n ReplicationLink,\n type ReplicationLinkProps,\n RestorePoint,\n SqlDatabaseSchema,\n SqlDatabaseTable,\n SqlDatabaseColumn,\n SqlDatabaseSensitivityLabel,\n type SqlDatabaseSensitivityLabelProps,\n ServerDatabaseSecurityAlertPolicy,\n type ServerDatabaseSecurityAlertPolicyProps,\n SqlDatabaseSqlVulnerabilityAssessment,\n SqlDatabaseSqlVulnerabilityAssessmentBaseline,\n type SqlDatabaseSqlVulnerabilityAssessmentBaselineProps,\n SqlDatabaseSqlVulnerabilityAssessmentBaselineRule,\n type SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleProps,\n SqlDatabaseSqlVulnerabilityAssessmentScan,\n SqlDatabaseSqlVulnerabilityAssessmentScanResult,\n SyncGroup,\n type SyncGroupProps,\n SyncMember,\n type SyncMemberProps,\n ServerDatabaseTransparentDataEncryption,\n type ServerDatabaseTransparentDataEncryptionProps,\n SqlDatabaseVulnerabilityAssessment,\n type SqlDatabaseVulnerabilityAssessmentProps,\n SqlDatabaseVulnerabilityAssessmentRuleBaseline,\n type SqlDatabaseVulnerabilityAssessmentRuleBaselineProps,\n SqlDatabaseVulnerabilityAssessmentScan,\n WorkloadGroup,\n type WorkloadGroupProps,\n WorkloadClassifier,\n type WorkloadClassifierProps,\n DevOpsAuditingSetting,\n type DevOpsAuditingSettingProps,\n ServerDnsAlias,\n type ServerDnsAliasProps,\n ElasticPool,\n type ElasticPoolProps,\n ServerEncryptionProtector,\n type ServerEncryptionProtectorProps,\n ExtendedServerBlobAuditingPolicy,\n type ExtendedServerBlobAuditingPolicyProps,\n FailoverGroup,\n type FailoverGroupProps,\n FirewallRule,\n type FirewallRuleProps,\n IPv6FirewallRule,\n type IPv6FirewallRuleProps,\n JobAgent,\n type JobAgentProps,\n Credential,\n type CredentialProps,\n Job,\n type JobProps,\n SqlServerJobExecution,\n type SqlServerJobExecutionProps,\n SqlServerJobExecutionStep,\n SqlServerJobExecutionStepTarget,\n SqlServerJobStep,\n type SqlServerJobStepProps,\n Version,\n SqlServerJobVersionStep,\n PrivateEndpoint,\n type PrivateEndpointProps,\n TargetGroup,\n type TargetGroupProps,\n ServerKey,\n type ServerKeyProps,\n NetworkSecurityPerimeterConfiguration,\n OutboundFirewallRule,\n type OutboundFirewallRuleProps,\n ServerPrivateEndpointConnection,\n type ServerPrivateEndpointConnectionProps,\n PrivateLinkResource,\n RecoverableDatabase,\n RestorableDroppedDatabase,\n ServerSecurityAlertPolicy,\n type ServerSecurityAlertPolicyProps,\n SqlServerSqlVulnerabilityAssessment,\n type SqlServerSqlVulnerabilityAssessmentProps,\n SyncAgent,\n type SyncAgentProps,\n VirtualNetworkRule,\n type VirtualNetworkRuleProps,\n ServerVulnerabilityAssessment,\n type ServerVulnerabilityAssessmentProps,\n} from \"./server.js\";\nexport { VirtualCluster, type VirtualClusterProps } from \"./virtual-cluster.js\";\n"]}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 InstanceFailoverGroupPropertiesInput, type InstanceFailoverGroupPropertiesView } from "./types.js";
|
|
4
|
+
export interface InstanceFailoverGroupProps {
|
|
5
|
+
/**
|
|
6
|
+
* The name of the failover group.
|
|
7
|
+
*/
|
|
8
|
+
name?: ExpressionOrValue<string> | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Resource properties.
|
|
11
|
+
*/
|
|
12
|
+
properties?: InstanceFailoverGroupPropertiesInput | undefined;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* An instance failover group.
|
|
16
|
+
*/
|
|
17
|
+
export declare class InstanceFailoverGroup extends Resource<"Microsoft.Sql/locations/instanceFailoverGroups"> {
|
|
18
|
+
static resourceType: "Microsoft.Sql/locations/instanceFailoverGroups";
|
|
19
|
+
static apiVersion: string;
|
|
20
|
+
protected static namingRules: ResourceNamingRules;
|
|
21
|
+
/**
|
|
22
|
+
* Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
|
|
23
|
+
* resource metadata. Shared by ordinary construction and internal resource reconstruction.
|
|
24
|
+
*
|
|
25
|
+
* @param props - Resource properties to normalize for the base constructor.
|
|
26
|
+
*/
|
|
27
|
+
protected static buildResourceProps(props?: (InstanceFailoverGroupProps & {
|
|
28
|
+
existing?: false;
|
|
29
|
+
}) | (ExistingResourceProps & {
|
|
30
|
+
existing: true;
|
|
31
|
+
})): ResourceProps<"Microsoft.Sql/locations/instanceFailoverGroups"> & Record<string, unknown>;
|
|
32
|
+
constructor(context: ProvisioningComponent, props?: (InstanceFailoverGroupProps & {
|
|
33
|
+
existing?: false;
|
|
34
|
+
}) | (ExistingResourceProps & {
|
|
35
|
+
existing: true;
|
|
36
|
+
}), options?: ResourceOptions);
|
|
37
|
+
/**
|
|
38
|
+
* The name of the failover group.
|
|
39
|
+
*/
|
|
40
|
+
get name(): Expression<string>;
|
|
41
|
+
set name(value: ExpressionOrValue<string>);
|
|
42
|
+
/**
|
|
43
|
+
* Resource properties.
|
|
44
|
+
*/
|
|
45
|
+
get properties(): InstanceFailoverGroupPropertiesView;
|
|
46
|
+
set properties(value: InstanceFailoverGroupPropertiesInput | undefined);
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=instance-failover-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instance-failover-group.d.ts","sourceRoot":"","sources":["../../src/instance-failover-group.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,EACL,KAAK,oCAAoC,EAEzC,KAAK,mCAAmC,EACzC,MAAM,YAAY,CAAC;AAIpB,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,IAAI,CAAC,EAAE,iBAAiB,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IAC7C;;OAEG;IACH,UAAU,CAAC,EAAE,oCAAoC,GAAG,SAAS,CAAC;CAC/D;AAED;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,QAAQ,CAAC,gDAAgD,CAAC;IACnG,MAAM,CAAC,YAAY,EAAG,gDAAgD,CAAU;IAChF,MAAM,CAAC,UAAU,SAAe;IAChC,SAAS,CAAC,MAAM,CAAC,WAAW,EAAE,mBAAmB,CAI/C;IAeF;;;;;OAKG;IACH,SAAS,CAAC,MAAM,CAAC,kBAAkB,CACjC,KAAK,CAAC,EACF,CAAC,0BAA0B,GAAG;QAAE,QAAQ,CAAC,EAAE,KAAK,CAAA;KAAE,CAAC,GACnD,CAAC,qBAAqB,GAAG;QAAE,QAAQ,EAAE,IAAI,CAAA;KAAE,CAAC,GAC/C,aAAa,CAAC,gDAAgD,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;gBAS1F,OAAO,EAAE,qBAAqB,EAC9B,KAAK,CAAC,EACF,CAAC,0BAA0B,GAAG;QAAE,QAAQ,CAAC,EAAE,KAAK,CAAA;KAAE,CAAC,GACnD,CAAC,qBAAqB,GAAG;QAAE,QAAQ,EAAE,IAAI,CAAA;KAAE,CAAC,EAChD,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,mCAAmC,CAEpD;IACD,IAAI,UAAU,CAAC,KAAK,EAAE,oCAAoC,GAAG,SAAS,EAErE;CACF"}
|
|
@@ -0,0 +1,63 @@
|
|
|
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 { instanceFailoverGroupPropertiesShape, } from "./types.js";
|
|
6
|
+
const API_VERSION = "2025-01-01";
|
|
7
|
+
/**
|
|
8
|
+
* An instance failover group.
|
|
9
|
+
*/
|
|
10
|
+
export class InstanceFailoverGroup extends Resource {
|
|
11
|
+
static resourceType = "Microsoft.Sql/locations/instanceFailoverGroups";
|
|
12
|
+
static apiVersion = API_VERSION;
|
|
13
|
+
static namingRules = {
|
|
14
|
+
abbreviation: "ifg",
|
|
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(() => instanceFailoverGroupPropertiesShape),
|
|
24
|
+
},
|
|
25
|
+
}));
|
|
26
|
+
this.register();
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
|
|
30
|
+
* resource metadata. Shared by ordinary construction and internal resource reconstruction.
|
|
31
|
+
*
|
|
32
|
+
* @param props - Resource properties to normalize for the base constructor.
|
|
33
|
+
*/
|
|
34
|
+
static buildResourceProps(props) {
|
|
35
|
+
return {
|
|
36
|
+
...props,
|
|
37
|
+
type: InstanceFailoverGroup.resourceType,
|
|
38
|
+
apiVersion: InstanceFailoverGroup.apiVersion,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
constructor(context, props, options) {
|
|
42
|
+
super(context, InstanceFailoverGroup.buildResourceProps(props), options);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* The name of the failover group.
|
|
46
|
+
*/
|
|
47
|
+
get name() {
|
|
48
|
+
return this.expr("name");
|
|
49
|
+
}
|
|
50
|
+
set name(value) {
|
|
51
|
+
this.setProperty("name", value);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Resource properties.
|
|
55
|
+
*/
|
|
56
|
+
get properties() {
|
|
57
|
+
return this.expr("properties");
|
|
58
|
+
}
|
|
59
|
+
set properties(value) {
|
|
60
|
+
this.setProperty("properties", value);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=instance-failover-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instance-failover-group.js","sourceRoot":"","sources":["../../src/instance-failover-group.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,E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AC;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,KAAuD;QACpE,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,KAAK,CAAC,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 {\n type InstanceFailoverGroupPropertiesInput,\n instanceFailoverGroupPropertiesShape,\n type InstanceFailoverGroupPropertiesView,\n} from \"./types.js\";\n\nconst API_VERSION = \"2025-01-01\";\n\nexport interface InstanceFailoverGroupProps {\n /**\n * The name of the failover group.\n */\n name?: ExpressionOrValue<string> | undefined;\n /**\n * Resource properties.\n */\n properties?: InstanceFailoverGroupPropertiesInput | undefined;\n}\n\n/**\n * An instance failover group.\n */\nexport class InstanceFailoverGroup extends Resource<\"Microsoft.Sql/locations/instanceFailoverGroups\"> {\n static resourceType = \"Microsoft.Sql/locations/instanceFailoverGroups\" as const;\n static apiVersion = API_VERSION;\n protected static namingRules: ResourceNamingRules = {\n abbreviation: \"ifg\",\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(() => instanceFailoverGroupPropertiesShape),\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?:\n | (InstanceFailoverGroupProps & { existing?: false })\n | (ExistingResourceProps & { existing: true }),\n ): ResourceProps<\"Microsoft.Sql/locations/instanceFailoverGroups\"> & Record<string, unknown> {\n return {\n ...props,\n type: InstanceFailoverGroup.resourceType,\n apiVersion: InstanceFailoverGroup.apiVersion,\n };\n }\n\n constructor(\n context: ProvisioningComponent,\n props?:\n | (InstanceFailoverGroupProps & { existing?: false })\n | (ExistingResourceProps & { existing: true }),\n options?: ResourceOptions,\n ) {\n super(context, InstanceFailoverGroup.buildResourceProps(props), options);\n }\n\n /**\n * The name of the failover group.\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(): InstanceFailoverGroupPropertiesView {\n return this.expr(\"properties\") as any;\n }\n set properties(value: InstanceFailoverGroupPropertiesInput | undefined) {\n this.setProperty(\"properties\", value);\n }\n}\n"]}
|
|
@@ -0,0 +1,101 @@
|
|
|
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 InstancePoolOperationProperties, type InstancePoolPropertiesInput, type InstancePoolPropertiesView, type SkuInput, type SkuView } from "./types.js";
|
|
4
|
+
export interface InstancePoolProps {
|
|
5
|
+
/**
|
|
6
|
+
* The geo-location where the resource lives
|
|
7
|
+
*/
|
|
8
|
+
location?: ExpressionOrValue<string> | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* The name of the instance pool to be retrieved.
|
|
11
|
+
*/
|
|
12
|
+
name?: ExpressionOrValue<string> | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Resource properties.
|
|
15
|
+
*/
|
|
16
|
+
properties?: InstancePoolPropertiesInput | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* The name and tier of the SKU.
|
|
19
|
+
*/
|
|
20
|
+
sku?: SkuInput | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Resource tags.
|
|
23
|
+
*/
|
|
24
|
+
tags?: InputRecord<ExpressionOrValue<string>, Record<string, string>> | undefined;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A instance pool operation.
|
|
28
|
+
*/
|
|
29
|
+
export declare class InstancePoolOperation extends Resource<"Microsoft.Sql/instancePools/operations"> {
|
|
30
|
+
static resourceType: "Microsoft.Sql/instancePools/operations";
|
|
31
|
+
static apiVersion: string;
|
|
32
|
+
protected static namingRules: ResourceNamingRules;
|
|
33
|
+
/**
|
|
34
|
+
* Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
|
|
35
|
+
* resource metadata. Shared by ordinary construction and internal resource reconstruction.
|
|
36
|
+
*
|
|
37
|
+
* @param props - Resource properties to normalize for the base constructor.
|
|
38
|
+
*/
|
|
39
|
+
protected static buildResourceProps(props?: ExistingResourceProps & {
|
|
40
|
+
existing: true;
|
|
41
|
+
}): ResourceProps<"Microsoft.Sql/instancePools/operations"> & Record<string, unknown>;
|
|
42
|
+
constructor(context: InstancePool, props: ExistingResourceProps & {
|
|
43
|
+
existing: true;
|
|
44
|
+
}, options?: ResourceOptions);
|
|
45
|
+
get name(): Expression<string>;
|
|
46
|
+
set name(value: ExpressionOrValue<string>);
|
|
47
|
+
/**
|
|
48
|
+
* Resource properties.
|
|
49
|
+
*/
|
|
50
|
+
get properties(): Expression<InstancePoolOperationProperties>;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* An Azure SQL instance pool.
|
|
54
|
+
*/
|
|
55
|
+
export declare class InstancePool extends Resource<"Microsoft.Sql/instancePools"> {
|
|
56
|
+
static resourceType: "Microsoft.Sql/instancePools";
|
|
57
|
+
static apiVersion: string;
|
|
58
|
+
protected static namingRules: ResourceNamingRules;
|
|
59
|
+
/**
|
|
60
|
+
* Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
|
|
61
|
+
* resource metadata. Shared by ordinary construction and internal resource reconstruction.
|
|
62
|
+
*
|
|
63
|
+
* @param props - Resource properties to normalize for the base constructor.
|
|
64
|
+
*/
|
|
65
|
+
protected static buildResourceProps(props?: (InstancePoolProps & {
|
|
66
|
+
existing?: false;
|
|
67
|
+
}) | (ExistingResourceProps & {
|
|
68
|
+
existing: true;
|
|
69
|
+
})): ResourceProps<"Microsoft.Sql/instancePools"> & Record<string, unknown>;
|
|
70
|
+
constructor(context: ProvisioningComponent, props?: (InstancePoolProps & {
|
|
71
|
+
existing?: false;
|
|
72
|
+
}) | (ExistingResourceProps & {
|
|
73
|
+
existing: true;
|
|
74
|
+
}), options?: ResourceOptions);
|
|
75
|
+
/**
|
|
76
|
+
* The geo-location where the resource lives
|
|
77
|
+
*/
|
|
78
|
+
get location(): Expression<string>;
|
|
79
|
+
set location(value: ExpressionOrValue<string>);
|
|
80
|
+
/**
|
|
81
|
+
* The name of the instance pool to be retrieved.
|
|
82
|
+
*/
|
|
83
|
+
get name(): Expression<string>;
|
|
84
|
+
set name(value: ExpressionOrValue<string>);
|
|
85
|
+
/**
|
|
86
|
+
* Resource properties.
|
|
87
|
+
*/
|
|
88
|
+
get properties(): InstancePoolPropertiesView;
|
|
89
|
+
set properties(value: InstancePoolPropertiesInput | undefined);
|
|
90
|
+
/**
|
|
91
|
+
* The name and tier of the SKU.
|
|
92
|
+
*/
|
|
93
|
+
get sku(): SkuView;
|
|
94
|
+
set sku(value: SkuInput | undefined);
|
|
95
|
+
/**
|
|
96
|
+
* Resource tags.
|
|
97
|
+
*/
|
|
98
|
+
get tags(): InputRecord<ExpressionOrValue<string>, Record<string, string>>;
|
|
99
|
+
set tags(value: InputRecord<ExpressionOrValue<string>, Record<string, string>> | undefined);
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=instance-pool.d.ts.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