@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,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":"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C,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,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.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instance-pool.d.ts","sourceRoot":"","sources":["../../src/instance-pool.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,+BAA+B,EAEpC,KAAK,2BAA2B,EAEhC,KAAK,0BAA0B,EAC/B,KAAK,QAAQ,EAEb,KAAK,OAAO,EACb,MAAM,YAAY,CAAC;AAIpB,MAAM,WAAW,iBAAiB;IAChC;;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,2BAA2B,GAAG,SAAS,CAAC;IACrD;;OAEG;IACH,GAAG,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC3B;;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,qBAAsB,SAAQ,QAAQ,CAAC,wCAAwC,CAAC;IAC3F,MAAM,CAAC,YAAY,EAAG,wCAAwC,CAAU;IACxE,MAAM,CAAC,UAAU,SAAe;IAChC,SAAS,CAAC,MAAM,CAAC,WAAW,EAAE,mBAAmB,CAM/C;IAgBF;;;;;OAKG;IACH,SAAS,CAAC,M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I,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,0BAA0B,CAE3C;IACD,IAAI,UAAU,CAAC,KAAK,EAAE,2BAA2B,GAAG,SAAS,EAE5D;IAED;;OAEG;IACH,IAAI,GAAG,IAAI,OAAO,CAEjB;IACD,IAAI,GAAG,CAAC,KAAK,EAAE,QAAQ,GAAG,SAAS,EAElC;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,148 @@
|
|
|
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 { instancePoolOperationPropertiesShape, instancePoolPropertiesShape, skuShape, } from "./types.js";
|
|
6
|
+
const API_VERSION = "2025-01-01";
|
|
7
|
+
/**
|
|
8
|
+
* A instance pool operation.
|
|
9
|
+
*/
|
|
10
|
+
export class InstancePoolOperation extends Resource {
|
|
11
|
+
static resourceType = "Microsoft.Sql/instancePools/operations";
|
|
12
|
+
static apiVersion = API_VERSION;
|
|
13
|
+
static namingRules = {
|
|
14
|
+
abbreviation: "o",
|
|
15
|
+
pattern: {
|
|
16
|
+
regex: "",
|
|
17
|
+
},
|
|
18
|
+
scope: "parent",
|
|
19
|
+
};
|
|
20
|
+
static {
|
|
21
|
+
this.registerShape(createFlatModelShape({
|
|
22
|
+
name: { armPath: ["name"], value: createStringShape() },
|
|
23
|
+
properties: {
|
|
24
|
+
armPath: ["properties"],
|
|
25
|
+
value: createDeferredShape(() => instancePoolOperationPropertiesShape),
|
|
26
|
+
readOnly: true,
|
|
27
|
+
},
|
|
28
|
+
}));
|
|
29
|
+
this.register();
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
|
|
33
|
+
* resource metadata. Shared by ordinary construction and internal resource reconstruction.
|
|
34
|
+
*
|
|
35
|
+
* @param props - Resource properties to normalize for the base constructor.
|
|
36
|
+
*/
|
|
37
|
+
static buildResourceProps(props) {
|
|
38
|
+
return {
|
|
39
|
+
...props,
|
|
40
|
+
type: InstancePoolOperation.resourceType,
|
|
41
|
+
apiVersion: InstancePoolOperation.apiVersion,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
constructor(context, props, options) {
|
|
45
|
+
super(context, InstancePoolOperation.buildResourceProps(props), options);
|
|
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
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* An Azure SQL instance pool.
|
|
62
|
+
*/
|
|
63
|
+
export class InstancePool extends Resource {
|
|
64
|
+
static resourceType = "Microsoft.Sql/instancePools";
|
|
65
|
+
static apiVersion = API_VERSION;
|
|
66
|
+
static namingRules = {
|
|
67
|
+
abbreviation: "ip",
|
|
68
|
+
pattern: {
|
|
69
|
+
regex: "",
|
|
70
|
+
},
|
|
71
|
+
scope: "global",
|
|
72
|
+
};
|
|
73
|
+
static {
|
|
74
|
+
this.registerShape(createFlatModelShape({
|
|
75
|
+
location: { armPath: ["location"], value: createStringShape() },
|
|
76
|
+
name: { armPath: ["name"], value: createStringShape() },
|
|
77
|
+
properties: {
|
|
78
|
+
armPath: ["properties"],
|
|
79
|
+
value: createDeferredShape(() => instancePoolPropertiesShape),
|
|
80
|
+
},
|
|
81
|
+
sku: { armPath: ["sku"], value: createDeferredShape(() => skuShape) },
|
|
82
|
+
tags: { armPath: ["tags"], value: createRecordShape(createStringShape()) },
|
|
83
|
+
}));
|
|
84
|
+
this.register();
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
|
|
88
|
+
* resource metadata. Shared by ordinary construction and internal resource reconstruction.
|
|
89
|
+
*
|
|
90
|
+
* @param props - Resource properties to normalize for the base constructor.
|
|
91
|
+
*/
|
|
92
|
+
static buildResourceProps(props) {
|
|
93
|
+
return {
|
|
94
|
+
...props,
|
|
95
|
+
type: InstancePool.resourceType,
|
|
96
|
+
apiVersion: InstancePool.apiVersion,
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
constructor(context, props, options) {
|
|
100
|
+
super(context, InstancePool.buildResourceProps(props), options);
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* The geo-location where the resource lives
|
|
104
|
+
*/
|
|
105
|
+
get location() {
|
|
106
|
+
return this.expr("location");
|
|
107
|
+
}
|
|
108
|
+
set location(value) {
|
|
109
|
+
this.setProperty("location", value);
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* The name of the instance pool to be retrieved.
|
|
113
|
+
*/
|
|
114
|
+
get name() {
|
|
115
|
+
return this.expr("name");
|
|
116
|
+
}
|
|
117
|
+
set name(value) {
|
|
118
|
+
this.setProperty("name", value);
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Resource properties.
|
|
122
|
+
*/
|
|
123
|
+
get properties() {
|
|
124
|
+
return this.expr("properties");
|
|
125
|
+
}
|
|
126
|
+
set properties(value) {
|
|
127
|
+
this.setProperty("properties", value);
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* The name and tier of the SKU.
|
|
131
|
+
*/
|
|
132
|
+
get sku() {
|
|
133
|
+
return this.expr("sku");
|
|
134
|
+
}
|
|
135
|
+
set sku(value) {
|
|
136
|
+
this.setProperty("sku", value);
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Resource tags.
|
|
140
|
+
*/
|
|
141
|
+
get tags() {
|
|
142
|
+
return this.expr("tags");
|
|
143
|
+
}
|
|
144
|
+
set tags(value) {
|
|
145
|
+
this.setProperty("tags", value);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
//# sourceMappingURL=instance-pool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instance-pool.js","sourceRoot":"","sources":["../../src/instance-pool.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,oCAAoC,EAEpC,2BAA2B,EAG3B,QAAQ,GAET,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,GAAG,YAAY,CAAC;AAyBjC;;GAEG;AACH,MAAM,OAAO,qBAAsB,SAAQ,QAAkD;IAC3F,MAAM,CAAC,YAAY,GAAG,wCAAiD,CAAC;IACxE,MAAM,CAAC,UAAU,GAAG,WAAW,CAAC;IACtB,MAAM,CAAC,WAAW,GAAwB;QAClD,YAAY,EAAE,GAAG;QACjB,OAAO,EAAE;YACP,KAAK,EAAE,EA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C,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,KAA8C;QAC3D,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;IACxC,CAAC;IAED;;OAEG;IACH,IAAI,GAAG;QACL,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAQ,CAAC;IACjC,CAAC;IACD,IAAI,GAAG,CAAC,KAA2B;QACjC,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IACjC,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 InstancePoolOperationProperties,\n instancePoolOperationPropertiesShape,\n type InstancePoolPropertiesInput,\n instancePoolPropertiesShape,\n type InstancePoolPropertiesView,\n type SkuInput,\n skuShape,\n type SkuView,\n} from \"./types.js\";\n\nconst API_VERSION = \"2025-01-01\";\n\nexport interface InstancePoolProps {\n /**\n * The geo-location where the resource lives\n */\n location?: ExpressionOrValue<string> | undefined;\n /**\n * The name of the instance pool to be retrieved.\n */\n name?: ExpressionOrValue<string> | undefined;\n /**\n * Resource properties.\n */\n properties?: InstancePoolPropertiesInput | undefined;\n /**\n * The name and tier of the SKU.\n */\n sku?: SkuInput | undefined;\n /**\n * Resource tags.\n */\n tags?: InputRecord<ExpressionOrValue<string>, Record<string, string>> | undefined;\n}\n\n/**\n * A instance pool operation.\n */\nexport class InstancePoolOperation extends Resource<\"Microsoft.Sql/instancePools/operations\"> {\n static resourceType = \"Microsoft.Sql/instancePools/operations\" as const;\n static apiVersion = API_VERSION;\n protected static namingRules: ResourceNamingRules = {\n abbreviation: \"o\",\n pattern: {\n regex: \"\",\n },\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(() => instancePoolOperationPropertiesShape),\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/instancePools/operations\"> & Record<string, unknown> {\n return {\n ...props,\n type: InstancePoolOperation.resourceType,\n apiVersion: InstancePoolOperation.apiVersion,\n };\n }\n\n constructor(\n context: InstancePool,\n props: ExistingResourceProps & { existing: true },\n options?: ResourceOptions,\n ) {\n super(context, InstancePoolOperation.buildResourceProps(props), options);\n }\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<InstancePoolOperationProperties> {\n return this.expr(\"properties\") as any;\n }\n}\n\n/**\n * An Azure SQL instance pool.\n */\nexport class InstancePool extends Resource<\"Microsoft.Sql/instancePools\"> {\n static resourceType = \"Microsoft.Sql/instancePools\" as const;\n static apiVersion = API_VERSION;\n protected static namingRules: ResourceNamingRules = {\n abbreviation: \"ip\",\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(() => instancePoolPropertiesShape),\n },\n sku: { armPath: [\"sku\"], value: createDeferredShape(() => skuShape) },\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 (InstancePoolProps & { existing?: false }) | (ExistingResourceProps & { existing: true }),\n ): ResourceProps<\"Microsoft.Sql/instancePools\"> & Record<string, unknown> {\n return {\n ...props,\n type: InstancePool.resourceType,\n apiVersion: InstancePool.apiVersion,\n };\n }\n\n constructor(\n context: ProvisioningComponent,\n props?:\n (InstancePoolProps & { existing?: false }) | (ExistingResourceProps & { existing: true }),\n options?: ResourceOptions,\n ) {\n super(context, InstancePool.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 instance pool to be retrieved.\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(): InstancePoolPropertiesView {\n return this.expr(\"properties\") as any;\n }\n set properties(value: InstancePoolPropertiesInput | undefined) {\n this.setProperty(\"properties\", value);\n }\n\n /**\n * The name and tier of the SKU.\n */\n get sku(): SkuView {\n return this.expr(\"sku\") as any;\n }\n set sku(value: SkuInput | undefined) {\n this.setProperty(\"sku\", 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"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 ManagedDatabaseMoveOperationResultProperties } from "./types.js";
|
|
4
|
+
/**
|
|
5
|
+
* A managed database move operation.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ManagedDatabaseMoveOperationResult extends Resource<"Microsoft.Sql/locations/managedDatabaseMoveOperationResults"> {
|
|
8
|
+
static resourceType: "Microsoft.Sql/locations/managedDatabaseMoveOperationResults";
|
|
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/managedDatabaseMoveOperationResults"> & Record<string, unknown>;
|
|
20
|
+
constructor(context: ProvisioningComponent, props: ExistingResourceProps & {
|
|
21
|
+
existing: true;
|
|
22
|
+
}, options?: ResourceOptions);
|
|
23
|
+
get name(): Expression<string>;
|
|
24
|
+
set name(value: ExpressionOrValue<string>);
|
|
25
|
+
/**
|
|
26
|
+
* Resource properties.
|
|
27
|
+
*/
|
|
28
|
+
get properties(): Expression<ManagedDatabaseMoveOperationResultProperties>;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=managed-database-move-operation-result.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managed-database-move-operation-result.d.ts","sourceRoot":"","sources":["../../src/managed-database-move-operation-result.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,4CAA4C,EAElD,MAAM,YAAY,CAAC;AAIpB;;GAEG;AACH,qBAAa,kCAAmC,SAAQ,QAAQ,CAAC,6DAA6D,CAAC;IAC7H,MAAM,CAAC,YAAY,EAAG,6DAA6D,CAAU;IAC7F,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,6DAA6D,CAAC,GAC7E,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;gBASvB,OAAO,EAAE,qBAAqB,EAC9B,KAAK,EAAE,qBAAqB,GAAG;QAAE,QAAQ,EAAE,IAAI,CAAA;KAAE,EACjD,OAAO,CAAC,EAAE,eAAe;IAK3B,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,4CAA4C,CAAC,CAEzE;CACF"}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 { managedDatabaseMoveOperationResultPropertiesShape, } from "./types.js";
|
|
6
|
+
const API_VERSION = "2025-01-01";
|
|
7
|
+
/**
|
|
8
|
+
* A managed database move operation.
|
|
9
|
+
*/
|
|
10
|
+
export class ManagedDatabaseMoveOperationResult extends Resource {
|
|
11
|
+
static resourceType = "Microsoft.Sql/locations/managedDatabaseMoveOperationResults";
|
|
12
|
+
static apiVersion = API_VERSION;
|
|
13
|
+
static namingRules = {
|
|
14
|
+
abbreviation: "mdmor",
|
|
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(() => managedDatabaseMoveOperationResultPropertiesShape),
|
|
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: ManagedDatabaseMoveOperationResult.resourceType,
|
|
39
|
+
apiVersion: ManagedDatabaseMoveOperationResult.apiVersion,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
constructor(context, props, options) {
|
|
43
|
+
super(context, ManagedDatabaseMoveOperationResult.buildResourceProps(props), options);
|
|
44
|
+
}
|
|
45
|
+
get name() {
|
|
46
|
+
return this.expr("name");
|
|
47
|
+
}
|
|
48
|
+
set name(value) {
|
|
49
|
+
this.setProperty("name", value);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Resource properties.
|
|
53
|
+
*/
|
|
54
|
+
get properties() {
|
|
55
|
+
return this.expr("properties");
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=managed-database-move-operation-result.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managed-database-move-operation-result.js","sourceRoot":"","sources":["../../src/managed-database-move-operation-result.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,EAEL,iDAAiD,GAClD,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,GAAG,YAAY,CAAC;AAEjC;;GAEG;AACH,MAAM,OAAO,kCAAmC,SAAQ,QAAuE;IAC7H,MAAM,CAAC,YAAY,GAAG,6DAAsE,CAAC;IAC7F,MAAM,CAAC,UAAU,GAAG,WAAW,CAAC;IACtB,MAAM,CAAC,WAAW,GAAwB;QAClD,YAAY,EAAE,OAAO;QACrB,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,iDAAiD,CAAC;gBACnF,QAAQ,EAAE,IAAI;aACf;SACF,CAAC,CACH,CAAC;QACF,IAAI,CAAC,QAAQ,EAAE,CAAC;IAClB,CAAC;IAED;;;;;OAKG;IACO,MAAM,CAAC,kBAAkB,CACjC,KAAkD;QAGlD,OAAO;YACL,GAAG,KAAK;YACR,IAAI,EAAE,kCAAkC,CAAC,YAAY;YACrD,UAAU,EAAE,kCAAkC,CAAC,UAAU;SAC1D,CAAC;IACJ,CAAC;IAED,YACE,OAA8B,EAC9B,KAAiD,EACjD,OAAyB;QAEzB,KAAK,CAAC,OAAO,EAAE,kCAAkC,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED,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 {\n type ManagedDatabaseMoveOperationResultProperties,\n managedDatabaseMoveOperationResultPropertiesShape,\n} from \"./types.js\";\n\nconst API_VERSION = \"2025-01-01\";\n\n/**\n * A managed database move operation.\n */\nexport class ManagedDatabaseMoveOperationResult extends Resource<\"Microsoft.Sql/locations/managedDatabaseMoveOperationResults\"> {\n static resourceType = \"Microsoft.Sql/locations/managedDatabaseMoveOperationResults\" as const;\n static apiVersion = API_VERSION;\n protected static namingRules: ResourceNamingRules = {\n abbreviation: \"mdmor\",\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(() => managedDatabaseMoveOperationResultPropertiesShape),\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/managedDatabaseMoveOperationResults\"> &\n Record<string, unknown> {\n return {\n ...props,\n type: ManagedDatabaseMoveOperationResult.resourceType,\n apiVersion: ManagedDatabaseMoveOperationResult.apiVersion,\n };\n }\n\n constructor(\n context: ProvisioningComponent,\n props: ExistingResourceProps & { existing: true },\n options?: ResourceOptions,\n ) {\n super(context, ManagedDatabaseMoveOperationResult.buildResourceProps(props), options);\n }\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<ManagedDatabaseMoveOperationResultProperties> {\n return this.expr(\"properties\") as any;\n }\n}\n"]}
|