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.

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

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

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

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

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

***     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}$"

	// https://cloud.google.com/managed-microsoft-ad/reference/rest/v1/projects.locations.global.domains/create#query-parameters
	ADDomainNameRegex = "^[a-z][a-z0-9-]{0,14}\\.[a-z0-9-\\.]*[a-z]+[a-z0-9]*$"
)
View Source
const METADATA_FINGERPRINT_RETRIES = 10
View Source
const PubsubTopicRegex = "projects\\/.*\\/topics\\/.*"
View Source
const TestEnvVar = "TF_ACC"

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}$"

	// Valid range for Cloud Router ASN values as per RFC6996
	// https://tools.ietf.org/html/rfc6996
	// Must be explicitly int64 to avoid overflow when building Terraform for 32bit architectures
	Rfc6996Asn16BitMin  = int64(64512)
	Rfc6996Asn16BitMax  = int64(65534)
	Rfc6996Asn32BitMin  = int64(4200000000)
	Rfc6996Asn32BitMax  = int64(4294967294)
	GcpRouterPartnerAsn = int64(16550)
)
View Source
var AccessApprovalDefaultBasePath = "https://accessapproval.googleapis.com/v1/"

Generated product base paths

View Source
var AccessContextManagerDefaultBasePath = "https://accesscontextmanager.googleapis.com/v1/"
View Source
var ActiveDirectoryDefaultBasePath = "https://managedidentities.googleapis.com/v1/"
View Source
var AppEngineDefaultBasePath = "https://appengine.googleapis.com/v1/"
View Source
var BigQueryDefaultBasePath = "https://bigquery.googleapis.com/bigquery/v2/"
View Source
var BigQueryTableIamSchema = map[string]*schema.Schema{
	"project": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"dataset_id": {
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},
	"table_id": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: compareSelfLinkOrResourceName,
	},
}
View Source
var BigqueryDataTransferDefaultBasePath = "https://bigquerydatatransfer.googleapis.com/v1/"
View Source
var BigqueryReservationDefaultBasePath = "https://bigqueryreservation.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/v1/"
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/v1/"
View Source
var CloudAssetDefaultBasePath = "https://cloudasset.googleapis.com/v1/"
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 CloudIdentityDefaultBasePath = "https://cloudidentity.googleapis.com/v1/"
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://compute.googleapis.com/compute/v1/"
View Source
var ComputeDiskIamSchema = map[string]*schema.Schema{
	"project": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"zone": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"name": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: compareSelfLinkOrResourceName,
	},
}
View Source
var ComputeImageIamSchema = map[string]*schema.Schema{
	"project": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"image": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: compareSelfLinkOrResourceName,
	},
}
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 ComputeRegionDiskIamSchema = map[string]*schema.Schema{
	"project": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"region": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"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/v1/"
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://dns.googleapis.com/dns/v1/"
View Source
var DataCatalogDefaultBasePath = "https://datacatalog.googleapis.com/v1/"
View Source
var DataCatalogEntryGroupIamSchema = map[string]*schema.Schema{
	"project": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"region": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"entry_group": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: compareSelfLinkOrResourceName,
	},
}
View Source
var DataLossPreventionDefaultBasePath = "https://dlp.googleapis.com/v2/"
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/v1/"
View Source
var DatastoreDefaultBasePath = "https://datastore.googleapis.com/v1/"
View Source
var DefaultClientScopes = []string{
	"https://www.googleapis.com/auth/compute",
	"https://www.googleapis.com/auth/cloud-platform",
	"https://www.googleapis.com/auth/cloud-identity",
	"https://www.googleapis.com/auth/ndev.clouddns.readwrite",
	"https://www.googleapis.com/auth/devstorage.full_control",
	"https://www.googleapis.com/auth/userinfo.email",
}
View Source
var DefaultRequestTimeout = 5 * time.Minute
View Source
var DeploymentManagerDefaultBasePath = "https://www.googleapis.com/deploymentmanager/v2/"
View Source
var DialogflowDefaultBasePath = "https://dialogflow.googleapis.com/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."}

We've encountered a few common fingerprint-related strings; if this is one of them, we're confident this is an error due to fingerprints.

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 GameServicesDefaultBasePath = "https://gameservices.googleapis.com/v1/"
View Source
var HealthcareDefaultBasePath = "https://healthcare.googleapis.com/v1/"
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 IamBigqueryDatasetSchema = map[string]*schema.Schema{
	"dataset_id": {
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},
	"project": {
		Type:     schema.TypeString,
		Optional: true,
		Computed: true,
		ForceNew: true,
	},
}
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 IamBigtableTableSchema = map[string]*schema.Schema{
	"instance": {
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},
	"project": {
		Type:     schema.TypeString,
		Optional: true,
		Computed: true,
		ForceNew: true,
	},
	"table": {
		Type:     schema.TypeString,
		Required: 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 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,
		Description: `The numeric ID of the organization in which you want to manage the audit logging config.`,
	},
}
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 IamPolicyProjectSchema = map[string]*schema.Schema{
	"project": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: compareProjectName,
	},
}

In google_project_iam_policy, project is required and not inferred by getProject.

View Source
var IamProjectSchema = map[string]*schema.Schema{
	"project": {
		Type:             schema.TypeString,
		Optional:         true,
		Computed:         true,
		ForceNew:         true,
		DiffSuppressFunc: compareProjectName,
	},
}
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 IapTunnelIamSchema = map[string]*schema.Schema{
	"project": {
		Type:             schema.TypeString,
		Computed:         true,
		Optional:         true,
		ForceNew:         true,
		DiffSuppressFunc: compareSelfLinkOrResourceName,
	},
}
View Source
var IapTunnelInstanceIamSchema = 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": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: compareSelfLinkOrResourceName,
	},
}
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,
		Description: `The filter to apply when excluding logs. Only log entries that match the filter are excluded.`,
	},
	"name": {
		Type:        schema.TypeString,
		Required:    true,
		ForceNew:    true,
		Description: `The name of the logging exclusion.`,
	},
	"description": {
		Type:        schema.TypeString,
		Optional:    true,
		Description: `A human-readable description.`,
	},
	"disabled": {
		Type:        schema.TypeBool,
		Optional:    true,
		Description: `Whether this exclusion rule should be disabled or not. This defaults to false.`,
	},
}
View Source
var MLEngineDefaultBasePath = "https://ml.googleapis.com/v1/"
View Source
var MonitoringDefaultBasePath = "https://monitoring.googleapis.com/"
View Source
var NetworkManagementDefaultBasePath = "https://networkmanagement.googleapis.com/v1/"
View Source
var NotebooksDefaultBasePath = "https://notebooks.googleapis.com/v1/"
View Source
var NotebooksInstanceIamSchema = map[string]*schema.Schema{
	"project": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"location": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"instance_name": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: compareSelfLinkOrResourceName,
	},
}
View Source
var OSConfigDefaultBasePath = "https://osconfig.googleapis.com/v1/"
View Source
var OSLoginDefaultBasePath = "https://oslogin.googleapis.com/v1/"
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 PubsubLiteDefaultBasePath = "https://{{region}}-pubsublite.googleapis.com/v1/admin/"
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 REQUIRED_SCRATCH_DISK_SIZE_GB = 375
View Source
var RedisDefaultBasePath = "https://redis.googleapis.com/v1/"
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://sqladmin.googleapis.com/sql/v1beta4/"
View Source
var SecretManagerDefaultBasePath = "https://secretmanager.googleapis.com/v1/"
View Source
var SecretManagerSecretIamSchema = map[string]*schema.Schema{
	"project": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"secret_id": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: compareSelfLinkOrResourceName,
	},
}
View Source
var SecurityCenterDefaultBasePath = "https://securitycenter.googleapis.com/v1/"
View Source
var ServiceManagementDefaultBasePath = "https://servicemanagement.googleapis.com/v1/"
View Source
var ServiceManagementServiceIamSchema = map[string]*schema.Schema{
	"service_name": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: compareSelfLinkOrResourceName,
	},
}
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: StorageBucketDiffSuppress,
	},
}
View Source
var StorageDefaultBasePath = "https://storage.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/v1/"

Functions

func BatchRequestEnableService

func BatchRequestEnableService(service string, 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 BigQueryTableIdParseFunc

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

func BigqueryDatasetIdParseFunc

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

func BigtableInstanceIdParseFunc

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

func BigtableTableIdParseFunc

func BigtableTableIdParseFunc(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 ClientWithAdditionalRetries

func ClientWithAdditionalRetries(baseClient *http.Client, predicates ...RetryErrorPredicateFunc) *http.Client

Helper method to create a shallow copy of an HTTP client with a shallow-copied retryTransport s.t. the base HTTP transport is the same (i.e. client connection pools are shared, retryPredicates are different)

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 ComputeDiskIdParseFunc

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

func ComputeImageIdParseFunc

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

func ComputeInstanceIdParseFunc

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

func ComputeRegionDiskIdParseFunc

func ComputeRegionDiskIdParseFunc(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 DataCatalogEntryGroupIdParseFunc

func DataCatalogEntryGroupIdParseFunc(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 GetCurrentUserEmail

func GetCurrentUserEmail(config *Config, userAgent string) (string, 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 IapTunnelIdParseFunc

func IapTunnelIdParseFunc(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 NewTransportWithDefaultRetries

func NewTransportWithDefaultRetries(t http.RoundTripper) *retryTransport

NewTransportWithDefaultRetries constructs a default retryTransport that will retry common temporary errors

func NotebooksInstanceIdParseFunc

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

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, timeout time.Duration, pollInterval time.Duration) error

func OrgIdParseFunc

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

func PollingWaitTime

func PollingWaitTime(pollF PollReadFunc, checkResponse PollCheckResponseFunc, activity string,
	timeout time.Duration, targetOccurrences int) error

func ProjectIdParseFunc

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

func Provider

func Provider() *schema.Provider

Provider returns a *schema.Provider.

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 ResourceLoggingBillingAccountBucketConfig

func ResourceLoggingBillingAccountBucketConfig() *schema.Resource

Create Logging Bucket config

func ResourceLoggingBucketConfig

func ResourceLoggingBucketConfig(parentType string, parentSpecificSchema map[string]*schema.Schema, iDFunc loggingBucketConfigIDFunc) *schema.Resource

ResourceLoggingBucketConfig creates a resource definition by merging a unique field (eg: folder) to a generic logging bucket config resource. In practice the only difference between these resources is the url location.

func ResourceLoggingExclusion

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

func ResourceLoggingFolderBucketConfig

func ResourceLoggingFolderBucketConfig() *schema.Resource

Create Logging Bucket config

func ResourceLoggingOrganizationBucketConfig

func ResourceLoggingOrganizationBucketConfig() *schema.Resource

Create Logging Bucket config

func ResourceLoggingProjectBucketConfig

func ResourceLoggingProjectBucketConfig() *schema.Resource

Create Logging Bucket config

func ResourceMap

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

Generated resources: 179 Generated IAM resources: 75 Total generated resources: 254

func ResourceMapWithErrors

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

func RetryWithTargetOccurrences

func RetryWithTargetOccurrences(timeout time.Duration, targetOccurrences int,
	f resource.RetryFunc) error

RetryWithTargetOccurrences is a basic wrapper around StateChangeConf that will retry a function until it returns the specified amount of target occurrences continuously. Adapted from the Retry function in the go SDK.

func RuntimeConfigConfigIdParseFunc

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

func SecretManagerSecretIdParseFunc

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

func ServiceAccountIdParseFunc

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

func ServiceManagementServiceIdParseFunc

func ServiceManagementServiceIdParseFunc(d *schema.ResourceData, config *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 StorageBucketDiffSuppress

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

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
	UserAgent string
	CommonOperationWaiter
}

func (*AccessContextManagerOperationWaiter) QueryOp

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

type ActiveDirectoryOperationWaiter

type ActiveDirectoryOperationWaiter struct {
	Config    *Config
	UserAgent string
	Project   string
	CommonOperationWaiter
}

func (*ActiveDirectoryOperationWaiter) QueryOp

func (w *ActiveDirectoryOperationWaiter) 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 BatcherCombineFunc

type BatcherCombineFunc func(body interface{}, toAdd interface{}) (interface{}, error)

BatcherCombineFunc is a function type for combine existing batches and additional batch data

type BatcherSendFunc

type BatcherSendFunc func(resourceName string, body interface{}) (interface{}, error)

BatcherSendFunc is a function type for sending a batch request

type BigQueryTableIamUpdater

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

func (*BigQueryTableIamUpdater) DescribeResource

func (u *BigQueryTableIamUpdater) DescribeResource() string

func (*BigQueryTableIamUpdater) GetMutexKey

func (u *BigQueryTableIamUpdater) GetMutexKey() string

func (*BigQueryTableIamUpdater) GetResourceIamPolicy

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

func (*BigQueryTableIamUpdater) GetResourceId

func (u *BigQueryTableIamUpdater) GetResourceId() string

func (*BigQueryTableIamUpdater) SetResourceIamPolicy

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

type BigqueryDatasetIamUpdater

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

func (*BigqueryDatasetIamUpdater) DescribeResource

func (u *BigqueryDatasetIamUpdater) DescribeResource() string

func (*BigqueryDatasetIamUpdater) GetMutexKey

func (u *BigqueryDatasetIamUpdater) GetMutexKey() string

Matches the mutex of google_big_query_dataset_access

func (*BigqueryDatasetIamUpdater) GetResourceIamPolicy

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

func (*BigqueryDatasetIamUpdater) GetResourceId

func (u *BigqueryDatasetIamUpdater) GetResourceId() string

func (*BigqueryDatasetIamUpdater) SetResourceIamPolicy

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

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 BigtableTableIamUpdater

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

func (*BigtableTableIamUpdater) DescribeResource

func (u *BigtableTableIamUpdater) DescribeResource() string

func (*BigtableTableIamUpdater) GetMutexKey

func (u *BigtableTableIamUpdater) GetMutexKey() string

func (*BigtableTableIamUpdater) GetResourceIamPolicy

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

func (*BigtableTableIamUpdater) GetResourceId

func (u *BigtableTableIamUpdater) GetResourceId() string

func (*BigtableTableIamUpdater) SetResourceIamPolicy

func (u *BigtableTableIamUpdater) 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 ByCreationTimestamp

type ByCreationTimestamp []*computeBeta.InstanceTemplate

ByCreationTimestamp implements sort.Interface for []*InstanceTemplate based on the CreationTimestamp field.

func (ByCreationTimestamp) Len

func (a ByCreationTimestamp) Len() int

func (ByCreationTimestamp) Less

func (a ByCreationTimestamp) Less(i, j int) bool

func (ByCreationTimestamp) Swap

func (a ByCreationTimestamp) Swap(i, j int)

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 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 CommonOpError

type CommonOpError struct {
	*cloudresourcemanager.Status
}

Wraps Op.Error in an implementation of built-in Error

func (*CommonOpError) Error

func (e *CommonOpError) Error() string

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 ComputeDiskIamUpdater

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

func (*ComputeDiskIamUpdater) DescribeResource

func (u *ComputeDiskIamUpdater) DescribeResource() string

func (*ComputeDiskIamUpdater) GetMutexKey

func (u *ComputeDiskIamUpdater) GetMutexKey() string

func (*ComputeDiskIamUpdater) GetResourceIamPolicy

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

func (*ComputeDiskIamUpdater) GetResourceId

func (u *ComputeDiskIamUpdater) GetResourceId() string

func (*ComputeDiskIamUpdater) SetResourceIamPolicy

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

type ComputeImageIamUpdater

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

func (*ComputeImageIamUpdater) DescribeResource

func (u *ComputeImageIamUpdater) DescribeResource() string

func (*ComputeImageIamUpdater) GetMutexKey

func (u *ComputeImageIamUpdater) GetMutexKey() string

func (*ComputeImageIamUpdater) GetResourceIamPolicy

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

func (*ComputeImageIamUpdater) GetResourceId

func (u *ComputeImageIamUpdater) GetResourceId() string

func (*ComputeImageIamUpdater) SetResourceIamPolicy

func (u *ComputeImageIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) 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
	Context context.Context
	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 ComputeRegionDiskIamUpdater

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

func (*ComputeRegionDiskIamUpdater) DescribeResource

func (u *ComputeRegionDiskIamUpdater) DescribeResource() string

func (*ComputeRegionDiskIamUpdater) GetMutexKey

func (u *ComputeRegionDiskIamUpdater) GetMutexKey() string

func (*ComputeRegionDiskIamUpdater) GetResourceIamPolicy

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

func (*ComputeRegionDiskIamUpdater) GetResourceId

func (u *ComputeRegionDiskIamUpdater) GetResourceId() string

func (*ComputeRegionDiskIamUpdater) SetResourceIamPolicy

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

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 {
	AccessToken                        string
	Credentials                        string
	ImpersonateServiceAccount          string
	ImpersonateServiceAccountDelegates []string
	Project                            string
	Region                             string
	BillingProject                     string
	Zone                               string
	Scopes                             []string
	BatchingConfig                     *batchingConfig
	UserProjectOverride                bool
	RequestTimeout                     time.Duration
	// PollInterval is passed to resource.StateChangeConf in common_operation.go
	// It controls the interval at which we poll for successful operations
	PollInterval time.Duration

	AccessApprovalBasePath       string
	AccessContextManagerBasePath string
	ActiveDirectoryBasePath      string
	AppEngineBasePath            string
	BigQueryBasePath             string
	BigqueryDataTransferBasePath string
	BigqueryReservationBasePath  string
	BigtableBasePath             string
	BillingBasePath              string
	BinaryAuthorizationBasePath  string
	CloudAssetBasePath           string
	CloudBuildBasePath           string
	CloudFunctionsBasePath       string
	CloudIdentityBasePath        string
	CloudIotBasePath             string
	CloudRunBasePath             string
	CloudSchedulerBasePath       string
	CloudTasksBasePath           string
	ComputeBasePath              string
	ContainerAnalysisBasePath    string
	DataCatalogBasePath          string
	DataLossPreventionBasePath   string
	DataprocBasePath             string
	DatastoreBasePath            string
	DeploymentManagerBasePath    string
	DialogflowBasePath           string
	DNSBasePath                  string
	FilestoreBasePath            string
	FirestoreBasePath            string
	GameServicesBasePath         string
	HealthcareBasePath           string
	IapBasePath                  string
	IdentityPlatformBasePath     string
	KMSBasePath                  string
	LoggingBasePath              string
	MLEngineBasePath             string
	MonitoringBasePath           string
	NetworkManagementBasePath    string
	NotebooksBasePath            string
	OSConfigBasePath             string
	OSLoginBasePath              string
	PubsubBasePath               string
	PubsubLiteBasePath           string
	RedisBasePath                string
	ResourceManagerBasePath      string
	RuntimeConfigBasePath        string
	SecretManagerBasePath        string
	SecurityCenterBasePath       string
	ServiceManagementBasePath    string
	ServiceUsageBasePath         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
	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) BigTableClientFactory

func (c *Config) BigTableClientFactory(userAgent string) *BigtableClientFactory

func (*Config) GetCredentials

func (c *Config) GetCredentials(clientScopes []string) (googleoauth.Credentials, error)

func (*Config) LoadAndValidate

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

func (*Config) NewAppEngineClient

func (c *Config) NewAppEngineClient(userAgent string) *appengine.APIService

func (*Config) NewBigQueryClient

func (c *Config) NewBigQueryClient(userAgent string) *bigquery.Service

func (*Config) NewBigTableProjectsInstancesClient

func (c *Config) NewBigTableProjectsInstancesClient(userAgent string) *bigtableadmin.ProjectsInstancesService

Unlike other clients, the Bigtable Admin client doesn't use a single service. Instead, there are several distinct services created off the base service object. To imitate most other handwritten clients, we expose those directly instead of providing the `Service` object as a factory.

func (*Config) NewBigTableProjectsInstancesTablesClient

func (c *Config) NewBigTableProjectsInstancesTablesClient(userAgent string) *bigtableadmin.ProjectsInstancesTablesService

func (*Config) NewBillingClient

func (c *Config) NewBillingClient(userAgent string) *cloudbilling.APIService

func (*Config) NewBuildClient

func (c *Config) NewBuildClient(userAgent string) *cloudbuild.Service

func (*Config) NewCloudFunctionsClient

func (c *Config) NewCloudFunctionsClient(userAgent string) *cloudfunctions.Service

func (*Config) NewCloudIdentityClient

func (c *Config) NewCloudIdentityClient(userAgent string) *cloudidentity.Service

func (*Config) NewCloudIoTClient

func (c *Config) NewCloudIoTClient(userAgent string) *cloudiot.Service

func (*Config) NewComposerClient

func (c *Config) NewComposerClient(userAgent string) *composer.Service

func (*Config) NewComputeBetaClient

func (c *Config) NewComputeBetaClient(userAgent string) *computeBeta.Service

func (*Config) NewComputeClient

func (c *Config) NewComputeClient(userAgent string) *compute.Service

Methods to create new services from config Some base paths below need the version and possibly more of the path set on them. The client libraries are inconsistent about which values they need; while most only want the host URL, some older ones also want the version and some of those "projects" as well. You can find out if this is required by looking at the basePath value in the client library file.

func (*Config) NewContainerBetaClient

func (c *Config) NewContainerBetaClient(userAgent string) *containerBeta.Service

func (*Config) NewContainerClient

func (c *Config) NewContainerClient(userAgent string) *container.Service

func (*Config) NewDataflowClient

func (c *Config) NewDataflowClient(userAgent string) *dataflow.Service

func (*Config) NewDataprocBetaClient

func (c *Config) NewDataprocBetaClient(userAgent string) *dataprocBeta.Service

func (*Config) NewDataprocClient

func (c *Config) NewDataprocClient(userAgent string) *dataproc.Service

func (*Config) NewDnsBetaClient

func (c *Config) NewDnsBetaClient(userAgent string) *dnsBeta.Service

func (*Config) NewDnsClient

func (c *Config) NewDnsClient(userAgent string) *dns.Service

func (*Config) NewFilestoreClient

func (c *Config) NewFilestoreClient(userAgent string) *file.Service

func (*Config) NewHealthcareClient

func (c *Config) NewHealthcareClient(userAgent string) *healthcare.Service

func (*Config) NewIamClient

func (c *Config) NewIamClient(userAgent string) *iam.Service

func (*Config) NewIamCredentialsClient

func (c *Config) NewIamCredentialsClient(userAgent string) *iamcredentials.Service

func (*Config) NewKmsClient

func (c *Config) NewKmsClient(userAgent string) *cloudkms.Service

func (*Config) NewLoggingClient

func (c *Config) NewLoggingClient(userAgent string) *cloudlogging.Service

func (*Config) NewPubsubClient

func (c *Config) NewPubsubClient(userAgent string) *pubsub.Service

func (*Config) NewResourceManagerClient

func (c *Config) NewResourceManagerClient(userAgent string) *cloudresourcemanager.Service

func (*Config) NewResourceManagerV2Beta1Client

func (c *Config) NewResourceManagerV2Beta1Client(userAgent string) *resourceManagerV2Beta1.Service

func (*Config) NewRuntimeconfigClient

func (c *Config) NewRuntimeconfigClient(userAgent string) *runtimeconfig.Service

func (*Config) NewServiceManClient

func (c *Config) NewServiceManClient(userAgent string) *servicemanagement.APIService

func (*Config) NewServiceNetworkingClient

func (c *Config) NewServiceNetworkingClient(userAgent string) *servicenetworking.APIService

func (*Config) NewServiceUsageClient

func (c *Config) NewServiceUsageClient(userAgent string) *serviceusage.Service

func (*Config) NewSourceRepoClient

func (c *Config) NewSourceRepoClient(userAgent string) *sourcerepo.Service

func (*Config) NewSpannerClient

func (c *Config) NewSpannerClient(userAgent string) *spanner.Service

func (*Config) NewSqlAdminClient

func (c *Config) NewSqlAdminClient(userAgent string) *sqladmin.Service

func (*Config) NewStorageClient

func (c *Config) NewStorageClient(userAgent string) *storage.Service

func (*Config) NewStorageTransferClient

func (c *Config) NewStorageTransferClient(userAgent string) *storagetransfer.Service

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 DataCatalogEntryGroupIamUpdater

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

func (*DataCatalogEntryGroupIamUpdater) DescribeResource

func (u *DataCatalogEntryGroupIamUpdater) DescribeResource() string

func (*DataCatalogEntryGroupIamUpdater) GetMutexKey

func (u *DataCatalogEntryGroupIamUpdater) GetMutexKey() string

func (*DataCatalogEntryGroupIamUpdater) GetResourceIamPolicy

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

func (*DataCatalogEntryGroupIamUpdater) GetResourceId

func (u *DataCatalogEntryGroupIamUpdater) GetResourceId() string

func (*DataCatalogEntryGroupIamUpdater) SetResourceIamPolicy

func (u *DataCatalogEntryGroupIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) 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 DatastoreOperationWaiter

type DatastoreOperationWaiter struct {
	Config    *Config
	UserAgent string
	Project   string
	CommonOperationWaiter
}

func (*DatastoreOperationWaiter) QueryOp

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

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
	UserAgent    string
	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
	UserAgent string
	Project   string
	CommonOperationWaiter
}

func (*FilestoreOperationWaiter) QueryOp

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

type FirestoreOperationWaiter

type FirestoreOperationWaiter struct {
	Config    *Config
	UserAgent string
	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 GameServicesOperationWaiter

type GameServicesOperationWaiter struct {
	Config    *Config
	UserAgent string
	Project   string
	CommonOperationWaiter
}

func (*GameServicesOperationWaiter) QueryOp

func (w *GameServicesOperationWaiter) QueryOp() (interface{}, 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 ParseMachineImageFieldValue

func ParseMachineImageFieldValue(machineImage 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 IapTunnelIamUpdater

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

func (*IapTunnelIamUpdater) DescribeResource

func (u *IapTunnelIamUpdater) DescribeResource() string

func (*IapTunnelIamUpdater) GetMutexKey

func (u *IapTunnelIamUpdater) GetMutexKey() string

func (*IapTunnelIamUpdater) GetResourceIamPolicy

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

func (*IapTunnelIamUpdater) GetResourceId

func (u *IapTunnelIamUpdater) GetResourceId() string

func (*IapTunnelIamUpdater) SetResourceIamPolicy

func (u *IapTunnelIamUpdater) 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.

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
	UserAgent string
	Project   string
	CommonOperationWaiter
}

func (*MLEngineOperationWaiter) QueryOp

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

type MutexKV

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

MutexKV is a simple key/value store for arbitrary mutexes. It can be used to serialize changes across arbitrary collaborators that share knowledge of the keys they must serialize on.

The initial use case is to let aws_security_group_rule resources serialize their access to individual security groups based on SG ID.

func NewMutexKV

func NewMutexKV() *MutexKV

Returns a properly initialized MutexKV

func (*MutexKV) Lock

func (m *MutexKV) Lock(key string)

Locks the mutex for the given key. Caller is responsible for calling Unlock for the same key

func (*MutexKV) Unlock

func (m *MutexKV) Unlock(key string)

Unlock the mutex for the given key. Caller must have called Lock for the same key first

type NetworkManagementOperationWaiter

type NetworkManagementOperationWaiter struct {
	Config    *Config
	UserAgent string
	Project   string
	CommonOperationWaiter
}

func (*NetworkManagementOperationWaiter) QueryOp

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

type NodePoolInformation

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

type NotebooksInstanceIamUpdater

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

func (*NotebooksInstanceIamUpdater) DescribeResource

func (u *NotebooksInstanceIamUpdater) DescribeResource() string

func (*NotebooksInstanceIamUpdater) GetMutexKey

func (u *NotebooksInstanceIamUpdater) GetMutexKey() string

func (*NotebooksInstanceIamUpdater) GetResourceIamPolicy

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

func (*NotebooksInstanceIamUpdater) GetResourceId

func (u *NotebooksInstanceIamUpdater) GetResourceId() string

func (*NotebooksInstanceIamUpdater) SetResourceIamPolicy

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

type NotebooksOperationWaiter

type NotebooksOperationWaiter struct {
	Config    *Config
	UserAgent string
	Project   string
	CommonOperationWaiter
}

func (*NotebooksOperationWaiter) QueryOp

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

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 PollCheckResponseFunc

type PollCheckResponseFunc func(resp map[string]interface{}, respErr error) PollResult

Function to check the response from polling once

type PollReadFunc

type PollReadFunc func() (resp map[string]interface{}, respErr error)

Function handling for polling for a resource

type PollResult

type PollResult *resource.RetryError

func ErrorPollResult

func ErrorPollResult(err error) PollResult

Helper functions to construct result of single pollRead as return result for a PollCheckResponseFunc

func PendingStatusPollResult

func PendingStatusPollResult(status string) PollResult

func PollCheckForAbsence

func PollCheckForAbsence(_ map[string]interface{}, respErr error) PollResult

PollCheckForAbsence waits for a 404 response, continues polling on a successful response, and returns any other error.

func PollCheckForExistence

func PollCheckForExistence(_ map[string]interface{}, respErr error) PollResult

PollCheckForExistence waits for a successful response, continues polling on 404, and returns any other error.

func PollCheckInstanceConfigDeleted

func PollCheckInstanceConfigDeleted(resp map[string]interface{}, respErr error) PollResult

func PollCheckKnativeStatus

func PollCheckKnativeStatus(resp map[string]interface{}, respErr error) PollResult

func SuccessPollResult

func SuccessPollResult() PollResult

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
	UserAgent string
	Project   string
	CommonOperationWaiter
}