@@ -285,6 +285,15 @@ A duration in seconds with up to nine fractional digits, ending with 's'. Exampl
285
285
Required : true ,
286
286
Description : `Name of the cloud storage bucket to back the volume. The resource service account must have permission to access the bucket.` ,
287
287
},
288
+ "mount_options" : {
289
+ Type : schema .TypeList ,
290
+ Optional : true ,
291
+ Description : `A list of flags to pass to the gcsfuse command for configuring this volume.
292
+ Flags should be passed without leading dashes.` ,
293
+ Elem : & schema.Schema {
294
+ Type : schema .TypeString ,
295
+ },
296
+ },
288
297
"read_only" : {
289
298
Type : schema .TypeBool ,
290
299
Optional : true ,
@@ -1845,6 +1854,8 @@ func flattenCloudRunV2JobTemplateTemplateVolumesGcs(v interface{}, d *schema.Res
1845
1854
flattenCloudRunV2JobTemplateTemplateVolumesGcsBucket (original ["bucket" ], d , config )
1846
1855
transformed ["read_only" ] =
1847
1856
flattenCloudRunV2JobTemplateTemplateVolumesGcsReadOnly (original ["readOnly" ], d , config )
1857
+ transformed ["mount_options" ] =
1858
+ flattenCloudRunV2JobTemplateTemplateVolumesGcsMountOptions (original ["mountOptions" ], d , config )
1848
1859
return []interface {}{transformed }
1849
1860
}
1850
1861
func flattenCloudRunV2JobTemplateTemplateVolumesGcsBucket (v interface {}, d * schema.ResourceData , config * transport_tpg.Config ) interface {} {
@@ -1855,6 +1866,10 @@ func flattenCloudRunV2JobTemplateTemplateVolumesGcsReadOnly(v interface{}, d *sc
1855
1866
return v
1856
1867
}
1857
1868
1869
+ func flattenCloudRunV2JobTemplateTemplateVolumesGcsMountOptions (v interface {}, d * schema.ResourceData , config * transport_tpg.Config ) interface {} {
1870
+ return v
1871
+ }
1872
+
1858
1873
func flattenCloudRunV2JobTemplateTemplateVolumesNfs (v interface {}, d * schema.ResourceData , config * transport_tpg.Config ) interface {} {
1859
1874
if v == nil {
1860
1875
return nil
@@ -2911,6 +2926,13 @@ func expandCloudRunV2JobTemplateTemplateVolumesGcs(v interface{}, d tpgresource.
2911
2926
transformed ["readOnly" ] = transformedReadOnly
2912
2927
}
2913
2928
2929
+ transformedMountOptions , err := expandCloudRunV2JobTemplateTemplateVolumesGcsMountOptions (original ["mount_options" ], d , config )
2930
+ if err != nil {
2931
+ return nil , err
2932
+ } else if val := reflect .ValueOf (transformedMountOptions ); val .IsValid () && ! tpgresource .IsEmptyValue (val ) {
2933
+ transformed ["mountOptions" ] = transformedMountOptions
2934
+ }
2935
+
2914
2936
return transformed , nil
2915
2937
}
2916
2938
@@ -2922,6 +2944,10 @@ func expandCloudRunV2JobTemplateTemplateVolumesGcsReadOnly(v interface{}, d tpgr
2922
2944
return v , nil
2923
2945
}
2924
2946
2947
+ func expandCloudRunV2JobTemplateTemplateVolumesGcsMountOptions (v interface {}, d tpgresource.TerraformResourceData , config * transport_tpg.Config ) (interface {}, error ) {
2948
+ return v , nil
2949
+ }
2950
+
2925
2951
func expandCloudRunV2JobTemplateTemplateVolumesNfs (v interface {}, d tpgresource.TerraformResourceData , config * transport_tpg.Config ) (interface {}, error ) {
2926
2952
l := v .([]interface {})
2927
2953
if len (l ) == 0 || l [0 ] == nil {
0 commit comments