@@ -1209,9 +1209,6 @@ func resourceAppEngineFlexibleAppVersionRead(d *schema.ResourceData, meta interf
1209
1209
if err := d .Set ("nobuild_files_regex" , flattenAppEngineFlexibleAppVersionNobuildFilesRegex (res ["nobuildFilesRegex" ], d , config )); err != nil {
1210
1210
return fmt .Errorf ("Error reading FlexibleAppVersion: %s" , err )
1211
1211
}
1212
- if err := d .Set ("deployment" , flattenAppEngineFlexibleAppVersionDeployment (res ["deployment" ], d , config )); err != nil {
1213
- return fmt .Errorf ("Error reading FlexibleAppVersion: %s" , err )
1214
- }
1215
1212
if err := d .Set ("endpoints_api_service" , flattenAppEngineFlexibleAppVersionEndpointsApiService (res ["endpointsApiService" ], d , config )); err != nil {
1216
1213
return fmt .Errorf ("Error reading FlexibleAppVersion: %s" , err )
1217
1214
}
@@ -2016,61 +2013,6 @@ func flattenAppEngineFlexibleAppVersionNobuildFilesRegex(v interface{}, d *schem
2016
2013
return v
2017
2014
}
2018
2015
2019
- func flattenAppEngineFlexibleAppVersionDeployment (v interface {}, d * schema.ResourceData , config * transport_tpg.Config ) interface {} {
2020
- original := v .(map [string ]interface {})
2021
- transformed := make (map [string ]interface {})
2022
- transformed ["zip" ] = d .Get ("deployment.0.zip" )
2023
- transformed ["files" ] = d .Get ("deployment.0.files" )
2024
- transformed ["container" ] =
2025
- flattenAppEngineFlexibleAppVersionDeploymentContainer (original ["container" ], d , config )
2026
- transformed ["cloud_build_options" ] =
2027
- flattenAppEngineFlexibleAppVersionDeploymentCloudBuildOptions (original ["cloudBuildOptions" ], d , config )
2028
-
2029
- return []interface {}{transformed }
2030
- }
2031
-
2032
- func flattenAppEngineFlexibleAppVersionDeploymentContainer (v interface {}, d * schema.ResourceData , config * transport_tpg.Config ) interface {} {
2033
- if v == nil {
2034
- return nil
2035
- }
2036
- original := v .(map [string ]interface {})
2037
- if len (original ) == 0 {
2038
- return nil
2039
- }
2040
- transformed := make (map [string ]interface {})
2041
- transformed ["image" ] =
2042
- flattenAppEngineFlexibleAppVersionDeploymentContainerImage (original ["image" ], d , config )
2043
- return []interface {}{transformed }
2044
- }
2045
-
2046
- func flattenAppEngineFlexibleAppVersionDeploymentContainerImage (v interface {}, d * schema.ResourceData , config * transport_tpg.Config ) interface {} {
2047
- return v
2048
- }
2049
-
2050
- func flattenAppEngineFlexibleAppVersionDeploymentCloudBuildOptions (v interface {}, d * schema.ResourceData , config * transport_tpg.Config ) interface {} {
2051
- if v == nil {
2052
- return nil
2053
- }
2054
- original := v .(map [string ]interface {})
2055
- if len (original ) == 0 {
2056
- return nil
2057
- }
2058
- transformed := make (map [string ]interface {})
2059
- transformed ["app_yaml_path" ] =
2060
- flattenAppEngineFlexibleAppVersionDeploymentCloudBuildOptionsAppYamlPath (original ["appYamlPath" ], d , config )
2061
- transformed ["cloud_build_timeout" ] =
2062
- flattenAppEngineFlexibleAppVersionDeploymentCloudBuildOptionsCloudBuildTimeout (original ["cloudBuildTimeout" ], d , config )
2063
- return []interface {}{transformed }
2064
- }
2065
-
2066
- func flattenAppEngineFlexibleAppVersionDeploymentCloudBuildOptionsAppYamlPath (v interface {}, d * schema.ResourceData , config * transport_tpg.Config ) interface {} {
2067
- return v
2068
- }
2069
-
2070
- func flattenAppEngineFlexibleAppVersionDeploymentCloudBuildOptionsCloudBuildTimeout (v interface {}, d * schema.ResourceData , config * transport_tpg.Config ) interface {} {
2071
- return v
2072
- }
2073
-
2074
2016
func flattenAppEngineFlexibleAppVersionEndpointsApiService (v interface {}, d * schema.ResourceData , config * transport_tpg.Config ) interface {} {
2075
2017
if v == nil {
2076
2018
return nil
0 commit comments