compute

package
v0.0.0-...-7c00c02 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MPL-2.0 Imports: 40 Imported by: 0

Documentation ¶

Overview ¶

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Index ¶

Constants ¶

This section is empty.

Variables ¶

View Source
var ComputeDiskIamSchema = map[string]*schema.Schema{
	"project": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"zone": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"name": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: tpgresource.CompareSelfLinkOrResourceName,
	},
}
View Source
var ComputeImageIamSchema = map[string]*schema.Schema{
	"project": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"image": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: tpgresource.CompareSelfLinkOrResourceName,
	},
}
View Source
var ComputeInstanceIamSchema = map[string]*schema.Schema{
	"project": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"zone": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"instance_name": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: tpgresource.CompareSelfLinkOrResourceName,
	},
}
View Source
var ComputeRegionDiskIamSchema = map[string]*schema.Schema{
	"project": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"region": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"name": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: tpgresource.CompareSelfLinkOrResourceName,
	},
}
View Source
var ComputeSnapshotIamSchema = map[string]*schema.Schema{
	"project": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"name": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: tpgresource.CompareSelfLinkOrResourceName,
	},
}
View Source
var ComputeSubnetworkIamSchema = map[string]*schema.Schema{
	"project": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"region": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"subnetwork": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: tpgresource.CompareSelfLinkOrResourceName,
	},
}
View Source
var DEFAULT_SCRATCH_DISK_SIZE_GB = 375
View Source
var ImageMap = map[string]string{
	"centos":      "centos-cloud",
	"coreos":      "coreos-cloud",
	"debian":      "debian-cloud",
	"opensuse":    "opensuse-cloud",
	"rhel":        "rhel-cloud",
	"rocky-linux": "rocky-linux-cloud",
	"sles":        "suse-cloud",
	"ubuntu":      "ubuntu-os-cloud",
	"windows":     "windows-cloud",
	"windows-sql": "windows-sql-cloud",
}

built-in projects to look for images/families containing the string on the left in

View Source
var VALID_SCRATCH_DISK_SIZES_GB [2]int = [2]int{375, 3000}

Functions ¶

func BetaMetadataUpdate ¶

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

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

func ComputeDiskIdParseFunc ¶

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

func ComputeFirewallPolicyRuleMatchLayer4ConfigsSchema ¶

func ComputeFirewallPolicyRuleMatchLayer4ConfigsSchema() *schema.Resource

func ComputeFirewallPolicyRuleMatchSchema ¶

func ComputeFirewallPolicyRuleMatchSchema() *schema.Resource

func ComputeImageIdParseFunc ¶

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

func ComputeInstanceIdParseFunc ¶

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

func ComputeInstanceMinCpuPlatformEmptyOrAutomaticDiffSuppress ¶

func ComputeInstanceMinCpuPlatformEmptyOrAutomaticDiffSuppress(k, old, new string, d *schema.ResourceData) bool

User may specify AUTOMATIC using any case; the API will accept it and return an empty string.

func ComputeNetworkFirewallPolicyRuleMatchLayer4ConfigsSchema ¶

func ComputeNetworkFirewallPolicyRuleMatchLayer4ConfigsSchema() *schema.Resource

func ComputeNetworkFirewallPolicyRuleMatchSchema ¶

func ComputeNetworkFirewallPolicyRuleMatchSchema() *schema.Resource

func ComputeNetworkFirewallPolicyRuleMatchSrcSecureTagsSchema ¶

func ComputeNetworkFirewallPolicyRuleMatchSrcSecureTagsSchema() *schema.Resource

func ComputeNetworkFirewallPolicyRuleTargetSecureTagsSchema ¶

func ComputeNetworkFirewallPolicyRuleTargetSecureTagsSchema() *schema.Resource

func ComputeOperationWaitTime ¶

func ComputeOperationWaitTime(config *transport_tpg.Config, res interface{}, project, activity, userAgent string, timeout time.Duration) error

func ComputeRegionDiskIdParseFunc ¶

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

func ComputeRegionNetworkFirewallPolicyRuleMatchLayer4ConfigsSchema ¶

func ComputeRegionNetworkFirewallPolicyRuleMatchLayer4ConfigsSchema() *schema.Resource

func ComputeRegionNetworkFirewallPolicyRuleMatchSchema ¶

func ComputeRegionNetworkFirewallPolicyRuleMatchSchema() *schema.Resource

func ComputeRegionNetworkFirewallPolicyRuleMatchSrcSecureTagsSchema ¶

func ComputeRegionNetworkFirewallPolicyRuleMatchSrcSecureTagsSchema() *schema.Resource

func ComputeRegionNetworkFirewallPolicyRuleTargetSecureTagsSchema ¶

func ComputeRegionNetworkFirewallPolicyRuleTargetSecureTagsSchema() *schema.Resource

func ComputeSnapshotIdParseFunc ¶

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

func ComputeSubnetworkIdParseFunc ¶

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

func ConvertToUniqueIdWhenPresent ¶

func ConvertToUniqueIdWhenPresent(s string) string

func DataSourceComputeNetworkPeering ¶

func DataSourceComputeNetworkPeering() *schema.Resource

func DataSourceGoogleComputeAddress ¶

func DataSourceGoogleComputeAddress() *schema.Resource

func DataSourceGoogleComputeAddresses ¶

func DataSourceGoogleComputeAddresses() *schema.Resource

func DataSourceGoogleComputeBackendBucket ¶

func DataSourceGoogleComputeBackendBucket() *schema.Resource

func DataSourceGoogleComputeBackendService ¶

func DataSourceGoogleComputeBackendService() *schema.Resource

func DataSourceGoogleComputeDefaultServiceAccount ¶

func DataSourceGoogleComputeDefaultServiceAccount() *schema.Resource

func DataSourceGoogleComputeDisk ¶

func DataSourceGoogleComputeDisk() *schema.Resource

func DataSourceGoogleComputeForwardingRule ¶

func DataSourceGoogleComputeForwardingRule() *schema.Resource

func DataSourceGoogleComputeForwardingRules ¶

func DataSourceGoogleComputeForwardingRules() *schema.Resource

func DataSourceGoogleComputeGlobalAddress ¶

func DataSourceGoogleComputeGlobalAddress() *schema.Resource

func DataSourceGoogleComputeGlobalForwardingRule ¶

func DataSourceGoogleComputeGlobalForwardingRule() *schema.Resource

func DataSourceGoogleComputeHaVpnGateway ¶

func DataSourceGoogleComputeHaVpnGateway() *schema.Resource

func DataSourceGoogleComputeHealthCheck ¶

func DataSourceGoogleComputeHealthCheck() *schema.Resource

func DataSourceGoogleComputeImage ¶

func DataSourceGoogleComputeImage() *schema.Resource

func DataSourceGoogleComputeInstance ¶

func DataSourceGoogleComputeInstance() *schema.Resource

func DataSourceGoogleComputeInstanceGroup ¶

func DataSourceGoogleComputeInstanceGroup() *schema.Resource

func DataSourceGoogleComputeInstanceGroupManager ¶

func DataSourceGoogleComputeInstanceGroupManager() *schema.Resource

func DataSourceGoogleComputeInstanceSerialPort ¶

func DataSourceGoogleComputeInstanceSerialPort() *schema.Resource

func DataSourceGoogleComputeInstanceTemplate ¶

func DataSourceGoogleComputeInstanceTemplate() *schema.Resource

func DataSourceGoogleComputeLbIpRanges ¶

func DataSourceGoogleComputeLbIpRanges() *schema.Resource

func DataSourceGoogleComputeMachineTypes ¶

func DataSourceGoogleComputeMachineTypes() *schema.Resource

func DataSourceGoogleComputeNetwork ¶

func DataSourceGoogleComputeNetwork() *schema.Resource

func DataSourceGoogleComputeNetworkEndpointGroup ¶

func DataSourceGoogleComputeNetworkEndpointGroup() *schema.Resource

func DataSourceGoogleComputeNetworks ¶

func DataSourceGoogleComputeNetworks() *schema.Resource

func DataSourceGoogleComputeNodeTypes ¶

func DataSourceGoogleComputeNodeTypes() *schema.Resource

func DataSourceGoogleComputeRegionDisk ¶

func DataSourceGoogleComputeRegionDisk() *schema.Resource

func DataSourceGoogleComputeRegionInstanceGroup ¶

func DataSourceGoogleComputeRegionInstanceGroup() *schema.Resource

func DataSourceGoogleComputeRegionInstanceTemplate ¶

func DataSourceGoogleComputeRegionInstanceTemplate() *schema.Resource

func DataSourceGoogleComputeRegionNetworkEndpointGroup ¶

func DataSourceGoogleComputeRegionNetworkEndpointGroup() *schema.Resource

func DataSourceGoogleComputeRegions ¶

func DataSourceGoogleComputeRegions() *schema.Resource

func DataSourceGoogleComputeReservation ¶

func DataSourceGoogleComputeReservation() *schema.Resource

func DataSourceGoogleComputeResourcePolicy ¶

func DataSourceGoogleComputeResourcePolicy() *schema.Resource

func DataSourceGoogleComputeRouter ¶

func DataSourceGoogleComputeRouter() *schema.Resource

func DataSourceGoogleComputeRouterNat ¶

func DataSourceGoogleComputeRouterNat() *schema.Resource

func DataSourceGoogleComputeRouterStatus ¶

func DataSourceGoogleComputeRouterStatus() *schema.Resource

func DataSourceGoogleComputeSnapshot ¶

func DataSourceGoogleComputeSnapshot() *schema.Resource

func DataSourceGoogleComputeSslCertificate ¶

func DataSourceGoogleComputeSslCertificate() *schema.Resource

func DataSourceGoogleComputeSslPolicy ¶

func DataSourceGoogleComputeSslPolicy() *schema.Resource

func DataSourceGoogleComputeSubnetwork ¶

func DataSourceGoogleComputeSubnetwork() *schema.Resource

func DataSourceGoogleComputeVpnGateway ¶

func DataSourceGoogleComputeVpnGateway() *schema.Resource

func DataSourceGoogleComputeZones ¶

func DataSourceGoogleComputeZones() *schema.Resource

func DataSourceGoogleRegionComputeSslCertificate ¶

func DataSourceGoogleRegionComputeSslCertificate() *schema.Resource

func DiskImageDiffSuppress ¶

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

We cannot suppress the diff for the case when family name is not part of the image name since we can't make a network call in a DiffSuppressFunc.

func FindDiskByName ¶

func FindDiskByName(disks []*compute.AttachedDisk, id string) *compute.AttachedDisk

func FlattenMetadata ¶

func FlattenMetadata(metadata *compute.Metadata) map[string]interface{}

This function differs from flattenMetadataBeta only in that it takes compute.metadata rather than compute.metadata as an argument. It should be removed in favour of flattenMetadataBeta if/when all resources using it get beta support.

func IsDiskShrinkage ¶

func IsDiskShrinkage(_ context.Context, old, new, _ interface{}) bool

Is the new disk size smaller than the old one?

func IsShrinkageIpCidr ¶

func IsShrinkageIpCidr(_ context.Context, old, new, _ interface{}) bool

Whether the IP CIDR change shrinks the block.

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 NetworkEndpointsNetworkEndpointConvertToAny ¶

func NetworkEndpointsNetworkEndpointConvertToAny(endpoint NetworkEndpointsNetworkEndpoint) interface{}

func PollCheckInstanceConfigDeleted ¶

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

func PollCheckInstanceConfigInstanceDeleted ¶

func PollCheckInstanceConfigInstanceDeleted(resp map[string]interface{}, respErr error) transport_tpg.PollResult

func ResolveImage ¶

func ResolveImage(c *transport_tpg.Config, project, name, userAgent string) (string, error)

If the given name is a URL, return it. If it's in the form projects/{project}/global/images/{image}, return it If it's in the form projects/{project}/global/images/family/{family}, return it If it's in the form global/images/{image}, return it If it's in the form global/images/family/{family}, return it If it's in the form family/{family}, check if it's a family in the current project. If it is, return it as global/images/family/{family}.

If not, check if it could be a GCP-provided family, and if it exists. If it does, return it as projects/{project}/global/images/family/{family}.

If it's in the form {project}/{family-or-image}, check if it's an image in the named project. If it is, return it as projects/{project}/global/images/{image}.

If not, check if it's a family in the named project. If it is, return it as projects/{project}/global/images/family/{family}.

If it's in the form {family-or-image}, check if it's an image in the current project. If it is, return it as global/images/{image}.

If not, check if it could be a GCP-provided image, and if it exists. If it does, return it as projects/{project}/global/images/{image}.
If not, check if it's a family in the current project. If it is, return it as global/images/family/{family}.
If not, check if it could be a GCP-provided family, and if it exists. If it does, return it as projects/{project}/global/images/family/{family}

func ResourceComputeAddress ¶

func ResourceComputeAddress() *schema.Resource

func ResourceComputeAttachedDisk ¶

func ResourceComputeAttachedDisk() *schema.Resource

func ResourceComputeAutoscaler ¶

func ResourceComputeAutoscaler() *schema.Resource

func ResourceComputeBackendBucket ¶

func ResourceComputeBackendBucket() *schema.Resource

func ResourceComputeBackendBucketSignedUrlKey ¶

func ResourceComputeBackendBucketSignedUrlKey() *schema.Resource

func ResourceComputeBackendService ¶

func ResourceComputeBackendService() *schema.Resource

func ResourceComputeBackendServiceSignedUrlKey ¶

func ResourceComputeBackendServiceSignedUrlKey() *schema.Resource

func ResourceComputeDisk ¶

func ResourceComputeDisk() *schema.Resource

func ResourceComputeDiskAsyncReplication ¶

func ResourceComputeDiskAsyncReplication() *schema.Resource

func ResourceComputeDiskResourcePolicyAttachment ¶

func ResourceComputeDiskResourcePolicyAttachment() *schema.Resource

func ResourceComputeExternalVpnGateway ¶

func ResourceComputeExternalVpnGateway() *schema.Resource

func ResourceComputeFirewall ¶

func ResourceComputeFirewall() *schema.Resource

func ResourceComputeFirewallPolicy ¶

func ResourceComputeFirewallPolicy() *schema.Resource

func ResourceComputeFirewallPolicyAssociation ¶

func ResourceComputeFirewallPolicyAssociation() *schema.Resource

func ResourceComputeFirewallPolicyRule ¶

func ResourceComputeFirewallPolicyRule() *schema.Resource

func ResourceComputeForwardingRule ¶

func ResourceComputeForwardingRule() *schema.Resource

func ResourceComputeGlobalAddress ¶

func ResourceComputeGlobalAddress() *schema.Resource

func ResourceComputeGlobalForwardingRule ¶

func ResourceComputeGlobalForwardingRule() *schema.Resource

func ResourceComputeGlobalNetworkEndpoint ¶

func ResourceComputeGlobalNetworkEndpoint() *schema.Resource

func ResourceComputeGlobalNetworkEndpointGroup ¶

func ResourceComputeGlobalNetworkEndpointGroup() *schema.Resource

func ResourceComputeHaVpnGateway ¶

func ResourceComputeHaVpnGateway() *schema.Resource

func ResourceComputeHealthCheck ¶

func ResourceComputeHealthCheck() *schema.Resource

func ResourceComputeHttpHealthCheck ¶

func ResourceComputeHttpHealthCheck() *schema.Resource

func ResourceComputeHttpsHealthCheck ¶

func ResourceComputeHttpsHealthCheck() *schema.Resource

func ResourceComputeImage ¶

func ResourceComputeImage() *schema.Resource

func ResourceComputeInstance ¶

func ResourceComputeInstance() *schema.Resource

func ResourceComputeInstanceFromTemplate ¶

func ResourceComputeInstanceFromTemplate() *schema.Resource

func ResourceComputeInstanceGroup ¶

func ResourceComputeInstanceGroup() *schema.Resource

func ResourceComputeInstanceGroupManager ¶

func ResourceComputeInstanceGroupManager() *schema.Resource

func ResourceComputeInstanceGroupMembership ¶

func ResourceComputeInstanceGroupMembership() *schema.Resource

func ResourceComputeInstanceGroupNamedPort ¶

func ResourceComputeInstanceGroupNamedPort() *schema.Resource

func ResourceComputeInstanceMigrateState ¶

func ResourceComputeInstanceMigrateState(
	v int, is *terraform.InstanceState, meta interface{}) (*terraform.InstanceState, error)

func ResourceComputeInstanceTemplate ¶

func ResourceComputeInstanceTemplate() *schema.Resource

func ResourceComputeInterconnectAttachment ¶

func ResourceComputeInterconnectAttachment() *schema.Resource

func ResourceComputeManagedSslCertificate ¶

func ResourceComputeManagedSslCertificate() *schema.Resource

func ResourceComputeNetwork ¶

func ResourceComputeNetwork() *schema.Resource

func ResourceComputeNetworkEndpoint ¶

func ResourceComputeNetworkEndpoint() *schema.Resource

func ResourceComputeNetworkEndpointGroup ¶

func ResourceComputeNetworkEndpointGroup() *schema.Resource

func ResourceComputeNetworkEndpoints ¶

func ResourceComputeNetworkEndpoints() *schema.Resource

func ResourceComputeNetworkFirewallPolicy ¶

func ResourceComputeNetworkFirewallPolicy() *schema.Resource

func ResourceComputeNetworkFirewallPolicyAssociation ¶

func ResourceComputeNetworkFirewallPolicyAssociation() *schema.Resource

func ResourceComputeNetworkFirewallPolicyRule ¶

func ResourceComputeNetworkFirewallPolicyRule() *schema.Resource

func ResourceComputeNetworkPeering ¶

func ResourceComputeNetworkPeering() *schema.Resource

func ResourceComputeNetworkPeeringRoutesConfig ¶

func ResourceComputeNetworkPeeringRoutesConfig() *schema.Resource

func ResourceComputeNodeGroup ¶

func ResourceComputeNodeGroup() *schema.Resource

func ResourceComputeNodeTemplate ¶

func ResourceComputeNodeTemplate() *schema.Resource

func ResourceComputePacketMirroring ¶

func ResourceComputePacketMirroring() *schema.Resource

func ResourceComputePerInstanceConfig ¶

func ResourceComputePerInstanceConfig() *schema.Resource

func ResourceComputeProjectDefaultNetworkTier ¶

func ResourceComputeProjectDefaultNetworkTier() *schema.Resource

func ResourceComputeProjectMetadata ¶

func ResourceComputeProjectMetadata() *schema.Resource

func ResourceComputeProjectMetadataItem ¶

func ResourceComputeProjectMetadataItem() *schema.Resource

func ResourceComputePublicAdvertisedPrefix ¶

func ResourceComputePublicAdvertisedPrefix() *schema.Resource

func ResourceComputePublicDelegatedPrefix ¶

func ResourceComputePublicDelegatedPrefix() *schema.Resource

func ResourceComputeRegionAutoscaler ¶

func ResourceComputeRegionAutoscaler() *schema.Resource

func ResourceComputeRegionBackendService ¶

func ResourceComputeRegionBackendService() *schema.Resource

func ResourceComputeRegionCommitment ¶

func ResourceComputeRegionCommitment() *schema.Resource

func ResourceComputeRegionDisk ¶

func ResourceComputeRegionDisk() *schema.Resource

func ResourceComputeRegionDiskResourcePolicyAttachment ¶

func ResourceComputeRegionDiskResourcePolicyAttachment() *schema.Resource

func ResourceComputeRegionHealthCheck ¶

func ResourceComputeRegionHealthCheck() *schema.Resource

func ResourceComputeRegionInstanceGroupManager ¶

func ResourceComputeRegionInstanceGroupManager() *schema.Resource

func ResourceComputeRegionInstanceTemplate ¶

func ResourceComputeRegionInstanceTemplate() *schema.Resource

func ResourceComputeRegionNetworkEndpoint ¶

func ResourceComputeRegionNetworkEndpoint() *schema.Resource

func ResourceComputeRegionNetworkEndpointGroup ¶

func ResourceComputeRegionNetworkEndpointGroup() *schema.Resource

func ResourceComputeRegionNetworkFirewallPolicy ¶

func ResourceComputeRegionNetworkFirewallPolicy() *schema.Resource

func ResourceComputeRegionNetworkFirewallPolicyAssociation ¶

func ResourceComputeRegionNetworkFirewallPolicyAssociation() *schema.Resource

func ResourceComputeRegionNetworkFirewallPolicyRule ¶

func ResourceComputeRegionNetworkFirewallPolicyRule() *schema.Resource

func ResourceComputeRegionPerInstanceConfig ¶

func ResourceComputeRegionPerInstanceConfig() *schema.Resource

func ResourceComputeRegionSslCertificate ¶

func ResourceComputeRegionSslCertificate() *schema.Resource

func ResourceComputeRegionSslPolicy ¶

func ResourceComputeRegionSslPolicy() *schema.Resource

func ResourceComputeRegionTargetHttpProxy ¶

func ResourceComputeRegionTargetHttpProxy() *schema.Resource

func ResourceComputeRegionTargetHttpsProxy ¶

func ResourceComputeRegionTargetHttpsProxy() *schema.Resource

func ResourceComputeRegionTargetTcpProxy ¶

func ResourceComputeRegionTargetTcpProxy() *schema.Resource

func ResourceComputeRegionUrlMap ¶

func ResourceComputeRegionUrlMap() *schema.Resource

func ResourceComputeReservation ¶

func ResourceComputeReservation() *schema.Resource

func ResourceComputeResourcePolicy ¶

func ResourceComputeResourcePolicy() *schema.Resource

func ResourceComputeRoute ¶

func ResourceComputeRoute() *schema.Resource

func ResourceComputeRouter ¶

func ResourceComputeRouter() *schema.Resource

func ResourceComputeRouterBgpPeer ¶

func ResourceComputeRouterBgpPeer() *schema.Resource

func ResourceComputeRouterInterface ¶

func ResourceComputeRouterInterface() *schema.Resource

func ResourceComputeRouterNat ¶

func ResourceComputeRouterNat() *schema.Resource

func ResourceComputeSecurityPolicy ¶

func ResourceComputeSecurityPolicy() *schema.Resource

func ResourceComputeServiceAttachment ¶

func ResourceComputeServiceAttachment() *schema.Resource

func ResourceComputeSharedVpcHostProject ¶

func ResourceComputeSharedVpcHostProject() *schema.Resource

func ResourceComputeSharedVpcServiceProject ¶

func ResourceComputeSharedVpcServiceProject() *schema.Resource

func ResourceComputeSnapshot ¶

func ResourceComputeSnapshot() *schema.Resource

func ResourceComputeSslCertificate ¶

func ResourceComputeSslCertificate() *schema.Resource

func ResourceComputeSslPolicy ¶

func ResourceComputeSslPolicy() *schema.Resource

func ResourceComputeSubnetwork ¶

func ResourceComputeSubnetwork() *schema.Resource

func ResourceComputeTargetGrpcProxy ¶

func ResourceComputeTargetGrpcProxy() *schema.Resource

func ResourceComputeTargetHttpProxy ¶

func ResourceComputeTargetHttpProxy() *schema.Resource

func ResourceComputeTargetHttpsProxy ¶

func ResourceComputeTargetHttpsProxy() *schema.Resource

func ResourceComputeTargetInstance ¶

func ResourceComputeTargetInstance() *schema.Resource

func ResourceComputeTargetPool ¶

func ResourceComputeTargetPool() *schema.Resource

func ResourceComputeTargetSslProxy ¶

func ResourceComputeTargetSslProxy() *schema.Resource

func ResourceComputeTargetTcpProxy ¶

func ResourceComputeTargetTcpProxy() *schema.Resource

func ResourceComputeUrlMap ¶

func ResourceComputeUrlMap() *schema.Resource

func ResourceComputeVpnGateway ¶

func ResourceComputeVpnGateway() *schema.Resource

func ResourceComputeVpnTunnel ¶

func ResourceComputeVpnTunnel() *schema.Resource

func ResourceProjectUsageBucket ¶

func ResourceProjectUsageBucket() *schema.Resource

Types ¶

type ByCreationTimestamp ¶

type ByCreationTimestamp []*compute.InstanceTemplate

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

func (ByCreationTimestamp) Len ¶

func (a ByCreationTimestamp) Len() int

func (ByCreationTimestamp) Less ¶

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

func (ByCreationTimestamp) Swap ¶

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

type ByCreationTimestampOfSnapshot ¶

type ByCreationTimestampOfSnapshot []*compute.Snapshot

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

func (ByCreationTimestampOfSnapshot) Len ¶

func (ByCreationTimestampOfSnapshot) Less ¶

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

func (ByCreationTimestampOfSnapshot) Swap ¶

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

type ComputeAddressId ¶

type ComputeAddressId struct {
	Project string
	Region  string
	Name    string
}

func ParseComputeAddressId ¶

func ParseComputeAddressId(id string, config *transport_tpg.Config) (*ComputeAddressId, error)

func (ComputeAddressId) CanonicalId ¶

func (s ComputeAddressId) CanonicalId() string

type ComputeDiskIamUpdater ¶

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

func (*ComputeDiskIamUpdater) DescribeResource ¶

func (u *ComputeDiskIamUpdater) DescribeResource() string

func (*ComputeDiskIamUpdater) GetMutexKey ¶

func (u *ComputeDiskIamUpdater) GetMutexKey() string

func (*ComputeDiskIamUpdater) GetResourceIamPolicy ¶

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

func (*ComputeDiskIamUpdater) GetResourceId ¶

func (u *ComputeDiskIamUpdater) GetResourceId() string

func (*ComputeDiskIamUpdater) SetResourceIamPolicy ¶

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

type ComputeImageIamUpdater ¶

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

func (*ComputeImageIamUpdater) DescribeResource ¶

func (u *ComputeImageIamUpdater) DescribeResource() string

func (*ComputeImageIamUpdater) GetMutexKey ¶

func (u *ComputeImageIamUpdater) GetMutexKey() string

func (*ComputeImageIamUpdater) GetResourceIamPolicy ¶

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

func (*ComputeImageIamUpdater) GetResourceId ¶

func (u *ComputeImageIamUpdater) GetResourceId() string

func (*ComputeImageIamUpdater) SetResourceIamPolicy ¶

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

type ComputeInstanceIamUpdater ¶

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

func (*ComputeInstanceIamUpdater) DescribeResource ¶

func (u *ComputeInstanceIamUpdater) DescribeResource() string

func (*ComputeInstanceIamUpdater) GetMutexKey ¶

func (u *ComputeInstanceIamUpdater) GetMutexKey() string

func (*ComputeInstanceIamUpdater) GetResourceIamPolicy ¶

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

func (*ComputeInstanceIamUpdater) GetResourceId ¶

func (u *ComputeInstanceIamUpdater) GetResourceId() string

func (*ComputeInstanceIamUpdater) SetResourceIamPolicy ¶

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

type ComputeOperationError ¶

type ComputeOperationError compute.OperationError

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

func (ComputeOperationError) Error ¶

func (e ComputeOperationError) Error() string

type ComputeOperationWaiter ¶

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

func (*ComputeOperationWaiter) Error ¶

func (w *ComputeOperationWaiter) Error() error

func (*ComputeOperationWaiter) IsRetryable ¶

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

func (*ComputeOperationWaiter) OpName ¶

func (w *ComputeOperationWaiter) OpName() string

func (*ComputeOperationWaiter) PendingStates ¶

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

func (*ComputeOperationWaiter) QueryOp ¶

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

func (*ComputeOperationWaiter) SetOp ¶

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

func (*ComputeOperationWaiter) State ¶

func (w *ComputeOperationWaiter) State() string

func (*ComputeOperationWaiter) TargetStates ¶

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

type ComputeRegionDiskIamUpdater ¶

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

func (*ComputeRegionDiskIamUpdater) DescribeResource ¶

func (u *ComputeRegionDiskIamUpdater) DescribeResource() string

func (*ComputeRegionDiskIamUpdater) GetMutexKey ¶

func (u *ComputeRegionDiskIamUpdater) GetMutexKey() string

func (*ComputeRegionDiskIamUpdater) GetResourceIamPolicy ¶

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

func (*ComputeRegionDiskIamUpdater) GetResourceId ¶

func (u *ComputeRegionDiskIamUpdater) GetResourceId() string

func (*ComputeRegionDiskIamUpdater) SetResourceIamPolicy ¶

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

type ComputeSnapshotIamUpdater ¶

type ComputeSnapshotIamUpdater struct {
	Config *transport_tpg.Config
	// contains filtered or unexported fields
}

func (*ComputeSnapshotIamUpdater) DescribeResource ¶

func (u *ComputeSnapshotIamUpdater) DescribeResource() string

func (*ComputeSnapshotIamUpdater) GetMutexKey ¶

func (u *ComputeSnapshotIamUpdater) GetMutexKey() string

func (*ComputeSnapshotIamUpdater) GetResourceIamPolicy ¶

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

func (*ComputeSnapshotIamUpdater) GetResourceId ¶

func (u *ComputeSnapshotIamUpdater) GetResourceId() string

func (*ComputeSnapshotIamUpdater) SetResourceIamPolicy ¶

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

type ComputeSubnetworkIamUpdater ¶

type ComputeSubnetworkIamUpdater struct {
	Config *transport_tpg.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 NetworkEndpointsNetworkEndpoint ¶

type NetworkEndpointsNetworkEndpoint struct {
	IPAddress string
	Port      int
	Instance  string
}

func NetworkEndpointsNetworkEndpointConvertToStruct ¶

func NetworkEndpointsNetworkEndpointConvertToStruct(endpoint interface{}) NetworkEndpointsNetworkEndpoint

Source Files ¶

Jump to

Keyboard shortcuts

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