Documentation ¶
Index ¶
- Constants
- Variables
- func BetaMetadataUpdate(oldMDMap map[string]interface{}, newMDMap map[string]interface{}, ...)
- func BillingAccountIdParseFunc(d *schema.ResourceData, _ *Config) error
- func CommonRefreshFunc(w Waiter) resource.StateRefreshFunc
- func ComputeSubnetworkIdParseFunc(d *schema.ResourceData, config *Config) error
- func Convert(item, out interface{}) error
- func ConvertSelfLinkToV1(link string) string
- func ConvertToMap(item interface{}) (map[string]interface{}, error)
- func CryptoIdParseFunc(d *schema.ResourceData, config *Config) error
- func DataprocClusterIdParseFunc(d *schema.ResourceData, config *Config) error
- func DataprocJobIdParseFunc(d *schema.ResourceData, config *Config) error
- func FolderIdParseFunc(d *schema.ResourceData, _ *Config) error
- func GetLocationalResourcePropertiesFromSelfLinkString(selfLink string) (string, string, string, error)
- func GetRegionalResourcePropertiesFromSelfLinkOrSchema(d *schema.ResourceData, config *Config) (string, string, string, error)
- func GetResourceNameFromSelfLink(link string) string
- func GetZonalResourcePropertiesFromSelfLinkOrSchema(d *schema.ResourceData, config *Config) (string, string, string, error)
- func KeyRingIdParseFunc(d *schema.ResourceData, config *Config) error
- func MetadataRetryWrapper(update func() error) error
- func MetadataUpdate(oldMDMap map[string]interface{}, newMDMap map[string]interface{}, ...)
- func NameFromSelfLinkStateFunc(v interface{}) string
- func OperationDone(w Waiter) bool
- func OperationWait(w Waiter, activity string, timeoutMinutes int) error
- func OrgIdParseFunc(d *schema.ResourceData, _ *Config) error
- func ProjectIdParseFunc(d *schema.ResourceData, _ *Config) error
- func PubsubSubscriptionIdParseFunc(d *schema.ResourceData, _ *Config) error
- func PubsubTopicIdParseFunc(d *schema.ResourceData, _ *Config) error
- func ServiceAccountIdParseFunc(d *schema.ResourceData, _ *Config) error
- func SpannerDatabaseIdParseFunc(d *schema.ResourceData, config *Config) error
- func SpannerInstanceIdParseFunc(d *schema.ResourceData, config *Config) error
- func StorageBucketIdParseFunc(d *schema.ResourceData, _ *Config) error
- func StoreResourceName(resourceLink interface{}) string
- func StringNotInSlice(invalid []string, ignoreCase bool) schema.SchemaValidateFunc
- type AppEngineOperationWaiter
- type BigtableClientFactory
- type BillingAccountIamUpdater
- func (u *BillingAccountIamUpdater) DescribeResource() string
- func (u *BillingAccountIamUpdater) GetMutexKey() string
- func (u *BillingAccountIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
- func (u *BillingAccountIamUpdater) GetResourceId() string
- func (u *BillingAccountIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
- type BillingAccountLoggingExclusionUpdater
- func (u *BillingAccountLoggingExclusionUpdater) CreateLoggingExclusion(parent string, exclusion *logging.LogExclusion) error
- func (u *BillingAccountLoggingExclusionUpdater) DeleteLoggingExclusion(id string) error
- func (u *BillingAccountLoggingExclusionUpdater) DescribeResource() string
- func (u *BillingAccountLoggingExclusionUpdater) GetResourceId() string
- func (u *BillingAccountLoggingExclusionUpdater) GetResourceType() string
- func (u *BillingAccountLoggingExclusionUpdater) ReadLoggingExclusion(id string) (*logging.LogExclusion, error)
- func (u *BillingAccountLoggingExclusionUpdater) UpdateLoggingExclusion(id string, exclusion *logging.LogExclusion, updateMask string) error
- type CloudFunctionsOperationWaiter
- type CommonOperation
- type CommonOperationWaiter
- func (w *CommonOperationWaiter) Error() error
- func (w *CommonOperationWaiter) OpName() string
- func (w *CommonOperationWaiter) PendingStates() []string
- func (w *CommonOperationWaiter) SetOp(op interface{}) error
- func (w *CommonOperationWaiter) State() string
- func (w *CommonOperationWaiter) TargetStates() []string
- type ComposerOperationWaiter
- type ComputeOperationError
- type ComputeOperationWaiter
- func (w *ComputeOperationWaiter) Error() error
- func (w *ComputeOperationWaiter) OpName() string
- func (w *ComputeOperationWaiter) PendingStates() []string
- func (w *ComputeOperationWaiter) QueryOp() (interface{}, error)
- func (w *ComputeOperationWaiter) SetOp(op interface{}) error
- func (w *ComputeOperationWaiter) State() string
- func (w *ComputeOperationWaiter) TargetStates() []string
- type ComputeSubnetworkIamUpdater
- func (u *ComputeSubnetworkIamUpdater) DescribeResource() string
- func (u *ComputeSubnetworkIamUpdater) GetMutexKey() string
- func (u *ComputeSubnetworkIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
- func (u *ComputeSubnetworkIamUpdater) GetResourceId() string
- func (u *ComputeSubnetworkIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
- type ContainerOperationWaiter
- func (w *ContainerOperationWaiter) Error() error
- func (w *ContainerOperationWaiter) OpName() string
- func (w *ContainerOperationWaiter) PendingStates() []string
- func (w *ContainerOperationWaiter) QueryOp() (interface{}, error)
- func (w *ContainerOperationWaiter) SetOp(op interface{}) error
- func (w *ContainerOperationWaiter) State() string
- func (w *ContainerOperationWaiter) TargetStates() []string
- type DataprocClusterIamUpdater
- func (u *DataprocClusterIamUpdater) DescribeResource() string
- func (u *DataprocClusterIamUpdater) GetMutexKey() string
- func (u *DataprocClusterIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
- func (u *DataprocClusterIamUpdater) GetResourceId() string
- func (u *DataprocClusterIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
- type DataprocClusterOperationWaiter
- type DataprocDeleteJobOperationWaiter
- type DataprocJobIamUpdater
- func (u *DataprocJobIamUpdater) DescribeResource() string
- func (u *DataprocJobIamUpdater) GetMutexKey() string
- func (u *DataprocJobIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
- func (u *DataprocJobIamUpdater) GetResourceId() string
- func (u *DataprocJobIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
- type DataprocJobOperationWaiter
- func (w *DataprocJobOperationWaiter) Error() error
- func (w *DataprocJobOperationWaiter) OpName() string
- func (w *DataprocJobOperationWaiter) PendingStates() []string
- func (w *DataprocJobOperationWaiter) QueryOp() (interface{}, error)
- func (w *DataprocJobOperationWaiter) SetOp(job interface{}) error
- func (w *DataprocJobOperationWaiter) State() string
- func (w *DataprocJobOperationWaiter) TargetStates() []string
- type DnsChangeWaiter
- type FolderIamUpdater
- func (u *FolderIamUpdater) DescribeResource() string
- func (u *FolderIamUpdater) GetMutexKey() string
- func (u *FolderIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
- func (u *FolderIamUpdater) GetResourceId() string
- func (u *FolderIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
- type FolderLoggingExclusionUpdater
- func (u *FolderLoggingExclusionUpdater) CreateLoggingExclusion(parent string, exclusion *logging.LogExclusion) error
- func (u *FolderLoggingExclusionUpdater) DeleteLoggingExclusion(id string) error
- func (u *FolderLoggingExclusionUpdater) DescribeResource() string
- func (u *FolderLoggingExclusionUpdater) GetResourceId() string
- func (u *FolderLoggingExclusionUpdater) GetResourceType() string
- func (u *FolderLoggingExclusionUpdater) ReadLoggingExclusion(id string) (*logging.LogExclusion, error)
- func (u *FolderLoggingExclusionUpdater) UpdateLoggingExclusion(id string, exclusion *logging.LogExclusion, updateMask string) error
- type GlobalFieldValue
- func ParseHttpHealthCheckFieldValue(healthCheck string, d TerraformResourceData, config *Config) (*GlobalFieldValue, error)
- func ParseInstanceTemplateFieldValue(instanceTemplate string, d TerraformResourceData, config *Config) (*GlobalFieldValue, error)
- func ParseNetworkFieldValue(network string, d TerraformResourceData, config *Config) (*GlobalFieldValue, error)
- func ParseSecurityPolicyFieldValue(securityPolicy string, d TerraformResourceData, config *Config) (*GlobalFieldValue, error)
- func ParseSslCertificateFieldValue(sslCertificate string, d TerraformResourceData, config *Config) (*GlobalFieldValue, error)
- type KmsCryptoKeyIamUpdater
- func (u *KmsCryptoKeyIamUpdater) DescribeResource() string
- func (u *KmsCryptoKeyIamUpdater) GetMutexKey() string
- func (u *KmsCryptoKeyIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
- func (u *KmsCryptoKeyIamUpdater) GetResourceId() string
- func (u *KmsCryptoKeyIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
- type KmsKeyRingIamUpdater
- func (u *KmsKeyRingIamUpdater) DescribeResource() string
- func (u *KmsKeyRingIamUpdater) GetMutexKey() string
- func (u *KmsKeyRingIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
- func (u *KmsKeyRingIamUpdater) GetResourceId() string
- func (u *KmsKeyRingIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
- type LocationType
- type LoggingSinkId
- type OrganizationFieldValue
- type OrganizationIamUpdater
- func (u *OrganizationIamUpdater) DescribeResource() string
- func (u *OrganizationIamUpdater) GetMutexKey() string
- func (u *OrganizationIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
- func (u *OrganizationIamUpdater) GetResourceId() string
- func (u *OrganizationIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
- type OrganizationLoggingExclusionUpdater
- func (u *OrganizationLoggingExclusionUpdater) CreateLoggingExclusion(parent string, exclusion *logging.LogExclusion) error
- func (u *OrganizationLoggingExclusionUpdater) DeleteLoggingExclusion(id string) error
- func (u *OrganizationLoggingExclusionUpdater) DescribeResource() string
- func (u *OrganizationLoggingExclusionUpdater) GetResourceId() string
- func (u *OrganizationLoggingExclusionUpdater) GetResourceType() string
- func (u *OrganizationLoggingExclusionUpdater) ReadLoggingExclusion(id string) (*logging.LogExclusion, error)
- func (u *OrganizationLoggingExclusionUpdater) UpdateLoggingExclusion(id string, exclusion *logging.LogExclusion, updateMask string) error
- type ProjectIamUpdater
- func (u *ProjectIamUpdater) DescribeResource() string
- func (u *ProjectIamUpdater) GetMutexKey() string
- func (u *ProjectIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
- func (u *ProjectIamUpdater) GetResourceId() string
- func (u *ProjectIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
- type ProjectLoggingExclusionUpdater
- func (u *ProjectLoggingExclusionUpdater) CreateLoggingExclusion(parent string, exclusion *logging.LogExclusion) error
- func (u *ProjectLoggingExclusionUpdater) DeleteLoggingExclusion(id string) error
- func (u *ProjectLoggingExclusionUpdater) DescribeResource() string
- func (u *ProjectLoggingExclusionUpdater) GetResourceId() string
- func (u *ProjectLoggingExclusionUpdater) GetResourceType() string
- func (u *ProjectLoggingExclusionUpdater) ReadLoggingExclusion(id string) (*logging.LogExclusion, error)
- func (u *ProjectLoggingExclusionUpdater) UpdateLoggingExclusion(id string, exclusion *logging.LogExclusion, updateMask string) error
- type PubsubSubscriptionIamUpdater
- func (u *PubsubSubscriptionIamUpdater) DescribeResource() string
- func (u *PubsubSubscriptionIamUpdater) GetMutexKey() string
- func (u *PubsubSubscriptionIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
- func (u *PubsubSubscriptionIamUpdater) GetResourceId() string
- func (u *PubsubSubscriptionIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
- type PubsubTopicIamUpdater
- func (u *PubsubTopicIamUpdater) DescribeResource() string
- func (u *PubsubTopicIamUpdater) GetMutexKey() string
- func (u *PubsubTopicIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
- func (u *PubsubTopicIamUpdater) GetResourceId() string
- func (u *PubsubTopicIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
- type RegionalFieldValue
- func ParseRegionDiskFieldValue(disk string, d TerraformResourceData, config *Config) (*RegionalFieldValue, error)
- func ParseSubnetworkFieldValue(subnetwork string, d TerraformResourceData, config *Config) (*RegionalFieldValue, error)
- func ParseSubnetworkFieldValueWithProjectField(subnetwork, projectField string, d TerraformResourceData, config *Config) (*RegionalFieldValue, error)
- type ResourceDataMock
- func (d *ResourceDataMock) Get(key string) interface{}
- func (d *ResourceDataMock) GetOk(key string) (interface{}, bool)
- func (d *ResourceDataMock) GetOkExists(key string) (interface{}, bool)
- func (d *ResourceDataMock) HasChange(key string) bool
- func (d *ResourceDataMock) Id() string
- func (d *ResourceDataMock) Set(key string, value interface{}) error
- func (d *ResourceDataMock) SetId(v string)
- type ResourceDiffMock
- type ResourceIamUpdater
- func NewBillingAccountIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)
- func NewComputeSubnetworkIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)
- func NewDataprocClusterUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)
- func NewDataprocJobUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)
- func NewFolderIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)
- func NewKmsCryptoKeyIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)
- func NewKmsKeyRingIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)
- func NewOrganizationIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)
- func NewProjectIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)
- func NewPubsubSubscriptionIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)
- func NewPubsubTopicIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)
- func NewServiceAccountIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)
- func NewSpannerDatabaseIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)
- func NewSpannerInstanceIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)
- func NewStorageBucketIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)
- type ServiceAccountIamUpdater
- func (u *ServiceAccountIamUpdater) DescribeResource() string
- func (u *ServiceAccountIamUpdater) GetMutexKey() string
- func (u *ServiceAccountIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
- func (u *ServiceAccountIamUpdater) GetResourceId() string
- func (u *ServiceAccountIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
- type ServiceAccountKeyWaiter
- type ServiceManagementOperationWaiter
- type ServiceUsageOperationWaiter
- type SpannerDatabaseIamUpdater
- func (u *SpannerDatabaseIamUpdater) DescribeResource() string
- func (u *SpannerDatabaseIamUpdater) GetMutexKey() string
- func (u *SpannerDatabaseIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
- func (u *SpannerDatabaseIamUpdater) GetResourceId() string
- func (u *SpannerDatabaseIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
- type SpannerInstanceIamUpdater
- func (u *SpannerInstanceIamUpdater) DescribeResource() string
- func (u *SpannerInstanceIamUpdater) GetMutexKey() string
- func (u *SpannerInstanceIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
- func (u *SpannerInstanceIamUpdater) GetResourceId() string
- func (u *SpannerInstanceIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
- type SqlAdminOperationError
- type SqlAdminOperationWaiter
- func (w *SqlAdminOperationWaiter) Error() error
- func (w *SqlAdminOperationWaiter) OpName() string
- func (w *SqlAdminOperationWaiter) PendingStates() []string
- func (w *SqlAdminOperationWaiter) QueryOp() (interface{}, error)
- func (w *SqlAdminOperationWaiter) SetOp(op interface{}) error
- func (w *SqlAdminOperationWaiter) State() string
- func (w *SqlAdminOperationWaiter) TargetStates() []string
- type StorageBucketIamUpdater
- func (u *StorageBucketIamUpdater) DescribeResource() string
- func (u *StorageBucketIamUpdater) GetMutexKey() string
- func (u *StorageBucketIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
- func (u *StorageBucketIamUpdater) GetResourceId() string
- func (u *StorageBucketIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
- type Waiter
- type ZonalFieldValue
- func ParseAcceleratorFieldValue(accelerator string, d TerraformResourceData, config *Config) (*ZonalFieldValue, error)
- func ParseDiskFieldValue(disk string, d TerraformResourceData, config *Config) (*ZonalFieldValue, error)
- func ParseInstanceFieldValue(instance string, d TerraformResourceData, config *Config) (*ZonalFieldValue, error)
- func ParseInstanceGroupFieldValue(instanceGroup string, d TerraformResourceData, config *Config) (*ZonalFieldValue, error)
- func ParseMachineTypesFieldValue(machineType string, d TerraformResourceData, config *Config) (*ZonalFieldValue, error)
Constants ¶
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}$" )
const METADATA_FINGERPRINT_RETRIES = 10
Variables ¶
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{ AppEngineServiceAccountNameRegex, 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$" ProjectNameInDNSFormRegex = "[-a-z0-9\\.]{1,63}" // Format of default App Engine service accounts created by Google AppEngineServiceAccountNameRegex = ProjectRegex + "@appspot.gserviceaccount.com" ProjectNameRegex = "^[A-Za-z0-9-'\"\\s!]{4,30}$" )
var BillingAccountLoggingExclusionSchema = map[string]*schema.Schema{ "billing_account": { Type: schema.TypeString, Required: true, ForceNew: true, }, }
var DefaultRequestTimeout = 5 * time.Minute
var FolderLoggingExclusionSchema = map[string]*schema.Schema{ "folder": { Type: schema.TypeString, Required: true, ForceNew: true, DiffSuppressFunc: optionalPrefixSuppress("folders/"), }, }
var IamBillingAccountSchema = map[string]*schema.Schema{ "billing_account_id": { Type: schema.TypeString, Required: true, ForceNew: true, }, }
var IamComputeSubnetworkSchema = map[string]*schema.Schema{ "subnetwork": { 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, }, }
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, }, }
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, }, }
var IamFolderSchema = map[string]*schema.Schema{ "folder": { Type: schema.TypeString, Required: true, ForceNew: true, }, }
var IamKmsCryptoKeySchema = map[string]*schema.Schema{ "crypto_key_id": { Type: schema.TypeString, Required: true, ForceNew: true, }, }
var IamKmsKeyRingSchema = map[string]*schema.Schema{ "key_ring_id": { Type: schema.TypeString, Required: true, ForceNew: true, }, }
var IamOrganizationSchema = map[string]*schema.Schema{ "org_id": { Type: schema.TypeString, Required: true, ForceNew: true, }, }
var IamProjectSchema = map[string]*schema.Schema{ "project": { Type: schema.TypeString, Optional: true, Computed: true, ForceNew: true, }, }
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, }, }
var IamPubsubTopicSchema = map[string]*schema.Schema{ "topic": { Type: schema.TypeString, Required: true, ForceNew: true, DiffSuppressFunc: compareSelfLinkOrResourceName, }, "project": { Type: schema.TypeString, Optional: true, Computed: true, ForceNew: true, }, }
var IamServiceAccountSchema = map[string]*schema.Schema{ "service_account_id": { Type: schema.TypeString, Required: true, ForceNew: true, ValidateFunc: validateRegexp(ServiceAccountLinkRegex), }, }
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, }, }
var IamSpannerInstanceSchema = map[string]*schema.Schema{ "instance": { Type: schema.TypeString, Required: true, ForceNew: true, }, "project": { Type: schema.TypeString, Optional: true, Computed: true, ForceNew: true, }, }
var IamStorageBucketSchema = map[string]*schema.Schema{ "bucket": { Type: schema.TypeString, Required: true, ForceNew: true, }, }
var OrganizationLoggingExclusionSchema = map[string]*schema.Schema{ "org_id": { Type: schema.TypeString, Required: true, ForceNew: true, }, }
var ProjectLoggingExclusionSchema = map[string]*schema.Schema{ "project": { Type: schema.TypeString, Optional: true, Computed: true, ForceNew: true, }, }
Functions ¶
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 BillingAccountIdParseFunc ¶
func BillingAccountIdParseFunc(d *schema.ResourceData, _ *Config) error
func CommonRefreshFunc ¶
func CommonRefreshFunc(w Waiter) resource.StateRefreshFunc
func ComputeSubnetworkIdParseFunc ¶
func ComputeSubnetworkIdParseFunc(d *schema.ResourceData, config *Config) error
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 ConvertToMap ¶
When converting to a map, we can't use setOmittedFields because FieldByName fails. Luckily, we don't use the omitted fields anymore with generated resources, and this function is used to bridge from handwritten -> generated. Since this is a known type, we can create it inline instead of needing to pass an object in.
func CryptoIdParseFunc ¶
func CryptoIdParseFunc(d *schema.ResourceData, config *Config) error
func DataprocClusterIdParseFunc ¶
func DataprocClusterIdParseFunc(d *schema.ResourceData, config *Config) error
func DataprocJobIdParseFunc ¶
func DataprocJobIdParseFunc(d *schema.ResourceData, config *Config) error
func FolderIdParseFunc ¶
func FolderIdParseFunc(d *schema.ResourceData, _ *Config) error
func GetLocationalResourcePropertiesFromSelfLinkString ¶
func GetLocationalResourcePropertiesFromSelfLinkString(selfLink string) (string, string, string, error)
given a full locational (non-global) self link, returns the project + region/zone + name or an error
func KeyRingIdParseFunc ¶
func KeyRingIdParseFunc(d *schema.ResourceData, config *Config) error
func MetadataRetryWrapper ¶
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 OperationDone ¶
func OrgIdParseFunc ¶
func OrgIdParseFunc(d *schema.ResourceData, _ *Config) error
func ProjectIdParseFunc ¶
func ProjectIdParseFunc(d *schema.ResourceData, _ *Config) error
func PubsubSubscriptionIdParseFunc ¶
func PubsubSubscriptionIdParseFunc(d *schema.ResourceData, _ *Config) error
func PubsubTopicIdParseFunc ¶
func PubsubTopicIdParseFunc(d *schema.ResourceData, _ *Config) error
func ServiceAccountIdParseFunc ¶
func ServiceAccountIdParseFunc(d *schema.ResourceData, _ *Config) error
func SpannerDatabaseIdParseFunc ¶
func SpannerDatabaseIdParseFunc(d *schema.ResourceData, config *Config) error
func SpannerInstanceIdParseFunc ¶
func SpannerInstanceIdParseFunc(d *schema.ResourceData, config *Config) error
func StorageBucketIdParseFunc ¶
func StorageBucketIdParseFunc(d *schema.ResourceData, _ *Config) 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 AppEngineOperationWaiter ¶
type AppEngineOperationWaiter struct { Service *appengine.APIService AppId string CommonOperationWaiter }
func (*AppEngineOperationWaiter) QueryOp ¶
func (w *AppEngineOperationWaiter) QueryOp() (interface{}, 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 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 CloudFunctionsOperationWaiter ¶
type CloudFunctionsOperationWaiter struct { Service *cloudfunctions.Service CommonOperationWaiter }
func (*CloudFunctionsOperationWaiter) QueryOp ¶
func (w *CloudFunctionsOperationWaiter) QueryOp() (interface{}, error)
type CommonOperation ¶
type CommonOperation cloudresourcemanager.Operation
The cloud resource manager API operation is an example of one of many interchangeable API operations. Choose it somewhat arbitrarily to represent the "common" operation.
type CommonOperationWaiter ¶
type CommonOperationWaiter struct {
Op CommonOperation
}
func (*CommonOperationWaiter) Error ¶
func (w *CommonOperationWaiter) Error() error
func (*CommonOperationWaiter) 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 ComputeOperationError ¶
type ComputeOperationError compute.OperationError
ComputeOperationError wraps compute.OperationError and implements the error interface so it can be returned.
func (ComputeOperationError) Error ¶
func (e ComputeOperationError) Error() string
type ComputeOperationWaiter ¶
type ComputeOperationWaiter struct { Service *compute.Service Op *compute.Operation Project string }
func (*ComputeOperationWaiter) Error ¶
func (w *ComputeOperationWaiter) Error() error
func (*ComputeOperationWaiter) OpName ¶
func (w *ComputeOperationWaiter) OpName() string
func (*ComputeOperationWaiter) PendingStates ¶
func (w *ComputeOperationWaiter) PendingStates() []string
func (*ComputeOperationWaiter) QueryOp ¶
func (w *ComputeOperationWaiter) QueryOp() (interface{}, error)
func (*ComputeOperationWaiter) SetOp ¶
func (w *ComputeOperationWaiter) SetOp(op interface{}) error
func (*ComputeOperationWaiter) State ¶
func (w *ComputeOperationWaiter) State() string
func (*ComputeOperationWaiter) TargetStates ¶
func (w *ComputeOperationWaiter) TargetStates() []string
type ComputeSubnetworkIamUpdater ¶
type ComputeSubnetworkIamUpdater struct { Config *Config // contains filtered or unexported fields }
func (*ComputeSubnetworkIamUpdater) DescribeResource ¶
func (u *ComputeSubnetworkIamUpdater) DescribeResource() string
func (*ComputeSubnetworkIamUpdater) GetMutexKey ¶
func (u *ComputeSubnetworkIamUpdater) GetMutexKey() string
func (*ComputeSubnetworkIamUpdater) GetResourceIamPolicy ¶
func (u *ComputeSubnetworkIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
func (*ComputeSubnetworkIamUpdater) GetResourceId ¶
func (u *ComputeSubnetworkIamUpdater) GetResourceId() string
func (*ComputeSubnetworkIamUpdater) SetResourceIamPolicy ¶
func (u *ComputeSubnetworkIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
type ContainerOperationWaiter ¶
type ContainerOperationWaiter struct { Service *container.Service Op *container.Operation Project string Location string }
func (*ContainerOperationWaiter) Error ¶
func (w *ContainerOperationWaiter) Error() error
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 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) 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 (w *DataprocJobOperationWaiter) State() string
func (*DataprocJobOperationWaiter) TargetStates ¶
func (w *DataprocJobOperationWaiter) TargetStates() []string
type DnsChangeWaiter ¶
type DnsChangeWaiter struct { Service *dns.Service Change *dns.Change Project string ManagedZone string }
func (*DnsChangeWaiter) Conf ¶
func (w *DnsChangeWaiter) Conf() *resource.StateChangeConf
func (*DnsChangeWaiter) RefreshFunc ¶
func (w *DnsChangeWaiter) RefreshFunc() resource.StateRefreshFunc
type FolderIamUpdater ¶
type FolderIamUpdater struct { Config *Config // contains filtered or unexported fields }
func (*FolderIamUpdater) DescribeResource ¶
func (u *FolderIamUpdater) DescribeResource() string
func (*FolderIamUpdater) GetMutexKey ¶
func (u *FolderIamUpdater) GetMutexKey() string
func (*FolderIamUpdater) GetResourceIamPolicy ¶
func (u *FolderIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
func (*FolderIamUpdater) GetResourceId ¶
func (u *FolderIamUpdater) GetResourceId() string
func (*FolderIamUpdater) SetResourceIamPolicy ¶
func (u *FolderIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
type FolderLoggingExclusionUpdater ¶
type FolderLoggingExclusionUpdater struct { Config *Config // contains filtered or unexported fields }
func (*FolderLoggingExclusionUpdater) CreateLoggingExclusion ¶
func (u *FolderLoggingExclusionUpdater) CreateLoggingExclusion(parent string, exclusion *logging.LogExclusion) error
func (*FolderLoggingExclusionUpdater) DeleteLoggingExclusion ¶
func (u *FolderLoggingExclusionUpdater) DeleteLoggingExclusion(id string) error
func (*FolderLoggingExclusionUpdater) DescribeResource ¶
func (u *FolderLoggingExclusionUpdater) DescribeResource() string
func (*FolderLoggingExclusionUpdater) GetResourceId ¶
func (u *FolderLoggingExclusionUpdater) GetResourceId() string
func (*FolderLoggingExclusionUpdater) GetResourceType ¶
func (u *FolderLoggingExclusionUpdater) GetResourceType() string
func (*FolderLoggingExclusionUpdater) ReadLoggingExclusion ¶
func (u *FolderLoggingExclusionUpdater) ReadLoggingExclusion(id string) (*logging.LogExclusion, error)
func (*FolderLoggingExclusionUpdater) UpdateLoggingExclusion ¶
func (u *FolderLoggingExclusionUpdater) UpdateLoggingExclusion(id string, exclusion *logging.LogExclusion, updateMask string) error
type GlobalFieldValue ¶
type GlobalFieldValue struct { Project string Name string // contains filtered or unexported fields }
func ParseHttpHealthCheckFieldValue ¶
func ParseHttpHealthCheckFieldValue(healthCheck string, d TerraformResourceData, config *Config) (*GlobalFieldValue, error)
func ParseInstanceTemplateFieldValue ¶
func ParseInstanceTemplateFieldValue(instanceTemplate string, d TerraformResourceData, config *Config) (*GlobalFieldValue, error)
func ParseNetworkFieldValue ¶
func ParseNetworkFieldValue(network string, d TerraformResourceData, config *Config) (*GlobalFieldValue, error)
func ParseSecurityPolicyFieldValue ¶
func ParseSecurityPolicyFieldValue(securityPolicy string, d TerraformResourceData, config *Config) (*GlobalFieldValue, error)
func ParseSslCertificateFieldValue ¶
func ParseSslCertificateFieldValue(sslCertificate string, d TerraformResourceData, config *Config) (*GlobalFieldValue, error)
func (GlobalFieldValue) RelativeLink ¶
func (f GlobalFieldValue) RelativeLink() string
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 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 OrganizationFieldValue ¶
type OrganizationFieldValue struct { OrgId string Name string // contains filtered or unexported fields }
func ParseOrganizationCustomRoleName ¶
func ParseOrganizationCustomRoleName(role string) (*OrganizationFieldValue, error)
func (OrganizationFieldValue) RelativeLink ¶
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 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 RegionalFieldValue ¶
type RegionalFieldValue struct { Project string Region string Name string // contains filtered or unexported fields }
func ParseRegionDiskFieldValue ¶
func ParseRegionDiskFieldValue(disk string, d TerraformResourceData, config *Config) (*RegionalFieldValue, error)
func ParseSubnetworkFieldValue ¶
func ParseSubnetworkFieldValue(subnetwork string, d TerraformResourceData, config *Config) (*RegionalFieldValue, error)
func ParseSubnetworkFieldValueWithProjectField ¶
func ParseSubnetworkFieldValueWithProjectField(subnetwork, projectField string, d TerraformResourceData, config *Config) (*RegionalFieldValue, error)
func (RegionalFieldValue) RelativeLink ¶
func (f RegionalFieldValue) RelativeLink() string
type ResourceDataMock ¶
type ResourceDataMock struct { FieldsInSchema map[string]interface{} FieldsWithHasChange []string // contains filtered or unexported fields }
func (*ResourceDataMock) Get ¶
func (d *ResourceDataMock) Get(key string) interface{}
func (*ResourceDataMock) GetOk ¶
func (d *ResourceDataMock) GetOk(key string) (interface{}, bool)
func (*ResourceDataMock) GetOkExists ¶
func (d *ResourceDataMock) GetOkExists(key string) (interface{}, bool)
func (*ResourceDataMock) HasChange ¶
func (d *ResourceDataMock) HasChange(key string) bool
func (*ResourceDataMock) Id ¶
func (d *ResourceDataMock) Id() string
func (*ResourceDataMock) Set ¶
func (d *ResourceDataMock) Set(key string, value interface{}) error
func (*ResourceDataMock) SetId ¶
func (d *ResourceDataMock) SetId(v string)
type ResourceDiffMock ¶
type ResourceDiffMock struct { Before map[string]interface{} After map[string]interface{} Cleared map[string]struct{} }
func (*ResourceDiffMock) Clear ¶
func (d *ResourceDiffMock) Clear(key string) error
func (*ResourceDiffMock) GetChange ¶
func (d *ResourceDiffMock) GetChange(key string) (interface{}, interface{})
type ResourceIamUpdater ¶
type ResourceIamUpdater interface { // Fetch the existing IAM policy attached to a resource. GetResourceIamPolicy() (*cloudresourcemanager.Policy, error) // Replaces the existing IAM Policy attached to a resource. SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error // A mutex guards against concurrent to call to the SetResourceIamPolicy method. // The mutex key should be made of the resource type and resource id. // For example: `iam-project-{id}`. GetMutexKey() string // Returns the unique resource identifier. GetResourceId() string // Textual description of this resource to be used in error message. // The description should include the unique resource identifier. DescribeResource() string }
The ResourceIamUpdater interface is implemented for each GCP resource supporting IAM policy.
Implementations should keep track of the resource identifier.
func NewBillingAccountIamUpdater ¶
func NewBillingAccountIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)
func NewComputeSubnetworkIamUpdater ¶
func NewComputeSubnetworkIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)
func NewDataprocClusterUpdater ¶
func NewDataprocClusterUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)
func NewDataprocJobUpdater ¶
func NewDataprocJobUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)
func NewFolderIamUpdater ¶
func NewFolderIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)
func NewKmsCryptoKeyIamUpdater ¶
func NewKmsCryptoKeyIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)
func NewKmsKeyRingIamUpdater ¶
func NewKmsKeyRingIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)
func NewOrganizationIamUpdater ¶
func NewOrganizationIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)
func NewProjectIamUpdater ¶
func NewProjectIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)
func NewPubsubSubscriptionIamUpdater ¶
func NewPubsubSubscriptionIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)
func NewPubsubTopicIamUpdater ¶
func NewPubsubTopicIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)
func NewServiceAccountIamUpdater ¶
func NewServiceAccountIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)
func NewSpannerDatabaseIamUpdater ¶
func NewSpannerDatabaseIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)
func NewSpannerInstanceIamUpdater ¶
func NewSpannerInstanceIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)
func NewStorageBucketIamUpdater ¶
func NewStorageBucketIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpdater, error)
type ServiceAccountIamUpdater ¶
type ServiceAccountIamUpdater struct { Config *Config // contains filtered or unexported fields }
func (*ServiceAccountIamUpdater) DescribeResource ¶
func (u *ServiceAccountIamUpdater) DescribeResource() string
func (*ServiceAccountIamUpdater) GetMutexKey ¶
func (u *ServiceAccountIamUpdater) GetMutexKey() string
func (*ServiceAccountIamUpdater) GetResourceIamPolicy ¶
func (u *ServiceAccountIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
func (*ServiceAccountIamUpdater) GetResourceId ¶
func (u *ServiceAccountIamUpdater) GetResourceId() string
func (*ServiceAccountIamUpdater) SetResourceIamPolicy ¶
func (u *ServiceAccountIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
type ServiceAccountKeyWaiter ¶
type ServiceAccountKeyWaiter struct { Service *iam.ProjectsServiceAccountsKeysService PublicKeyType string KeyName string }
func (*ServiceAccountKeyWaiter) RefreshFunc ¶
func (w *ServiceAccountKeyWaiter) RefreshFunc() resource.StateRefreshFunc
type ServiceManagementOperationWaiter ¶
type ServiceManagementOperationWaiter struct { Service *servicemanagement.APIService CommonOperationWaiter }
func (*ServiceManagementOperationWaiter) QueryOp ¶
func (w *ServiceManagementOperationWaiter) QueryOp() (interface{}, error)
type ServiceUsageOperationWaiter ¶
type ServiceUsageOperationWaiter struct { Service *serviceusage.Service CommonOperationWaiter }
func (*ServiceUsageOperationWaiter) QueryOp ¶
func (w *ServiceUsageOperationWaiter) QueryOp() (interface{}, error)
type SpannerDatabaseIamUpdater ¶
type SpannerDatabaseIamUpdater struct { Config *Config // contains filtered or unexported fields }
func (*SpannerDatabaseIamUpdater) DescribeResource ¶
func (u *SpannerDatabaseIamUpdater) DescribeResource() string
func (*SpannerDatabaseIamUpdater) GetMutexKey ¶
func (u *SpannerDatabaseIamUpdater) GetMutexKey() string
func (*SpannerDatabaseIamUpdater) GetResourceIamPolicy ¶
func (u *SpannerDatabaseIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
func (*SpannerDatabaseIamUpdater) GetResourceId ¶
func (u *SpannerDatabaseIamUpdater) GetResourceId() string
func (*SpannerDatabaseIamUpdater) SetResourceIamPolicy ¶
func (u *SpannerDatabaseIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
type SpannerInstanceIamUpdater ¶
type SpannerInstanceIamUpdater struct { Config *Config // contains filtered or unexported fields }
func (*SpannerInstanceIamUpdater) DescribeResource ¶
func (u *SpannerInstanceIamUpdater) DescribeResource() string
func (*SpannerInstanceIamUpdater) GetMutexKey ¶
func (u *SpannerInstanceIamUpdater) GetMutexKey() string
func (*SpannerInstanceIamUpdater) GetResourceIamPolicy ¶
func (u *SpannerInstanceIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
func (*SpannerInstanceIamUpdater) GetResourceId ¶
func (u *SpannerInstanceIamUpdater) GetResourceId() string
func (*SpannerInstanceIamUpdater) SetResourceIamPolicy ¶
func (u *SpannerInstanceIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
type SqlAdminOperationError ¶
type SqlAdminOperationError sqladmin.OperationErrors
SqlAdminOperationError wraps sqladmin.OperationError and implements the error interface so it can be returned.
func (SqlAdminOperationError) Error ¶
func (e SqlAdminOperationError) Error() string
type SqlAdminOperationWaiter ¶
type SqlAdminOperationWaiter struct { Service *sqladmin.Service Op *sqladmin.Operation Project string }
func (*SqlAdminOperationWaiter) Error ¶
func (w *SqlAdminOperationWaiter) Error() error
func (*SqlAdminOperationWaiter) OpName ¶
func (w *SqlAdminOperationWaiter) OpName() string
func (*SqlAdminOperationWaiter) PendingStates ¶
func (w *SqlAdminOperationWaiter) PendingStates() []string
func (*SqlAdminOperationWaiter) QueryOp ¶
func (w *SqlAdminOperationWaiter) QueryOp() (interface{}, error)
func (*SqlAdminOperationWaiter) SetOp ¶
func (w *SqlAdminOperationWaiter) SetOp(op interface{}) error
func (*SqlAdminOperationWaiter) State ¶
func (w *SqlAdminOperationWaiter) State() string
func (*SqlAdminOperationWaiter) TargetStates ¶
func (w *SqlAdminOperationWaiter) TargetStates() []string
type StorageBucketIamUpdater ¶
type StorageBucketIamUpdater struct { Config *Config // contains filtered or unexported fields }
func (*StorageBucketIamUpdater) DescribeResource ¶
func (u *StorageBucketIamUpdater) DescribeResource() string
func (*StorageBucketIamUpdater) GetMutexKey ¶
func (u *StorageBucketIamUpdater) GetMutexKey() string
func (*StorageBucketIamUpdater) GetResourceIamPolicy ¶
func (u *StorageBucketIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
func (*StorageBucketIamUpdater) GetResourceId ¶
func (u *StorageBucketIamUpdater) GetResourceId() string
func (*StorageBucketIamUpdater) SetResourceIamPolicy ¶
func (u *StorageBucketIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
type Waiter ¶
type Waiter interface { // State returns the current status of the operation. State() string // Error returns an error embedded in the operation we're waiting on, or nil // if the operation has no current error. Error() error // SetOp sets the operation we're waiting on in a Waiter struct so that it // can be used in other methods. SetOp(interface{}) error // QueryOp sends a request to the server to get the current status of the // operation. It's expected that QueryOp will return exactly one of an // operation or an error as non-nil, and that requests will be retried by // specific implementations of the method. QueryOp() (interface{}, error) // OpName is the name of the operation and is used to log its status. OpName() string // PendingStates contains the values of State() that cause us to continue // refreshing the operation. PendingStates() []string // TargetStates contain the values of State() that cause us to finish // refreshing the operation. TargetStates() []string }
type ZonalFieldValue ¶
type ZonalFieldValue struct { Project string Zone string Name string // contains filtered or unexported fields }
func ParseAcceleratorFieldValue ¶
func ParseAcceleratorFieldValue(accelerator string, d TerraformResourceData, config *Config) (*ZonalFieldValue, error)
func ParseDiskFieldValue ¶
func ParseDiskFieldValue(disk string, d TerraformResourceData, config *Config) (*ZonalFieldValue, error)
func ParseInstanceFieldValue ¶
func ParseInstanceFieldValue(instance string, d TerraformResourceData, config *Config) (*ZonalFieldValue, error)
func ParseInstanceGroupFieldValue ¶
func ParseInstanceGroupFieldValue(instanceGroup string, d TerraformResourceData, config *Config) (*ZonalFieldValue, error)
func ParseMachineTypesFieldValue ¶
func ParseMachineTypesFieldValue(machineType string, d TerraformResourceData, config *Config) (*ZonalFieldValue, error)
func (ZonalFieldValue) RelativeLink ¶
func (f ZonalFieldValue) RelativeLink() string
Source Files ¶
- appengine_operation.go
- bigtable_client_factory.go
- cloudfunctions_operation.go
- common_operation.go
- composer_operation.go
- compute_instance_helpers.go
- compute_operation.go
- compute_shared_operation.go
- container_operation.go
- convert.go
- dataproc_cluster_operation.go
- dataproc_job_operation.go
- datasource_helpers.go
- disk_type.go
- dns_change.go
- field_helpers.go
- iam.go
- iam_billing_account.go
- iam_compute_subnetwork.go
- iam_dataproc_cluster.go
- iam_dataproc_job.go
- iam_folder.go
- iam_kms_crypto_key.go
- iam_kms_key_ring.go
- iam_organization.go
- iam_project.go
- iam_pubsub_subscription.go
- iam_pubsub_topic.go
- iam_service_account.go
- iam_spanner_database.go
- iam_spanner_instance.go
- iam_storage_bucket.go
- image.go
- import.go
- kms_utils.go
- logging_exclusion_billing_account.go
- logging_exclusion_folder.go
- logging_exclusion_organization.go
- logging_exclusion_project.go
- logging_utils.go
- metadata.go
- pubsub_utils.go
- regional_utils.go
- self_link_helpers.go
- service_account_waiter.go
- service_scope.go
- serviceman_operation.go
- serviceusage_operation.go
- sqladmin_operation.go
- test_utils.go
- transport.go
- validation.go