diff --git a/website/docs/r/compute_address.html.markdown b/website/docs/r/compute_address.html.markdown index 8b55b278..12355740 100644 --- a/website/docs/r/compute_address.html.markdown +++ b/website/docs/r/compute_address.html.markdown @@ -43,13 +43,27 @@ To get more information about Address, see: * [Reserving a Static External IP Address](https://cloud.google.com/compute/docs/instances-and-network) * [Reserving a Static Internal IP Address](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address) -## Example Usage +
+ + Open in Cloud Shell + +
+## Example Usage - Address Basic + ```hcl resource "google_compute_address" "ip_address" { name = "my-address" } ``` +
+ + Open in Cloud Shell + +
+## Example Usage - Address With Subnetwork + + ```hcl resource "google_compute_network" "default" { name = "my-network" @@ -70,6 +84,14 @@ resource "google_compute_address" "internal_with_subnet_and_address" { region = "us-central1" } ``` +
+ + Open in Cloud Shell + +
+## Example Usage - Instance With Ip + + ```hcl resource "google_compute_address" "static" { name = "ipv4-address" diff --git a/website/docs/r/compute_autoscaler.html.markdown b/website/docs/r/compute_autoscaler.html.markdown index e287880c..0a835a99 100644 --- a/website/docs/r/compute_autoscaler.html.markdown +++ b/website/docs/r/compute_autoscaler.html.markdown @@ -34,7 +34,13 @@ To get more information about Autoscaler, see: * How-to Guides * [Autoscaling Groups of Instances](https://cloud.google.com/compute/docs/autoscaler/) -## Example Usage +
+ + Open in Cloud Shell + +
+## Example Usage - Autoscaler Basic + ```hcl resource "google_compute_autoscaler" "foobar" { diff --git a/website/docs/r/compute_backend_bucket.html.markdown b/website/docs/r/compute_backend_bucket.html.markdown index 97387ccc..7af594d4 100644 --- a/website/docs/r/compute_backend_bucket.html.markdown +++ b/website/docs/r/compute_backend_bucket.html.markdown @@ -37,7 +37,13 @@ To get more information about BackendBucket, see: * How-to Guides * [Using a Cloud Storage bucket as a load balancer backend](https://cloud.google.com/compute/docs/load-balancing/http/backend-bucket) -## Example Usage +
+ + Open in Cloud Shell + +
+## Example Usage - Backend Bucket Basic + ```hcl resource "google_compute_backend_bucket" "image_backend" { diff --git a/website/docs/r/compute_disk.html.markdown b/website/docs/r/compute_disk.html.markdown index d0a8dc0c..67e933e9 100644 --- a/website/docs/r/compute_disk.html.markdown +++ b/website/docs/r/compute_disk.html.markdown @@ -49,7 +49,13 @@ To get more information about Disk, see: state as plain-text. [Read more about sensitive data in state](/docs/state/sensitive-data.html). -## Example Usage +
+ + Open in Cloud Shell + +
+## Example Usage - Disk Basic + ```hcl resource "google_compute_disk" "default" { diff --git a/website/docs/r/compute_firewall.html.markdown b/website/docs/r/compute_firewall.html.markdown index a0a9566a..34f6db65 100644 --- a/website/docs/r/compute_firewall.html.markdown +++ b/website/docs/r/compute_firewall.html.markdown @@ -42,7 +42,13 @@ To get more information about Firewall, see: * How-to Guides * [Official Documentation](https://cloud.google.com/vpc/docs/firewalls) -## Example Usage +
+ + Open in Cloud Shell + +
+## Example Usage - Firewall Basic + ```hcl resource "google_compute_firewall" "default" { diff --git a/website/docs/r/compute_forwarding_rule.html.markdown b/website/docs/r/compute_forwarding_rule.html.markdown index 51b7bf32..e32cb073 100644 --- a/website/docs/r/compute_forwarding_rule.html.markdown +++ b/website/docs/r/compute_forwarding_rule.html.markdown @@ -32,7 +32,13 @@ To get more information about ForwardingRule, see: * How-to Guides * [Official Documentation](https://cloud.google.com/compute/docs/load-balancing/network/forwarding-rules) -## Example Usage +
+ + Open in Cloud Shell + +
+## Example Usage - Forwarding Rule Basic + ```hcl resource "google_compute_forwarding_rule" "default" { diff --git a/website/docs/r/compute_global_address.html.markdown b/website/docs/r/compute_global_address.html.markdown index e5a75046..4cbb85d2 100644 --- a/website/docs/r/compute_global_address.html.markdown +++ b/website/docs/r/compute_global_address.html.markdown @@ -31,7 +31,13 @@ To get more information about GlobalAddress, see: * How-to Guides * [Reserving a Static External IP Address](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-external-ip-address) -## Example Usage +
+ + Open in Cloud Shell + +
+## Example Usage - Global Address Basic + ```hcl resource "google_compute_global_address" "default" { diff --git a/website/docs/r/compute_health_check.html.markdown b/website/docs/r/compute_health_check.html.markdown index 3145ee8d..7278dc46 100644 --- a/website/docs/r/compute_health_check.html.markdown +++ b/website/docs/r/compute_health_check.html.markdown @@ -40,7 +40,13 @@ To get more information about HealthCheck, see: * How-to Guides * [Official Documentation](https://cloud.google.com/load-balancing/docs/health-checks) -## Example Usage +
+ + Open in Cloud Shell + +
+## Example Usage - Health Check Basic + ```hcl resource "google_compute_health_check" "internal-health-check" { diff --git a/website/docs/r/compute_http_health_check.html.markdown b/website/docs/r/compute_http_health_check.html.markdown index 61aa7396..3f586f0f 100644 --- a/website/docs/r/compute_http_health_check.html.markdown +++ b/website/docs/r/compute_http_health_check.html.markdown @@ -38,7 +38,13 @@ To get more information about HttpHealthCheck, see: * How-to Guides * [Adding Health Checks](https://cloud.google.com/compute/docs/load-balancing/health-checks#legacy_health_checks) -## Example Usage +
+ + Open in Cloud Shell + +
+## Example Usage - Http Health Check Basic + ```hcl resource "google_compute_http_health_check" "default" { diff --git a/website/docs/r/compute_https_health_check.html.markdown b/website/docs/r/compute_https_health_check.html.markdown index 17b2797f..9901d4c6 100644 --- a/website/docs/r/compute_https_health_check.html.markdown +++ b/website/docs/r/compute_https_health_check.html.markdown @@ -38,7 +38,13 @@ To get more information about HttpsHealthCheck, see: * How-to Guides * [Adding Health Checks](https://cloud.google.com/compute/docs/load-balancing/health-checks#legacy_health_checks) -## Example Usage +
+ + Open in Cloud Shell + +
+## Example Usage - Https Health Check Basic + ```hcl resource "google_compute_https_health_check" "default" { diff --git a/website/docs/r/compute_region_autoscaler.html.markdown b/website/docs/r/compute_region_autoscaler.html.markdown index 6288c0bc..1aae2c6f 100644 --- a/website/docs/r/compute_region_autoscaler.html.markdown +++ b/website/docs/r/compute_region_autoscaler.html.markdown @@ -34,7 +34,13 @@ To get more information about RegionAutoscaler, see: * How-to Guides * [Autoscaling Groups of Instances](https://cloud.google.com/compute/docs/autoscaler/) -## Example Usage +
+ + Open in Cloud Shell + +
+## Example Usage - Region Autoscaler Basic + ```hcl resource "google_compute_region_autoscaler" "foobar" { diff --git a/website/docs/r/compute_region_disk.html.markdown b/website/docs/r/compute_region_disk.html.markdown index 2316a27c..7be51631 100644 --- a/website/docs/r/compute_region_disk.html.markdown +++ b/website/docs/r/compute_region_disk.html.markdown @@ -49,7 +49,13 @@ To get more information about RegionDisk, see: state as plain-text. [Read more about sensitive data in state](/docs/state/sensitive-data.html). -## Example Usage +
+ + Open in Cloud Shell + +
+## Example Usage - Region Disk Basic + ```hcl resource "google_compute_region_disk" "regiondisk" { diff --git a/website/docs/r/compute_route.html.markdown b/website/docs/r/compute_route.html.markdown index 018f6569..79df921e 100644 --- a/website/docs/r/compute_route.html.markdown +++ b/website/docs/r/compute_route.html.markdown @@ -50,7 +50,13 @@ To get more information about Route, see: * How-to Guides * [Using Routes](https://cloud.google.com/vpc/docs/using-routes) -## Example Usage +
+ + Open in Cloud Shell + +
+## Example Usage - Route Basic + ```hcl resource "google_compute_route" "default" { diff --git a/website/docs/r/compute_router.html.markdown b/website/docs/r/compute_router.html.markdown index a22d0676..b93defe5 100644 --- a/website/docs/r/compute_router.html.markdown +++ b/website/docs/r/compute_router.html.markdown @@ -30,7 +30,13 @@ To get more information about Router, see: * How-to Guides * [Google Cloud Router](https://cloud.google.com/router/docs/) -## Example Usage +
+ + Open in Cloud Shell + +
+## Example Usage - Router Basic + ```hcl resource "google_compute_router" "foobar" { diff --git a/website/docs/r/compute_ssl_certificate.html.markdown b/website/docs/r/compute_ssl_certificate.html.markdown index c9129b94..cb5f8466 100644 --- a/website/docs/r/compute_ssl_certificate.html.markdown +++ b/website/docs/r/compute_ssl_certificate.html.markdown @@ -32,7 +32,13 @@ To get more information about SslCertificate, see: * How-to Guides * [Official Documentation](https://cloud.google.com/load-balancing/docs/ssl-certificates) -## Example Usage +
+ + Open in Cloud Shell + +
+## Example Usage - Ssl Certificate Basic + ```hcl resource "google_compute_ssl_certificate" "default" { @@ -46,6 +52,14 @@ resource "google_compute_ssl_certificate" "default" { } } ``` +
+ + Open in Cloud Shell + +
+## Example Usage - Ssl Certificate Random Provider + + ```hcl # You may also want to control name generation explicitly: resource "google_compute_ssl_certificate" "default" { @@ -71,6 +85,14 @@ resource "random_id" "certificate" { } } ``` +
+ + Open in Cloud Shell + +
+## Example Usage - Ssl Certificate Target Https Proxies + + ```hcl // Using with Target HTTPS Proxies // diff --git a/website/docs/r/compute_ssl_policy.html.markdown b/website/docs/r/compute_ssl_policy.html.markdown index c623ee57..036c3d1f 100644 --- a/website/docs/r/compute_ssl_policy.html.markdown +++ b/website/docs/r/compute_ssl_policy.html.markdown @@ -31,7 +31,13 @@ To get more information about SslPolicy, see: * How-to Guides * [Using SSL Policies](https://cloud.google.com/compute/docs/load-balancing/ssl-policies) -## Example Usage +
+ + Open in Cloud Shell + +
+## Example Usage - Ssl Policy Basic + ```hcl resource "google_compute_ssl_policy" "prod-ssl-policy" { diff --git a/website/docs/r/compute_subnetwork.html.markdown b/website/docs/r/compute_subnetwork.html.markdown index 095ff5a1..c9becf3b 100644 --- a/website/docs/r/compute_subnetwork.html.markdown +++ b/website/docs/r/compute_subnetwork.html.markdown @@ -53,7 +53,13 @@ To get more information about Subnetwork, see: * [Private Google Access](https://cloud.google.com/vpc/docs/configure-private-google-access) * [Cloud Networking](https://cloud.google.com/vpc/docs/using-vpc) -## Example Usage +
+ + Open in Cloud Shell + +
+## Example Usage - Subnetwork Basic + ```hcl resource "google_compute_subnetwork" "network-with-private-secondary-ip-ranges" { diff --git a/website/docs/r/compute_target_http_proxy.html.markdown b/website/docs/r/compute_target_http_proxy.html.markdown index b5ea1d41..5715cb87 100644 --- a/website/docs/r/compute_target_http_proxy.html.markdown +++ b/website/docs/r/compute_target_http_proxy.html.markdown @@ -32,7 +32,13 @@ To get more information about TargetHttpProxy, see: * How-to Guides * [Official Documentation](https://cloud.google.com/compute/docs/load-balancing/http/target-proxies) -## Example Usage +
+ + Open in Cloud Shell + +
+## Example Usage - Target Http Proxy Basic + ```hcl resource "google_compute_target_http_proxy" "default" { diff --git a/website/docs/r/compute_target_https_proxy.html.markdown b/website/docs/r/compute_target_https_proxy.html.markdown index 55c0657d..0148648e 100644 --- a/website/docs/r/compute_target_https_proxy.html.markdown +++ b/website/docs/r/compute_target_https_proxy.html.markdown @@ -32,7 +32,13 @@ To get more information about TargetHttpsProxy, see: * How-to Guides * [Official Documentation](https://cloud.google.com/compute/docs/load-balancing/http/target-proxies) -## Example Usage +
+ + Open in Cloud Shell + +
+## Example Usage - Target Https Proxy Basic + ```hcl resource "google_compute_target_https_proxy" "default" { diff --git a/website/docs/r/compute_target_ssl_proxy.html.markdown b/website/docs/r/compute_target_ssl_proxy.html.markdown index 2dbc2e48..8c1d9ce4 100644 --- a/website/docs/r/compute_target_ssl_proxy.html.markdown +++ b/website/docs/r/compute_target_ssl_proxy.html.markdown @@ -34,7 +34,13 @@ To get more information about TargetSslProxy, see: * How-to Guides * [Setting Up SSL proxy for Google Cloud Load Balancing](https://cloud.google.com/compute/docs/load-balancing/tcp-ssl/) -## Example Usage +
+ + Open in Cloud Shell + +
+## Example Usage - Target Ssl Proxy Basic + ```hcl resource "google_compute_target_ssl_proxy" "default" { diff --git a/website/docs/r/compute_target_tcp_proxy.html.markdown b/website/docs/r/compute_target_tcp_proxy.html.markdown index b7be94c6..89059e86 100644 --- a/website/docs/r/compute_target_tcp_proxy.html.markdown +++ b/website/docs/r/compute_target_tcp_proxy.html.markdown @@ -34,7 +34,13 @@ To get more information about TargetTcpProxy, see: * How-to Guides * [Setting Up TCP proxy for Google Cloud Load Balancing](https://cloud.google.com/compute/docs/load-balancing/tcp-ssl/tcp-proxy) -## Example Usage +
+ + Open in Cloud Shell + +
+## Example Usage - Target Tcp Proxy Basic + ```hcl resource "google_compute_target_tcp_proxy" "default" { diff --git a/website/docs/r/compute_url_map.html.markdown b/website/docs/r/compute_url_map.html.markdown index 5e0ea595..1e843884 100644 --- a/website/docs/r/compute_url_map.html.markdown +++ b/website/docs/r/compute_url_map.html.markdown @@ -27,7 +27,13 @@ that you define for the host and path of an incoming URL. -## Example Usage +
+ + Open in Cloud Shell + +
+## Example Usage - Url Map Basic + ```hcl resource "google_compute_url_map" "urlmap" { diff --git a/website/docs/r/compute_vpn_gateway.html.markdown b/website/docs/r/compute_vpn_gateway.html.markdown index ce0ba1b4..2bd4b01d 100644 --- a/website/docs/r/compute_vpn_gateway.html.markdown +++ b/website/docs/r/compute_vpn_gateway.html.markdown @@ -29,7 +29,13 @@ To get more information about VpnGateway, see: * [API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/targetVpnGateways) -## Example Usage +
+ + Open in Cloud Shell + +
+## Example Usage - Target Vpn Gateway Basic + ```hcl resource "google_compute_vpn_gateway" "target_gateway" { diff --git a/website/docs/r/compute_vpn_tunnel.html.markdown b/website/docs/r/compute_vpn_tunnel.html.markdown index 773abe02..05df2a91 100644 --- a/website/docs/r/compute_vpn_tunnel.html.markdown +++ b/website/docs/r/compute_vpn_tunnel.html.markdown @@ -35,7 +35,13 @@ To get more information about VpnTunnel, see: state as plain-text. [Read more about sensitive data in state](/docs/state/sensitive-data.html). -## Example Usage +
+ + Open in Cloud Shell + +
+## Example Usage - Vpn Tunnel Basic + ```hcl resource "google_compute_vpn_tunnel" "tunnel1" { diff --git a/website/docs/r/redis_instance.html.markdown b/website/docs/r/redis_instance.html.markdown index bf639dab..5485ff69 100644 --- a/website/docs/r/redis_instance.html.markdown +++ b/website/docs/r/redis_instance.html.markdown @@ -30,7 +30,13 @@ To get more information about Instance, see: * How-to Guides * [Official Documentation](https://cloud.google.com/memorystore/docs/redis/) -## Example Usage +
+ + Open in Cloud Shell + +
+## Example Usage - Redis Instance Basic + ```hcl resource "google_redis_instance" "cache" { @@ -38,6 +44,14 @@ resource "google_redis_instance" "cache" { memory_size_gb = 1 } ``` +
+ + Open in Cloud Shell + +
+## Example Usage - Redis Instance Full + + ```hcl resource "google_redis_instance" "cache" { name = "ha-memory-cache" diff --git a/website/docs/r/resourcemanager_lien.html.markdown b/website/docs/r/resourcemanager_lien.html.markdown index 667a1aa9..02599a31 100644 --- a/website/docs/r/resourcemanager_lien.html.markdown +++ b/website/docs/r/resourcemanager_lien.html.markdown @@ -25,7 +25,8 @@ A Lien represents an encumbrance on the actions that can be performed on a resou -## Example Usage +## Example Usage - Resource Manager Lien + ```hcl resource "google_resource_manager_lien" "lien" {