@@ -573,6 +573,14 @@ in all issued Certificates. If this is false, CRLs will not be published and the
573
573
be written in issued certificates. CRLs will expire 7 days from their creation. However, we will rebuild daily. CRLs are
574
574
also rebuilt shortly after a certificate is revoked.` ,
575
575
},
576
+ "encoding_format" : {
577
+ Type : schema .TypeString ,
578
+ Optional : true ,
579
+ ValidateFunc : verify .ValidateEnum ([]string {"PEM" , "DER" , "" }),
580
+ Description : `Specifies the encoding format of each CertificateAuthority's CA
581
+ certificate and CRLs. If this is omitted, CA certificates and CRLs
582
+ will be published in PEM. Possible values: ["PEM", "DER"]` ,
583
+ },
576
584
},
577
585
},
578
586
},
@@ -1110,6 +1118,8 @@ func flattenPrivatecaCaPoolPublishingOptions(v interface{}, d *schema.ResourceDa
1110
1118
flattenPrivatecaCaPoolPublishingOptionsPublishCaCert (original ["publishCaCert" ], d , config )
1111
1119
transformed ["publish_crl" ] =
1112
1120
flattenPrivatecaCaPoolPublishingOptionsPublishCrl (original ["publishCrl" ], d , config )
1121
+ transformed ["encoding_format" ] =
1122
+ flattenPrivatecaCaPoolPublishingOptionsEncodingFormat (original ["encodingFormat" ], d , config )
1113
1123
return []interface {}{transformed }
1114
1124
}
1115
1125
func flattenPrivatecaCaPoolPublishingOptionsPublishCaCert (v interface {}, d * schema.ResourceData , config * transport_tpg.Config ) interface {} {
@@ -1120,6 +1130,10 @@ func flattenPrivatecaCaPoolPublishingOptionsPublishCrl(v interface{}, d *schema.
1120
1130
return v
1121
1131
}
1122
1132
1133
+ func flattenPrivatecaCaPoolPublishingOptionsEncodingFormat (v interface {}, d * schema.ResourceData , config * transport_tpg.Config ) interface {} {
1134
+ return v
1135
+ }
1136
+
1123
1137
func flattenPrivatecaCaPoolLabels (v interface {}, d * schema.ResourceData , config * transport_tpg.Config ) interface {} {
1124
1138
return v
1125
1139
}
@@ -1472,6 +1486,13 @@ func expandPrivatecaCaPoolPublishingOptions(v interface{}, d tpgresource.Terrafo
1472
1486
transformed ["publishCrl" ] = transformedPublishCrl
1473
1487
}
1474
1488
1489
+ transformedEncodingFormat , err := expandPrivatecaCaPoolPublishingOptionsEncodingFormat (original ["encoding_format" ], d , config )
1490
+ if err != nil {
1491
+ return nil , err
1492
+ } else if val := reflect .ValueOf (transformedEncodingFormat ); val .IsValid () && ! tpgresource .IsEmptyValue (val ) {
1493
+ transformed ["encodingFormat" ] = transformedEncodingFormat
1494
+ }
1495
+
1475
1496
return transformed , nil
1476
1497
}
1477
1498
@@ -1483,6 +1504,10 @@ func expandPrivatecaCaPoolPublishingOptionsPublishCrl(v interface{}, d tpgresour
1483
1504
return v , nil
1484
1505
}
1485
1506
1507
+ func expandPrivatecaCaPoolPublishingOptionsEncodingFormat (v interface {}, d tpgresource.TerraformResourceData , config * transport_tpg.Config ) (interface {}, error ) {
1508
+ return v , nil
1509
+ }
1510
+
1486
1511
func expandPrivatecaCaPoolLabels (v interface {}, d tpgresource.TerraformResourceData , config * transport_tpg.Config ) (map [string ]string , error ) {
1487
1512
if v == nil {
1488
1513
return map [string ]string {}, nil
0 commit comments