google

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2020 License: MPL-2.0 Imports: 90 Imported by: 1

Documentation ¶

Overview ¶

----------------------------------------------------------------------------

***     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.

----------------------------------------------------------------------------

----------------------------------------------------------------------------

***     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.

----------------------------------------------------------------------------

----------------------------------------------------------------------------

***     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.

----------------------------------------------------------------------------

----------------------------------------------------------------------------

***     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.

----------------------------------------------------------------------------

Utils for modifying IAM policies for resources across GCP ¶

----------------------------------------------------------------------------

***     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.

----------------------------------------------------------------------------

----------------------------------------------------------------------------

***     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.

----------------------------------------------------------------------------

----------------------------------------------------------------------------

***     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.

----------------------------------------------------------------------------

----------------------------------------------------------------------------

***     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.

----------------------------------------------------------------------------

----------------------------------------------------------------------------

***     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.

----------------------------------------------------------------------------

----------------------------------------------------------------------------

***     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.

----------------------------------------------------------------------------

----------------------------------------------------------------------------

***     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.

----------------------------------------------------------------------------

----------------------------------------------------------------------------

***     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.

----------------------------------------------------------------------------

----------------------------------------------------------------------------

***     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.

----------------------------------------------------------------------------

----------------------------------------------------------------------------

***     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.

----------------------------------------------------------------------------

----------------------------------------------------------------------------

***     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.

----------------------------------------------------------------------------

----------------------------------------------------------------------------

***     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.

----------------------------------------------------------------------------

----------------------------------------------------------------------------

***     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.

----------------------------------------------------------------------------

----------------------------------------------------------------------------

***     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.

----------------------------------------------------------------------------

----------------------------------------------------------------------------

***     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.

----------------------------------------------------------------------------

----------------------------------------------------------------------------

***     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.

----------------------------------------------------------------------------

----------------------------------------------------------------------------

***     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.

----------------------------------------------------------------------------

----------------------------------------------------------------------------

***     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.

----------------------------------------------------------------------------

----------------------------------------------------------------------------

***     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.

----------------------------------------------------------------------------

----------------------------------------------------------------------------

***     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.

----------------------------------------------------------------------------

----------------------------------------------------------------------------

***     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.

----------------------------------------------------------------------------

Index ¶

Constants ¶

View Source
const (
	IamBatchingEnabled  = true
	IamBatchingDisabled = false
)
View Source
const (
	GCPolicyModeIntersection = "INTERSECTION"
	GCPolicyModeUnion        = "UNION"
)
View Source
const (
	// Copied from the official Google Cloud auto-generated client.
	ProjectRegex         = "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"
	ProjectRegexWildCard = "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?)|-)"
	RegionRegex          = "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"
	SubnetworkRegex      = "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"

	SubnetworkLinkRegex = "projects/(" + ProjectRegex + ")/regions/(" + RegionRegex + ")/subnetworks/(" + SubnetworkRegex + ")$"

	RFC1035NameTemplate = "[a-z](?:[-a-z0-9]{%d,%d}[a-z0-9])"
	CloudIoTIdRegex     = "^[a-zA-Z][-a-zA-Z0-9._+~%]{2,254}$"

	// Format of default Compute service accounts created by Google
	// ${PROJECT_ID}-compute@developer.gserviceaccount.com where PROJECT_ID is an int64 (max 20 digits)
	ComputeServiceAccountNameRegex = "[0-9]{1,20}-compute@developer.gserviceaccount.com"

	// https://cloud.google.com/iam/docs/understanding-custom-roles#naming_the_role
	IAMCustomRoleIDRegex = "^[a-zA-Z0-9_\\.]{3,64}$"
)
View Source
const METADATA_FINGERPRINT_RETRIES = 10

Variables ¶

View Source
var (
	// Service account name must have a length between 6 and 30.
	// The first and last characters have different restrictions, than
	// the middle characters. The middle characters length must be between
	// 4 and 28 since the first and last character are excluded.
	ServiceAccountNameRegex = fmt.Sprintf(RFC1035NameTemplate, 4, 28)

	ServiceAccountLinkRegexPrefix = "projects/" + ProjectRegexWildCard + "/serviceAccounts/"
	PossibleServiceAccountNames   = []string{
		ServiceDefaultAccountNameRegex,
		ComputeServiceAccountNameRegex,
		CreatedServiceAccountNameRegex,
	}
	ServiceAccountLinkRegex = ServiceAccountLinkRegexPrefix + "(" + strings.Join(PossibleServiceAccountNames, "|") + ")"

	ServiceAccountKeyNameRegex = ServiceAccountLinkRegexPrefix + "(.+)/keys/(.+)"

	// Format of service accounts created through the API
	CreatedServiceAccountNameRegex = fmt.Sprintf(RFC1035NameTemplate, 4, 28) + "@" + ProjectNameInDNSFormRegex + "\\.iam\\.gserviceaccount\\.com$"

	// Format of service-created service account
	// examples are:
	// 		$PROJECTID@cloudbuild.gserviceaccount.com
	// 		$PROJECTID@cloudservices.gserviceaccount.com
	// 		$PROJECTID@appspot.gserviceaccount.com
	ServiceDefaultAccountNameRegex = ProjectRegex + "@[a-z]+.gserviceaccount.com$"

	ProjectNameInDNSFormRegex = "[-a-z0-9\\.]{1,63}"
	ProjectNameRegex          = "^[A-Za-z0-9-'\"\\s!]{4,30}$"
)
View Source
var AccessContextManagerDefaultBasePath = "https://accesscontextmanager.googleapis.com/v1/"

Generated product base paths

View Source
var AppEngineDefaultBasePath = "https://appengine.googleapis.com/v1/"
View Source
var BigQueryDefaultBasePath = "https://www.googleapis.com/bigquery/v2/"
View Source
var BigqueryDataTransferDefaultBasePath = "https://bigquerydatatransfer.googleapis.com/v1/"
View Source
var BigtableAdminCustomEndpointEntry = &schema.Schema{
	Type:         schema.TypeString,
	Optional:     true,
	ValidateFunc: validateCustomEndpoint,
	DefaultFunc: schema.MultiEnvDefaultFunc([]string{
		"GOOGLE_BIGTABLE_CUSTOM_ENDPOINT",
	}, BigtableAdminDefaultBasePath),
}
View Source
var BigtableAdminCustomEndpointEntryKey = "bigtable_custom_endpoint"
View Source
var BigtableAdminDefaultBasePath = "https://bigtableadmin.googleapis.com/v2/"
View Source
var BigtableDefaultBasePath = "https://bigtableadmin.googleapis.com/v2/"
View Source
var BillingAccountLoggingExclusionSchema = map[string]*schema.Schema{
	"billing_account": {
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},
}
View Source
var BillingDefaultBasePath = "https://billingbudgets.googleapis.com/v1beta1/"
View Source
var BinaryAuthorizationAttestorIamSchema = map[string]*schema.Schema{
	"project": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"attestor": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: compareSelfLinkOrResourceName,
	},
}
View Source
var BinaryAuthorizationDefaultBasePath = "https://binaryauthorization.googleapis.com/v1beta1/"
View Source
var CloudBillingCustomEndpointEntry = &schema.Schema{
	Type:         schema.TypeString,
	Optional:     true,
	ValidateFunc: validateCustomEndpoint,
	DefaultFunc: schema.MultiEnvDefaultFunc([]string{
		"GOOGLE_CLOUD_BILLING_CUSTOM_ENDPOINT",
	}, CloudBillingDefaultBasePath),
}
View Source
var CloudBillingCustomEndpointEntryKey = "cloud_billing_custom_endpoint"
View Source
var CloudBillingDefaultBasePath = "https://cloudbilling.googleapis.com/v1/"
View Source
var CloudBuildDefaultBasePath = "https://cloudbuild.googleapis.com/v1/"
View Source
var CloudFunctionsCloudFunctionIamSchema = map[string]*schema.Schema{
	"project": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"region": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"cloud_function": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: compareSelfLinkOrResourceName,
	},
}
View Source
var CloudFunctionsDefaultBasePath = "https://cloudfunctions.googleapis.com/v1/"
View Source
var CloudIoTCustomEndpointEntry = &schema.Schema{
	Type:         schema.TypeString,
	Optional:     true,
	ValidateFunc: validateCustomEndpoint,
	DefaultFunc: schema.MultiEnvDefaultFunc([]string{
		"GOOGLE_CLOUD_IOT_CUSTOM_ENDPOINT",
	}, CloudIoTDefaultBasePath),
}
View Source
var CloudIoTCustomEndpointEntryKey = "cloud_iot_custom_endpoint"
View Source
var CloudIoTDefaultBasePath = "https://cloudiot.googleapis.com/v1/"
View Source
var CloudRunDefaultBasePath = "https://{{location}}-run.googleapis.com/"
View Source
var CloudRunServiceIamSchema = map[string]*schema.Schema{
	"project": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"location": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"service": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: compareSelfLinkOrResourceName,
	},
}
View Source
var CloudSchedulerDefaultBasePath = "https://cloudscheduler.googleapis.com/v1/"
View Source
var CloudTasksDefaultBasePath = "https://cloudtasks.googleapis.com/v2/"
View Source
var ComposerCustomEndpointEntry = &schema.Schema{
	Type:         schema.TypeString,
	Optional:     true,
	ValidateFunc: validateCustomEndpoint,
	DefaultFunc: schema.MultiEnvDefaultFunc([]string{
		"GOOGLE_COMPOSER_CUSTOM_ENDPOINT",
	}, ComposerDefaultBasePath),
}
View Source
var ComposerCustomEndpointEntryKey = "composer_custom_endpoint"
View Source
var ComposerDefaultBasePath = "https://composer.googleapis.com/v1beta1/"
View Source
var ComputeBetaCustomEndpointEntry = &schema.Schema{
	Type:         schema.TypeString,
	Optional:     true,
	ValidateFunc: validateCustomEndpoint,
	DefaultFunc: schema.MultiEnvDefaultFunc([]string{
		"GOOGLE_COMPUTE_BETA_CUSTOM_ENDPOINT",
	}, ComputeBetaDefaultBasePath),
}
View Source
var ComputeBetaCustomEndpointEntryKey = "compute_beta_custom_endpoint"
View Source
var ComputeBetaDefaultBasePath = "https://www.googleapis.com/compute/beta/"
View Source
var ComputeDefaultBasePath = "https://www.googleapis.com/compute/beta/"
View Source
var ComputeInstanceIamSchema = map[string]*schema.Schema{
	"project": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"zone": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"instance_name": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: compareSelfLinkOrResourceName,
	},
}
View Source
var ComputeSubnetworkIamSchema = map[string]*schema.Schema{
	"project": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"region": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"subnetwork": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: compareSelfLinkOrResourceName,
	},
}
View Source
var ContainerAnalysisDefaultBasePath = "https://containeranalysis.googleapis.com/v1beta1/"
View Source
var ContainerBetaCustomEndpointEntry = &schema.Schema{
	Type:         schema.TypeString,
	Optional:     true,
	ValidateFunc: validateCustomEndpoint,
	DefaultFunc: schema.MultiEnvDefaultFunc([]string{
		"GOOGLE_CONTAINER_BETA_CUSTOM_ENDPOINT",
	}, ContainerBetaDefaultBasePath),
}
View Source
var ContainerBetaCustomEndpointEntryKey = "container_beta_custom_endpoint"
View Source
var ContainerBetaDefaultBasePath = "https://container.googleapis.com/v1beta1/"
View Source
var ContainerCustomEndpointEntry = &schema.Schema{
	Type:         schema.TypeString,
	Optional:     true,
	ValidateFunc: validateCustomEndpoint,
	DefaultFunc: schema.MultiEnvDefaultFunc([]string{
		"GOOGLE_CONTAINER_CUSTOM_ENDPOINT",
	}, ContainerDefaultBasePath),
}
View Source
var ContainerCustomEndpointEntryKey = "container_custom_endpoint"
View Source
var ContainerDefaultBasePath = "https://container.googleapis.com/v1/"
View Source
var DNSDefaultBasePath = "https://www.googleapis.com/dns/v1beta2/"
View Source
var DataFusionDefaultBasePath = "https://datafusion.googleapis.com/v1beta1/"
View Source
var DataflowCustomEndpointEntry = &schema.Schema{
	Type:         schema.TypeString,
	Optional:     true,
	ValidateFunc: validateCustomEndpoint,
	DefaultFunc: schema.MultiEnvDefaultFunc([]string{
		"GOOGLE_DATAFLOW_CUSTOM_ENDPOINT",
	}, DataflowDefaultBasePath),
}
View Source
var DataflowCustomEndpointEntryKey = "dataflow_custom_endpoint"
View Source
var DataflowDefaultBasePath = "https://dataflow.googleapis.com/v1b3/"
View Source
var DataprocBetaCustomEndpointEntry = &schema.Schema{
	Type:         schema.TypeString,
	Optional:     true,
	ValidateFunc: validateCustomEndpoint,
	DefaultFunc: schema.MultiEnvDefaultFunc([]string{
		"GOOGLE_DATAPROC_BETA_CUSTOM_ENDPOINT",
	}, DataprocBetaDefaultBasePath),
}
View Source
var DataprocBetaCustomEndpointEntryKey = "dataproc_beta_custom_endpoint"
View Source
var DataprocBetaDefaultBasePath = "https://dataproc.googleapis.com/v1beta2/"
View Source
var DataprocDefaultBasePath = "https://dataproc.googleapis.com/v1beta2/"
View Source
var DefaultRequestTimeout = 5 * time.Minute
View Source
var DeploymentManagerDefaultBasePath = "https://www.googleapis.com/deploymentmanager/v2/"
View Source
var DnsBetaCustomEndpointEntry = &schema.Schema{
	Type:         schema.TypeString,
	Optional:     true,
	ValidateFunc: validateCustomEndpoint,
	DefaultFunc: schema.MultiEnvDefaultFunc([]string{
		"GOOGLE_DNS_BETA_CUSTOM_ENDPOINT",
	}, DnsBetaDefaultBasePath),
}
View Source
var DnsBetaCustomEndpointEntryKey = "dns_beta_custom_endpoint"
View Source
var DnsBetaDefaultBasePath = "https://www.googleapis.com/dns/v1beta2/"
View Source
var FINGERPRINT_FAIL_ERRORS = []string{"Invalid fingerprint.", "Supplied fingerprint does not match current metadata fingerprint."}
View Source
var FilestoreDefaultBasePath = "https://file.googleapis.com/v1/"
View Source
var FirestoreDefaultBasePath = "https://firestore.googleapis.com/v1/"
View Source
var FolderLoggingExclusionSchema = map[string]*schema.Schema{
	"folder": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: optionalPrefixSuppress("folders/"),
	},
}
View Source
var HealthcareDefaultBasePath = "https://healthcare.googleapis.com/v1beta1/"
View Source
var IAMCustomEndpointEntry = &schema.Schema{
	Type:         schema.TypeString,
	Optional:     true,
	ValidateFunc: validateCustomEndpoint,
	DefaultFunc: schema.MultiEnvDefaultFunc([]string{
		"GOOGLE_IAM_CUSTOM_ENDPOINT",
	}, IAMDefaultBasePath),
}
View Source
var IAMCustomEndpointEntryKey = "iam_custom_endpoint"
View Source
var IAMDefaultBasePath = "https://iam.googleapis.com/v1/"
View Source
var IAPCustomEndpointEntry = &schema.Schema{
	Type:         schema.TypeString,
	Optional:     true,
	ValidateFunc: validateCustomEndpoint,
	DefaultFunc: schema.MultiEnvDefaultFunc([]string{
		"GOOGLE_IAP_CUSTOM_ENDPOINT",
	}, IAPDefaultBasePath),
}
View Source
var IAPCustomEndpointEntryKey = "iap_custom_endpoint"
View Source
var IAPDefaultBasePath = "https://iap.googleapis.com/v1beta1/"
View Source
var IamBigtableInstanceSchema = map[string]*schema.Schema{
	"instance": {
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},
	"project": {
		Type:     schema.TypeString,
		Optional: true,
		Computed: true,
		ForceNew: true,
	},
}
View Source
var IamBillingAccountSchema = map[string]*schema.Schema{
	"billing_account_id": {
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},
}
View Source
var IamCredentialsCustomEndpointEntry = &schema.Schema{
	Type:         schema.TypeString,
	Optional:     true,
	ValidateFunc: validateCustomEndpoint,
	DefaultFunc: schema.MultiEnvDefaultFunc([]string{
		"GOOGLE_IAM_CREDENTIALS_CUSTOM_ENDPOINT",
	}, IamCredentialsDefaultBasePath),
}
View Source
var IamCredentialsCustomEndpointEntryKey = "iam_credentials_custom_endpoint"
View Source
var IamCredentialsDefaultBasePath = "https://iamcredentials.googleapis.com/v1/"
View Source
var IamDataprocClusterSchema = map[string]*schema.Schema{
	"cluster": {
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},
	"project": {
		Type:     schema.TypeString,
		Optional: true,
		Computed: true,
		ForceNew: true,
	},
	"region": {
		Type:     schema.TypeString,
		Optional: true,
		Computed: true,
		ForceNew: true,
	},
}
View Source
var IamDataprocJobSchema = map[string]*schema.Schema{
	"job_id": {
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},
	"project": {
		Type:     schema.TypeString,
		Optional: true,
		Computed: true,
		ForceNew: true,
	},
	"region": {
		Type:     schema.TypeString,
		Optional: true,
		Computed: true,
		ForceNew: true,
	},
}
View Source
var IamFolderSchema = map[string]*schema.Schema{
	"folder": {
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},
}
View Source
var IamHealthcareDatasetSchema = map[string]*schema.Schema{
	"dataset_id": {
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},
}
View Source
var IamHealthcareDicomStoreSchema = map[string]*schema.Schema{
	"dicom_store_id": {
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},
}
View Source
var IamHealthcareFhirStoreSchema = map[string]*schema.Schema{
	"fhir_store_id": {
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},
}
View Source
var IamHealthcareHl7V2StoreSchema = map[string]*schema.Schema{
	"hl7_v2_store_id": {
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},
}
View Source
var IamIapTunnelInstanceSchema = map[string]*schema.Schema{
	"instance": {
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},

	"project": {
		Type:     schema.TypeString,
		Optional: true,
		Computed: true,
		ForceNew: true,
	},

	"zone": {
		Type:     schema.TypeString,
		Optional: true,
		Computed: true,
		ForceNew: true,
	},
}
View Source
var IamKmsCryptoKeySchema = map[string]*schema.Schema{
	"crypto_key_id": {
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},
}
View Source
var IamKmsKeyRingSchema = map[string]*schema.Schema{
	"key_ring_id": {
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},
}
View Source
var IamMemberBaseSchema = map[string]*schema.Schema{
	"role": {
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},
	"member": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: caseDiffSuppress,
		ValidateFunc:     validation.StringDoesNotMatch(regexp.MustCompile("^deleted:"), "Terraform does not support IAM members for deleted principals"),
	},
	"condition": {
		Type:     schema.TypeList,
		Optional: true,
		MaxItems: 1,
		ForceNew: true,
		Elem: &schema.Resource{
			Schema: map[string]*schema.Schema{
				"expression": {
					Type:     schema.TypeString,
					Required: true,
					ForceNew: true,
				},
				"title": {
					Type:     schema.TypeString,
					Required: true,
					ForceNew: true,
				},
				"description": {
					Type:     schema.TypeString,
					Optional: true,
					ForceNew: true,
				},
			},
		},
	},
	"etag": {
		Type:     schema.TypeString,
		Computed: true,
	},
}
View Source
var IamOrganizationSchema = map[string]*schema.Schema{
	"org_id": {
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},
}
View Source
var IamPolicyBaseSchema = map[string]*schema.Schema{
	"policy_data": {
		Type:             schema.TypeString,
		Required:         true,
		DiffSuppressFunc: jsonPolicyDiffSuppress,
		ValidateFunc:     validateIamPolicy,
	},
	"etag": {
		Type:     schema.TypeString,
		Computed: true,
	},
}
View Source
var IamProjectSchema = map[string]*schema.Schema{
	"project": {
		Type:     schema.TypeString,
		Optional: true,
		Computed: true,
		ForceNew: true,
	},
}
View Source
var IamPubsubSubscriptionSchema = map[string]*schema.Schema{
	"subscription": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: compareSelfLinkOrResourceName,
	},
	"project": {
		Type:     schema.TypeString,
		Optional: true,
		Computed: true,
		ForceNew: true,
	},
}
View Source
var IamServiceAccountSchema = map[string]*schema.Schema{
	"service_account_id": {
		Type:         schema.TypeString,
		Required:     true,
		ForceNew:     true,
		ValidateFunc: validateRegexp(ServiceAccountLinkRegex),
	},
}
View Source
var IamSpannerDatabaseSchema = map[string]*schema.Schema{
	"instance": {
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},
	"database": {
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},

	"project": {
		Type:     schema.TypeString,
		Optional: true,
		Computed: true,
		ForceNew: true,
	},
}
View Source
var IamSpannerInstanceSchema = map[string]*schema.Schema{
	"instance": {
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},

	"project": {
		Type:     schema.TypeString,
		Optional: true,
		Computed: true,
		ForceNew: true,
	},
}
View Source
var IapAppEngineServiceIamSchema = map[string]*schema.Schema{
	"project": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"app_id": {
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},
	"service": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: compareSelfLinkOrResourceName,
	},
}
View Source
var IapAppEngineVersionIamSchema = map[string]*schema.Schema{
	"project": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"app_id": {
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},
	"service": {
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},
	"version_id": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: compareSelfLinkOrResourceName,
	},
}
View Source
var IapDefaultBasePath = "https://iap.googleapis.com/v1/"
View Source
var IapWebBackendServiceIamSchema = map[string]*schema.Schema{
	"project": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"web_backend_service": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: compareSelfLinkOrResourceName,
	},
}
View Source
var IapWebIamSchema = map[string]*schema.Schema{
	"project": {
		Type:             schema.TypeString,
		Computed:         true,
		Optional:         true,
		ForceNew:         true,
		DiffSuppressFunc: compareSelfLinkOrResourceName,
	},
}
View Source
var IapWebTypeAppEngineIamSchema = map[string]*schema.Schema{
	"project": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"app_id": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: IapWebTypeAppEngineDiffSuppress,
	},
}
View Source
var IapWebTypeComputeIamSchema = map[string]*schema.Schema{
	"project": {
		Type:             schema.TypeString,
		Computed:         true,
		Optional:         true,
		ForceNew:         true,
		DiffSuppressFunc: compareSelfLinkOrResourceName,
	},
}
View Source
var IdentityPlatformDefaultBasePath = "https://identitytoolkit.googleapis.com/v2/"
View Source
var KMSDefaultBasePath = "https://cloudkms.googleapis.com/v1/"
View Source
var LoggingDefaultBasePath = "https://logging.googleapis.com/v2/"
View Source
var LoggingExclusionBaseSchema = map[string]*schema.Schema{
	"filter": {
		Type:     schema.TypeString,
		Required: true,
	},
	"name": {
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},
	"description": {
		Type:     schema.TypeString,
		Optional: true,
	},
	"disabled": {
		Type:     schema.TypeBool,
		Optional: true,
	},
}
View Source
var MLEngineDefaultBasePath = "https://ml.googleapis.com/v1/"
View Source
var MonitoringDefaultBasePath = "https://monitoring.googleapis.com/v3/"
View Source
var OrganizationLoggingExclusionSchema = map[string]*schema.Schema{
	"org_id": {
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},
}
View Source
var ProjectLoggingExclusionSchema = map[string]*schema.Schema{
	"project": {
		Type:     schema.TypeString,
		Optional: true,
		Computed: true,
		ForceNew: true,
	},
}
View Source
var PubsubDefaultBasePath = "https://pubsub.googleapis.com/v1/"
View Source
var PubsubTopicIamSchema = map[string]*schema.Schema{
	"project": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"topic": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: compareSelfLinkOrResourceName,
	},
}
View Source
var RedisDefaultBasePath = "https://redis.googleapis.com/v1beta1/"
View Source
var ResourceManagerDefaultBasePath = "https://cloudresourcemanager.googleapis.com/v1/"
View Source
var ResourceManagerV2Beta1CustomEndpointEntry = &schema.Schema{
	Type:         schema.TypeString,
	Optional:     true,
	ValidateFunc: validateCustomEndpoint,
	DefaultFunc: schema.MultiEnvDefaultFunc([]string{
		"GOOGLE_RESOURCE_MANAGER_V2BETA1_CUSTOM_ENDPOINT",
	}, ResourceManagerV2Beta1DefaultBasePath),
}
View Source
var ResourceManagerV2Beta1CustomEndpointEntryKey = "resource_manager_v2beta1_custom_endpoint"
View Source
var ResourceManagerV2Beta1DefaultBasePath = "https://cloudresourcemanager.googleapis.com/v2beta1/"
View Source
var RuntimeConfigConfigIamSchema = map[string]*schema.Schema{
	"project": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"config": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: compareSelfLinkOrResourceName,
	},
}
View Source
var RuntimeConfigCustomEndpointEntry = &schema.Schema{
	Type:         schema.TypeString,
	Optional:     true,
	ValidateFunc: validateCustomEndpoint,
	DefaultFunc: schema.MultiEnvDefaultFunc([]string{
		"GOOGLE_RUNTIMECONFIG_CUSTOM_ENDPOINT",
	}, RuntimeConfigDefaultBasePath),
}
View Source
var RuntimeConfigCustomEndpointEntryKey = "runtimeconfig_custom_endpoint"
View Source
var RuntimeConfigDefaultBasePath = "https://runtimeconfig.googleapis.com/v1beta1/"
View Source
var SQLDefaultBasePath = "https://www.googleapis.com/sql/v1beta4/"
View Source
var SecurityCenterDefaultBasePath = "https://securitycenter.googleapis.com/v1/"
View Source
var SecurityScannerDefaultBasePath = "https://websecurityscanner.googleapis.com/v1beta/"
View Source
var ServiceManagementCustomEndpointEntry = &schema.Schema{
	Type:         schema.TypeString,
	Optional:     true,
	ValidateFunc: validateCustomEndpoint,
	DefaultFunc: schema.MultiEnvDefaultFunc([]string{
		"GOOGLE_SERVICE_MANAGEMENT_CUSTOM_ENDPOINT",
	}, ServiceManagementDefaultBasePath),
}
View Source
var ServiceManagementCustomEndpointEntryKey = "service_management_custom_endpoint"
View Source
var ServiceManagementDefaultBasePath = "https://servicemanagement.googleapis.com/v1/"
View Source
var ServiceNetworkingCustomEndpointEntry = &schema.Schema{
	Type:         schema.TypeString,
	Optional:     true,
	ValidateFunc: validateCustomEndpoint,
	DefaultFunc: schema.MultiEnvDefaultFunc([]string{
		"GOOGLE_SERVICE_NETWORKING_CUSTOM_ENDPOINT",
	}, ServiceNetworkingDefaultBasePath),
}
View Source
var ServiceNetworkingCustomEndpointEntryKey = "service_networking_custom_endpoint"
View Source
var ServiceNetworkingDefaultBasePath = "https://servicenetworking.googleapis.com/v1/"
View Source
var ServiceUsageCustomEndpointEntry = &schema.Schema{
	Type:         schema.TypeString,
	Optional:     true,
	ValidateFunc: validateCustomEndpoint,
	DefaultFunc: schema.MultiEnvDefaultFunc([]string{
		"GOOGLE_SERVICE_USAGE_CUSTOM_ENDPOINT",
	}, ServiceUsageDefaultBasePath),
}
View Source
var ServiceUsageCustomEndpointEntryKey = "service_usage_custom_endpoint"
View Source
var ServiceUsageDefaultBasePath = "https://serviceusage.googleapis.com/v1/"
View Source
var SourceRepoDefaultBasePath = "https://sourcerepo.googleapis.com/v1/"
View Source
var SourceRepoRepositoryIamSchema = map[string]*schema.Schema{
	"project": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"repository": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: SourceRepoRepositoryDiffSuppress,
	},
}
View Source
var SpannerDefaultBasePath = "https://spanner.googleapis.com/v1/"
View Source
var StorageBucketIamSchema = map[string]*schema.Schema{
	"bucket": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: compareSelfLinkOrResourceName,
	},
}
View Source
var StorageDefaultBasePath = "https://www.googleapis.com/storage/v1/"
View Source
var StorageTransferCustomEndpointEntry = &schema.Schema{
	Type:         schema.TypeString,
	Optional:     true,
	ValidateFunc: validateCustomEndpoint,
	DefaultFunc: schema.MultiEnvDefaultFunc([]string{
		"GOOGLE_STORAGE_TRANSFER_CUSTOM_ENDPOINT",
	}, StorageTransferDefaultBasePath),
}
View Source
var StorageTransferCustomEndpointEntryKey = "storage_transfer_custom_endpoint"
View Source
var StorageTransferDefaultBasePath = "https://storagetransfer.googleapis.com/v1/"
View Source
var TPUDefaultBasePath = "https://tpu.googleapis.com/v1/"
View Source
var VPCAccessDefaultBasePath = "https://vpcaccess.googleapis.com/v1beta1/"

Functions ¶

func BatchRequestEnableServices ¶

func BatchRequestEnableServices(services map[string]struct{}, project string, d *schema.ResourceData, config *Config) error

BatchRequestEnableServices can be used to batch requests to enable services across resource nodes, i.e. to batch creation of several google_project_service(s) resources.

func BatchRequestModifyIamPolicy ¶

func BatchRequestModifyIamPolicy(updater ResourceIamUpdater, modify iamPolicyModifyFunc, config *Config, reqDesc string) error

func BatchRequestReadServices ¶

func BatchRequestReadServices(project string, d *schema.ResourceData, config *Config) (interface{}, error)

func BetaMetadataUpdate ¶

func BetaMetadataUpdate(oldMDMap map[string]interface{}, newMDMap map[string]interface{}, serverMD *computeBeta.Metadata)

Update the beta metadata (serverMD) according to the provided diff (oldMDMap v newMDMap).

func BigtableInstanceIdParseFunc ¶

func BigtableInstanceIdParseFunc(d *schema.ResourceData, config *Config) error

func BillingAccountIdParseFunc ¶

func BillingAccountIdParseFunc(d *schema.ResourceData, _ *Config) error

func BinaryAuthorizationAttestorIdParseFunc ¶

func BinaryAuthorizationAttestorIdParseFunc(d *schema.ResourceData, config *Config) error

func CloudFunctionsCloudFunctionIdParseFunc ¶

func CloudFunctionsCloudFunctionIdParseFunc(d *schema.ResourceData, config *Config) error

func CloudRunServiceIdParseFunc ¶

func CloudRunServiceIdParseFunc(d *schema.ResourceData, config *Config) error

func CommonRefreshFunc ¶

func CommonRefreshFunc(w Waiter) resource.StateRefreshFunc

func ComputeInstanceIdParseFunc ¶

func ComputeInstanceIdParseFunc(d *schema.ResourceData, config *Config) error

func ComputeSubnetworkIdParseFunc ¶

func ComputeSubnetworkIdParseFunc(d *schema.ResourceData, config *Config) error

func ConfigureBasePaths ¶

func ConfigureBasePaths(c *Config)

For a consumer of config.go that isn't a full fledged provider and doesn't have its own endpoint mechanism such as sweepers, init {{service}}BasePath values to a default. After using this, you should call config.LoadAndValidate.

func Convert ¶

func Convert(item, out interface{}) error

Convert between two types by converting to/from JSON. Intended to switch between multiple API versions, as they are strict supersets of one another. item and out are pointers to structs

func ConvertSelfLinkToV1 ¶

func ConvertSelfLinkToV1(link string) string

func ConvertToMap ¶

func ConvertToMap(item interface{}) (map[string]interface{}, error)

When converting to a map, we can't use setOmittedFields because FieldByName fails. Luckily, we don't use the omitted fields anymore with generated resources, and this function is used to bridge from handwritten -> generated. Since this is a known type, we can create it inline instead of needing to pass an object in.

func CryptoIdParseFunc ¶

func CryptoIdParseFunc(d *schema.ResourceData, config *Config) error

func DataprocClusterIdParseFunc ¶

func DataprocClusterIdParseFunc(d *schema.ResourceData, config *Config) error

func DataprocJobIdParseFunc ¶

func DataprocJobIdParseFunc(d *schema.ResourceData, config *Config) error

func DatasetIdParseFunc ¶

func DatasetIdParseFunc(d *schema.ResourceData, config *Config) error

func DicomStoreIdParseFunc ¶

func DicomStoreIdParseFunc(d *schema.ResourceData, config *Config) error

func FhirStoreIdParseFunc ¶

func FhirStoreIdParseFunc(d *schema.ResourceData, config *Config) error

func FolderIdParseFunc ¶

func FolderIdParseFunc(d *schema.ResourceData, _ *Config) error

func GetLocationalResourcePropertiesFromSelfLinkString ¶

func GetLocationalResourcePropertiesFromSelfLinkString(selfLink string) (string, string, string, error)

given a full locational (non-global) self link, returns the project + region/zone + name or an error

func GetRegionFromRegionSelfLink(selfLink string) string

return the region a selfLink is referring to

func GetRegionalResourcePropertiesFromSelfLinkOrSchema ¶

func GetRegionalResourcePropertiesFromSelfLinkOrSchema(d *schema.ResourceData, config *Config) (string, string, string, error)
func GetResourceNameFromSelfLink(link string) string

func GetZonalResourcePropertiesFromSelfLinkOrSchema ¶

func GetZonalResourcePropertiesFromSelfLinkOrSchema(d *schema.ResourceData, config *Config) (string, string, string, error)

func Hl7V2StoreIdParseFunc ¶

func Hl7V2StoreIdParseFunc(d *schema.ResourceData, config *Config) error

func IapAppEngineServiceIdParseFunc ¶

func IapAppEngineServiceIdParseFunc(d *schema.ResourceData, config *Config) error

func IapAppEngineVersionIdParseFunc ¶

func IapAppEngineVersionIdParseFunc(d *schema.ResourceData, config *Config) error

func IapTunnelInstanceIdParseFunc ¶

func IapTunnelInstanceIdParseFunc(d *schema.ResourceData, config *Config) error

func IapWebBackendServiceIdParseFunc ¶

func IapWebBackendServiceIdParseFunc(d *schema.ResourceData, config *Config) error

func IapWebIdParseFunc ¶

func IapWebIdParseFunc(d *schema.ResourceData, config *Config) error

func IapWebTypeAppEngineDiffSuppress ¶

func IapWebTypeAppEngineDiffSuppress(_, old, new string, _ *schema.ResourceData) bool

func IapWebTypeAppEngineIdParseFunc ¶

func IapWebTypeAppEngineIdParseFunc(d *schema.ResourceData, config *Config) error

func IapWebTypeComputeIdParseFunc ¶

func IapWebTypeComputeIdParseFunc(d *schema.ResourceData, config *Config) error

func KeyRingIdParseFunc ¶

func KeyRingIdParseFunc(d *schema.ResourceData, config *Config) error

func MetadataRetryWrapper ¶

func MetadataRetryWrapper(update func() error) error

Since the google compute API uses optimistic locking, there is a chance we need to resubmit our updated metadata. To do this, you need to provide an update function that attempts to submit your metadata

func MetadataUpdate ¶

func MetadataUpdate(oldMDMap map[string]interface{}, newMDMap map[string]interface{}, serverMD *compute.Metadata)

Update the metadata (serverMD) according to the provided diff (oldMDMap v newMDMap).

func NameFromSelfLinkStateFunc ¶

func NameFromSelfLinkStateFunc(v interface{}) string

func Nprintf ¶

func Nprintf(format string, params map[string]interface{}) string

This is a Printf sibling (Nprintf; Named Printf), which handles strings like Nprintf("Hello %{target}!", map[string]interface{}{"target":"world"}) == "Hello world!". This is particularly useful for generated tests, where we don't want to use Printf, since that would require us to generate a very particular ordering of arguments.

func OperationDone ¶

func OperationDone(w Waiter) bool

func OperationWait ¶

func OperationWait(w Waiter, activity string, timeoutMinutes int) error

func OrgIdParseFunc ¶

func OrgIdParseFunc(d *schema.ResourceData, _ *Config) error

func ProjectIdParseFunc ¶

func ProjectIdParseFunc(d *schema.ResourceData, _ *Config) error

func Provider ¶

func Provider() terraform.ResourceProvider

Provider returns a terraform.ResourceProvider.

func PubsubSubscriptionIdParseFunc ¶

func PubsubSubscriptionIdParseFunc(d *schema.ResourceData, _ *Config) error

func PubsubTopicIdParseFunc ¶

func PubsubTopicIdParseFunc(d *schema.ResourceData, config *Config) error

func ResourceIamAuditConfig ¶

func ResourceIamAuditConfig(parentSpecificSchema map[string]*schema.Schema, newUpdaterFunc newResourceIamUpdaterFunc, resourceIdParser resourceIdParserFunc) *schema.Resource

func ResourceIamAuditConfigWithBatching ¶

func ResourceIamAuditConfigWithBatching(parentSpecificSchema map[string]*schema.Schema, newUpdaterFunc newResourceIamUpdaterFunc, resourceIdParser resourceIdParserFunc, enableBatching bool) *schema.Resource

func ResourceIamBinding ¶

func ResourceIamBinding(parentSpecificSchema map[string]*schema.Schema, newUpdaterFunc newResourceIamUpdaterFunc, resourceIdParser resourceIdParserFunc) *schema.Resource

func ResourceIamBindingWithBatching ¶

func ResourceIamBindingWithBatching(parentSpecificSchema map[string]*schema.Schema, newUpdaterFunc newResourceIamUpdaterFunc, resourceIdParser resourceIdParserFunc, enableBatching bool) *schema.Resource

Resource that batches requests to the same IAM policy across multiple IAM fine-grained resources

func ResourceIamMember ¶

func ResourceIamMember(parentSpecificSchema map[string]*schema.Schema, newUpdaterFunc newResourceIamUpdaterFunc, resourceIdParser resourceIdParserFunc) *schema.Resource

func ResourceIamMemberWithBatching ¶

func ResourceIamMemberWithBatching(parentSpecificSchema map[string]*schema.Schema, newUpdaterFunc newResourceIamUpdaterFunc, resourceIdParser resourceIdParserFunc, enableBatching bool) *schema.Resource

func ResourceIamPolicy ¶

func ResourceIamPolicy(parentSpecificSchema map[string]*schema.Schema, newUpdaterFunc newResourceIamUpdaterFunc, resourceIdParser resourceIdParserFunc) *schema.Resource

func ResourceIamPolicyCreate ¶

func ResourceIamPolicyCreate(newUpdaterFunc newResourceIamUpdaterFunc) schema.CreateFunc

func ResourceIamPolicyDelete ¶

func ResourceIamPolicyDelete(newUpdaterFunc newResourceIamUpdaterFunc) schema.DeleteFunc

func ResourceIamPolicyRead ¶

func ResourceIamPolicyRead(newUpdaterFunc newResourceIamUpdaterFunc) schema.ReadFunc

func ResourceIamPolicyUpdate ¶

func ResourceIamPolicyUpdate(newUpdaterFunc newResourceIamUpdaterFunc) schema.UpdateFunc

func ResourceLoggingExclusion ¶

func ResourceLoggingExclusion(parentSpecificSchema map[string]*schema.Schema, newUpdaterFunc newResourceLoggingExclusionUpdaterFunc, resourceIdParser resourceIdParserFunc) *schema.Resource

func ResourceMap ¶

func ResourceMap() map[string]*schema.Resource

Generated resources: 112 Generated IAM resources: 45 Total generated resources: 157

func ResourceMapWithErrors ¶

func ResourceMapWithErrors() (map[string]*schema.Resource, error)

func RuntimeConfigConfigIdParseFunc ¶

func RuntimeConfigConfigIdParseFunc(d *schema.ResourceData, config *Config) error

func ServiceAccountIdParseFunc ¶

func ServiceAccountIdParseFunc(d *schema.ResourceData, _ *Config) error

func SignString ¶

func SignString(toSign []byte, cfg *jwt.Config) ([]byte, error)

SignString calculates the SHA256 signature of the input string

func SourceRepoRepositoryDiffSuppress ¶

func SourceRepoRepositoryDiffSuppress(_, old, new string, _ *schema.ResourceData) bool

func SourceRepoRepositoryIdParseFunc ¶

func SourceRepoRepositoryIdParseFunc(d *schema.ResourceData, config *Config) error

func SpannerDatabaseIdParseFunc ¶

func SpannerDatabaseIdParseFunc(d *schema.ResourceData, config *Config) error

func SpannerInstanceIdParseFunc ¶

func SpannerInstanceIdParseFunc(d *schema.ResourceData, config *Config) error

func StorageBucketIdParseFunc ¶

func StorageBucketIdParseFunc(d *schema.ResourceData, config *Config) error

func StoreResourceName ¶

func StoreResourceName(resourceLink interface{}) string

func StringNotInSlice ¶

func StringNotInSlice(invalid []string, ignoreCase bool) schema.SchemaValidateFunc

StringNotInSlice returns a SchemaValidateFunc which tests if the provided value is of type string and that it matches none of the element in the invalid slice. if ignorecase is true, case is ignored.

Types ¶

type AccessContextManagerOperationWaiter ¶

type AccessContextManagerOperationWaiter struct {
	Config *Config
	CommonOperationWaiter
}

func (*AccessContextManagerOperationWaiter) QueryOp ¶

func (w *AccessContextManagerOperationWaiter) QueryOp() (interface{}, error)

type AppEngineOperationWaiter ¶

type AppEngineOperationWaiter struct {
	Service *appengine.APIService
	AppId   string
	CommonOperationWaiter
}

func (*AppEngineOperationWaiter) QueryOp ¶

func (w *AppEngineOperationWaiter) QueryOp() (interface{}, error)

type BatchRequest ¶

type BatchRequest struct {
	// ResourceName represents the underlying resource for which
	// a request is made. Its format is determined by what SendF expects, but
	// typically should be the name of the parent GCP resource being changed.
	ResourceName string

	// Body is this request's data to be passed to SendF, and may be combined
	// with other bodies using CombineF.
	Body interface{}

	// CombineF function determines how to combine bodies from two batches.
	CombineF batcherCombineFunc

	// SendF function determines how to actually send a batched request to a
	// third party service. The arguments given to this function are
	// (ResourceName, Body) where Body may have been combined with other request
	// Bodies.
	SendF batcherSendFunc

	// ID for debugging request. This should be specific to a single request
	// (i.e. per Terraform resource)
	DebugId string
}

BatchRequest represents a single request to a global batcher.

type BigtableClientFactory ¶

type BigtableClientFactory struct {
	UserAgent   string
	TokenSource oauth2.TokenSource
}

func (BigtableClientFactory) NewAdminClient ¶

func (s BigtableClientFactory) NewAdminClient(project, instance string) (*bigtable.AdminClient, error)

func (BigtableClientFactory) NewInstanceAdminClient ¶

func (s BigtableClientFactory) NewInstanceAdminClient(project string) (*bigtable.InstanceAdminClient, error)

type BigtableInstanceIamUpdater ¶

type BigtableInstanceIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*BigtableInstanceIamUpdater) DescribeResource ¶

func (u *BigtableInstanceIamUpdater) DescribeResource() string

func (*BigtableInstanceIamUpdater) GetMutexKey ¶

func (u *BigtableInstanceIamUpdater) GetMutexKey() string

func (*BigtableInstanceIamUpdater) GetResourceIamPolicy ¶

func (u *BigtableInstanceIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*BigtableInstanceIamUpdater) GetResourceId ¶

func (u *BigtableInstanceIamUpdater) GetResourceId() string

func (*BigtableInstanceIamUpdater) SetResourceIamPolicy ¶

func (u *BigtableInstanceIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type BillingAccountIamUpdater ¶

type BillingAccountIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*BillingAccountIamUpdater) DescribeResource ¶

func (u *BillingAccountIamUpdater) DescribeResource() string

func (*BillingAccountIamUpdater) GetMutexKey ¶

func (u *BillingAccountIamUpdater) GetMutexKey() string

func (*BillingAccountIamUpdater) GetResourceIamPolicy ¶

func (u *BillingAccountIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*BillingAccountIamUpdater) GetResourceId ¶

func (u *BillingAccountIamUpdater) GetResourceId() string

func (*BillingAccountIamUpdater) SetResourceIamPolicy ¶

func (u *BillingAccountIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type BillingAccountLoggingExclusionUpdater ¶

type BillingAccountLoggingExclusionUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*BillingAccountLoggingExclusionUpdater) CreateLoggingExclusion ¶

func (u *BillingAccountLoggingExclusionUpdater) CreateLoggingExclusion(parent string, exclusion *logging.LogExclusion) error

func (*BillingAccountLoggingExclusionUpdater) DeleteLoggingExclusion ¶

func (u *BillingAccountLoggingExclusionUpdater) DeleteLoggingExclusion(id string) error

func (*BillingAccountLoggingExclusionUpdater) DescribeResource ¶

func (u *BillingAccountLoggingExclusionUpdater) DescribeResource() string

func (*BillingAccountLoggingExclusionUpdater) GetResourceId ¶

func (u *BillingAccountLoggingExclusionUpdater) GetResourceId() string

func (*BillingAccountLoggingExclusionUpdater) GetResourceType ¶

func (u *BillingAccountLoggingExclusionUpdater) GetResourceType() string

func (*BillingAccountLoggingExclusionUpdater) ReadLoggingExclusion ¶

func (u *BillingAccountLoggingExclusionUpdater) ReadLoggingExclusion(id string) (*logging.LogExclusion, error)

func (*BillingAccountLoggingExclusionUpdater) UpdateLoggingExclusion ¶

func (u *BillingAccountLoggingExclusionUpdater) UpdateLoggingExclusion(id string, exclusion *logging.LogExclusion, updateMask string) error

type BinaryAuthorizationAttestorIamUpdater ¶

type BinaryAuthorizationAttestorIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*BinaryAuthorizationAttestorIamUpdater) DescribeResource ¶

func (u *BinaryAuthorizationAttestorIamUpdater) DescribeResource() string

func (*BinaryAuthorizationAttestorIamUpdater) GetMutexKey ¶

func (*BinaryAuthorizationAttestorIamUpdater) GetResourceIamPolicy ¶

func (u *BinaryAuthorizationAttestorIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*BinaryAuthorizationAttestorIamUpdater) GetResourceId ¶

func (u *BinaryAuthorizationAttestorIamUpdater) GetResourceId() string

func (*BinaryAuthorizationAttestorIamUpdater) SetResourceIamPolicy ¶

func (u *BinaryAuthorizationAttestorIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type CloudFunctionsCloudFunctionIamUpdater ¶

type CloudFunctionsCloudFunctionIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*CloudFunctionsCloudFunctionIamUpdater) DescribeResource ¶

func (u *CloudFunctionsCloudFunctionIamUpdater) DescribeResource() string

func (*CloudFunctionsCloudFunctionIamUpdater) GetMutexKey ¶

func (*CloudFunctionsCloudFunctionIamUpdater) GetResourceIamPolicy ¶

func (u *CloudFunctionsCloudFunctionIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*CloudFunctionsCloudFunctionIamUpdater) GetResourceId ¶

func (u *CloudFunctionsCloudFunctionIamUpdater) GetResourceId() string

func (*CloudFunctionsCloudFunctionIamUpdater) SetResourceIamPolicy ¶

func (u *CloudFunctionsCloudFunctionIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type CloudFunctionsOperationWaiter ¶

type CloudFunctionsOperationWaiter struct {
	Service *cloudfunctions.Service
	CommonOperationWaiter
}

func (*CloudFunctionsOperationWaiter) QueryOp ¶

func (w *CloudFunctionsOperationWaiter) QueryOp() (interface{}, error)

type CloudRunPolling ¶

type CloudRunPolling struct {
	Config  *Config
	WaitURL string
}

CloudRunPolling allows for polling against a cloud run resource that implements the Kubernetes style status schema.

func (*CloudRunPolling) ErrorStates ¶

func (p *CloudRunPolling) ErrorStates() []string

func (*CloudRunPolling) PendingStates ¶

func (p *CloudRunPolling) PendingStates() []string

func (*CloudRunPolling) TargetStates ¶

func (p *CloudRunPolling) TargetStates() []string

type CloudRunServiceIamUpdater ¶

type CloudRunServiceIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*CloudRunServiceIamUpdater) DescribeResource ¶

func (u *CloudRunServiceIamUpdater) DescribeResource() string

func (*CloudRunServiceIamUpdater) GetMutexKey ¶

func (u *CloudRunServiceIamUpdater) GetMutexKey() string

func (*CloudRunServiceIamUpdater) GetResourceIamPolicy ¶

func (u *CloudRunServiceIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*CloudRunServiceIamUpdater) GetResourceId ¶

func (u *CloudRunServiceIamUpdater) GetResourceId() string

func (*CloudRunServiceIamUpdater) SetResourceIamPolicy ¶

func (u *CloudRunServiceIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type CommonOperation ¶

type CommonOperation cloudresourcemanager.Operation

The cloud resource manager API operation is an example of one of many interchangeable API operations. Choose it somewhat arbitrarily to represent the "common" operation.

type CommonOperationWaiter ¶

type CommonOperationWaiter struct {
	Op CommonOperation
}

func (*CommonOperationWaiter) Error ¶

func (w *CommonOperationWaiter) Error() error

func (*CommonOperationWaiter) IsRetryable ¶

func (w *CommonOperationWaiter) IsRetryable(error) bool

func (*CommonOperationWaiter) OpName ¶

func (w *CommonOperationWaiter) OpName() string

func (*CommonOperationWaiter) PendingStates ¶

func (w *CommonOperationWaiter) PendingStates() []string

func (*CommonOperationWaiter) SetOp ¶

func (w *CommonOperationWaiter) SetOp(op interface{}) error

func (*CommonOperationWaiter) State ¶

func (w *CommonOperationWaiter) State() string

func (*CommonOperationWaiter) TargetStates ¶

func (w *CommonOperationWaiter) TargetStates() []string

type ComposerOperationWaiter ¶

type ComposerOperationWaiter struct {
	Service *composer.ProjectsLocationsService
	CommonOperationWaiter
}

func (*ComposerOperationWaiter) QueryOp ¶

func (w *ComposerOperationWaiter) QueryOp() (interface{}, error)

type ComputeInstanceIamUpdater ¶

type ComputeInstanceIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*ComputeInstanceIamUpdater) DescribeResource ¶

func (u *ComputeInstanceIamUpdater) DescribeResource() string

func (*ComputeInstanceIamUpdater) GetMutexKey ¶

func (u *ComputeInstanceIamUpdater) GetMutexKey() string

func (*ComputeInstanceIamUpdater) GetResourceIamPolicy ¶

func (u *ComputeInstanceIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*ComputeInstanceIamUpdater) GetResourceId ¶

func (u *ComputeInstanceIamUpdater) GetResourceId() string

func (*ComputeInstanceIamUpdater) SetResourceIamPolicy ¶

func (u *ComputeInstanceIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type ComputeOperationError ¶

type ComputeOperationError compute.OperationError

ComputeOperationError wraps compute.OperationError and implements the error interface so it can be returned.

func (ComputeOperationError) Error ¶

func (e ComputeOperationError) Error() string

type ComputeOperationWaiter ¶

type ComputeOperationWaiter struct {
	Service *compute.Service
	Op      *compute.Operation
	Project string
}

func (*ComputeOperationWaiter) Error ¶

func (w *ComputeOperationWaiter) Error() error

func (*ComputeOperationWaiter) IsRetryable ¶

func (w *ComputeOperationWaiter) IsRetryable(err error) bool

func (*ComputeOperationWaiter) OpName ¶

func (w *ComputeOperationWaiter) OpName() string

func (*ComputeOperationWaiter) PendingStates ¶

func (w *ComputeOperationWaiter) PendingStates() []string

func (*ComputeOperationWaiter) QueryOp ¶

func (w *ComputeOperationWaiter) QueryOp() (interface{}, error)

func (*ComputeOperationWaiter) SetOp ¶

func (w *ComputeOperationWaiter) SetOp(op interface{}) error

func (*ComputeOperationWaiter) State ¶

func (w *ComputeOperationWaiter) State() string

func (*ComputeOperationWaiter) TargetStates ¶

func (w *ComputeOperationWaiter) TargetStates() []string

type ComputeSubnetworkIamUpdater ¶

type ComputeSubnetworkIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*ComputeSubnetworkIamUpdater) DescribeResource ¶

func (u *ComputeSubnetworkIamUpdater) DescribeResource() string

func (*ComputeSubnetworkIamUpdater) GetMutexKey ¶

func (u *ComputeSubnetworkIamUpdater) GetMutexKey() string

func (*ComputeSubnetworkIamUpdater) GetResourceIamPolicy ¶

func (u *ComputeSubnetworkIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*ComputeSubnetworkIamUpdater) GetResourceId ¶

func (u *ComputeSubnetworkIamUpdater) GetResourceId() string

func (*ComputeSubnetworkIamUpdater) SetResourceIamPolicy ¶

func (u *ComputeSubnetworkIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type Condition ¶

type Condition struct {
	Type    string
	Status  string
	Reason  string
	Message string
}

type Config ¶

type Config struct {
	Credentials         string
	AccessToken         string
	Project             string
	Region              string
	Zone                string
	Scopes              []string
	BatchingConfig      *batchingConfig
	UserProjectOverride bool
	RequestTimeout      time.Duration

	AccessContextManagerBasePath string
	AppEngineBasePath            string
	BigQueryBasePath             string
	BigqueryDataTransferBasePath string
	BigtableBasePath             string
	BillingBasePath              string
	BinaryAuthorizationBasePath  string
	CloudBuildBasePath           string
	CloudFunctionsBasePath       string
	CloudRunBasePath             string
	CloudSchedulerBasePath       string
	CloudTasksBasePath           string
	ComputeBasePath              string
	ContainerAnalysisBasePath    string
	DataFusionBasePath           string
	DataprocBasePath             string
	DeploymentManagerBasePath    string
	DNSBasePath                  string
	FilestoreBasePath            string
	FirestoreBasePath            string
	HealthcareBasePath           string
	IapBasePath                  string
	IdentityPlatformBasePath     string
	KMSBasePath                  string
	LoggingBasePath              string
	MLEngineBasePath             string
	MonitoringBasePath           string
	PubsubBasePath               string
	RedisBasePath                string
	ResourceManagerBasePath      string
	RuntimeConfigBasePath        string
	SecurityCenterBasePath       string
	SecurityScannerBasePath      string
	SourceRepoBasePath           string
	SpannerBasePath              string
	SQLBasePath                  string
	StorageBasePath              string
	TPUBasePath                  string
	VPCAccessBasePath            string

	CloudBillingBasePath string

	ComposerBasePath string

	ComputeBetaBasePath string

	ContainerBasePath string

	ContainerBetaBasePath string

	DataprocBetaBasePath string

	DataflowBasePath string

	DnsBetaBasePath string

	IamCredentialsBasePath string

	ResourceManagerV2Beta1BasePath string

	IAMBasePath string

	IAPBasePath string

	ServiceManagementBasePath string

	ServiceUsageBasePath string

	CloudIoTBasePath string

	ServiceNetworkingBasePath string

	StorageTransferBasePath string

	BigtableAdminBasePath string
	// contains filtered or unexported fields
}

Config is the configuration structure used to instantiate the Google provider.

func (*Config) LoadAndValidate ¶

func (c *Config) LoadAndValidate(ctx context.Context) error

type ContainerOperationWaiter ¶

type ContainerOperationWaiter struct {
	Service  *container.Service
	Context  context.Context
	Op       *container.Operation
	Project  string
	Location string
}

func (*ContainerOperationWaiter) Error ¶

func (w *ContainerOperationWaiter) Error() error

func (*ContainerOperationWaiter) IsRetryable ¶

func (w *ContainerOperationWaiter) IsRetryable(error) bool

func (*ContainerOperationWaiter) OpName ¶

func (w *ContainerOperationWaiter) OpName() string

func (*ContainerOperationWaiter) PendingStates ¶

func (w *ContainerOperationWaiter) PendingStates() []string

func (*ContainerOperationWaiter) QueryOp ¶

func (w *ContainerOperationWaiter) QueryOp() (interface{}, error)

func (*ContainerOperationWaiter) SetOp ¶

func (w *ContainerOperationWaiter) SetOp(op interface{}) error

func (*ContainerOperationWaiter) State ¶

func (w *ContainerOperationWaiter) State() string

func (*ContainerOperationWaiter) TargetStates ¶

func (w *ContainerOperationWaiter) TargetStates() []string

type DataFusionOperationWaiter ¶

type DataFusionOperationWaiter struct {
	Config  *Config
	Project string
	CommonOperationWaiter
}

func (*DataFusionOperationWaiter) QueryOp ¶

func (w *DataFusionOperationWaiter) QueryOp() (interface{}, error)

type DataprocClusterIamUpdater ¶

type DataprocClusterIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*DataprocClusterIamUpdater) DescribeResource ¶

func (u *DataprocClusterIamUpdater) DescribeResource() string

func (*DataprocClusterIamUpdater) GetMutexKey ¶

func (u *DataprocClusterIamUpdater) GetMutexKey() string

func (*DataprocClusterIamUpdater) GetResourceIamPolicy ¶

func (u *DataprocClusterIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*DataprocClusterIamUpdater) GetResourceId ¶

func (u *DataprocClusterIamUpdater) GetResourceId() string

func (*DataprocClusterIamUpdater) SetResourceIamPolicy ¶

func (u *DataprocClusterIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type DataprocClusterOperationWaiter ¶

type DataprocClusterOperationWaiter struct {
	Service *dataproc.Service
	CommonOperationWaiter
}

func (*DataprocClusterOperationWaiter) QueryOp ¶

func (w *DataprocClusterOperationWaiter) QueryOp() (interface{}, error)

type DataprocDeleteJobOperationWaiter ¶

type DataprocDeleteJobOperationWaiter struct {
	DataprocJobOperationWaiter
}

func (*DataprocDeleteJobOperationWaiter) PendingStates ¶

func (w *DataprocDeleteJobOperationWaiter) PendingStates() []string

func (*DataprocDeleteJobOperationWaiter) QueryOp ¶

func (w *DataprocDeleteJobOperationWaiter) QueryOp() (interface{}, error)

func (*DataprocDeleteJobOperationWaiter) TargetStates ¶

func (w *DataprocDeleteJobOperationWaiter) TargetStates() []string

type DataprocJobIamUpdater ¶

type DataprocJobIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*DataprocJobIamUpdater) DescribeResource ¶

func (u *DataprocJobIamUpdater) DescribeResource() string

func (*DataprocJobIamUpdater) GetMutexKey ¶

func (u *DataprocJobIamUpdater) GetMutexKey() string

func (*DataprocJobIamUpdater) GetResourceIamPolicy ¶

func (u *DataprocJobIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*DataprocJobIamUpdater) GetResourceId ¶

func (u *DataprocJobIamUpdater) GetResourceId() string

func (*DataprocJobIamUpdater) SetResourceIamPolicy ¶

func (u *DataprocJobIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type DataprocJobOperationWaiter ¶

type DataprocJobOperationWaiter struct {
	Service   *dataproc.Service
	Region    string
	ProjectId string
	JobId     string
	Status    string
}

func (*DataprocJobOperationWaiter) Error ¶

func (w *DataprocJobOperationWaiter) Error() error

func (*DataprocJobOperationWaiter) IsRetryable ¶

func (w *DataprocJobOperationWaiter) IsRetryable(error) bool

func (*DataprocJobOperationWaiter) OpName ¶

func (w *DataprocJobOperationWaiter) OpName() string

func (*DataprocJobOperationWaiter) PendingStates ¶

func (w *DataprocJobOperationWaiter) PendingStates() []string

func (*DataprocJobOperationWaiter) QueryOp ¶

func (w *DataprocJobOperationWaiter) QueryOp() (interface{}, error)

func (*DataprocJobOperationWaiter) SetOp ¶

func (w *DataprocJobOperationWaiter) SetOp(job interface{}) error

func (*DataprocJobOperationWaiter) State ¶

func (*DataprocJobOperationWaiter) TargetStates ¶

func (w *DataprocJobOperationWaiter) TargetStates() []string

type DeploymentManagerOperationError ¶

type DeploymentManagerOperationError struct {
	HTTPStatusCode int64
	HTTPMessage    string
	compute.OperationError
}

DeploymentManagerOperationError wraps information from the compute.Operation in an implementation of Error.

func (DeploymentManagerOperationError) Error ¶

type DeploymentManagerOperationWaiter ¶

type DeploymentManagerOperationWaiter struct {
	Config       *Config
	Project      string
	OperationUrl string
	ComputeOperationWaiter
}

func (*DeploymentManagerOperationWaiter) Error ¶

func (*DeploymentManagerOperationWaiter) IsRetryable ¶

func (*DeploymentManagerOperationWaiter) QueryOp ¶

func (w *DeploymentManagerOperationWaiter) QueryOp() (interface{}, error)

type DnsChangeWaiter ¶

type DnsChangeWaiter struct {
	Service     *dns.Service
	Change      *dns.Change
	Project     string
	ManagedZone string
}

func (*DnsChangeWaiter) Conf ¶

func (*DnsChangeWaiter) RefreshFunc ¶

func (w *DnsChangeWaiter) RefreshFunc() resource.StateRefreshFunc

type FilestoreOperationWaiter ¶

type FilestoreOperationWaiter struct {
	Config  *Config
	Project string
	CommonOperationWaiter
}

func (*FilestoreOperationWaiter) QueryOp ¶

func (w *FilestoreOperationWaiter) QueryOp() (interface{}, error)

type FirestoreOperationWaiter ¶

type FirestoreOperationWaiter struct {
	Config  *Config
	Project string
	CommonOperationWaiter
}

func (*FirestoreOperationWaiter) QueryOp ¶

func (w *FirestoreOperationWaiter) QueryOp() (interface{}, error)

type FolderIamUpdater ¶

type FolderIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*FolderIamUpdater) DescribeResource ¶

func (u *FolderIamUpdater) DescribeResource() string

func (*FolderIamUpdater) GetMutexKey ¶

func (u *FolderIamUpdater) GetMutexKey() string

func (*FolderIamUpdater) GetResourceIamPolicy ¶

func (u *FolderIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*FolderIamUpdater) GetResourceId ¶

func (u *FolderIamUpdater) GetResourceId() string

func (*FolderIamUpdater) SetResourceIamPolicy ¶

func (u *FolderIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type FolderLoggingExclusionUpdater ¶

type FolderLoggingExclusionUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*FolderLoggingExclusionUpdater) CreateLoggingExclusion ¶

func (u *FolderLoggingExclusionUpdater) CreateLoggingExclusion(parent string, exclusion *logging.LogExclusion) error

func (*FolderLoggingExclusionUpdater) DeleteLoggingExclusion ¶

func (u *FolderLoggingExclusionUpdater) DeleteLoggingExclusion(id string) error

func (*FolderLoggingExclusionUpdater) DescribeResource ¶

func (u *FolderLoggingExclusionUpdater) DescribeResource() string

func (*FolderLoggingExclusionUpdater) GetResourceId ¶

func (u *FolderLoggingExclusionUpdater) GetResourceId() string

func (*FolderLoggingExclusionUpdater) GetResourceType ¶

func (u *FolderLoggingExclusionUpdater) GetResourceType() string

func (*FolderLoggingExclusionUpdater) ReadLoggingExclusion ¶

func (u *FolderLoggingExclusionUpdater) ReadLoggingExclusion(id string) (*logging.LogExclusion, error)

func (*FolderLoggingExclusionUpdater) UpdateLoggingExclusion ¶

func (u *FolderLoggingExclusionUpdater) UpdateLoggingExclusion(id string, exclusion *logging.LogExclusion, updateMask string) error

type GlobalFieldValue ¶

type GlobalFieldValue struct {
	Project string
	Name    string
	// contains filtered or unexported fields
}

func ParseHttpHealthCheckFieldValue ¶

func ParseHttpHealthCheckFieldValue(healthCheck string, d TerraformResourceData, config *Config) (*GlobalFieldValue, error)

func ParseInstanceTemplateFieldValue ¶

func ParseInstanceTemplateFieldValue(instanceTemplate string, d TerraformResourceData, config *Config) (*GlobalFieldValue, error)

func ParseNetworkFieldValue ¶

func ParseNetworkFieldValue(network string, d TerraformResourceData, config *Config) (*GlobalFieldValue, error)

func ParseSecurityPolicyFieldValue ¶

func ParseSecurityPolicyFieldValue(securityPolicy string, d TerraformResourceData, config *Config) (*GlobalFieldValue, error)

func ParseSslCertificateFieldValue ¶

func ParseSslCertificateFieldValue(sslCertificate string, d TerraformResourceData, config *Config) (*GlobalFieldValue, error)
func (f GlobalFieldValue) RelativeLink() string

type HealthcareDatasetIamUpdater ¶

type HealthcareDatasetIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*HealthcareDatasetIamUpdater) DescribeResource ¶

func (u *HealthcareDatasetIamUpdater) DescribeResource() string

func (*HealthcareDatasetIamUpdater) GetMutexKey ¶

func (u *HealthcareDatasetIamUpdater) GetMutexKey() string

func (*HealthcareDatasetIamUpdater) GetResourceIamPolicy ¶

func (u *HealthcareDatasetIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*HealthcareDatasetIamUpdater) GetResourceId ¶

func (u *HealthcareDatasetIamUpdater) GetResourceId() string

func (*HealthcareDatasetIamUpdater) SetResourceIamPolicy ¶

func (u *HealthcareDatasetIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type HealthcareDicomStoreIamUpdater ¶

type HealthcareDicomStoreIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*HealthcareDicomStoreIamUpdater) DescribeResource ¶

func (u *HealthcareDicomStoreIamUpdater) DescribeResource() string

func (*HealthcareDicomStoreIamUpdater) GetMutexKey ¶

func (u *HealthcareDicomStoreIamUpdater) GetMutexKey() string

func (*HealthcareDicomStoreIamUpdater) GetResourceIamPolicy ¶

func (u *HealthcareDicomStoreIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*HealthcareDicomStoreIamUpdater) GetResourceId ¶

func (u *HealthcareDicomStoreIamUpdater) GetResourceId() string

func (*HealthcareDicomStoreIamUpdater) SetResourceIamPolicy ¶

func (u *HealthcareDicomStoreIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type HealthcareFhirStoreIamUpdater ¶

type HealthcareFhirStoreIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*HealthcareFhirStoreIamUpdater) DescribeResource ¶

func (u *HealthcareFhirStoreIamUpdater) DescribeResource() string

func (*HealthcareFhirStoreIamUpdater) GetMutexKey ¶

func (u *HealthcareFhirStoreIamUpdater) GetMutexKey() string

func (*HealthcareFhirStoreIamUpdater) GetResourceIamPolicy ¶

func (u *HealthcareFhirStoreIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*HealthcareFhirStoreIamUpdater) GetResourceId ¶

func (u *HealthcareFhirStoreIamUpdater) GetResourceId() string

func (*HealthcareFhirStoreIamUpdater) SetResourceIamPolicy ¶

func (u *HealthcareFhirStoreIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type HealthcareHl7V2StoreIamUpdater ¶

type HealthcareHl7V2StoreIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*HealthcareHl7V2StoreIamUpdater) DescribeResource ¶

func (u *HealthcareHl7V2StoreIamUpdater) DescribeResource() string

func (*HealthcareHl7V2StoreIamUpdater) GetMutexKey ¶

func (u *HealthcareHl7V2StoreIamUpdater) GetMutexKey() string

func (*HealthcareHl7V2StoreIamUpdater) GetResourceIamPolicy ¶

func (u *HealthcareHl7V2StoreIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*HealthcareHl7V2StoreIamUpdater) GetResourceId ¶

func (u *HealthcareHl7V2StoreIamUpdater) GetResourceId() string

func (*HealthcareHl7V2StoreIamUpdater) SetResourceIamPolicy ¶

func (u *HealthcareHl7V2StoreIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type IapAppEngineServiceIamUpdater ¶

type IapAppEngineServiceIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*IapAppEngineServiceIamUpdater) DescribeResource ¶

func (u *IapAppEngineServiceIamUpdater) DescribeResource() string

func (*IapAppEngineServiceIamUpdater) GetMutexKey ¶

func (u *IapAppEngineServiceIamUpdater) GetMutexKey() string

func (*IapAppEngineServiceIamUpdater) GetResourceIamPolicy ¶

func (u *IapAppEngineServiceIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*IapAppEngineServiceIamUpdater) GetResourceId ¶

func (u *IapAppEngineServiceIamUpdater) GetResourceId() string

func (*IapAppEngineServiceIamUpdater) SetResourceIamPolicy ¶

func (u *IapAppEngineServiceIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type IapAppEngineVersionIamUpdater ¶

type IapAppEngineVersionIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*IapAppEngineVersionIamUpdater) DescribeResource ¶

func (u *IapAppEngineVersionIamUpdater) DescribeResource() string

func (*IapAppEngineVersionIamUpdater) GetMutexKey ¶

func (u *IapAppEngineVersionIamUpdater) GetMutexKey() string

func (*IapAppEngineVersionIamUpdater) GetResourceIamPolicy ¶

func (u *IapAppEngineVersionIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*IapAppEngineVersionIamUpdater) GetResourceId ¶

func (u *IapAppEngineVersionIamUpdater) GetResourceId() string

func (*IapAppEngineVersionIamUpdater) SetResourceIamPolicy ¶

func (u *IapAppEngineVersionIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type IapTunnelInstanceIamUpdater ¶

type IapTunnelInstanceIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*IapTunnelInstanceIamUpdater) DescribeResource ¶

func (u *IapTunnelInstanceIamUpdater) DescribeResource() string

func (*IapTunnelInstanceIamUpdater) GetMutexKey ¶

func (u *IapTunnelInstanceIamUpdater) GetMutexKey() string

func (*IapTunnelInstanceIamUpdater) GetResourceIamPolicy ¶

func (u *IapTunnelInstanceIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*IapTunnelInstanceIamUpdater) GetResourceId ¶

func (u *IapTunnelInstanceIamUpdater) GetResourceId() string

func (*IapTunnelInstanceIamUpdater) SetResourceIamPolicy ¶

func (u *IapTunnelInstanceIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type IapWebBackendServiceIamUpdater ¶

type IapWebBackendServiceIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*IapWebBackendServiceIamUpdater) DescribeResource ¶

func (u *IapWebBackendServiceIamUpdater) DescribeResource() string

func (*IapWebBackendServiceIamUpdater) GetMutexKey ¶

func (u *IapWebBackendServiceIamUpdater) GetMutexKey() string

func (*IapWebBackendServiceIamUpdater) GetResourceIamPolicy ¶

func (u *IapWebBackendServiceIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*IapWebBackendServiceIamUpdater) GetResourceId ¶

func (u *IapWebBackendServiceIamUpdater) GetResourceId() string

func (*IapWebBackendServiceIamUpdater) SetResourceIamPolicy ¶

func (u *IapWebBackendServiceIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type IapWebIamUpdater ¶

type IapWebIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*IapWebIamUpdater) DescribeResource ¶

func (u *IapWebIamUpdater) DescribeResource() string

func (*IapWebIamUpdater) GetMutexKey ¶

func (u *IapWebIamUpdater) GetMutexKey() string

func (*IapWebIamUpdater) GetResourceIamPolicy ¶

func (u *IapWebIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*IapWebIamUpdater) GetResourceId ¶

func (u *IapWebIamUpdater) GetResourceId() string

func (*IapWebIamUpdater) SetResourceIamPolicy ¶

func (u *IapWebIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type IapWebTypeAppEngineIamUpdater ¶

type IapWebTypeAppEngineIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*IapWebTypeAppEngineIamUpdater) DescribeResource ¶

func (u *IapWebTypeAppEngineIamUpdater) DescribeResource() string

func (*IapWebTypeAppEngineIamUpdater) GetMutexKey ¶

func (u *IapWebTypeAppEngineIamUpdater) GetMutexKey() string

func (*IapWebTypeAppEngineIamUpdater) GetResourceIamPolicy ¶

func (u *IapWebTypeAppEngineIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*IapWebTypeAppEngineIamUpdater) GetResourceId ¶

func (u *IapWebTypeAppEngineIamUpdater) GetResourceId() string

func (*IapWebTypeAppEngineIamUpdater) SetResourceIamPolicy ¶

func (u *IapWebTypeAppEngineIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type IapWebTypeComputeIamUpdater ¶

type IapWebTypeComputeIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*IapWebTypeComputeIamUpdater) DescribeResource ¶

func (u *IapWebTypeComputeIamUpdater) DescribeResource() string

func (*IapWebTypeComputeIamUpdater) GetMutexKey ¶

func (u *IapWebTypeComputeIamUpdater) GetMutexKey() string

func (*IapWebTypeComputeIamUpdater) GetResourceIamPolicy ¶

func (u *IapWebTypeComputeIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*IapWebTypeComputeIamUpdater) GetResourceId ¶

func (u *IapWebTypeComputeIamUpdater) GetResourceId() string

func (*IapWebTypeComputeIamUpdater) SetResourceIamPolicy ¶

func (u *IapWebTypeComputeIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type KmsCryptoKeyIamUpdater ¶

type KmsCryptoKeyIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*KmsCryptoKeyIamUpdater) DescribeResource ¶

func (u *KmsCryptoKeyIamUpdater) DescribeResource() string

func (*KmsCryptoKeyIamUpdater) GetMutexKey ¶

func (u *KmsCryptoKeyIamUpdater) GetMutexKey() string

func (*KmsCryptoKeyIamUpdater) GetResourceIamPolicy ¶

func (u *KmsCryptoKeyIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*KmsCryptoKeyIamUpdater) GetResourceId ¶

func (u *KmsCryptoKeyIamUpdater) GetResourceId() string

func (*KmsCryptoKeyIamUpdater) SetResourceIamPolicy ¶

func (u *KmsCryptoKeyIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type KmsKeyRingIamUpdater ¶

type KmsKeyRingIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*KmsKeyRingIamUpdater) DescribeResource ¶

func (u *KmsKeyRingIamUpdater) DescribeResource() string

func (*KmsKeyRingIamUpdater) GetMutexKey ¶

func (u *KmsKeyRingIamUpdater) GetMutexKey() string

func (*KmsKeyRingIamUpdater) GetResourceIamPolicy ¶

func (u *KmsKeyRingIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*KmsKeyRingIamUpdater) GetResourceId ¶

func (u *KmsKeyRingIamUpdater) GetResourceId() string

func (*KmsKeyRingIamUpdater) SetResourceIamPolicy ¶

func (u *KmsKeyRingIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type KnativeStatus ¶

type KnativeStatus struct {
	Metadata struct {
		Name      string
		Namespace string
		SelfLink  string
	}
	Status struct {
		Conditions []Condition
	}
}

KnativeStatus is a struct that can contain a Knative style resource's Status block. It is not intended to be used for anything other than polling for the success of the given resource.

func (KnativeStatus) ConditionByType ¶

func (s KnativeStatus) ConditionByType(typ string) *Condition

ConditionByType is a helper method for extracting a given condition

func (KnativeStatus) LatestMessage ¶

func (s KnativeStatus) LatestMessage() string

LatestMessage will return a human consumable status of the resource. This can be used to determine the human actionable error the GET doesn't return an explicit error but the resource is in an error state.

func (KnativeStatus) State ¶

func (s KnativeStatus) State(res interface{}) string

State will return a string representing the status of the Ready condition. No other conditions are currently returned as part of the state.

type LocationType ¶

type LocationType int
const (
	Zonal LocationType = iota
	Regional
	Global
)

type LoggingExclusionId ¶

type LoggingExclusionId struct {
	// contains filtered or unexported fields
}

LoggingExclusionId represents the parts that make up the canonical id used within terraform for a logging resource.

type LoggingSinkId ¶

type LoggingSinkId struct {
	// contains filtered or unexported fields
}

LoggingSinkId represents the parts that make up the canonical id used within terraform for a logging resource.

type MLEngineOperationWaiter ¶

type MLEngineOperationWaiter struct {
	Config  *Config
	Project string
	CommonOperationWaiter
}

func (*MLEngineOperationWaiter) QueryOp ¶

func (w *MLEngineOperationWaiter) QueryOp() (interface{}, error)

type NodePoolInformation ¶

type NodePoolInformation struct {
	// contains filtered or unexported fields
}

type OrganizationFieldValue ¶

type OrganizationFieldValue struct {
	OrgId string
	Name  string
	// contains filtered or unexported fields
}

func ParseOrganizationCustomRoleName ¶

func ParseOrganizationCustomRoleName(role string) (*OrganizationFieldValue, error)
func (f OrganizationFieldValue) RelativeLink() string

type OrganizationIamUpdater ¶

type OrganizationIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*OrganizationIamUpdater) DescribeResource ¶

func (u *OrganizationIamUpdater) DescribeResource() string

func (*OrganizationIamUpdater) GetMutexKey ¶

func (u *OrganizationIamUpdater) GetMutexKey() string

func (*OrganizationIamUpdater) GetResourceIamPolicy ¶

func (u *OrganizationIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*OrganizationIamUpdater) GetResourceId ¶

func (u *OrganizationIamUpdater) GetResourceId() string

func (*OrganizationIamUpdater) SetResourceIamPolicy ¶

func (u *OrganizationIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type OrganizationLoggingExclusionUpdater ¶

type OrganizationLoggingExclusionUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*OrganizationLoggingExclusionUpdater) CreateLoggingExclusion ¶

func (u *OrganizationLoggingExclusionUpdater) CreateLoggingExclusion(parent string, exclusion *logging.LogExclusion) error

func (*OrganizationLoggingExclusionUpdater) DeleteLoggingExclusion ¶

func (u *OrganizationLoggingExclusionUpdater) DeleteLoggingExclusion(id string) error

func (*OrganizationLoggingExclusionUpdater) DescribeResource ¶

func (u *OrganizationLoggingExclusionUpdater) DescribeResource() string

func (*OrganizationLoggingExclusionUpdater) GetResourceId ¶

func (u *OrganizationLoggingExclusionUpdater) GetResourceId() string

func (*OrganizationLoggingExclusionUpdater) GetResourceType ¶

func (u *OrganizationLoggingExclusionUpdater) GetResourceType() string

func (*OrganizationLoggingExclusionUpdater) ReadLoggingExclusion ¶

func (u *OrganizationLoggingExclusionUpdater) ReadLoggingExclusion(id string) (*logging.LogExclusion, error)

func (*OrganizationLoggingExclusionUpdater) UpdateLoggingExclusion ¶

func (u *OrganizationLoggingExclusionUpdater) UpdateLoggingExclusion(id string, exclusion *logging.LogExclusion, updateMask string) error

type ProjectFieldValue ¶

type ProjectFieldValue struct {
	Project string
	Name    string
	// contains filtered or unexported fields
}
func (f ProjectFieldValue) RelativeLink() string

type ProjectIamUpdater ¶

type ProjectIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*ProjectIamUpdater) DescribeResource ¶

func (u *ProjectIamUpdater) DescribeResource() string

func (*ProjectIamUpdater) GetMutexKey ¶

func (u *ProjectIamUpdater) GetMutexKey() string

func (*ProjectIamUpdater) GetResourceIamPolicy ¶

func (u *ProjectIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*ProjectIamUpdater) GetResourceId ¶

func (u *ProjectIamUpdater) GetResourceId() string

func (*ProjectIamUpdater) SetResourceIamPolicy ¶

func (u *ProjectIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type ProjectLoggingExclusionUpdater ¶

type ProjectLoggingExclusionUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*ProjectLoggingExclusionUpdater) CreateLoggingExclusion ¶

func (u *ProjectLoggingExclusionUpdater) CreateLoggingExclusion(parent string, exclusion *logging.LogExclusion) error

func (*ProjectLoggingExclusionUpdater) DeleteLoggingExclusion ¶

func (u *ProjectLoggingExclusionUpdater) DeleteLoggingExclusion(id string) error

func (*ProjectLoggingExclusionUpdater) DescribeResource ¶

func (u *ProjectLoggingExclusionUpdater) DescribeResource() string

func (*ProjectLoggingExclusionUpdater) GetResourceId ¶

func (u *ProjectLoggingExclusionUpdater) GetResourceId() string

func (*ProjectLoggingExclusionUpdater) GetResourceType ¶

func (u *ProjectLoggingExclusionUpdater) GetResourceType() string

func (*ProjectLoggingExclusionUpdater) ReadLoggingExclusion ¶

func (u *ProjectLoggingExclusionUpdater) ReadLoggingExclusion(id string) (*logging.LogExclusion, error)

func (*ProjectLoggingExclusionUpdater) UpdateLoggingExclusion ¶

func (u *ProjectLoggingExclusionUpdater) UpdateLoggingExclusion(id string, exclusion *logging.LogExclusion, updateMask string) error

type PubsubSubscriptionIamUpdater ¶

type PubsubSubscriptionIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*PubsubSubscriptionIamUpdater) DescribeResource ¶

func (u *PubsubSubscriptionIamUpdater) DescribeResource() string

func (*PubsubSubscriptionIamUpdater) GetMutexKey ¶

func (u *PubsubSubscriptionIamUpdater) GetMutexKey() string

func (*PubsubSubscriptionIamUpdater) GetResourceIamPolicy ¶

func (u *PubsubSubscriptionIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*PubsubSubscriptionIamUpdater) GetResourceId ¶

func (u *PubsubSubscriptionIamUpdater) GetResourceId() string

func (*PubsubSubscriptionIamUpdater) SetResourceIamPolicy ¶

func (u *PubsubSubscriptionIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type PubsubTopicIamUpdater ¶

type PubsubTopicIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*PubsubTopicIamUpdater) DescribeResource ¶

func (u *PubsubTopicIamUpdater) DescribeResource() string

func (*PubsubTopicIamUpdater) GetMutexKey ¶

func (u *PubsubTopicIamUpdater) GetMutexKey() string

func (*PubsubTopicIamUpdater) GetResourceIamPolicy ¶

func (u *PubsubTopicIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*PubsubTopicIamUpdater) GetResourceId ¶

func (u *PubsubTopicIamUpdater) GetResourceId() string

func (*PubsubTopicIamUpdater) SetResourceIamPolicy ¶

func (u *PubsubTopicIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type RedisOperationWaiter ¶

type RedisOperationWaiter struct {
	Config  *Config
	Project string
	CommonOperationWaiter
}

func (*RedisOperationWaiter) QueryOp ¶

func (w *RedisOperationWaiter) QueryOp() (interface{}, error)

type RegionalFieldValue ¶

type RegionalFieldValue struct {
	Project string
	Region  string
	Name    string
	// contains filtered or unexported fields
}

func ParseRegionDiskFieldValue ¶

func ParseRegionDiskFieldValue(disk string, d TerraformResourceData, config *Config) (*RegionalFieldValue, error)

func ParseSubnetworkFieldValue ¶

func ParseSubnetworkFieldValue(subnetwork string, d TerraformResourceData, config *Config) (*RegionalFieldValue, error)

func ParseSubnetworkFieldValueWithProjectField ¶

func ParseSubnetworkFieldValueWithProjectField(subnetwork, projectField string, d TerraformResourceData, config *Config) (*RegionalFieldValue, error)
func (f RegionalFieldValue) RelativeLink() string

type RequestBatcher ¶

type RequestBatcher struct {
	sync.Mutex
	// contains filtered or unexported fields
}

RequestBatcher is a global batcher object that keeps track of existing batches. In general, a batcher should be created per service that requires batching in order to prevent blocking batching for one service due to another, and to minimize the possibility of overlap in batchKey formats (see SendRequestWithTimeout)

func NewRequestBatcher ¶

func NewRequestBatcher(debugId string, ctx context.Context, config *batchingConfig) *RequestBatcher

Initializes a new batcher.

func (*RequestBatcher) SendRequestWithTimeout ¶

func (b *RequestBatcher) SendRequestWithTimeout(batchKey string, request *BatchRequest, timeout time.Duration) (interface{}, error)

SendRequestWithTimeout is expected to be called per parallel call. It manages waiting on the result of a batch request.

Batch requests are grouped by the given batchKey. batchKey should be unique to the API request being sent, most likely similar to the HTTP request URL with GCP resource ID included in the URL (the caller may choose to use a key with method if needed to diff GET/read and POST/create)

As an example, for google_project_service, the batcher is called to batch services.batchEnable() calls for a project $PROJECT. The calling code uses the template "serviceusage:projects/$PROJECT/services:batchEnable", which mirrors the HTTP request: POST https://serviceusage.googleapis.com/v1/projects/$PROJECT/services:batchEnable

type ResourceDataMock ¶

type ResourceDataMock struct {
	FieldsInSchema      map[string]interface{}
	FieldsWithHasChange []string
	// contains filtered or unexported fields
}

func (*ResourceDataMock) Get ¶

func (d *ResourceDataMock) Get(key string) interface{}

func (*ResourceDataMock) GetOk ¶

func (d *ResourceDataMock) GetOk(key string) (interface{}, bool)

func (*ResourceDataMock) GetOkExists ¶

func (d *ResourceDataMock) GetOkExists(key string) (interface{}, bool)

func (*ResourceDataMock) HasChange ¶

func (d *ResourceDataMock) HasChange(key string) bool

func (*ResourceDataMock) Id ¶

func (d *ResourceDataMock) Id() string

func (*ResourceDataMock) Set ¶

func (d *ResourceDataMock) Set(key string, value interface{}) error

func (*ResourceDataMock) SetId ¶

func (d *ResourceDataMock) SetId(v string)

type ResourceDiffMock ¶

type ResourceDiffMock struct {
	Before  map[string]interface{}
	After   map[string]interface{}
	Cleared map[string]struct{}
}

func (*ResourceDiffMock) Clear ¶

func (d *ResourceDiffMock) Clear(key string) error

func (*ResourceDiffMock) Get ¶

func (d *ResourceDiffMock) Get(key string) interface{}

func (*ResourceDiffMock) GetChange ¶

func (d *ResourceDiffMock) GetChange(key string) (interface{}, interface{})

type ResourceIamUpdater ¶

type ResourceIamUpdater interface {
	// Fetch the existing IAM policy attached to a resource.
	GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

	// Replaces the existing IAM Policy attached to a resource.
	SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

	// A mutex guards against concurrent to call to the SetResourceIamPolicy method.
	// The mutex key should be made of the resource type and resource id.
	// For example: `iam-project-{id}`.
	GetMutexKey() string

	// Returns the unique resource identifier.
	GetResourceId() string

	// Textual description of this resource to be used in error message.
	// The description should include the unique resource identifier.
	DescribeResource() string
}

The ResourceIamUpdater interface is implemented for each GCP resource supporting IAM policy. Implementations should be created per resource and should keep track of the resource identifier.

func BinaryAuthorizationAttestorIamUpdaterProducer ¶

func BinaryAuthorizationAttestorIamUpdaterProducer(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func CloudFunctionsCloudFunctionIamUpdaterProducer ¶

func CloudFunctionsCloudFunctionIamUpdaterProducer(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func CloudRunServiceIamUpdaterProducer ¶

func CloudRunServiceIamUpdaterProducer(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func ComputeInstanceIamUpdaterProducer ¶

func ComputeInstanceIamUpdaterProducer(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func ComputeSubnetworkIamUpdaterProducer ¶

func ComputeSubnetworkIamUpdaterProducer(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func IapAppEngineServiceIamUpdaterProducer ¶

func IapAppEngineServiceIamUpdaterProducer(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func IapAppEngineVersionIamUpdaterProducer ¶

func IapAppEngineVersionIamUpdaterProducer(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func IapWebBackendServiceIamUpdaterProducer ¶

func IapWebBackendServiceIamUpdaterProducer(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func IapWebIamUpdaterProducer ¶

func IapWebIamUpdaterProducer(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func IapWebTypeAppEngineIamUpdaterProducer ¶

func IapWebTypeAppEngineIamUpdaterProducer(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func IapWebTypeComputeIamUpdaterProducer ¶

func IapWebTypeComputeIamUpdaterProducer(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func NewBigtableInstanceUpdater ¶

func NewBigtableInstanceUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func NewBillingAccountIamUpdater ¶

func NewBillingAccountIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func NewDataprocClusterUpdater ¶

func NewDataprocClusterUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func NewDataprocJobUpdater ¶

func NewDataprocJobUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func NewFolderIamUpdater ¶

func NewFolderIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func NewHealthcareDatasetIamUpdater ¶

func NewHealthcareDatasetIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func NewHealthcareDicomStoreIamUpdater ¶

func NewHealthcareDicomStoreIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func NewHealthcareFhirStoreIamUpdater ¶

func NewHealthcareFhirStoreIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func NewHealthcareHl7V2StoreIamUpdater ¶

func NewHealthcareHl7V2StoreIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func NewIapTunnelInstanceIamUpdater ¶

func NewIapTunnelInstanceIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func NewKmsCryptoKeyIamUpdater ¶

func NewKmsCryptoKeyIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func NewKmsKeyRingIamUpdater ¶

func NewKmsKeyRingIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func NewOrganizationIamUpdater ¶

func NewOrganizationIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func NewProjectIamUpdater ¶

func NewProjectIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func NewPubsubSubscriptionIamUpdater ¶

func NewPubsubSubscriptionIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func NewServiceAccountIamUpdater ¶

func NewServiceAccountIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func NewSpannerDatabaseIamUpdater ¶

func NewSpannerDatabaseIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func NewSpannerInstanceIamUpdater ¶

func NewSpannerInstanceIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func PubsubTopicIamUpdaterProducer ¶

func PubsubTopicIamUpdaterProducer(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func RuntimeConfigConfigIamUpdaterProducer ¶

func RuntimeConfigConfigIamUpdaterProducer(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func SourceRepoRepositoryIamUpdaterProducer ¶

func SourceRepoRepositoryIamUpdaterProducer(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

func StorageBucketIamUpdaterProducer ¶

func StorageBucketIamUpdaterProducer(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)

type ResourceLoggingExclusionUpdater ¶

type ResourceLoggingExclusionUpdater interface {
	CreateLoggingExclusion(parent string, exclusion *logging.LogExclusion) error
	ReadLoggingExclusion(id string) (*logging.LogExclusion, error)
	UpdateLoggingExclusion(id string, exclusion *logging.LogExclusion, updateMask string) error
	DeleteLoggingExclusion(id string) error

	GetResourceType() string

	// Returns the unique resource identifier.
	GetResourceId() string

	// Textual description of this resource to be used in error message.
	// The description should include the unique resource identifier.
	DescribeResource() string
}

The ResourceLoggingExclusionUpdater interface is implemented for each GCP resource supporting log exclusions.

Implementations should keep track of the resource identifier.

func NewBillingAccountLoggingExclusionUpdater ¶

func NewBillingAccountLoggingExclusionUpdater(d *schema.ResourceData, config *Config) (ResourceLoggingExclusionUpdater, error)

func NewFolderLoggingExclusionUpdater ¶

func NewFolderLoggingExclusionUpdater(d *schema.ResourceData, config *Config) (ResourceLoggingExclusionUpdater, error)

func NewOrganizationLoggingExclusionUpdater ¶

func NewOrganizationLoggingExclusionUpdater(d *schema.ResourceData, config *Config) (ResourceLoggingExclusionUpdater, error)

func NewProjectLoggingExclusionUpdater ¶

func NewProjectLoggingExclusionUpdater(d *schema.ResourceData, config *Config) (ResourceLoggingExclusionUpdater, error)

type ResourceManagerOperationWaiter ¶

type ResourceManagerOperationWaiter struct {
	Config *Config
	CommonOperationWaiter
}

func (*ResourceManagerOperationWaiter) QueryOp ¶

func (w *ResourceManagerOperationWaiter) QueryOp() (interface{}, error)

type RoleEntity ¶

type RoleEntity struct {
	Role   string
	Entity string
}

type RollableNodePoolInformation ¶

type RollableNodePoolInformation struct {
	// contains filtered or unexported fields
}

type RuntimeConfigConfigIamUpdater ¶

type RuntimeConfigConfigIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*RuntimeConfigConfigIamUpdater) DescribeResource ¶

func (u *RuntimeConfigConfigIamUpdater) DescribeResource() string

func (*RuntimeConfigConfigIamUpdater) GetMutexKey ¶

func (u *RuntimeConfigConfigIamUpdater) GetMutexKey() string

func (*RuntimeConfigConfigIamUpdater) GetResourceIamPolicy ¶

func (u *RuntimeConfigConfigIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*RuntimeConfigConfigIamUpdater) GetResourceId ¶

func (u *RuntimeConfigConfigIamUpdater) GetResourceId() string

func (*RuntimeConfigConfigIamUpdater) SetResourceIamPolicy ¶

func (u *RuntimeConfigConfigIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type ServiceAccountIamUpdater ¶

type ServiceAccountIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*ServiceAccountIamUpdater) DescribeResource ¶

func (u *ServiceAccountIamUpdater) DescribeResource() string

func (*ServiceAccountIamUpdater) GetMutexKey ¶

func (u *ServiceAccountIamUpdater) GetMutexKey() string

func (*ServiceAccountIamUpdater) GetResourceIamPolicy ¶

func (u *ServiceAccountIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*ServiceAccountIamUpdater) GetResourceId ¶

func (u *ServiceAccountIamUpdater) GetResourceId() string

func (*ServiceAccountIamUpdater) SetResourceIamPolicy ¶

func (u *ServiceAccountIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type ServiceAccountKeyWaiter ¶

type ServiceAccountKeyWaiter struct {
	Service       *iam.ProjectsServiceAccountsKeysService
	PublicKeyType string
	KeyName       string
}

func (*ServiceAccountKeyWaiter) RefreshFunc ¶

type ServiceManagementOperationWaiter ¶

type ServiceManagementOperationWaiter struct {
	Service *servicemanagement.APIService
	CommonOperationWaiter
}

func (*ServiceManagementOperationWaiter) QueryOp ¶

func (w *ServiceManagementOperationWaiter) QueryOp() (interface{}, error)

type ServiceNetworkingOperationWaiter ¶

type ServiceNetworkingOperationWaiter struct {
	Service *servicenetworking.APIService
	CommonOperationWaiter
}

func (*ServiceNetworkingOperationWaiter) QueryOp ¶

func (w *ServiceNetworkingOperationWaiter) QueryOp() (interface{}, error)

type ServiceUsageOperationWaiter ¶

type ServiceUsageOperationWaiter struct {
	Service *serviceusage.Service
	CommonOperationWaiter
}

func (*ServiceUsageOperationWaiter) QueryOp ¶

func (w *ServiceUsageOperationWaiter) QueryOp() (interface{}, error)

type SourceRepoRepositoryIamUpdater ¶

type SourceRepoRepositoryIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*SourceRepoRepositoryIamUpdater) DescribeResource ¶

func (u *SourceRepoRepositoryIamUpdater) DescribeResource() string

func (*SourceRepoRepositoryIamUpdater) GetMutexKey ¶

func (u *SourceRepoRepositoryIamUpdater) GetMutexKey() string

func (*SourceRepoRepositoryIamUpdater) GetResourceIamPolicy ¶

func (u *SourceRepoRepositoryIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*SourceRepoRepositoryIamUpdater) GetResourceId ¶

func (u *SourceRepoRepositoryIamUpdater) GetResourceId() string

func (*SourceRepoRepositoryIamUpdater) SetResourceIamPolicy ¶

func (u *SourceRepoRepositoryIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type SpannerDatabaseIamUpdater ¶

type SpannerDatabaseIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*SpannerDatabaseIamUpdater) DescribeResource ¶

func (u *SpannerDatabaseIamUpdater) DescribeResource() string

func (*SpannerDatabaseIamUpdater) GetMutexKey ¶

func (u *SpannerDatabaseIamUpdater) GetMutexKey() string

func (*SpannerDatabaseIamUpdater) GetResourceIamPolicy ¶

func (u *SpannerDatabaseIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*SpannerDatabaseIamUpdater) GetResourceId ¶

func (u *SpannerDatabaseIamUpdater) GetResourceId() string

func (*SpannerDatabaseIamUpdater) SetResourceIamPolicy ¶

func (u *SpannerDatabaseIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type SpannerInstanceIamUpdater ¶

type SpannerInstanceIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*SpannerInstanceIamUpdater) DescribeResource ¶

func (u *SpannerInstanceIamUpdater) DescribeResource() string

func (*SpannerInstanceIamUpdater) GetMutexKey ¶

func (u *SpannerInstanceIamUpdater) GetMutexKey() string

func (*SpannerInstanceIamUpdater) GetResourceIamPolicy ¶

func (u *SpannerInstanceIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*SpannerInstanceIamUpdater) GetResourceId ¶

func (u *SpannerInstanceIamUpdater) GetResourceId() string

func (*SpannerInstanceIamUpdater) SetResourceIamPolicy ¶

func (u *SpannerInstanceIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type SpannerOperationWaiter ¶

type SpannerOperationWaiter struct {
	Config  *Config
	Project string
	CommonOperationWaiter
}

func (*SpannerOperationWaiter) QueryOp ¶

func (w *SpannerOperationWaiter) QueryOp() (interface{}, error)

type SqlAdminOperationError ¶

type SqlAdminOperationError sqladmin.OperationErrors

SqlAdminOperationError wraps sqladmin.OperationError and implements the error interface so it can be returned.

func (SqlAdminOperationError) Error ¶

func (e SqlAdminOperationError) Error() string

type SqlAdminOperationWaiter ¶

type SqlAdminOperationWaiter struct {
	Service *sqladmin.Service
	Op      *sqladmin.Operation
	Project string
}

func (*SqlAdminOperationWaiter) Error ¶

func (w *SqlAdminOperationWaiter) Error() error

func (*SqlAdminOperationWaiter) IsRetryable ¶

func (w *SqlAdminOperationWaiter) IsRetryable(error) bool

func (*SqlAdminOperationWaiter) OpName ¶

func (w *SqlAdminOperationWaiter) OpName() string

func (*SqlAdminOperationWaiter) PendingStates ¶

func (w *SqlAdminOperationWaiter) PendingStates() []string

func (*SqlAdminOperationWaiter) QueryOp ¶

func (w *SqlAdminOperationWaiter) QueryOp() (interface{}, error)

func (*SqlAdminOperationWaiter) SetOp ¶

func (w *SqlAdminOperationWaiter) SetOp(op interface{}) error

func (*SqlAdminOperationWaiter) State ¶

func (w *SqlAdminOperationWaiter) State() string

func (*SqlAdminOperationWaiter) TargetStates ¶

func (w *SqlAdminOperationWaiter) TargetStates() []string

type StorageBucketIamUpdater ¶

type StorageBucketIamUpdater struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*StorageBucketIamUpdater) DescribeResource ¶

func (u *StorageBucketIamUpdater) DescribeResource() string

func (*StorageBucketIamUpdater) GetMutexKey ¶

func (u *StorageBucketIamUpdater) GetMutexKey() string

func (*StorageBucketIamUpdater) GetResourceIamPolicy ¶

func (u *StorageBucketIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*StorageBucketIamUpdater) GetResourceId ¶

func (u *StorageBucketIamUpdater) GetResourceId() string

func (*StorageBucketIamUpdater) SetResourceIamPolicy ¶

func (u *StorageBucketIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

type TPUOperationWaiter ¶

type TPUOperationWaiter struct {
	Config  *Config
	Project string
	CommonOperationWaiter
}

func (*TPUOperationWaiter) QueryOp ¶

func (w *TPUOperationWaiter) QueryOp() (interface{}, error)

type TerraformResourceData ¶

type TerraformResourceData interface {
	HasChange(string) bool
	GetOkExists(string) (interface{}, bool)
	GetOk(string) (interface{}, bool)
	Get(string) interface{}
	Set(string, interface{}) error
	SetId(string)
	Id() string
}

type TerraformResourceDiff ¶

type TerraformResourceDiff interface {
	GetChange(string) (interface{}, interface{})
	Get(string) interface{}
	Clear(string) error
}

type UrlData ¶

type UrlData struct {
	JwtConfig   *jwt.Config
	ContentMd5  string
	ContentType string
	HttpMethod  string
	Expires     int
	HttpHeaders map[string]string
	Path        string
}

UrlData stores the values required to create a Signed Url

func (*UrlData) EncodedSignature ¶

func (u *UrlData) EncodedSignature() (string, error)

EncodedSignature returns the Signature() after base64 encoding and url escaping

func (*UrlData) Signature ¶

func (u *UrlData) Signature() ([]byte, error)

func (*UrlData) SignedUrl ¶

func (u *UrlData) SignedUrl() (string, error)

SignedUrl constructs the final signed URL a client can use to retrieve storage object

func (*UrlData) SigningString ¶

func (u *UrlData) SigningString() []byte

SigningString creates a string representation of the UrlData in a form ready for signing: see https://cloud.google.com/storage/docs/access-control/create-signed-urls-program Example output: ------------------- GET

1388534400 bucket/objectname -------------------

type VPCAccessOperationWaiter ¶

type VPCAccessOperationWaiter struct {
	Config  *Config
	Project string
	CommonOperationWaiter
}

func (*VPCAccessOperationWaiter) QueryOp ¶

func (w *VPCAccessOperationWaiter) QueryOp() (interface{}, error)

type Waiter ¶

type Waiter interface {
	// State returns the current status of the operation.
	State() string

	// Error returns an error embedded in the operation we're waiting on, or nil
	// if the operation has no current error.
	Error() error

	// IsRetryable returns whether a given error should be retried.
	IsRetryable(error) bool

	// SetOp sets the operation we're waiting on in a Waiter struct so that it
	// can be used in other methods.
	SetOp(interface{}) error

	// QueryOp sends a request to the server to get the current status of the
	// operation. It's expected that QueryOp will return exactly one of an
	// operation or an error as non-nil, and that requests will be retried by
	// specific implementations of the method.
	QueryOp() (interface{}, error)

	// OpName is the name of the operation and is used to log its status.
	OpName() string

	// PendingStates contains the values of State() that cause us to continue
	// refreshing the operation.
	PendingStates() []string

	// TargetStates contain the values of State() that cause us to finish
	// refreshing the operation.
	TargetStates() []string
}

type ZonalFieldValue ¶

type ZonalFieldValue struct {
	Project string
	Zone    string
	Name    string
	// contains filtered or unexported fields
}

func ParseAcceleratorFieldValue ¶

func ParseAcceleratorFieldValue(accelerator string, d TerraformResourceData, config *Config) (*ZonalFieldValue, error)

func ParseDiskFieldValue ¶

func ParseDiskFieldValue(disk string, d TerraformResourceData, config *Config) (*ZonalFieldValue, error)

func ParseInstanceFieldValue ¶

func ParseInstanceFieldValue(instance string, d TerraformResourceData, config *Config) (*ZonalFieldValue, error)

func ParseInstanceGroupFieldValue ¶

func ParseInstanceGroupFieldValue(instanceGroup string, d TerraformResourceData, config *Config) (*ZonalFieldValue, error)

func ParseMachineTypesFieldValue ¶

func ParseMachineTypesFieldValue(machineType string, d TerraformResourceData, config *Config) (*ZonalFieldValue, error)

func ParseNetworkEndpointGroupFieldValue ¶

func ParseNetworkEndpointGroupFieldValue(networkEndpointGroup string, d TerraformResourceData, config *Config) (*ZonalFieldValue, error)
func (f ZonalFieldValue) RelativeLink() string

Source Files ¶

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL