google

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2018 License: MPL-2.0 Imports: 81 Imported by: 0

Documentation

Overview

Package google - implement CRUD operations for Container Registry Build Triggers https://cloud.google.com/container-builder/docs/api/reference/rest/v1/projects.triggers#BuildTrigger

Index

Constants

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])?))"
	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}[email protected] where PROJECT_ID is an int64 (max 20 digits)
	ComputeServiceAccountNameRegex = "[0-9]{1,20}[email protected]"
)
View Source
const FINGERPRINT_RETRIES = 10

Variables

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

	ServiceAccountLinkRegexPrefix = "projects/" + ProjectRegex + "/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}$"
)
View Source
var BillingAccountLoggingExclusionSchema = map[string]*schema.Schema{
	"billing_account": {
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},
}
View Source
var FINGERPRINT_FAIL_ERRORS = []string{"Invalid fingerprint.", "Supplied fingerprint does not match current metadata fingerprint."}
View Source
var FolderLoggingExclusionSchema = map[string]*schema.Schema{
	"folder": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: optionalPrefixSuppress("folders/"),
	},
}
View Source
var GeneratedBinaryAuthorizationResourcesMap = map[string]*schema.Resource{
	"google_binary_authorization_attestor": resourceBinaryAuthorizationAttestor(),
	"google_binary_authorization_policy":   resourceBinaryAuthorizationPolicy(),
}
View Source
var GeneratedComputeResourcesMap = map[string]*schema.Resource{
	"google_compute_address":                 resourceComputeAddress(),
	"google_compute_autoscaler":              resourceComputeAutoscaler(),
	"google_compute_backend_bucket":          resourceComputeBackendBucket(),
	"google_compute_disk":                    resourceComputeDisk(),
	"google_compute_firewall":                resourceComputeFirewall(),
	"google_compute_forwarding_rule":         resourceComputeForwardingRule(),
	"google_compute_global_address":          resourceComputeGlobalAddress(),
	"google_compute_http_health_check":       resourceComputeHttpHealthCheck(),
	"google_compute_https_health_check":      resourceComputeHttpsHealthCheck(),
	"google_compute_health_check":            resourceComputeHealthCheck(),
	"google_compute_interconnect_attachment": resourceComputeInterconnectAttachment(),
	"google_compute_region_autoscaler":       resourceComputeRegionAutoscaler(),
	"google_compute_region_disk":             resourceComputeRegionDisk(),
	"google_compute_route":                   resourceComputeRoute(),
	"google_compute_router":                  resourceComputeRouter(),
	"google_compute_snapshot":                resourceComputeSnapshot(),
	"google_compute_ssl_certificate":         resourceComputeSslCertificate(),
	"google_compute_ssl_policy":              resourceComputeSslPolicy(),
	"google_compute_subnetwork":              resourceComputeSubnetwork(),
	"google_compute_target_http_proxy":       resourceComputeTargetHttpProxy(),
	"google_compute_target_https_proxy":      resourceComputeTargetHttpsProxy(),
	"google_compute_target_ssl_proxy":        resourceComputeTargetSslProxy(),
	"google_compute_target_tcp_proxy":        resourceComputeTargetTcpProxy(),
	"google_compute_vpn_gateway":             resourceComputeVpnGateway(),
	"google_compute_vpn_tunnel":              resourceComputeVpnTunnel(),
}
View Source
var GeneratedContainerAnalysisResourcesMap = map[string]*schema.Resource{
	"google_container_analysis_note": resourceContainerAnalysisNote(),
}
View Source
var GeneratedFilestoreResourcesMap = map[string]*schema.Resource{
	"google_filestore_instance": resourceFilestoreInstance(),
}
View Source
var GeneratedMonitoringResourcesMap = map[string]*schema.Resource{
	"google_monitoring_alert_policy":         resourceMonitoringAlertPolicy(),
	"google_monitoring_group":                resourceMonitoringGroup(),
	"google_monitoring_notification_channel": resourceMonitoringNotificationChannel(),
	"google_monitoring_uptime_check_config":  resourceMonitoringUptimeCheckConfig(),
}
View Source
var GeneratedRedisResourcesMap = map[string]*schema.Resource{
	"google_redis_instance": resourceRedisInstance(),
}
View Source
var GeneratedResourceManagerResourcesMap = map[string]*schema.Resource{
	"google_resource_manager_lien": resourceResourceManagerLien(),
}
View Source
var GeneratedStorageResourcesMap = map[string]*schema.Resource{
	"google_storage_default_object_access_control": resourceStorageDefaultObjectAccessControl(),
}
View Source
var IamBillingAccountSchema = map[string]*schema.Schema{
	"billing_account_id": {
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},
}
View Source
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,
	},
}
View Source
var IamFolderSchema = map[string]*schema.Schema{
	"folder": {
		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,
	},
	"etag": {
		Type:     schema.TypeString,
		Computed: true,
	},
}
View Source
var IamOrganizationSchema = map[string]*schema.Schema{
	"org_id": {
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},
}
View Source
var IamPolicyBaseSchema = map[string]*schema.Schema{
	"policy_data": {
		Type:             schema.TypeString,
		Required:         true,
		DiffSuppressFunc: jsonPolicyDiffSuppress,
		ValidateFunc:     validateIamPolicy,
	},
	"etag": {
		Type:     schema.TypeString,
		Computed: true,
	},
}
View Source
var IamProjectSchema = map[string]*schema.Schema{
	"project": {
		Type:     schema.TypeString,
		Optional: true,
		ForceNew: true,
	},
}
View Source
var IamPubsubSubscriptionSchema = map[string]*schema.Schema{
	"subscription": &schema.Schema{
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: compareSelfLinkOrResourceName,
	},
	"project": &schema.Schema{
		Type:     schema.TypeString,
		Optional: true,
		Computed: true,
		ForceNew: true,
	},
}
View Source
var IamPubsubTopicSchema = map[string]*schema.Schema{
	"topic": &schema.Schema{
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: compareSelfLinkOrResourceName,
	},
	"project": &schema.Schema{
		Type:     schema.TypeString,
		Optional: true,
		Computed: true,
		ForceNew: true,
	},
}
View Source
var IamServiceAccountSchema = map[string]*schema.Schema{
	"service_account_id": &schema.Schema{
		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 IamStorageBucketSchema = map[string]*schema.Schema{
	"bucket": &schema.Schema{
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},
}
View Source
var LoggingExclusionBaseSchema = map[string]*schema.Schema{
	"filter": {
		Type:     schema.TypeString,
		Required: true,
	},
	"name": {
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},
	"description": {
		Type:     schema.TypeString,
		Optional: true,
	},
	"disabled": {
		Type:     schema.TypeBool,
		Optional: true,
	},
}
View Source
var 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,
	},
}

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 added in v1.20.0

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

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 ConvertSelfLinkToV1(link string) string

func CryptoIdParseFunc

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

func FolderIdParseFunc

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

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

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

func ProjectIdParseFunc

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

func Provider

func Provider() terraform.ResourceProvider

Provider returns a terraform.ResourceProvider.

func PubsubSubscriptionIdParseFunc

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

func PubsubTopicIdParseFunc

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

func ResourceIamBinding

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

func ResourceIamBindingWithImport

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

func ResourceIamMember

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

func ResourceIamMemberWithImport

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

func ResourceIamPolicy

func ResourceIamPolicy(parentSpecificSchema map[string]*schema.Schema, newUpdaterFunc newResourceIamUpdaterFunc) *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 ResourceIamPolicyWithImport

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

func ResourceLoggingExclusion

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

func ServiceAccountIdParseFunc

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

func SignString

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

SignString calculates the SHA256 signature of the input string

func SpannerDatabaseIdParseFunc

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

func SpannerInstanceIdParseFunc

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

func StoreResourceName

func StoreResourceName(resourceLink interface{}) string

Types

type AppEngineOperationError

type AppEngineOperationError appengine.Status

AppEngineOperationError wraps appengine.Status and implements the error interface so it can be returned.

func (AppEngineOperationError) Error

func (e AppEngineOperationError) Error() string

type AppEngineOperationWaiter

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

func (*AppEngineOperationWaiter) Conf

func (*AppEngineOperationWaiter) RefreshFunc

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 added in v1.20.0

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

func (*BillingAccountIamUpdater) DescribeResource added in v1.20.0

func (u *BillingAccountIamUpdater) DescribeResource() string

func (*BillingAccountIamUpdater) GetMutexKey added in v1.20.0

func (u *BillingAccountIamUpdater) GetMutexKey() string

func (*BillingAccountIamUpdater) GetResourceIamPolicy added in v1.20.0

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

func (*BillingAccountIamUpdater) GetResourceId added in v1.20.0

func (u *BillingAccountIamUpdater) GetResourceId() string

func (*BillingAccountIamUpdater) SetResourceIamPolicy added in v1.20.0

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
	Op      *cloudfunctions.Operation
}

func (*CloudFunctionsOperationWaiter) Conf

func (*CloudFunctionsOperationWaiter) RefreshFunc

type ComposerOperationWaiter

type ComposerOperationWaiter struct {
	Service *composer.ProjectsLocationsService
	Op      *composer.Operation
}

func (*ComposerOperationWaiter) Conf

func (*ComposerOperationWaiter) RefreshFunc

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) Conf

func (*ComputeOperationWaiter) RefreshFunc

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 Config

type Config struct {
	Credentials string
	Project     string
	Region      string
	Zone        string
	// contains filtered or unexported fields
}

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

type ContainerBetaOperationWaiter

type ContainerBetaOperationWaiter struct {
	Service  *containerBeta.Service
	Op       *containerBeta.Operation
	Project  string
	Location string
}

func (*ContainerBetaOperationWaiter) Conf

func (*ContainerBetaOperationWaiter) RefreshFunc

type ContainerOperationWaiter

type ContainerOperationWaiter struct {
	Service *container.Service
	Op      *container.Operation
	Project string
	Zone    string
}

func (*ContainerOperationWaiter) Conf

func (*ContainerOperationWaiter) RefreshFunc

type DataprocClusterOperationWaiter

type DataprocClusterOperationWaiter struct {
	Service *dataproc.Service
	Op      *dataproc.Operation
}

func (*DataprocClusterOperationWaiter) Conf

func (*DataprocClusterOperationWaiter) RefreshFunc

type DataprocJobOperationWaiter

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

func (*DataprocJobOperationWaiter) Conf

func (*DataprocJobOperationWaiter) ConfForDelete

func (*DataprocJobOperationWaiter) RefreshFunc

func (*DataprocJobOperationWaiter) RefreshFuncForDelete

func (w *DataprocJobOperationWaiter) RefreshFuncForDelete() resource.StateRefreshFunc

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 DnsOperationWaiter

type DnsOperationWaiter struct {
	Service *dns.ManagedZoneOperationsService
	Op      *dns.Operation
	Project string
}

func (*DnsOperationWaiter) Conf

func (*DnsOperationWaiter) RefreshFunc

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

type FilestoreOperationWaiter

type FilestoreOperationWaiter struct {
	Service *file.ProjectsLocationsService
	Op      *file.Operation
}

func (*FilestoreOperationWaiter) Conf

func (*FilestoreOperationWaiter) RefreshFunc

type FolderIamUpdater

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

func (*FolderIamUpdater) DescribeResource

func (u *FolderIamUpdater) DescribeResource() string

func (*FolderIamUpdater) GetMutexKey

func (u *FolderIamUpdater) GetMutexKey() string

func (*FolderIamUpdater) GetResourceIamPolicy

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

func (*FolderIamUpdater) GetResourceId

func (u *FolderIamUpdater) GetResourceId() string

func (*FolderIamUpdater) SetResourceIamPolicy

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

type FolderLoggingExclusionUpdater

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

func (*FolderLoggingExclusionUpdater) CreateLoggingExclusion

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

func (*FolderLoggingExclusionUpdater) DeleteLoggingExclusion

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

func (*FolderLoggingExclusionUpdater) DescribeResource

func (u *FolderLoggingExclusionUpdater) DescribeResource() string

func (*FolderLoggingExclusionUpdater) GetResourceId

func (u *FolderLoggingExclusionUpdater) GetResourceId() string

func (*FolderLoggingExclusionUpdater) GetResourceType

func (u *FolderLoggingExclusionUpdater) GetResourceType() string

func (*FolderLoggingExclusionUpdater) ReadLoggingExclusion

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

func (*FolderLoggingExclusionUpdater) UpdateLoggingExclusion

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

type GlobalFieldValue

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

func ParseHttpHealthCheckFieldValue

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

func ParseInstanceTemplateFieldValue

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

func ParseNetworkFieldValue

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

func ParseSecurityPolicyFieldValue

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

func ParseSslCertificateFieldValue

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

type 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 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 NodePoolInformation

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

type OrganizationFieldValue

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

func ParseOrganizationCustomRoleName

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

type OrganizationIamUpdater

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

func (*OrganizationIamUpdater) DescribeResource

func (u *OrganizationIamUpdater) DescribeResource() string

func (*OrganizationIamUpdater) GetMutexKey

func (u *OrganizationIamUpdater) GetMutexKey() string

func (*OrganizationIamUpdater) GetResourceIamPolicy

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

func (*OrganizationIamUpdater) GetResourceId

func (u *OrganizationIamUpdater) GetResourceId() string

func (*OrganizationIamUpdater) SetResourceIamPolicy

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

type OrganizationLoggingExclusionUpdater

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

func (*OrganizationLoggingExclusionUpdater) CreateLoggingExclusion

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

func (*OrganizationLoggingExclusionUpdater) DeleteLoggingExclusion

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

func (*OrganizationLoggingExclusionUpdater) DescribeResource

func (u *OrganizationLoggingExclusionUpdater) DescribeResource() string

func (*OrganizationLoggingExclusionUpdater) GetResourceId

func (u *OrganizationLoggingExclusionUpdater) GetResourceId() string

func (*OrganizationLoggingExclusionUpdater) GetResourceType

func (u *OrganizationLoggingExclusionUpdater) GetResourceType() string

func (*OrganizationLoggingExclusionUpdater) ReadLoggingExclusion

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

func (*OrganizationLoggingExclusionUpdater) UpdateLoggingExclusion

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

type 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 {
	Service *redis.ProjectsLocationsService
	Op      *redis.Operation
}

func (*RedisOperationWaiter) Conf

func (*RedisOperationWaiter) RefreshFunc

type RegionalFieldValue

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

func ParseRegionDiskFieldValue

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

func ParseSubnetworkFieldValue

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

func ParseSubnetworkFieldValueWithProjectField

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

type ResourceDataMock

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

func (*ResourceDataMock) GetOk

func (d *ResourceDataMock) GetOk(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 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 added in v1.20.0

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

func NewComputeSubnetworkIamUpdater

func NewComputeSubnetworkIamUpdater(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 ResourceLoggingExclusionUpdater

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

	GetResourceType() string

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

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

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

Implementations should keep track of the resource identifier.

func NewBillingAccountLoggingExclusionUpdater

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

func NewFolderLoggingExclusionUpdater

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

func NewOrganizationLoggingExclusionUpdater

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

func NewProjectLoggingExclusionUpdater

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

type ResourceManagerOperationWaiter

type ResourceManagerOperationWaiter struct {
	Service *cloudresourcemanager.Service
	Op      *cloudresourcemanager.Operation
}

func (*ResourceManagerOperationWaiter) Conf

func (*ResourceManagerOperationWaiter) RefreshFunc

type RoleEntity

type RoleEntity struct {
	Role   string
	Entity string
}

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) Conf

func (*ServiceAccountKeyWaiter) RefreshFunc

type ServiceManagementOperationWaiter

type ServiceManagementOperationWaiter struct {
	Service *servicemanagement.APIService
	Op      *servicemanagement.Operation
}

func (*ServiceManagementOperationWaiter) Conf

func (*ServiceManagementOperationWaiter) RefreshFunc

type ServiceNetworkingOperationError added in v1.20.0

type ServiceNetworkingOperationError servicenetworking.Status

ServiceNetworkingOperationError wraps servicenetworking.Status and implements the error interface so it can be returned.

func (ServiceNetworkingOperationError) Error added in v1.20.0

type ServiceNetworkingOperationWaiter added in v1.20.0

type ServiceNetworkingOperationWaiter struct {
	Service *servicenetworking.APIService
	Op      *servicenetworking.Operation
}

func (*ServiceNetworkingOperationWaiter) Conf added in v1.20.0

func (*ServiceNetworkingOperationWaiter) RefreshFunc added in v1.20.0

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 SpannerDatabaseOperationWaiter

type SpannerDatabaseOperationWaiter struct {
	Service *spanner.Service
	Op      *spanner.Operation
}

func (*SpannerDatabaseOperationWaiter) Conf

func (*SpannerDatabaseOperationWaiter) RefreshFunc

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 SpannerInstanceOperationWaiter

type SpannerInstanceOperationWaiter struct {
	Service *spanner.Service
	Op      *spanner.Operation
}

func (*SpannerInstanceOperationWaiter) Conf

func (*SpannerInstanceOperationWaiter) RefreshFunc

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) Conf

func (*SqlAdminOperationWaiter) RefreshFunc

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 TerraformResourceData

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

type UrlData

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

UrlData stores the values required to create a Signed Url

func (*UrlData) EncodedSignature

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

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

func (*UrlData) Signature

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

func (*UrlData) SignedUrl

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

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

func (*UrlData) SigningString

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

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

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

type 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 ParseInstanceGroupFieldValue

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

func ParseMachineTypesFieldValue

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

Source Files

Jump to

Keyboard shortcuts

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