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: `Defines an automated backup policy for a table, specified by Retention Period and Frequency. To _create_ a table with automated backup disabled, either omit the automated_backup_policy argument, or set both Retention Period and Frequency properties to "0". To disable automated backup on an _existing_ table that has automated backup enabled, set _both_ Retention Period and Frequency properties to "0". When updating an existing table, to modify the Retention Period or Frequency properties of the resource's automated backup policy, set the respective property to a non-zero value. If the automated_backup_policy argument is not provided in the configuration on update, the resource's automated backup policy will _not_ be modified.`,
174
174
},
175
+
"row_key_schema": {
176
+
Type: schema.TypeString,
177
+
Optional: true,
178
+
DiffSuppressFunc: typeDiffFunc,
179
+
Description: `Defines the row key schema of a table. To create or update a table with a row key schema, specify this argument.
180
+
Note that in-place update is not supported, and any in-place modification to the schema will lead to failure.
181
+
To update a schema, please clear it (by omitting the field), and update the resource again with a new schema.\n
182
+
183
+
The schema must be a valid JSON encoded string representing a Type's struct protobuf message. Note that for bytes sequence (like delimited_bytes.delimiter)
184
+
the delimiter must be base64 encoded. For example, if you want to set a delimiter to a single byte character "#", it should be set to "Iw==", which is the base64 encoding of the byte sequence "#".`,
185
+
},
175
186
},
176
187
UseJSONNumber: true,
177
188
}
@@ -323,6 +334,15 @@ func resourceBigtableTableCreate(d *schema.ResourceData, meta interface{}) error
323
334
}
324
335
tblConf.ColumnFamilies=columnFamilies
325
336
337
+
// Set the row key schema if given
338
+
ifrks, ok:=d.GetOk("row_key_schema"); ok {
339
+
parsedSchema, err:=getRowKeySchema(rks)
340
+
iferr!=nil {
341
+
returnerr
342
+
}
343
+
tblConf.RowKeySchema=parsedSchema
344
+
}
345
+
326
346
// This method may return before the table's creation is complete - we may need to wait until
327
347
// it exists in the future.
328
348
// Set a longer timeout as creating table and adding column families can be pretty slow.
0 commit comments