@pulumi/linode 3.9.0-alpha.1654086560 → 3.9.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/config/vars.d.ts +2 -0
- package/config/vars.js +12 -0
- package/config/vars.js.map +1 -1
- package/databaseAccessControls.d.ts +102 -0
- package/databaseAccessControls.js +92 -0
- package/databaseAccessControls.js.map +1 -0
- package/databaseMongodb.d.ts +377 -0
- package/databaseMongodb.js +209 -0
- package/databaseMongodb.js.map +1 -0
- package/databaseMysql.d.ts +38 -6
- package/databaseMysql.js +23 -2
- package/databaseMysql.js.map +1 -1
- package/databasePostgresql.d.ts +353 -0
- package/databasePostgresql.js +199 -0
- package/databasePostgresql.js.map +1 -0
- package/firewall.d.ts +2 -1
- package/firewall.js +2 -1
- package/firewall.js.map +1 -1
- package/getDatabaseBackups.d.ts +116 -0
- package/getDatabaseBackups.js +71 -0
- package/getDatabaseBackups.js.map +1 -0
- package/getDatabaseEngines.d.ts +0 -2
- package/getDatabaseEngines.js +0 -2
- package/getDatabaseEngines.js.map +1 -1
- package/getDatabaseMongodb.d.ts +137 -0
- package/getDatabaseMongodb.js +103 -0
- package/getDatabaseMongodb.js.map +1 -0
- package/getDatabaseMysql.d.ts +125 -0
- package/getDatabaseMysql.js +95 -0
- package/getDatabaseMysql.js.map +1 -0
- package/getDatabaseMysqlBackups.d.ts +1 -1
- package/getDatabaseMysqlBackups.js +1 -1
- package/getDatabasePostgresql.d.ts +129 -0
- package/getDatabasePostgresql.js +97 -0
- package/getDatabasePostgresql.js.map +1 -0
- package/getDatabases.d.ts +0 -2
- package/getDatabases.js +0 -2
- package/getDatabases.js.map +1 -1
- package/getIpv6Range.d.ts +62 -0
- package/getIpv6Range.js +49 -0
- package/getIpv6Range.js.map +1 -0
- package/index.d.ts +9 -0
- package/index.js +25 -0
- package/index.js.map +1 -1
- package/instance.d.ts +15 -3
- package/instance.js +2 -0
- package/instance.js.map +1 -1
- package/instanceIp.d.ts +2 -1
- package/instanceIp.js +2 -1
- package/instanceIp.js.map +1 -1
- package/instanceSharedIps.d.ts +60 -0
- package/instanceSharedIps.js +57 -0
- package/instanceSharedIps.js.map +1 -0
- package/ipv6Range.d.ts +3 -3
- package/lkeCluster.d.ts +6 -6
- package/lkeCluster.js +6 -6
- package/objectStorageBucket.d.ts +10 -0
- package/objectStorageBucket.js +2 -0
- package/objectStorageBucket.js.map +1 -1
- package/package.json +4 -3
- package/package.json.bak +2 -1
- package/package.json.dev +4 -3
- package/provider.d.ts +7 -3
- package/provider.js +2 -3
- package/provider.js.map +1 -1
- package/stackScript.d.ts +1 -1
- package/stackScript.js +1 -1
- package/types/input.d.ts +69 -17
- package/types/output.d.ts +65 -0
- package/volume.d.ts +28 -4
- package/volume.js +14 -3
- package/volume.js.map +1 -1
package/types/output.d.ts
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
import { output as outputs } from "../types";
|
|
2
|
+
export interface DatabaseMongodbUpdates {
|
|
3
|
+
dayOfWeek: string;
|
|
4
|
+
duration: number;
|
|
5
|
+
frequency: string;
|
|
6
|
+
hourOfDay: number;
|
|
7
|
+
weekOfMonth?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface DatabaseMysqlUpdates {
|
|
10
|
+
dayOfWeek: string;
|
|
11
|
+
duration: number;
|
|
12
|
+
frequency: string;
|
|
13
|
+
hourOfDay: number;
|
|
14
|
+
weekOfMonth?: number;
|
|
15
|
+
}
|
|
16
|
+
export interface DatabasePostgresqlUpdates {
|
|
17
|
+
dayOfWeek: string;
|
|
18
|
+
duration: number;
|
|
19
|
+
frequency: string;
|
|
20
|
+
hourOfDay: number;
|
|
21
|
+
weekOfMonth?: number;
|
|
22
|
+
}
|
|
2
23
|
export interface FirewallDevice {
|
|
3
24
|
/**
|
|
4
25
|
* The ID of the underlying entity this device references (i.e. the Linode's ID).
|
|
@@ -70,6 +91,26 @@ export interface FirewallOutbound {
|
|
|
70
91
|
*/
|
|
71
92
|
protocol: string;
|
|
72
93
|
}
|
|
94
|
+
export interface GetDatabaseBackupsBackup {
|
|
95
|
+
created: string;
|
|
96
|
+
id: number;
|
|
97
|
+
label: string;
|
|
98
|
+
type: string;
|
|
99
|
+
}
|
|
100
|
+
export interface GetDatabaseBackupsFilter {
|
|
101
|
+
/**
|
|
102
|
+
* The method to match the field by. (`exact`, `regex`, `substring`; default `exact`)
|
|
103
|
+
*/
|
|
104
|
+
matchBy?: string;
|
|
105
|
+
/**
|
|
106
|
+
* The name of the field to filter by.
|
|
107
|
+
*/
|
|
108
|
+
name: string;
|
|
109
|
+
/**
|
|
110
|
+
* A list of values for the filter to allow. These values should all be in string form.
|
|
111
|
+
*/
|
|
112
|
+
values: string[];
|
|
113
|
+
}
|
|
73
114
|
export interface GetDatabaseEnginesEngine {
|
|
74
115
|
engine: string;
|
|
75
116
|
id: string;
|
|
@@ -89,6 +130,13 @@ export interface GetDatabaseEnginesFilter {
|
|
|
89
130
|
*/
|
|
90
131
|
values: string[];
|
|
91
132
|
}
|
|
133
|
+
export interface GetDatabaseMongodbUpdate {
|
|
134
|
+
dayOfWeek: string;
|
|
135
|
+
duration: number;
|
|
136
|
+
frequency: string;
|
|
137
|
+
hourOfDay: number;
|
|
138
|
+
weekOfMonth: number;
|
|
139
|
+
}
|
|
92
140
|
export interface GetDatabaseMysqlBackupsBackup {
|
|
93
141
|
created: string;
|
|
94
142
|
id: number;
|
|
@@ -109,6 +157,20 @@ export interface GetDatabaseMysqlBackupsFilter {
|
|
|
109
157
|
*/
|
|
110
158
|
values: string[];
|
|
111
159
|
}
|
|
160
|
+
export interface GetDatabaseMysqlUpdate {
|
|
161
|
+
dayOfWeek: string;
|
|
162
|
+
duration: number;
|
|
163
|
+
frequency: string;
|
|
164
|
+
hourOfDay: number;
|
|
165
|
+
weekOfMonth: number;
|
|
166
|
+
}
|
|
167
|
+
export interface GetDatabasePostgresqlUpdate {
|
|
168
|
+
dayOfWeek: string;
|
|
169
|
+
duration: number;
|
|
170
|
+
frequency: string;
|
|
171
|
+
hourOfDay: number;
|
|
172
|
+
weekOfMonth: number;
|
|
173
|
+
}
|
|
112
174
|
export interface GetDatabasesDatabase {
|
|
113
175
|
allowLists: string[];
|
|
114
176
|
clusterSize: number;
|
|
@@ -1010,6 +1072,9 @@ export interface InstanceSpecs {
|
|
|
1010
1072
|
vcpus: number;
|
|
1011
1073
|
}
|
|
1012
1074
|
export interface LkeClusterControlPlane {
|
|
1075
|
+
/**
|
|
1076
|
+
* Defines whether High Availability is enabled for the cluster Control Plane. This is an **irreversible** change.
|
|
1077
|
+
*/
|
|
1013
1078
|
highAvailability: boolean;
|
|
1014
1079
|
}
|
|
1015
1080
|
export interface LkeClusterPool {
|
package/volume.d.ts
CHANGED
|
@@ -45,6 +45,18 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
45
45
|
* type: "g6-nanode-1",
|
|
46
46
|
* });
|
|
47
47
|
* ```
|
|
48
|
+
*
|
|
49
|
+
* Volumes may also be cloned from existing volumes.
|
|
50
|
+
*
|
|
51
|
+
* ```typescript
|
|
52
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
53
|
+
* import * as linode from "@pulumi/linode";
|
|
54
|
+
*
|
|
55
|
+
* const foobar = new linode.Volume("foobar", {
|
|
56
|
+
* label: "my-cloned-volume",
|
|
57
|
+
* sourceVolumeId: 12345,
|
|
58
|
+
* });
|
|
59
|
+
* ```
|
|
48
60
|
* ## Attributes
|
|
49
61
|
*
|
|
50
62
|
* This resource exports the following attributes:
|
|
@@ -93,13 +105,17 @@ export declare class Volume extends pulumi.CustomResource {
|
|
|
93
105
|
*/
|
|
94
106
|
readonly linodeId: pulumi.Output<number>;
|
|
95
107
|
/**
|
|
96
|
-
* The region where this volume will be deployed. Examples are `"us-east"`, `"us-west"`, `"ap-south"`, etc. See all regions [here](https://api.linode.com/v4/regions). *Changing `region` forces the creation of a new Linode Volume.*.
|
|
108
|
+
* The region where this volume will be deployed. Examples are `"us-east"`, `"us-west"`, `"ap-south"`, etc. See all regions [here](https://api.linode.com/v4/regions). This field is optional for cloned volumes. *Changing `region` forces the creation of a new Linode Volume.*.
|
|
97
109
|
*/
|
|
98
110
|
readonly region: pulumi.Output<string>;
|
|
99
111
|
/**
|
|
100
112
|
* Size of the Volume in GB.
|
|
101
113
|
*/
|
|
102
114
|
readonly size: pulumi.Output<number>;
|
|
115
|
+
/**
|
|
116
|
+
* The ID of a Linode Volume to clone. NOTE: Cloned volumes must be in the same region as the source volume.
|
|
117
|
+
*/
|
|
118
|
+
readonly sourceVolumeId: pulumi.Output<number | undefined>;
|
|
103
119
|
/**
|
|
104
120
|
* The status of the volume, indicating the current readiness state.
|
|
105
121
|
*/
|
|
@@ -135,13 +151,17 @@ export interface VolumeState {
|
|
|
135
151
|
*/
|
|
136
152
|
linodeId?: pulumi.Input<number>;
|
|
137
153
|
/**
|
|
138
|
-
* The region where this volume will be deployed. Examples are `"us-east"`, `"us-west"`, `"ap-south"`, etc. See all regions [here](https://api.linode.com/v4/regions). *Changing `region` forces the creation of a new Linode Volume.*.
|
|
154
|
+
* The region where this volume will be deployed. Examples are `"us-east"`, `"us-west"`, `"ap-south"`, etc. See all regions [here](https://api.linode.com/v4/regions). This field is optional for cloned volumes. *Changing `region` forces the creation of a new Linode Volume.*.
|
|
139
155
|
*/
|
|
140
156
|
region?: pulumi.Input<string>;
|
|
141
157
|
/**
|
|
142
158
|
* Size of the Volume in GB.
|
|
143
159
|
*/
|
|
144
160
|
size?: pulumi.Input<number>;
|
|
161
|
+
/**
|
|
162
|
+
* The ID of a Linode Volume to clone. NOTE: Cloned volumes must be in the same region as the source volume.
|
|
163
|
+
*/
|
|
164
|
+
sourceVolumeId?: pulumi.Input<number>;
|
|
145
165
|
/**
|
|
146
166
|
* The status of the volume, indicating the current readiness state.
|
|
147
167
|
*/
|
|
@@ -164,13 +184,17 @@ export interface VolumeArgs {
|
|
|
164
184
|
*/
|
|
165
185
|
linodeId?: pulumi.Input<number>;
|
|
166
186
|
/**
|
|
167
|
-
* The region where this volume will be deployed. Examples are `"us-east"`, `"us-west"`, `"ap-south"`, etc. See all regions [here](https://api.linode.com/v4/regions). *Changing `region` forces the creation of a new Linode Volume.*.
|
|
187
|
+
* The region where this volume will be deployed. Examples are `"us-east"`, `"us-west"`, `"ap-south"`, etc. See all regions [here](https://api.linode.com/v4/regions). This field is optional for cloned volumes. *Changing `region` forces the creation of a new Linode Volume.*.
|
|
168
188
|
*/
|
|
169
|
-
region
|
|
189
|
+
region?: pulumi.Input<string>;
|
|
170
190
|
/**
|
|
171
191
|
* Size of the Volume in GB.
|
|
172
192
|
*/
|
|
173
193
|
size?: pulumi.Input<number>;
|
|
194
|
+
/**
|
|
195
|
+
* The ID of a Linode Volume to clone. NOTE: Cloned volumes must be in the same region as the source volume.
|
|
196
|
+
*/
|
|
197
|
+
sourceVolumeId?: pulumi.Input<number>;
|
|
174
198
|
/**
|
|
175
199
|
* A list of tags applied to this object. Tags are for organizational purposes only.
|
|
176
200
|
*/
|
package/volume.js
CHANGED
|
@@ -51,6 +51,18 @@ const utilities = require("./utilities");
|
|
|
51
51
|
* type: "g6-nanode-1",
|
|
52
52
|
* });
|
|
53
53
|
* ```
|
|
54
|
+
*
|
|
55
|
+
* Volumes may also be cloned from existing volumes.
|
|
56
|
+
*
|
|
57
|
+
* ```typescript
|
|
58
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
59
|
+
* import * as linode from "@pulumi/linode";
|
|
60
|
+
*
|
|
61
|
+
* const foobar = new linode.Volume("foobar", {
|
|
62
|
+
* label: "my-cloned-volume",
|
|
63
|
+
* sourceVolumeId: 12345,
|
|
64
|
+
* });
|
|
65
|
+
* ```
|
|
54
66
|
* ## Attributes
|
|
55
67
|
*
|
|
56
68
|
* This resource exports the following attributes:
|
|
@@ -80,6 +92,7 @@ class Volume extends pulumi.CustomResource {
|
|
|
80
92
|
resourceInputs["linodeId"] = state ? state.linodeId : undefined;
|
|
81
93
|
resourceInputs["region"] = state ? state.region : undefined;
|
|
82
94
|
resourceInputs["size"] = state ? state.size : undefined;
|
|
95
|
+
resourceInputs["sourceVolumeId"] = state ? state.sourceVolumeId : undefined;
|
|
83
96
|
resourceInputs["status"] = state ? state.status : undefined;
|
|
84
97
|
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
85
98
|
}
|
|
@@ -88,13 +101,11 @@ class Volume extends pulumi.CustomResource {
|
|
|
88
101
|
if ((!args || args.label === undefined) && !opts.urn) {
|
|
89
102
|
throw new Error("Missing required property 'label'");
|
|
90
103
|
}
|
|
91
|
-
if ((!args || args.region === undefined) && !opts.urn) {
|
|
92
|
-
throw new Error("Missing required property 'region'");
|
|
93
|
-
}
|
|
94
104
|
resourceInputs["label"] = args ? args.label : undefined;
|
|
95
105
|
resourceInputs["linodeId"] = args ? args.linodeId : undefined;
|
|
96
106
|
resourceInputs["region"] = args ? args.region : undefined;
|
|
97
107
|
resourceInputs["size"] = args ? args.size : undefined;
|
|
108
|
+
resourceInputs["sourceVolumeId"] = args ? args.sourceVolumeId : undefined;
|
|
98
109
|
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
99
110
|
resourceInputs["filesystemPath"] = undefined /*out*/;
|
|
100
111
|
resourceInputs["status"] = undefined /*out*/;
|
package/volume.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volume.js","sourceRoot":"","sources":["../volume.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"volume.js","sourceRoot":"","sources":["../volume.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2EG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAsE7C,YAAY,IAAY,EAA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