diff --git a/google/kms_crypto_key.go b/google/kms_crypto_key.go index ef21885b31..724b1a5b9b 100644 --- a/google/kms_crypto_key.go +++ b/google/kms_crypto_key.go @@ -67,6 +67,12 @@ func GetKmsCryptoKeyApiObject(d TerraformResourceData, config *Config) (map[stri } else if v, ok := d.GetOkExists("version_template"); !isEmptyValue(reflect.ValueOf(versionTemplateProp)) && (ok || !reflect.DeepEqual(v, versionTemplateProp)) { obj["versionTemplate"] = versionTemplateProp } + keyRingProp, err := expandKmsCryptoKeyKeyRing(d.Get("key_ring"), d, config) + if err != nil { + return nil, err + } else if v, ok := d.GetOkExists("key_ring"); !isEmptyValue(reflect.ValueOf(keyRingProp)) && (ok || !reflect.DeepEqual(v, keyRingProp)) { + obj["keyRing"] = keyRingProp + } return resourceKmsCryptoKeyEncoder(d, config, obj) } @@ -139,3 +145,7 @@ func expandKmsCryptoKeyVersionTemplateAlgorithm(v interface{}, d TerraformResour func expandKmsCryptoKeyVersionTemplateProtectionLevel(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) { return v, nil } + +func expandKmsCryptoKeyKeyRing(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) { + return v, nil +}