From f4d9a5ebea36a6c50dcb75fdb6838903a826c779 Mon Sep 17 00:00:00 2001 From: Vivek Lakshmanan Date: Mon, 19 Apr 2021 18:55:07 -0700 Subject: [PATCH] Add preview provider section with google-native and minor fix to sample code (#82) * Fix bucket name to avoid rejection by Google for having 'google' in it * Add a preview providers section * Add svg for google-native --- .../docs/intro/cloud-providers/google-native/_index.md | 8 ++++---- themes/default/content/docs/reference/pkg/_index.md | 5 +++++ themes/default/static/logos/pkg/google-native.svg | 7 +++++++ 3 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 themes/default/static/logos/pkg/google-native.svg diff --git a/themes/default/content/docs/intro/cloud-providers/google-native/_index.md b/themes/default/content/docs/intro/cloud-providers/google-native/_index.md index 0077d0e1247..502843db5a8 100644 --- a/themes/default/content/docs/intro/cloud-providers/google-native/_index.md +++ b/themes/default/content/docs/intro/cloud-providers/google-native/_index.md @@ -46,7 +46,7 @@ import * as pulumi from "@pulumi/pulumi"; const config = new pulumi.Config("google-native"); const project = config.require("project"); -const bucketName = "pulumi-google-native-ts-01"; +const bucketName = "pulumi-goog-native-ts-01"; // Create a Google Cloud resource (Storage Bucket) const bucket = new storage.Bucket("my-bucket", { @@ -69,7 +69,7 @@ from pulumi_google_native.storage import v1 as storage config = pulumi.Config() project = config.require('project') # Create a Google Cloud resource (Storage Bucket) -bucket_name = "google-native-bucket-py-01" +bucket_name = "pulumi-goog-native-bucket-py-01" bucket = storage.Bucket('my-bucket', name=bucket_name, bucket=bucket_name, project=project) # Export the bucket self-link @@ -88,7 +88,7 @@ import ( ) func main() { - const bucketName = "google-native-bucket-go-01" + const bucketName = "pulumi-goog-native-bucket-go-01" pulumi.Run(func(ctx *pulumi.Context) error { conf := config.New(ctx, "google-native") project := conf.Require("project") @@ -123,7 +123,7 @@ class Program Deployment.Run(() => { var config = new Config("google-native"); var project = config.Require("project"); - var bucketName = "google-native-bucket-cs-01"; + var bucketName = "pulumi-goog-native-bucket-cs-01"; // Create a Google Cloud resource (Storage Bucket) var bucket = new Bucket("my-bucket", new BucketArgs{ Name = bucketName, diff --git a/themes/default/content/docs/reference/pkg/_index.md b/themes/default/content/docs/reference/pkg/_index.md index 910ddf2e619..d3ea6a329a6 100644 --- a/themes/default/content/docs/reference/pkg/_index.md +++ b/themes/default/content/docs/reference/pkg/_index.md @@ -54,6 +54,11 @@ explore what's possible, you've come to the right place. {{< resource-providers "azure" >}} +### Preview Providers + +{{< resource-providers "google-native" >}} + + ## Package Documentation SDK reference documentation, organized by language. diff --git a/themes/default/static/logos/pkg/google-native.svg b/themes/default/static/logos/pkg/google-native.svg new file mode 100644 index 00000000000..04a4f2d9292 --- /dev/null +++ b/themes/default/static/logos/pkg/google-native.svg @@ -0,0 +1,7 @@ + + + + + + +