You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: `The machine type to use. See tiers for more details and supported versions. Postgres supports only shared-core machine types, and custom machine types such as db-custom-2-13312. See the Custom Machine Type Documentation to learn about specifying custom machine types.`,
140
139
},
141
140
"activation_policy": {
142
-
Type: schema.TypeString,
143
-
Optional: true,
144
-
// Defaults differ between first and second gen instances
145
-
Computed: true,
146
-
Description: `This specifies when the instance should be active. Can be either ALWAYS, NEVER or ON_DEMAND.`,
147
-
},
148
-
"authorized_gae_applications": {
149
-
Type: schema.TypeList,
141
+
Type: schema.TypeString,
150
142
Optional: true,
151
-
Computed: true,
152
-
Elem: &schema.Schema{Type: schema.TypeString},
153
-
Deprecated: "This property is only applicable to First Generation instances, and First Generation instances are now deprecated.",
154
-
Description: `This property is only applicable to First Generation instances. First Generation instances are now deprecated, see https://cloud.google.com/sql/docs/mysql/deprecation-notice for information on how to upgrade to Second Generation instances. A list of Google App Engine project names that are allowed to access this instance.`,
143
+
Default: "ALWAYS",
144
+
Description: `This specifies when the instance should be active. Can be either ALWAYS, NEVER or ON_DEMAND.`,
155
145
},
156
146
"availability_type": {
157
-
Type: schema.TypeString,
158
-
Optional: true,
159
-
DiffSuppressFunc: suppressFirstGen,
160
-
// Set computed instead of default because this property is for second-gen
161
-
// only. The default when not provided is ZONAL, which means no explicit HA
Description: `The availability type of the Cloud SQL instance, high availability
166
152
(REGIONAL) or single zone (ZONAL). For MySQL instances, ensure that
@@ -243,13 +229,6 @@ settings.backup_configuration.binary_log_enabled are both set to true.`,
243
229
Optional: true,
244
230
Description: `The name of server instance collation.`,
245
231
},
246
-
"crash_safe_replication": {
247
-
Type: schema.TypeBool,
248
-
Optional: true,
249
-
Computed: true,
250
-
Deprecated: "This property is only applicable to First Generation instances, and First Generation instances are now deprecated.",
251
-
Description: `This property is only applicable to First Generation instances. First Generation instances are now deprecated, see here for information on how to upgrade to Second Generation instances. Specific to read instances, indicates when crash-safe replication flags are enabled.`,
252
-
},
253
232
"database_flags": {
254
233
Type: schema.TypeList,
255
234
Optional: true,
@@ -269,31 +248,28 @@ settings.backup_configuration.binary_log_enabled are both set to true.`,
269
248
},
270
249
},
271
250
"disk_autoresize": {
272
-
Type: schema.TypeBool,
273
-
Optional: true,
274
-
Default: true,
275
-
DiffSuppressFunc: suppressFirstGen,
276
-
Description: `Configuration to increase storage size automatically. Note that future terraform apply calls will attempt to resize the disk to the value specified in disk_size - if this is set, do not set disk_size.`,
251
+
Type: schema.TypeBool,
252
+
Optional: true,
253
+
Default: true,
254
+
Description: `Configuration to increase storage size automatically. Note that future terraform apply calls will attempt to resize the disk to the value specified in disk_size - if this is set, do not set disk_size.`,
277
255
},
278
256
"disk_autoresize_limit": {
279
-
Type: schema.TypeInt,
280
-
Optional: true,
281
-
Default: 0,
282
-
DiffSuppressFunc: suppressFirstGen,
283
-
Description: `The maximum size, in GB, to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.`,
257
+
Type: schema.TypeInt,
258
+
Optional: true,
259
+
Default: 0,
260
+
Description: `The maximum size, in GB, to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.`,
284
261
},
285
262
"disk_size": {
286
263
Type: schema.TypeInt,
287
264
Optional: true,
288
-
// Defaults differ between first and second gen instances
265
+
// Default is likely 10gb, but it is undocumented and may change.
289
266
Computed: true,
290
267
Description: `The size of data disk, in GB. Size of a running instance cannot be reduced but can be increased.`,
291
268
},
292
269
"disk_type": {
293
-
Type: schema.TypeString,
294
-
Optional: true,
295
-
// Set computed instead of default because this property is for second-gen only.
296
-
Computed: true,
270
+
Type: schema.TypeString,
271
+
Optional: true,
272
+
Default: "PD_SSD",
297
273
Description: `The type of data disk: PD_SSD or PD_HDD.`,
298
274
},
299
275
"ip_configuration": {
@@ -391,13 +367,6 @@ settings.backup_configuration.binary_log_enabled are both set to true.`,
391
367
Default: "PER_USE",
392
368
Description: `Pricing plan for this instance, can only be PER_USE.`,
393
369
},
394
-
"replication_type": {
395
-
Type: schema.TypeString,
396
-
Optional: true,
397
-
Deprecated: "This property is only applicable to First Generation instances, and First Generation instances are now deprecated.",
398
-
Computed: true,
399
-
Description: `This property is only applicable to First Generation instances. First Generation instances are now deprecated, see here for information on how to upgrade to Second Generation instances. Replication type for this instance, can be one of ASYNCHRONOUS or SYNCHRONOUS.`,
400
-
},
401
370
"user_labels": {
402
371
Type: schema.TypeMap,
403
372
Optional: true,
@@ -715,31 +684,6 @@ settings.backup_configuration.binary_log_enabled are both set to true.`,
715
684
}
716
685
}
717
686
718
-
// Suppress diff with any attribute value that is not supported on 1st Generation
0 commit comments