@@ -326,6 +326,15 @@ All URLs that begin with this prefix are handled by this handler, using the port
326326 },
327327 },
328328 },
329+ "inbound_services" : {
330+ Type : schema .TypeSet ,
331+ Optional : true ,
332+ Description : `Before an application can receive email or XMPP messages, the application must be configured to enable the service.` ,
333+ Elem : & schema.Schema {
334+ Type : schema .TypeString ,
335+ },
336+ Set : schema .HashString ,
337+ },
329338 "instance_class" : {
330339 Type : schema .TypeString ,
331340 Computed : true ,
@@ -479,6 +488,12 @@ func resourceAppEngineStandardAppVersionCreate(d *schema.ResourceData, meta inte
479488 } else if v , ok := d .GetOkExists ("entrypoint" ); ! isEmptyValue (reflect .ValueOf (entrypointProp )) && (ok || ! reflect .DeepEqual (v , entrypointProp )) {
480489 obj ["entrypoint" ] = entrypointProp
481490 }
491+ inboundServicesProp , err := expandAppEngineStandardAppVersionInboundServices (d .Get ("inbound_services" ), d , config )
492+ if err != nil {
493+ return err
494+ } else if v , ok := d .GetOkExists ("inbound_services" ); ! isEmptyValue (reflect .ValueOf (inboundServicesProp )) && (ok || ! reflect .DeepEqual (v , inboundServicesProp )) {
495+ obj ["inboundServices" ] = inboundServicesProp
496+ }
482497 instanceClassProp , err := expandAppEngineStandardAppVersionInstanceClass (d .Get ("instance_class" ), d , config )
483498 if err != nil {
484499 return err
@@ -594,6 +609,9 @@ func resourceAppEngineStandardAppVersionRead(d *schema.ResourceData, meta interf
594609 if err := d .Set ("libraries" , flattenAppEngineStandardAppVersionLibraries (res ["libraries" ], d , config )); err != nil {
595610 return fmt .Errorf ("Error reading StandardAppVersion: %s" , err )
596611 }
612+ if err := d .Set ("inbound_services" , flattenAppEngineStandardAppVersionInboundServices (res ["inboundServices" ], d , config )); err != nil {
613+ return fmt .Errorf ("Error reading StandardAppVersion: %s" , err )
614+ }
597615 if err := d .Set ("instance_class" , flattenAppEngineStandardAppVersionInstanceClass (res ["instanceClass" ], d , config )); err != nil {
598616 return fmt .Errorf ("Error reading StandardAppVersion: %s" , err )
599617 }
@@ -673,6 +691,12 @@ func resourceAppEngineStandardAppVersionUpdate(d *schema.ResourceData, meta inte
673691 } else if v , ok := d .GetOkExists ("entrypoint" ); ! isEmptyValue (reflect .ValueOf (v )) && (ok || ! reflect .DeepEqual (v , entrypointProp )) {
674692 obj ["entrypoint" ] = entrypointProp
675693 }
694+ inboundServicesProp , err := expandAppEngineStandardAppVersionInboundServices (d .Get ("inbound_services" ), d , config )
695+ if err != nil {
696+ return err
697+ } else if v , ok := d .GetOkExists ("inbound_services" ); ! isEmptyValue (reflect .ValueOf (v )) && (ok || ! reflect .DeepEqual (v , inboundServicesProp )) {
698+ obj ["inboundServices" ] = inboundServicesProp
699+ }
676700 instanceClassProp , err := expandAppEngineStandardAppVersionInstanceClass (d .Get ("instance_class" ), d , config )
677701 if err != nil {
678702 return err
@@ -973,6 +997,13 @@ func flattenAppEngineStandardAppVersionLibrariesVersion(v interface{}, d *schema
973997 return v
974998}
975999
1000+ func flattenAppEngineStandardAppVersionInboundServices (v interface {}, d * schema.ResourceData , config * Config ) interface {} {
1001+ if v == nil {
1002+ return v
1003+ }
1004+ return schema .NewSet (schema .HashString , v .([]interface {}))
1005+ }
1006+
9761007func flattenAppEngineStandardAppVersionInstanceClass (v interface {}, d * schema.ResourceData , config * Config ) interface {} {
9771008 return v
9781009}
@@ -1573,6 +1604,11 @@ func expandAppEngineStandardAppVersionEntrypointShell(v interface{}, d Terraform
15731604 return v , nil
15741605}
15751606
1607+ func expandAppEngineStandardAppVersionInboundServices (v interface {}, d TerraformResourceData , config * Config ) (interface {}, error ) {
1608+ v = v .(* schema.Set ).List ()
1609+ return v , nil
1610+ }
1611+
15761612func expandAppEngineStandardAppVersionInstanceClass (v interface {}, d TerraformResourceData , config * Config ) (interface {}, error ) {
15771613 return v , nil
15781614}
0 commit comments