Skip to content

Commit

Permalink
Release autogenerated google_compute_target_ssl_proxy resource
Browse files Browse the repository at this point in the history
  • Loading branch information
rosbo authored and modular-magician committed Apr 24, 2018
1 parent 0544ef4 commit 353affe
Show file tree
Hide file tree
Showing 4 changed files with 468 additions and 108 deletions.
31 changes: 31 additions & 0 deletions google/resource_compute_http_health_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package google
import (
"fmt"
"log"
"strconv"
"time"

"github.com/hashicorp/terraform/helper/schema"
Expand Down Expand Up @@ -367,6 +368,12 @@ func resourceComputeHttpHealthCheckImport(d *schema.ResourceData, meta interface
}

func flattenComputeHttpHealthCheckCheckIntervalSec(v interface{}) interface{} {
// Handles the string fixed64 format
if strVal, ok := v.(string); ok {
if intVal, err := strconv.Atoi(strVal); err == nil {
return intVal
} // let terraform core handle it if we can't convert the string to an int.
}
return v
}

Expand All @@ -379,6 +386,12 @@ func flattenComputeHttpHealthCheckDescription(v interface{}) interface{} {
}

func flattenComputeHttpHealthCheckHealthyThreshold(v interface{}) interface{} {
// Handles the string fixed64 format
if strVal, ok := v.(string); ok {
if intVal, err := strconv.Atoi(strVal); err == nil {
return intVal
} // let terraform core handle it if we can't convert the string to an int.
}
return v
}

Expand All @@ -391,6 +404,12 @@ func flattenComputeHttpHealthCheckName(v interface{}) interface{} {
}

func flattenComputeHttpHealthCheckPort(v interface{}) interface{} {
// Handles the string fixed64 format
if strVal, ok := v.(string); ok {
if intVal, err := strconv.Atoi(strVal); err == nil {
return intVal
} // let terraform core handle it if we can't convert the string to an int.
}
return v
}

Expand All @@ -399,10 +418,22 @@ func flattenComputeHttpHealthCheckRequestPath(v interface{}) interface{} {
}

func flattenComputeHttpHealthCheckTimeoutSec(v interface{}) interface{} {
// Handles the string fixed64 format
if strVal, ok := v.(string); ok {
if intVal, err := strconv.Atoi(strVal); err == nil {
return intVal
} // let terraform core handle it if we can't convert the string to an int.
}
return v
}

func flattenComputeHttpHealthCheckUnhealthyThreshold(v interface{}) interface{} {
// Handles the string fixed64 format
if strVal, ok := v.(string); ok {
if intVal, err := strconv.Atoi(strVal); err == nil {
return intVal
} // let terraform core handle it if we can't convert the string to an int.
}
return v
}

Expand Down
31 changes: 31 additions & 0 deletions google/resource_compute_https_health_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package google
import (
"fmt"
"log"
"strconv"
"time"

"github.com/hashicorp/terraform/helper/schema"
Expand Down Expand Up @@ -367,6 +368,12 @@ func resourceComputeHttpsHealthCheckImport(d *schema.ResourceData, meta interfac
}

func flattenComputeHttpsHealthCheckCheckIntervalSec(v interface{}) interface{} {
// Handles the string fixed64 format
if strVal, ok := v.(string); ok {
if intVal, err := strconv.Atoi(strVal); err == nil {
return intVal
} // let terraform core handle it if we can't convert the string to an int.
}
return v
}

Expand All @@ -379,6 +386,12 @@ func flattenComputeHttpsHealthCheckDescription(v interface{}) interface{} {
}

func flattenComputeHttpsHealthCheckHealthyThreshold(v interface{}) interface{} {
// Handles the string fixed64 format
if strVal, ok := v.(string); ok {
if intVal, err := strconv.Atoi(strVal); err == nil {
return intVal
} // let terraform core handle it if we can't convert the string to an int.
}
return v
}

Expand All @@ -391,6 +404,12 @@ func flattenComputeHttpsHealthCheckName(v interface{}) interface{} {
}

func flattenComputeHttpsHealthCheckPort(v interface{}) interface{} {
// Handles the string fixed64 format
if strVal, ok := v.(string); ok {
if intVal, err := strconv.Atoi(strVal); err == nil {
return intVal
} // let terraform core handle it if we can't convert the string to an int.
}
return v
}

Expand All @@ -399,10 +418,22 @@ func flattenComputeHttpsHealthCheckRequestPath(v interface{}) interface{} {
}

func flattenComputeHttpsHealthCheckTimeoutSec(v interface{}) interface{} {
// Handles the string fixed64 format
if strVal, ok := v.(string); ok {
if intVal, err := strconv.Atoi(strVal); err == nil {
return intVal
} // let terraform core handle it if we can't convert the string to an int.
}
return v
}

func flattenComputeHttpsHealthCheckUnhealthyThreshold(v interface{}) interface{} {
// Handles the string fixed64 format
if strVal, ok := v.(string); ok {
if intVal, err := strconv.Atoi(strVal); err == nil {
return intVal
} // let terraform core handle it if we can't convert the string to an int.
}
return v
}

Expand Down
Loading

0 comments on commit 353affe

Please sign in to comment.