Documentation ¶
Index ¶
- Variables
- func DataSourceComputeNetworkPeering() *schema.Resource
- func DataSourceGoogleComputeAddress() *schema.Resource
- func DataSourceGoogleComputeBackendBucket() *schema.Resource
- func DataSourceGoogleComputeBackendService() *schema.Resource
- func DataSourceGoogleComputeDefaultServiceAccount() *schema.Resource
- func DataSourceGoogleComputeDisk() *schema.Resource
- func DataSourceGoogleComputeForwardingRule() *schema.Resource
- func DataSourceGoogleComputeGlobalAddress() *schema.Resource
- func DataSourceGoogleComputeGlobalForwardingRule() *schema.Resource
- func DataSourceGoogleComputeHaVpnGateway() *schema.Resource
- func DataSourceGoogleComputeHealthCheck() *schema.Resource
- func DataSourceGoogleComputeInstanceGroup() *schema.Resource
- func DataSourceGoogleComputeInstanceGroupManager() *schema.Resource
- func DataSourceGoogleComputeInstanceSerialPort() *schema.Resource
- func DataSourceGoogleComputeLbIpRanges() *schema.Resource
- func DataSourceGoogleComputeNetwork() *schema.Resource
- func DataSourceGoogleComputeNetworkEndpointGroup() *schema.Resource
- func DataSourceGoogleComputeNetworks() *schema.Resource
- func DataSourceGoogleComputeRegionDisk() *schema.Resource
- func DataSourceGoogleComputeRegionNetworkEndpointGroup() *schema.Resource
- func DataSourceGoogleComputeReservation() *schema.Resource
- func DataSourceGoogleComputeRouter() *schema.Resource
- func DataSourceGoogleComputeRouterNat() *schema.Resource
- func DataSourceGoogleComputeSslCertificate() *schema.Resource
- func DataSourceGoogleComputeSslPolicy() *schema.Resource
- func DataSourceGoogleRegionComputeSslCertificate() *schema.Resource
- func PollCheckInstanceConfigDeleted(resp map[string]interface{}, respErr error) transport_tpg.PollResult
- func PollCheckInstanceConfigInstanceDeleted(resp map[string]interface{}, respErr error) transport_tpg.PollResult
- func ResolveImage(c *transport_tpg.Config, project, name, userAgent string) (string, error)
- func ResourceComputeSharedVpcHostProject() *schema.Resource
- type ComputeAddressId
Constants ¶
This section is empty.
Variables ¶
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
Functions ¶
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}
Types ¶
type ComputeAddressId ¶
func ParseComputeAddressId ¶
func ParseComputeAddressId(id string, config *transport_tpg.Config) (*ComputeAddressId, error)
func (ComputeAddressId) CanonicalId ¶
func (s ComputeAddressId) CanonicalId() string
Source Files ¶
- data_source_compute_health_check.go
- data_source_compute_lb_ip_ranges.go
- data_source_compute_network_endpoint_group.go
- data_source_compute_network_peering.go
- data_source_google_compute_address.go
- data_source_google_compute_backend_bucket.go
- data_source_google_compute_backend_service.go
- data_source_google_compute_default_service_account.go
- data_source_google_compute_disk.go
- data_source_google_compute_forwarding_rule.go
- data_source_google_compute_global_address.go
- data_source_google_compute_ha_vpn_gateway.go
- data_source_google_compute_instance_group.go
- data_source_google_compute_instance_group_manager.go
- data_source_google_compute_instance_serial_port.go
- data_source_google_compute_network.go
- data_source_google_compute_networks.go
- data_source_google_compute_region_disk.go
- data_source_google_compute_region_network_endpoint_group.go
- data_source_google_compute_region_ssl_certificate.go
- data_source_google_compute_reservation.go
- data_source_google_compute_router.go
- data_source_google_compute_router_nat.go
- data_source_google_compute_ssl_certificate.go
- data_source_google_compute_ssl_policy.go
- data_source_google_global_compute_forwarding_rule.go
- disk_type.go
- image.go
- resource_compute_disk_sweeper.go
- resource_compute_firewall_migrate.go
- resource_compute_instance_group_manager_sweeper.go
- resource_compute_instance_group_migrate.go
- resource_compute_instance_sweeper.go
- resource_compute_instance_template_migrate.go
- resource_compute_instance_template_sweeper.go
- resource_compute_region_instance_group_manager_sweeper.go
- resource_compute_router_peer_sweeper.go
- resource_compute_shared_vpc_host_project.go
- stateful_mig_polling.go