compute

package
v1.20.1-0...-a5f8abd Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: MPL-2.0 Imports: 41 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

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 ComputeBackendBucketIamSchema = 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 ComputeBackendServiceIamSchema = 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 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 ComputeInstanceTemplateIamSchema = 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 ComputeMachineImageIamSchema = map[string]*schema.Schema{
	"project": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"machine_image": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: tpgresource.CompareSelfLinkOrResourceName,
	},
}
View Source
var ComputeRegionBackendServiceIamSchema = 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 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 AbsoluteDomainSuppress ¶

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

For managed SSL certs, if new is an absolute FQDN (trailing '.') but old isn't, treat them as equals.

func AlwaysDiffSuppress ¶

func AlwaysDiffSuppress(_, _, _ string, _ *schema.ResourceData) bool

Suppress all diffs, used for Disk.Interface which is a nonfunctional field

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

func CheckForCommonAliasIp(old, new *compute.NetworkInterface) []*compute.AliasIpRange

Alias ip ranges cannot be removed and created at the same time. This checks if there are any unchanged alias ip ranges to be kept in between the PATCH operations on Network Interface

func CompareIpAddressOrSelfLinkOrResourceName ¶

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

Use this method when the field accepts either an IP address or a self_link referencing a resource (such as google_compute_route's next_hop_ilb)

func ComparePartnerMetadataDiff ¶

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

func ComputeBackendBucketIdParseFunc ¶

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

func ComputeBackendServiceIdParseFunc ¶

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

func ComputeDiskIdParseFunc ¶

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

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

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

func ComputeMachineImageIdParseFunc ¶

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

func ComputeOperationWaitTime ¶

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

func ComputeOrgOperationWaitTimeWithResponse ¶

func ComputeOrgOperationWaitTimeWithResponse(config *transport_tpg.Config, res interface{}, response *map[string]interface{}, parent, activity, userAgent string, timeout time.Duration) error

func ComputeRegionBackendServiceIdParseFunc ¶

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

func ComputeRegionDiskIdParseFunc ¶

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

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

func DataSourceGoogleComputeInstanceGuestAttributes() *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 DataSourceGoogleComputeRegionInstanceGroupManager ¶

func DataSourceGoogleComputeRegionInstanceGroupManager() *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 DataSourceGoogleComputeSecurityPolicy ¶

func DataSourceGoogleComputeSecurityPolicy() *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 DataSourceGoogleComputeSubnetworks ¶

func DataSourceGoogleComputeSubnetworks() *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 ExpandStoragePoolUrl ¶

func ExpandStoragePoolUrl(v interface{}, d tpgresource.TerraformResourceData, config *transport_tpg.Config) (string, error)

ExpandStoragePoolUrl returns a full self link from a partial self link.

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

func GetRelativePathFromRegions(resourceLink string) (string, error)

func HourlyFormatSuppressDiff ¶

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

Suppresses a diff on cases like 1:00 when it should be 01:00. Because API will normalize this value

func InterconnectTypeDiffSuppress ¶

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

func InternalIpDiffSuppress ¶

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

Suppresses diff for IPv4 and IPv6 different formats. It also suppresses diffs if an IP is changing to a reference.

func IpCidrRangeDiffSuppress ¶

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

func IpCollectionDiffSuppress ¶

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

Compare only the relative path from 'regions' of two IP collection links

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

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

Port range '80' and '80-80' is equivalent. `old` is read from the server and always has the full range format (e.g. '80-80', '1024-2048'). `new` can be either a single port or a port range.

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

func ResourceComputeFirewallPolicyWithRules() *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 ResourceComputeHaVpnGatewayUpgradeV0 ¶

func ResourceComputeHaVpnGatewayUpgradeV0(_ context.Context, rawState map[string]interface{}, meta interface{}) (map[string]interface{}, error)

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

func ResourceComputeInstanceFromMachineImage() *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 ResourceComputeInstanceSettings ¶

func ResourceComputeInstanceSettings() *schema.Resource

func ResourceComputeInstanceTemplate ¶

func ResourceComputeInstanceTemplate() *schema.Resource

func ResourceComputeInterconnect ¶

func ResourceComputeInterconnect() *schema.Resource

func ResourceComputeInterconnectAttachment ¶

func ResourceComputeInterconnectAttachment() *schema.Resource

func ResourceComputeMachineImage ¶

func ResourceComputeMachineImage() *schema.Resource

func ResourceComputeManagedSslCertificate ¶

func ResourceComputeManagedSslCertificate() *schema.Resource

func ResourceComputeNetwork ¶

func ResourceComputeNetwork() *schema.Resource

func ResourceComputeNetworkAttachment ¶

func ResourceComputeNetworkAttachment() *schema.Resource

func ResourceComputeNetworkEdgeSecurityService ¶

func ResourceComputeNetworkEdgeSecurityService() *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 ResourceComputeNetworkFirewallPolicyPacketMirroringRule ¶

func ResourceComputeNetworkFirewallPolicyPacketMirroringRule() *schema.Resource

func ResourceComputeNetworkFirewallPolicyRule ¶

func ResourceComputeNetworkFirewallPolicyRule() *schema.Resource

func ResourceComputeNetworkFirewallPolicyWithRules ¶

func ResourceComputeNetworkFirewallPolicyWithRules() *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 ResourceComputeOrganizationSecurityPolicy ¶

func ResourceComputeOrganizationSecurityPolicy() *schema.Resource

func ResourceComputeOrganizationSecurityPolicyAssociation ¶

func ResourceComputeOrganizationSecurityPolicyAssociation() *schema.Resource

func ResourceComputeOrganizationSecurityPolicyRule ¶

func ResourceComputeOrganizationSecurityPolicyRule() *schema.Resource

func ResourceComputePacketMirroring ¶

func ResourceComputePacketMirroring() *schema.Resource

func ResourceComputePerInstanceConfig ¶

func ResourceComputePerInstanceConfig() *schema.Resource

func ResourceComputeProjectCloudArmorTier ¶

func ResourceComputeProjectCloudArmorTier() *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 ResourceComputeRegionNetworkFirewallPolicyWithRules ¶

func ResourceComputeRegionNetworkFirewallPolicyWithRules() *schema.Resource

func ResourceComputeRegionPerInstanceConfig ¶

func ResourceComputeRegionPerInstanceConfig() *schema.Resource

func ResourceComputeRegionResizeRequest ¶

func ResourceComputeRegionResizeRequest() *schema.Resource

func ResourceComputeRegionSecurityPolicy ¶

func ResourceComputeRegionSecurityPolicy() *schema.Resource

func ResourceComputeRegionSecurityPolicyRule ¶

func ResourceComputeRegionSecurityPolicyRule() *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 ResourceComputeResizeRequest ¶

func ResourceComputeResizeRequest() *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 ResourceComputeRouterNatAddress ¶

func ResourceComputeRouterNatAddress() *schema.Resource

func ResourceComputeRouterRoutePolicy ¶

func ResourceComputeRouterRoutePolicy() *schema.Resource

func ResourceComputeSecurityPolicy ¶

func ResourceComputeSecurityPolicy() *schema.Resource

func ResourceComputeSecurityPolicyRule ¶

func ResourceComputeSecurityPolicyRule() *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

func ValidateSubnetworkProjectFunc ¶

func ValidateSubnetworkProjectFunc(d tpgresource.TerraformResourceDiff) error

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

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

func (*ComputeBackendBucketIamUpdater) DescribeResource ¶

func (u *ComputeBackendBucketIamUpdater) DescribeResource() string

func (*ComputeBackendBucketIamUpdater) GetMutexKey ¶

func (u *ComputeBackendBucketIamUpdater) GetMutexKey() string

func (*ComputeBackendBucketIamUpdater) GetResourceIamPolicy ¶

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

func (*ComputeBackendBucketIamUpdater) GetResourceId ¶

func (u *ComputeBackendBucketIamUpdater) GetResourceId() string

func (*ComputeBackendBucketIamUpdater) SetResourceIamPolicy ¶

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

type ComputeBackendServiceIamUpdater ¶

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

func (*ComputeBackendServiceIamUpdater) DescribeResource ¶

func (u *ComputeBackendServiceIamUpdater) DescribeResource() string

func (*ComputeBackendServiceIamUpdater) GetMutexKey ¶

func (u *ComputeBackendServiceIamUpdater) GetMutexKey() string

func (*ComputeBackendServiceIamUpdater) GetResourceIamPolicy ¶

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

func (*ComputeBackendServiceIamUpdater) GetResourceId ¶

func (u *ComputeBackendServiceIamUpdater) GetResourceId() string

func (*ComputeBackendServiceIamUpdater) SetResourceIamPolicy ¶

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

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

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

func (*ComputeInstanceTemplateIamUpdater) DescribeResource ¶

func (u *ComputeInstanceTemplateIamUpdater) DescribeResource() string

func (*ComputeInstanceTemplateIamUpdater) GetMutexKey ¶

func (u *ComputeInstanceTemplateIamUpdater) GetMutexKey() string

func (*ComputeInstanceTemplateIamUpdater) GetResourceIamPolicy ¶

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

func (*ComputeInstanceTemplateIamUpdater) GetResourceId ¶

func (u *ComputeInstanceTemplateIamUpdater) GetResourceId() string

func (*ComputeInstanceTemplateIamUpdater) SetResourceIamPolicy ¶

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

type ComputeMachineImageIamUpdater ¶

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

func (*ComputeMachineImageIamUpdater) DescribeResource ¶

func (u *ComputeMachineImageIamUpdater) DescribeResource() string

func (*ComputeMachineImageIamUpdater) GetMutexKey ¶

func (u *ComputeMachineImageIamUpdater) GetMutexKey() string

func (*ComputeMachineImageIamUpdater) GetResourceIamPolicy ¶

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

func (*ComputeMachineImageIamUpdater) GetResourceId ¶

func (u *ComputeMachineImageIamUpdater) GetResourceId() string

func (*ComputeMachineImageIamUpdater) SetResourceIamPolicy ¶

func (u *ComputeMachineImageIamUpdater) 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
	Parent  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 ComputeRegionBackendServiceIamUpdater ¶

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

func (*ComputeRegionBackendServiceIamUpdater) DescribeResource ¶

func (u *ComputeRegionBackendServiceIamUpdater) DescribeResource() string

func (*ComputeRegionBackendServiceIamUpdater) GetMutexKey ¶

func (*ComputeRegionBackendServiceIamUpdater) GetResourceIamPolicy ¶

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

func (*ComputeRegionBackendServiceIamUpdater) GetResourceId ¶

func (u *ComputeRegionBackendServiceIamUpdater) GetResourceId() string

func (*ComputeRegionBackendServiceIamUpdater) SetResourceIamPolicy ¶

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

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