-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Modular Magician <[email protected]>
- Loading branch information
1 parent
d9e585c
commit 2a6f9fe
Showing
9 changed files
with
789 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package google | ||
|
||
import ( | ||
"strings" | ||
|
||
"google.golang.org/api/googleapi" | ||
) | ||
|
||
// If a permission necessary to provision a resource is created in the same config | ||
// as the resource itself, the permission may not have propagated by the time terraform | ||
// attempts to create the resource. This allows those errors to be retried until the timeout expires | ||
func iamMemberMissing(err error) (bool, string) { | ||
if gerr, ok := err.(*googleapi.Error); ok { | ||
if gerr.Code == 400 && strings.Contains(gerr.Body, "permission") { | ||
return true, "Waiting for IAM member permissions to propagate." | ||
} | ||
} | ||
return false, "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// ---------------------------------------------------------------------------- | ||
// | ||
// *** AUTO GENERATED CODE *** AUTO GENERATED CODE *** | ||
// | ||
// ---------------------------------------------------------------------------- | ||
// | ||
// This file is automatically generated by Magic Modules and manual | ||
// changes will be clobbered when the file is regenerated. | ||
// | ||
// Please read more about how to change this file in | ||
// .github/CONTRIBUTING.md. | ||
// | ||
// ---------------------------------------------------------------------------- | ||
|
||
package google | ||
|
||
import "github.com/hashicorp/terraform/helper/schema" | ||
|
||
// If the base path has changed as a result of your PR, make sure to update | ||
// the provider_reference page! | ||
var BigqueryDataTransferDefaultBasePath = "https://bigquerydatatransfer.googleapis.com/v1/" | ||
var BigqueryDataTransferCustomEndpointEntryKey = "bigquery_data_transfer_custom_endpoint" | ||
var BigqueryDataTransferCustomEndpointEntry = &schema.Schema{ | ||
Type: schema.TypeString, | ||
Optional: true, | ||
ValidateFunc: validateCustomEndpoint, | ||
DefaultFunc: schema.MultiEnvDefaultFunc([]string{ | ||
"GOOGLE_BIGQUERY_DATA_TRANSFER_CUSTOM_ENDPOINT", | ||
}, BigqueryDataTransferDefaultBasePath), | ||
} | ||
|
||
var GeneratedBigqueryDataTransferResourcesMap = map[string]*schema.Resource{ | ||
"google_bigquery_data_transfer_config": resourceBigqueryDataTransferConfig(), | ||
} |
Oops, something went wrong.