@cdktf-providers/edge-center-edgecenter 0.10.4
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/LICENSE +355 -0
- package/README.md +19 -0
- package/dist/baremetal/index.d.ts +528 -0
- package/dist/baremetal/index.js +1250 -0
- package/dist/cdn-lecert/index.d.ts +76 -0
- package/dist/cdn-lecert/index.js +157 -0
- package/dist/cdn-origingroup/index.d.ts +237 -0
- package/dist/cdn-origingroup/index.js +560 -0
- package/dist/cdn-resource/index.d.ts +2223 -0
- package/dist/cdn-resource/index.js +5865 -0
- package/dist/cdn-rule/index.d.ts +2037 -0
- package/dist/cdn-rule/index.js +5381 -0
- package/dist/cdn-shielding/index.d.ts +64 -0
- package/dist/cdn-shielding/index.js +131 -0
- package/dist/cdn-sslcert/index.d.ts +76 -0
- package/dist/cdn-sslcert/index.js +159 -0
- package/dist/data-edgecenter-availability-zone/index.d.ts +67 -0
- package/dist/data-edgecenter-availability-zone/index.js +141 -0
- package/dist/data-edgecenter-cdn-shielding-location/index.d.ts +54 -0
- package/dist/data-edgecenter-cdn-shielding-location/index.js +111 -0
- package/dist/data-edgecenter-floatingip/index.d.ts +183 -0
- package/dist/data-edgecenter-floatingip/index.js +378 -0
- package/dist/data-edgecenter-image/index.d.ts +183 -0
- package/dist/data-edgecenter-image/index.js +378 -0
- package/dist/data-edgecenter-instance/index.d.ts +312 -0
- package/dist/data-edgecenter-instance/index.js +690 -0
- package/dist/data-edgecenter-instance-port-security/index.d.ts +110 -0
- package/dist/data-edgecenter-instance-port-security/index.js +231 -0
- package/dist/data-edgecenter-instance-v2/index.d.ts +222 -0
- package/dist/data-edgecenter-instance-v2/index.js +501 -0
- package/dist/data-edgecenter-k8s/index.d.ts +167 -0
- package/dist/data-edgecenter-k8s/index.js +412 -0
- package/dist/data-edgecenter-k8s-client-config/index.d.ts +100 -0
- package/dist/data-edgecenter-k8s-client-config/index.js +211 -0
- package/dist/data-edgecenter-k8s-pool/index.d.ts +120 -0
- package/dist/data-edgecenter-k8s-pool/index.js +271 -0
- package/dist/data-edgecenter-lb-l7policy/index.d.ts +114 -0
- package/dist/data-edgecenter-lb-l7policy/index.js +258 -0
- package/dist/data-edgecenter-lb-l7rule/index.d.ts +120 -0
- package/dist/data-edgecenter-lb-l7rule/index.js +262 -0
- package/dist/data-edgecenter-lblistener/index.d.ts +122 -0
- package/dist/data-edgecenter-lblistener/index.js +269 -0
- package/dist/data-edgecenter-lbpool/index.d.ts +204 -0
- package/dist/data-edgecenter-lbpool/index.js +454 -0
- package/dist/data-edgecenter-loadbalancer/index.d.ts +203 -0
- package/dist/data-edgecenter-loadbalancer/index.js +427 -0
- package/dist/data-edgecenter-loadbalancerv2/index.d.ts +169 -0
- package/dist/data-edgecenter-loadbalancerv2/index.js +343 -0
- package/dist/data-edgecenter-network/index.d.ts +270 -0
- package/dist/data-edgecenter-network/index.js +589 -0
- package/dist/data-edgecenter-project/index.d.ts +72 -0
- package/dist/data-edgecenter-project/index.js +153 -0
- package/dist/data-edgecenter-region/index.d.ts +54 -0
- package/dist/data-edgecenter-region/index.js +111 -0
- package/dist/data-edgecenter-reseller-images/index.d.ts +91 -0
- package/dist/data-edgecenter-reseller-images/index.js +198 -0
- package/dist/data-edgecenter-reseller-images-v2/index.d.ts +101 -0
- package/dist/data-edgecenter-reseller-images-v2/index.js +218 -0
- package/dist/data-edgecenter-reseller-networks/index.d.ts +269 -0
- package/dist/data-edgecenter-reseller-networks/index.js +610 -0
- package/dist/data-edgecenter-reservedfixedip/index.d.ts +141 -0
- package/dist/data-edgecenter-reservedfixedip/index.js +311 -0
- package/dist/data-edgecenter-router/index.d.ts +245 -0
- package/dist/data-edgecenter-router/index.js +538 -0
- package/dist/data-edgecenter-secret/index.d.ts +109 -0
- package/dist/data-edgecenter-secret/index.js +235 -0
- package/dist/data-edgecenter-securitygroup/index.d.ts +211 -0
- package/dist/data-edgecenter-securitygroup/index.js +450 -0
- package/dist/data-edgecenter-servergroup/index.d.ts +137 -0
- package/dist/data-edgecenter-servergroup/index.js +289 -0
- package/dist/data-edgecenter-snapshot/index.d.ts +129 -0
- package/dist/data-edgecenter-snapshot/index.js +281 -0
- package/dist/data-edgecenter-storage-s3/index.d.ts +71 -0
- package/dist/data-edgecenter-storage-s3/index.js +157 -0
- package/dist/data-edgecenter-storage-s3-bucket/index.d.ts +64 -0
- package/dist/data-edgecenter-storage-s3-bucket/index.js +131 -0
- package/dist/data-edgecenter-subnet/index.d.ts +253 -0
- package/dist/data-edgecenter-subnet/index.js +536 -0
- package/dist/data-edgecenter-useractions-subscription-amqp/index.d.ts +48 -0
- package/dist/data-edgecenter-useractions-subscription-amqp/index.js +107 -0
- package/dist/data-edgecenter-useractions-subscription-log/index.d.ts +47 -0
- package/dist/data-edgecenter-useractions-subscription-log/index.js +103 -0
- package/dist/data-edgecenter-volume/index.d.ts +169 -0
- package/dist/data-edgecenter-volume/index.js +343 -0
- package/dist/dns-zone/index.d.ts +54 -0
- package/dist/dns-zone/index.js +111 -0
- package/dist/dns-zone-record/index.d.ts +494 -0
- package/dist/dns-zone-record/index.js +1217 -0
- package/dist/floatingip/index.d.ts +185 -0
- package/dist/floatingip/index.js +394 -0
- package/dist/index.d.ts +83 -0
- package/dist/index.js +84 -0
- package/dist/instance/index.d.ts +830 -0
- package/dist/instance/index.js +1948 -0
- package/dist/instance-port-security/index.d.ts +229 -0
- package/dist/instance-port-security/index.js +564 -0
- package/dist/instance-v2/index.d.ts +552 -0
- package/dist/instance-v2/index.js +1244 -0
- package/dist/k8s/index.d.ts +342 -0
- package/dist/k8s/index.js +856 -0
- package/dist/k8s-pool/index.d.ts +227 -0
- package/dist/k8s-pool/index.js +514 -0
- package/dist/keypair/index.d.ts +88 -0
- package/dist/keypair/index.js +185 -0
- package/dist/lazy-index.d.ts +0 -0
- package/dist/lazy-index.js +84 -0
- package/dist/lb-l7policy/index.d.ts +244 -0
- package/dist/lb-l7policy/index.js +566 -0
- package/dist/lb-l7rule/index.d.ts +219 -0
- package/dist/lb-l7rule/index.js +506 -0
- package/dist/lblistener/index.d.ts +264 -0
- package/dist/lblistener/index.js +597 -0
- package/dist/lbmember/index.d.ts +207 -0
- package/dist/lbmember/index.js +473 -0
- package/dist/lbpool/index.d.ts +387 -0
- package/dist/lbpool/index.js +934 -0
- package/dist/lifecyclepolicy/index.d.ts +476 -0
- package/dist/lifecyclepolicy/index.js +1188 -0
- package/dist/loadbalancer/index.d.ts +341 -0
- package/dist/loadbalancer/index.js +851 -0
- package/dist/loadbalancerv2/index.d.ts +253 -0
- package/dist/loadbalancerv2/index.js +562 -0
- package/dist/network/index.d.ts +187 -0
- package/dist/network/index.js +382 -0
- package/dist/project/index.d.ts +68 -0
- package/dist/project/index.js +150 -0
- package/dist/protection-resource/index.d.ts +179 -0
- package/dist/protection-resource/index.js +381 -0
- package/dist/protection-resource-alias/index.d.ts +64 -0
- package/dist/protection-resource-alias/index.js +131 -0
- package/dist/protection-resource-alias-certificate/index.d.ts +88 -0
- package/dist/protection-resource-alias-certificate/index.js +185 -0
- package/dist/protection-resource-blacklist-entry/index.d.ts +64 -0
- package/dist/protection-resource-blacklist-entry/index.js +131 -0
- package/dist/protection-resource-certificate/index.d.ts +88 -0
- package/dist/protection-resource-certificate/index.js +185 -0
- package/dist/protection-resource-header/index.d.ts +74 -0
- package/dist/protection-resource-header/index.js +151 -0
- package/dist/protection-resource-origin/index.d.ts +119 -0
- package/dist/protection-resource-origin/index.js +246 -0
- package/dist/protection-resource-whitelist-entry/index.d.ts +64 -0
- package/dist/protection-resource-whitelist-entry/index.js +131 -0
- package/dist/provider/index.d.ts +182 -0
- package/dist/provider/index.js +384 -0
- package/dist/reseller-images/index.d.ts +120 -0
- package/dist/reseller-images/index.js +272 -0
- package/dist/reseller-images-v2/index.d.ts +130 -0
- package/dist/reseller-images-v2/index.js +292 -0
- package/dist/reservedfixedip/index.d.ts +230 -0
- package/dist/reservedfixedip/index.js +513 -0
- package/dist/router/index.d.ts +322 -0
- package/dist/router/index.js +755 -0
- package/dist/secret/index.d.ts +146 -0
- package/dist/secret/index.js +311 -0
- package/dist/securitygroup/index.d.ts +291 -0
- package/dist/securitygroup/index.js +654 -0
- package/dist/servergroup/index.d.ts +143 -0
- package/dist/servergroup/index.js +302 -0
- package/dist/snapshot/index.d.ts +185 -0
- package/dist/snapshot/index.js +383 -0
- package/dist/storage-s3/index.d.ts +141 -0
- package/dist/storage-s3/index.js +292 -0
- package/dist/storage-s3-bucket/index.d.ts +64 -0
- package/dist/storage-s3-bucket/index.js +131 -0
- package/dist/subnet/index.d.ts +346 -0
- package/dist/subnet/index.js +751 -0
- package/dist/useractions-subscription-amqp/index.d.ts +87 -0
- package/dist/useractions-subscription-amqp/index.js +180 -0
- package/dist/useractions-subscription-log/index.d.ts +74 -0
- package/dist/useractions-subscription-log/index.js +151 -0
- package/dist/volume/index.d.ts +208 -0
- package/dist/volume/index.js +424 -0
- package/package.json +51 -0
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
// https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/servergroup
|
|
2
|
+
// generated from terraform resource schema
|
|
3
|
+
import * as cdktf from 'cdktf';
|
|
4
|
+
export function dataEdgecenterServergroupInstancesToTerraform(struct) {
|
|
5
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
6
|
+
return struct;
|
|
7
|
+
}
|
|
8
|
+
if (cdktf.isComplexElement(struct)) {
|
|
9
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
10
|
+
}
|
|
11
|
+
return {};
|
|
12
|
+
}
|
|
13
|
+
export function dataEdgecenterServergroupInstancesToHclTerraform(struct) {
|
|
14
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
15
|
+
return struct;
|
|
16
|
+
}
|
|
17
|
+
if (cdktf.isComplexElement(struct)) {
|
|
18
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
19
|
+
}
|
|
20
|
+
const attrs = {};
|
|
21
|
+
return attrs;
|
|
22
|
+
}
|
|
23
|
+
export class DataEdgecenterServergroupInstancesOutputReference extends cdktf.ComplexObject {
|
|
24
|
+
isEmptyObject = false;
|
|
25
|
+
/**
|
|
26
|
+
* @param terraformResource The parent resource
|
|
27
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
28
|
+
* @param complexObjectIndex the index of this item in the list
|
|
29
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
30
|
+
*/
|
|
31
|
+
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
|
|
32
|
+
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
|
|
33
|
+
}
|
|
34
|
+
get internalValue() {
|
|
35
|
+
let hasAnyValues = this.isEmptyObject;
|
|
36
|
+
const internalValueResult = {};
|
|
37
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
38
|
+
}
|
|
39
|
+
set internalValue(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
this.isEmptyObject = false;
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
// instance_id - computed: true, optional: false, required: false
|
|
48
|
+
get instanceId() {
|
|
49
|
+
return this.getStringAttribute('instance_id');
|
|
50
|
+
}
|
|
51
|
+
// instance_name - computed: true, optional: false, required: false
|
|
52
|
+
get instanceName() {
|
|
53
|
+
return this.getStringAttribute('instance_name');
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
export class DataEdgecenterServergroupInstancesList extends cdktf.ComplexList {
|
|
57
|
+
terraformResource;
|
|
58
|
+
terraformAttribute;
|
|
59
|
+
wrapsSet;
|
|
60
|
+
/**
|
|
61
|
+
* @param terraformResource The parent resource
|
|
62
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
63
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
64
|
+
*/
|
|
65
|
+
constructor(terraformResource, terraformAttribute, wrapsSet) {
|
|
66
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
67
|
+
this.terraformResource = terraformResource;
|
|
68
|
+
this.terraformAttribute = terraformAttribute;
|
|
69
|
+
this.wrapsSet = wrapsSet;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* @param index the index of the item to return
|
|
73
|
+
*/
|
|
74
|
+
get(index) {
|
|
75
|
+
return new DataEdgecenterServergroupInstancesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Represents a {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/servergroup edgecenter_servergroup}
|
|
80
|
+
*/
|
|
81
|
+
export class DataEdgecenterServergroup extends cdktf.TerraformDataSource {
|
|
82
|
+
// =================
|
|
83
|
+
// STATIC PROPERTIES
|
|
84
|
+
// =================
|
|
85
|
+
static tfResourceType = "edgecenter_servergroup";
|
|
86
|
+
// ==============
|
|
87
|
+
// STATIC Methods
|
|
88
|
+
// ==============
|
|
89
|
+
/**
|
|
90
|
+
* Generates CDKTF code for importing a DataEdgecenterServergroup resource upon running "cdktf plan <stack-name>"
|
|
91
|
+
* @param scope The scope in which to define this construct
|
|
92
|
+
* @param importToId The construct id used in the generated config for the DataEdgecenterServergroup to import
|
|
93
|
+
* @param importFromId The id of the existing DataEdgecenterServergroup that should be imported. Refer to the {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/servergroup#import import section} in the documentation of this resource for the id to use
|
|
94
|
+
* @param provider? Optional instance of the provider where the DataEdgecenterServergroup to import is found
|
|
95
|
+
*/
|
|
96
|
+
static generateConfigForImport(scope, importToId, importFromId, provider) {
|
|
97
|
+
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "edgecenter_servergroup", importId: importFromId, provider });
|
|
98
|
+
}
|
|
99
|
+
// ===========
|
|
100
|
+
// INITIALIZER
|
|
101
|
+
// ===========
|
|
102
|
+
/**
|
|
103
|
+
* Create a new {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/servergroup edgecenter_servergroup} Data Source
|
|
104
|
+
*
|
|
105
|
+
* @param scope The scope in which to define this construct
|
|
106
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
107
|
+
* @param options DataEdgecenterServergroupConfig = {}
|
|
108
|
+
*/
|
|
109
|
+
constructor(scope, id, config = {}) {
|
|
110
|
+
super(scope, id, {
|
|
111
|
+
terraformResourceType: 'edgecenter_servergroup',
|
|
112
|
+
terraformGeneratorMetadata: {
|
|
113
|
+
providerName: 'edgecenter',
|
|
114
|
+
providerVersion: '0.10.4',
|
|
115
|
+
providerVersionConstraint: '0.10.4'
|
|
116
|
+
},
|
|
117
|
+
provider: config.provider,
|
|
118
|
+
dependsOn: config.dependsOn,
|
|
119
|
+
count: config.count,
|
|
120
|
+
lifecycle: config.lifecycle,
|
|
121
|
+
provisioners: config.provisioners,
|
|
122
|
+
connection: config.connection,
|
|
123
|
+
forEach: config.forEach
|
|
124
|
+
});
|
|
125
|
+
this._id = config.id;
|
|
126
|
+
this._name = config.name;
|
|
127
|
+
this._projectId = config.projectId;
|
|
128
|
+
this._projectName = config.projectName;
|
|
129
|
+
this._regionId = config.regionId;
|
|
130
|
+
this._regionName = config.regionName;
|
|
131
|
+
}
|
|
132
|
+
// ==========
|
|
133
|
+
// ATTRIBUTES
|
|
134
|
+
// ==========
|
|
135
|
+
// id - computed: true, optional: true, required: false
|
|
136
|
+
_id;
|
|
137
|
+
get id() {
|
|
138
|
+
return this.getStringAttribute('id');
|
|
139
|
+
}
|
|
140
|
+
set id(value) {
|
|
141
|
+
this._id = value;
|
|
142
|
+
}
|
|
143
|
+
resetId() {
|
|
144
|
+
this._id = undefined;
|
|
145
|
+
}
|
|
146
|
+
// Temporarily expose input value. Use with caution.
|
|
147
|
+
get idInput() {
|
|
148
|
+
return this._id;
|
|
149
|
+
}
|
|
150
|
+
// instances - computed: true, optional: false, required: false
|
|
151
|
+
_instances = new DataEdgecenterServergroupInstancesList(this, "instances", false);
|
|
152
|
+
get instances() {
|
|
153
|
+
return this._instances;
|
|
154
|
+
}
|
|
155
|
+
// name - computed: true, optional: true, required: false
|
|
156
|
+
_name;
|
|
157
|
+
get name() {
|
|
158
|
+
return this.getStringAttribute('name');
|
|
159
|
+
}
|
|
160
|
+
set name(value) {
|
|
161
|
+
this._name = value;
|
|
162
|
+
}
|
|
163
|
+
resetName() {
|
|
164
|
+
this._name = undefined;
|
|
165
|
+
}
|
|
166
|
+
// Temporarily expose input value. Use with caution.
|
|
167
|
+
get nameInput() {
|
|
168
|
+
return this._name;
|
|
169
|
+
}
|
|
170
|
+
// policy - computed: true, optional: false, required: false
|
|
171
|
+
get policy() {
|
|
172
|
+
return this.getStringAttribute('policy');
|
|
173
|
+
}
|
|
174
|
+
// project_id - computed: false, optional: true, required: false
|
|
175
|
+
_projectId;
|
|
176
|
+
get projectId() {
|
|
177
|
+
return this.getNumberAttribute('project_id');
|
|
178
|
+
}
|
|
179
|
+
set projectId(value) {
|
|
180
|
+
this._projectId = value;
|
|
181
|
+
}
|
|
182
|
+
resetProjectId() {
|
|
183
|
+
this._projectId = undefined;
|
|
184
|
+
}
|
|
185
|
+
// Temporarily expose input value. Use with caution.
|
|
186
|
+
get projectIdInput() {
|
|
187
|
+
return this._projectId;
|
|
188
|
+
}
|
|
189
|
+
// project_name - computed: false, optional: true, required: false
|
|
190
|
+
_projectName;
|
|
191
|
+
get projectName() {
|
|
192
|
+
return this.getStringAttribute('project_name');
|
|
193
|
+
}
|
|
194
|
+
set projectName(value) {
|
|
195
|
+
this._projectName = value;
|
|
196
|
+
}
|
|
197
|
+
resetProjectName() {
|
|
198
|
+
this._projectName = undefined;
|
|
199
|
+
}
|
|
200
|
+
// Temporarily expose input value. Use with caution.
|
|
201
|
+
get projectNameInput() {
|
|
202
|
+
return this._projectName;
|
|
203
|
+
}
|
|
204
|
+
// region_id - computed: false, optional: true, required: false
|
|
205
|
+
_regionId;
|
|
206
|
+
get regionId() {
|
|
207
|
+
return this.getNumberAttribute('region_id');
|
|
208
|
+
}
|
|
209
|
+
set regionId(value) {
|
|
210
|
+
this._regionId = value;
|
|
211
|
+
}
|
|
212
|
+
resetRegionId() {
|
|
213
|
+
this._regionId = undefined;
|
|
214
|
+
}
|
|
215
|
+
// Temporarily expose input value. Use with caution.
|
|
216
|
+
get regionIdInput() {
|
|
217
|
+
return this._regionId;
|
|
218
|
+
}
|
|
219
|
+
// region_name - computed: false, optional: true, required: false
|
|
220
|
+
_regionName;
|
|
221
|
+
get regionName() {
|
|
222
|
+
return this.getStringAttribute('region_name');
|
|
223
|
+
}
|
|
224
|
+
set regionName(value) {
|
|
225
|
+
this._regionName = value;
|
|
226
|
+
}
|
|
227
|
+
resetRegionName() {
|
|
228
|
+
this._regionName = undefined;
|
|
229
|
+
}
|
|
230
|
+
// Temporarily expose input value. Use with caution.
|
|
231
|
+
get regionNameInput() {
|
|
232
|
+
return this._regionName;
|
|
233
|
+
}
|
|
234
|
+
// =========
|
|
235
|
+
// SYNTHESIS
|
|
236
|
+
// =========
|
|
237
|
+
synthesizeAttributes() {
|
|
238
|
+
return {
|
|
239
|
+
id: cdktf.stringToTerraform(this._id),
|
|
240
|
+
name: cdktf.stringToTerraform(this._name),
|
|
241
|
+
project_id: cdktf.numberToTerraform(this._projectId),
|
|
242
|
+
project_name: cdktf.stringToTerraform(this._projectName),
|
|
243
|
+
region_id: cdktf.numberToTerraform(this._regionId),
|
|
244
|
+
region_name: cdktf.stringToTerraform(this._regionName),
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
synthesizeHclAttributes() {
|
|
248
|
+
const attrs = {
|
|
249
|
+
id: {
|
|
250
|
+
value: cdktf.stringToHclTerraform(this._id),
|
|
251
|
+
isBlock: false,
|
|
252
|
+
type: "simple",
|
|
253
|
+
storageClassType: "string",
|
|
254
|
+
},
|
|
255
|
+
name: {
|
|
256
|
+
value: cdktf.stringToHclTerraform(this._name),
|
|
257
|
+
isBlock: false,
|
|
258
|
+
type: "simple",
|
|
259
|
+
storageClassType: "string",
|
|
260
|
+
},
|
|
261
|
+
project_id: {
|
|
262
|
+
value: cdktf.numberToHclTerraform(this._projectId),
|
|
263
|
+
isBlock: false,
|
|
264
|
+
type: "simple",
|
|
265
|
+
storageClassType: "number",
|
|
266
|
+
},
|
|
267
|
+
project_name: {
|
|
268
|
+
value: cdktf.stringToHclTerraform(this._projectName),
|
|
269
|
+
isBlock: false,
|
|
270
|
+
type: "simple",
|
|
271
|
+
storageClassType: "string",
|
|
272
|
+
},
|
|
273
|
+
region_id: {
|
|
274
|
+
value: cdktf.numberToHclTerraform(this._regionId),
|
|
275
|
+
isBlock: false,
|
|
276
|
+
type: "simple",
|
|
277
|
+
storageClassType: "number",
|
|
278
|
+
},
|
|
279
|
+
region_name: {
|
|
280
|
+
value: cdktf.stringToHclTerraform(this._regionName),
|
|
281
|
+
isBlock: false,
|
|
282
|
+
type: "simple",
|
|
283
|
+
storageClassType: "string",
|
|
284
|
+
},
|
|
285
|
+
};
|
|
286
|
+
// remove undefined attributes
|
|
287
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
288
|
+
}
|
|
289
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { Construct } from 'constructs';
|
|
2
|
+
import * as cdktf from 'cdktf';
|
|
3
|
+
export interface DataEdgecenterSnapshotConfig extends cdktf.TerraformMetaArguments {
|
|
4
|
+
/**
|
|
5
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/snapshot#id DataEdgecenterSnapshot#id}
|
|
6
|
+
*
|
|
7
|
+
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
|
|
8
|
+
* If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
|
|
9
|
+
*/
|
|
10
|
+
readonly id?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The name of the snapshot. Either 'name' or 'snapshot_id' must be specified.
|
|
13
|
+
*
|
|
14
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/snapshot#name DataEdgecenterSnapshot#name}
|
|
15
|
+
*/
|
|
16
|
+
readonly name?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The uuid of the project. Either 'project_id' or 'project_name' must be specified.
|
|
19
|
+
*
|
|
20
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/snapshot#project_id DataEdgecenterSnapshot#project_id}
|
|
21
|
+
*/
|
|
22
|
+
readonly projectId?: number;
|
|
23
|
+
/**
|
|
24
|
+
* The name of the project. Either 'project_id' or 'project_name' must be specified.
|
|
25
|
+
*
|
|
26
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/snapshot#project_name DataEdgecenterSnapshot#project_name}
|
|
27
|
+
*/
|
|
28
|
+
readonly projectName?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The uuid of the region. Either 'region_id' or 'region_name' must be specified.
|
|
31
|
+
*
|
|
32
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/snapshot#region_id DataEdgecenterSnapshot#region_id}
|
|
33
|
+
*/
|
|
34
|
+
readonly regionId?: number;
|
|
35
|
+
/**
|
|
36
|
+
* The name of the region. Either 'region_id' or 'region_name' must be specified.
|
|
37
|
+
*
|
|
38
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/snapshot#region_name DataEdgecenterSnapshot#region_name}
|
|
39
|
+
*/
|
|
40
|
+
readonly regionName?: string;
|
|
41
|
+
/**
|
|
42
|
+
* The ID of the snapshot.Either 'name' or 'snapshot_id' must be specified.
|
|
43
|
+
*
|
|
44
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/snapshot#snapshot_id DataEdgecenterSnapshot#snapshot_id}
|
|
45
|
+
*/
|
|
46
|
+
readonly snapshotId?: string;
|
|
47
|
+
/**
|
|
48
|
+
* The ID of the volume this snapshot was made from.
|
|
49
|
+
*
|
|
50
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/snapshot#volume_id DataEdgecenterSnapshot#volume_id}
|
|
51
|
+
*/
|
|
52
|
+
readonly volumeId?: string;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Represents a {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/snapshot edgecenter_snapshot}
|
|
56
|
+
*/
|
|
57
|
+
export declare class DataEdgecenterSnapshot extends cdktf.TerraformDataSource {
|
|
58
|
+
static readonly tfResourceType = "edgecenter_snapshot";
|
|
59
|
+
/**
|
|
60
|
+
* Generates CDKTF code for importing a DataEdgecenterSnapshot resource upon running "cdktf plan <stack-name>"
|
|
61
|
+
* @param scope The scope in which to define this construct
|
|
62
|
+
* @param importToId The construct id used in the generated config for the DataEdgecenterSnapshot to import
|
|
63
|
+
* @param importFromId The id of the existing DataEdgecenterSnapshot that should be imported. Refer to the {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/snapshot#import import section} in the documentation of this resource for the id to use
|
|
64
|
+
* @param provider? Optional instance of the provider where the DataEdgecenterSnapshot to import is found
|
|
65
|
+
*/
|
|
66
|
+
static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
|
|
67
|
+
/**
|
|
68
|
+
* Create a new {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/snapshot edgecenter_snapshot} Data Source
|
|
69
|
+
*
|
|
70
|
+
* @param scope The scope in which to define this construct
|
|
71
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
72
|
+
* @param options DataEdgecenterSnapshotConfig = {}
|
|
73
|
+
*/
|
|
74
|
+
constructor(scope: Construct, id: string, config?: DataEdgecenterSnapshotConfig);
|
|
75
|
+
get createdAt(): any;
|
|
76
|
+
get creatorTaskId(): any;
|
|
77
|
+
get description(): any;
|
|
78
|
+
private _id?;
|
|
79
|
+
get id(): string;
|
|
80
|
+
set id(value: string);
|
|
81
|
+
resetId(): void;
|
|
82
|
+
get idInput(): string;
|
|
83
|
+
private _metadata;
|
|
84
|
+
get metadata(): any;
|
|
85
|
+
private _name?;
|
|
86
|
+
get name(): string;
|
|
87
|
+
set name(value: string);
|
|
88
|
+
resetName(): void;
|
|
89
|
+
get nameInput(): string;
|
|
90
|
+
private _projectId?;
|
|
91
|
+
get projectId(): number;
|
|
92
|
+
set projectId(value: number);
|
|
93
|
+
resetProjectId(): void;
|
|
94
|
+
get projectIdInput(): number;
|
|
95
|
+
private _projectName?;
|
|
96
|
+
get projectName(): string;
|
|
97
|
+
set projectName(value: string);
|
|
98
|
+
resetProjectName(): void;
|
|
99
|
+
get projectNameInput(): string;
|
|
100
|
+
private _regionId?;
|
|
101
|
+
get regionId(): number;
|
|
102
|
+
set regionId(value: number);
|
|
103
|
+
resetRegionId(): void;
|
|
104
|
+
get regionIdInput(): number;
|
|
105
|
+
private _regionName?;
|
|
106
|
+
get regionName(): string;
|
|
107
|
+
set regionName(value: string);
|
|
108
|
+
resetRegionName(): void;
|
|
109
|
+
get regionNameInput(): string;
|
|
110
|
+
get size(): any;
|
|
111
|
+
private _snapshotId?;
|
|
112
|
+
get snapshotId(): string;
|
|
113
|
+
set snapshotId(value: string);
|
|
114
|
+
resetSnapshotId(): void;
|
|
115
|
+
get snapshotIdInput(): string;
|
|
116
|
+
get status(): any;
|
|
117
|
+
get updatedAt(): any;
|
|
118
|
+
private _volumeId?;
|
|
119
|
+
get volumeId(): string;
|
|
120
|
+
set volumeId(value: string);
|
|
121
|
+
resetVolumeId(): void;
|
|
122
|
+
get volumeIdInput(): string;
|
|
123
|
+
protected synthesizeAttributes(): {
|
|
124
|
+
[name: string]: any;
|
|
125
|
+
};
|
|
126
|
+
protected synthesizeHclAttributes(): {
|
|
127
|
+
[name: string]: any;
|
|
128
|
+
};
|
|
129
|
+
}
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
// https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/snapshot
|
|
2
|
+
// generated from terraform resource schema
|
|
3
|
+
import * as cdktf from 'cdktf';
|
|
4
|
+
/**
|
|
5
|
+
* Represents a {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/snapshot edgecenter_snapshot}
|
|
6
|
+
*/
|
|
7
|
+
export class DataEdgecenterSnapshot extends cdktf.TerraformDataSource {
|
|
8
|
+
// =================
|
|
9
|
+
// STATIC PROPERTIES
|
|
10
|
+
// =================
|
|
11
|
+
static tfResourceType = "edgecenter_snapshot";
|
|
12
|
+
// ==============
|
|
13
|
+
// STATIC Methods
|
|
14
|
+
// ==============
|
|
15
|
+
/**
|
|
16
|
+
* Generates CDKTF code for importing a DataEdgecenterSnapshot resource upon running "cdktf plan <stack-name>"
|
|
17
|
+
* @param scope The scope in which to define this construct
|
|
18
|
+
* @param importToId The construct id used in the generated config for the DataEdgecenterSnapshot to import
|
|
19
|
+
* @param importFromId The id of the existing DataEdgecenterSnapshot that should be imported. Refer to the {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/snapshot#import import section} in the documentation of this resource for the id to use
|
|
20
|
+
* @param provider? Optional instance of the provider where the DataEdgecenterSnapshot to import is found
|
|
21
|
+
*/
|
|
22
|
+
static generateConfigForImport(scope, importToId, importFromId, provider) {
|
|
23
|
+
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "edgecenter_snapshot", importId: importFromId, provider });
|
|
24
|
+
}
|
|
25
|
+
// ===========
|
|
26
|
+
// INITIALIZER
|
|
27
|
+
// ===========
|
|
28
|
+
/**
|
|
29
|
+
* Create a new {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/snapshot edgecenter_snapshot} Data Source
|
|
30
|
+
*
|
|
31
|
+
* @param scope The scope in which to define this construct
|
|
32
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
33
|
+
* @param options DataEdgecenterSnapshotConfig = {}
|
|
34
|
+
*/
|
|
35
|
+
constructor(scope, id, config = {}) {
|
|
36
|
+
super(scope, id, {
|
|
37
|
+
terraformResourceType: 'edgecenter_snapshot',
|
|
38
|
+
terraformGeneratorMetadata: {
|
|
39
|
+
providerName: 'edgecenter',
|
|
40
|
+
providerVersion: '0.10.4',
|
|
41
|
+
providerVersionConstraint: '0.10.4'
|
|
42
|
+
},
|
|
43
|
+
provider: config.provider,
|
|
44
|
+
dependsOn: config.dependsOn,
|
|
45
|
+
count: config.count,
|
|
46
|
+
lifecycle: config.lifecycle,
|
|
47
|
+
provisioners: config.provisioners,
|
|
48
|
+
connection: config.connection,
|
|
49
|
+
forEach: config.forEach
|
|
50
|
+
});
|
|
51
|
+
this._id = config.id;
|
|
52
|
+
this._name = config.name;
|
|
53
|
+
this._projectId = config.projectId;
|
|
54
|
+
this._projectName = config.projectName;
|
|
55
|
+
this._regionId = config.regionId;
|
|
56
|
+
this._regionName = config.regionName;
|
|
57
|
+
this._snapshotId = config.snapshotId;
|
|
58
|
+
this._volumeId = config.volumeId;
|
|
59
|
+
}
|
|
60
|
+
// ==========
|
|
61
|
+
// ATTRIBUTES
|
|
62
|
+
// ==========
|
|
63
|
+
// created_at - computed: true, optional: false, required: false
|
|
64
|
+
get createdAt() {
|
|
65
|
+
return this.getStringAttribute('created_at');
|
|
66
|
+
}
|
|
67
|
+
// creator_task_id - computed: true, optional: false, required: false
|
|
68
|
+
get creatorTaskId() {
|
|
69
|
+
return this.getStringAttribute('creator_task_id');
|
|
70
|
+
}
|
|
71
|
+
// description - computed: true, optional: false, required: false
|
|
72
|
+
get description() {
|
|
73
|
+
return this.getStringAttribute('description');
|
|
74
|
+
}
|
|
75
|
+
// id - computed: true, optional: true, required: false
|
|
76
|
+
_id;
|
|
77
|
+
get id() {
|
|
78
|
+
return this.getStringAttribute('id');
|
|
79
|
+
}
|
|
80
|
+
set id(value) {
|
|
81
|
+
this._id = value;
|
|
82
|
+
}
|
|
83
|
+
resetId() {
|
|
84
|
+
this._id = undefined;
|
|
85
|
+
}
|
|
86
|
+
// Temporarily expose input value. Use with caution.
|
|
87
|
+
get idInput() {
|
|
88
|
+
return this._id;
|
|
89
|
+
}
|
|
90
|
+
// metadata - computed: true, optional: false, required: false
|
|
91
|
+
_metadata = new cdktf.StringMap(this, "metadata");
|
|
92
|
+
get metadata() {
|
|
93
|
+
return this._metadata;
|
|
94
|
+
}
|
|
95
|
+
// name - computed: true, optional: true, required: false
|
|
96
|
+
_name;
|
|
97
|
+
get name() {
|
|
98
|
+
return this.getStringAttribute('name');
|
|
99
|
+
}
|
|
100
|
+
set name(value) {
|
|
101
|
+
this._name = value;
|
|
102
|
+
}
|
|
103
|
+
resetName() {
|
|
104
|
+
this._name = undefined;
|
|
105
|
+
}
|
|
106
|
+
// Temporarily expose input value. Use with caution.
|
|
107
|
+
get nameInput() {
|
|
108
|
+
return this._name;
|
|
109
|
+
}
|
|
110
|
+
// project_id - computed: true, optional: true, required: false
|
|
111
|
+
_projectId;
|
|
112
|
+
get projectId() {
|
|
113
|
+
return this.getNumberAttribute('project_id');
|
|
114
|
+
}
|
|
115
|
+
set projectId(value) {
|
|
116
|
+
this._projectId = value;
|
|
117
|
+
}
|
|
118
|
+
resetProjectId() {
|
|
119
|
+
this._projectId = undefined;
|
|
120
|
+
}
|
|
121
|
+
// Temporarily expose input value. Use with caution.
|
|
122
|
+
get projectIdInput() {
|
|
123
|
+
return this._projectId;
|
|
124
|
+
}
|
|
125
|
+
// project_name - computed: true, optional: true, required: false
|
|
126
|
+
_projectName;
|
|
127
|
+
get projectName() {
|
|
128
|
+
return this.getStringAttribute('project_name');
|
|
129
|
+
}
|
|
130
|
+
set projectName(value) {
|
|
131
|
+
this._projectName = value;
|
|
132
|
+
}
|
|
133
|
+
resetProjectName() {
|
|
134
|
+
this._projectName = undefined;
|
|
135
|
+
}
|
|
136
|
+
// Temporarily expose input value. Use with caution.
|
|
137
|
+
get projectNameInput() {
|
|
138
|
+
return this._projectName;
|
|
139
|
+
}
|
|
140
|
+
// region_id - computed: true, optional: true, required: false
|
|
141
|
+
_regionId;
|
|
142
|
+
get regionId() {
|
|
143
|
+
return this.getNumberAttribute('region_id');
|
|
144
|
+
}
|
|
145
|
+
set regionId(value) {
|
|
146
|
+
this._regionId = value;
|
|
147
|
+
}
|
|
148
|
+
resetRegionId() {
|
|
149
|
+
this._regionId = undefined;
|
|
150
|
+
}
|
|
151
|
+
// Temporarily expose input value. Use with caution.
|
|
152
|
+
get regionIdInput() {
|
|
153
|
+
return this._regionId;
|
|
154
|
+
}
|
|
155
|
+
// region_name - computed: true, optional: true, required: false
|
|
156
|
+
_regionName;
|
|
157
|
+
get regionName() {
|
|
158
|
+
return this.getStringAttribute('region_name');
|
|
159
|
+
}
|
|
160
|
+
set regionName(value) {
|
|
161
|
+
this._regionName = value;
|
|
162
|
+
}
|
|
163
|
+
resetRegionName() {
|
|
164
|
+
this._regionName = undefined;
|
|
165
|
+
}
|
|
166
|
+
// Temporarily expose input value. Use with caution.
|
|
167
|
+
get regionNameInput() {
|
|
168
|
+
return this._regionName;
|
|
169
|
+
}
|
|
170
|
+
// size - computed: true, optional: false, required: false
|
|
171
|
+
get size() {
|
|
172
|
+
return this.getNumberAttribute('size');
|
|
173
|
+
}
|
|
174
|
+
// snapshot_id - computed: true, optional: true, required: false
|
|
175
|
+
_snapshotId;
|
|
176
|
+
get snapshotId() {
|
|
177
|
+
return this.getStringAttribute('snapshot_id');
|
|
178
|
+
}
|
|
179
|
+
set snapshotId(value) {
|
|
180
|
+
this._snapshotId = value;
|
|
181
|
+
}
|
|
182
|
+
resetSnapshotId() {
|
|
183
|
+
this._snapshotId = undefined;
|
|
184
|
+
}
|
|
185
|
+
// Temporarily expose input value. Use with caution.
|
|
186
|
+
get snapshotIdInput() {
|
|
187
|
+
return this._snapshotId;
|
|
188
|
+
}
|
|
189
|
+
// status - computed: true, optional: false, required: false
|
|
190
|
+
get status() {
|
|
191
|
+
return this.getStringAttribute('status');
|
|
192
|
+
}
|
|
193
|
+
// updated_at - computed: true, optional: false, required: false
|
|
194
|
+
get updatedAt() {
|
|
195
|
+
return this.getStringAttribute('updated_at');
|
|
196
|
+
}
|
|
197
|
+
// volume_id - computed: true, optional: true, required: false
|
|
198
|
+
_volumeId;
|
|
199
|
+
get volumeId() {
|
|
200
|
+
return this.getStringAttribute('volume_id');
|
|
201
|
+
}
|
|
202
|
+
set volumeId(value) {
|
|
203
|
+
this._volumeId = value;
|
|
204
|
+
}
|
|
205
|
+
resetVolumeId() {
|
|
206
|
+
this._volumeId = undefined;
|
|
207
|
+
}
|
|
208
|
+
// Temporarily expose input value. Use with caution.
|
|
209
|
+
get volumeIdInput() {
|
|
210
|
+
return this._volumeId;
|
|
211
|
+
}
|
|
212
|
+
// =========
|
|
213
|
+
// SYNTHESIS
|
|
214
|
+
// =========
|
|
215
|
+
synthesizeAttributes() {
|
|
216
|
+
return {
|
|
217
|
+
id: cdktf.stringToTerraform(this._id),
|
|
218
|
+
name: cdktf.stringToTerraform(this._name),
|
|
219
|
+
project_id: cdktf.numberToTerraform(this._projectId),
|
|
220
|
+
project_name: cdktf.stringToTerraform(this._projectName),
|
|
221
|
+
region_id: cdktf.numberToTerraform(this._regionId),
|
|
222
|
+
region_name: cdktf.stringToTerraform(this._regionName),
|
|
223
|
+
snapshot_id: cdktf.stringToTerraform(this._snapshotId),
|
|
224
|
+
volume_id: cdktf.stringToTerraform(this._volumeId),
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
synthesizeHclAttributes() {
|
|
228
|
+
const attrs = {
|
|
229
|
+
id: {
|
|
230
|
+
value: cdktf.stringToHclTerraform(this._id),
|
|
231
|
+
isBlock: false,
|
|
232
|
+
type: "simple",
|
|
233
|
+
storageClassType: "string",
|
|
234
|
+
},
|
|
235
|
+
name: {
|
|
236
|
+
value: cdktf.stringToHclTerraform(this._name),
|
|
237
|
+
isBlock: false,
|
|
238
|
+
type: "simple",
|
|
239
|
+
storageClassType: "string",
|
|
240
|
+
},
|
|
241
|
+
project_id: {
|
|
242
|
+
value: cdktf.numberToHclTerraform(this._projectId),
|
|
243
|
+
isBlock: false,
|
|
244
|
+
type: "simple",
|
|
245
|
+
storageClassType: "number",
|
|
246
|
+
},
|
|
247
|
+
project_name: {
|
|
248
|
+
value: cdktf.stringToHclTerraform(this._projectName),
|
|
249
|
+
isBlock: false,
|
|
250
|
+
type: "simple",
|
|
251
|
+
storageClassType: "string",
|
|
252
|
+
},
|
|
253
|
+
region_id: {
|
|
254
|
+
value: cdktf.numberToHclTerraform(this._regionId),
|
|
255
|
+
isBlock: false,
|
|
256
|
+
type: "simple",
|
|
257
|
+
storageClassType: "number",
|
|
258
|
+
},
|
|
259
|
+
region_name: {
|
|
260
|
+
value: cdktf.stringToHclTerraform(this._regionName),
|
|
261
|
+
isBlock: false,
|
|
262
|
+
type: "simple",
|
|
263
|
+
storageClassType: "string",
|
|
264
|
+
},
|
|
265
|
+
snapshot_id: {
|
|
266
|
+
value: cdktf.stringToHclTerraform(this._snapshotId),
|
|
267
|
+
isBlock: false,
|
|
268
|
+
type: "simple",
|
|
269
|
+
storageClassType: "string",
|
|
270
|
+
},
|
|
271
|
+
volume_id: {
|
|
272
|
+
value: cdktf.stringToHclTerraform(this._volumeId),
|
|
273
|
+
isBlock: false,
|
|
274
|
+
type: "simple",
|
|
275
|
+
storageClassType: "string",
|
|
276
|
+
},
|
|
277
|
+
};
|
|
278
|
+
// remove undefined attributes
|
|
279
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
280
|
+
}
|
|
281
|
+
}
|