Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
Add preview provider section with google-native and minor fix to samp…
Browse files Browse the repository at this point in the history
…le 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
  • Loading branch information
Vivek Lakshmanan authored Apr 20, 2021
1 parent c146659 commit f4d9a5e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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", {
Expand All @@ -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
Expand All @@ -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")
Expand Down Expand Up @@ -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,
Expand Down
5 changes: 5 additions & 0 deletions themes/default/content/docs/reference/pkg/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
7 changes: 7 additions & 0 deletions themes/default/static/logos/pkg/google-native.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f4d9a5e

Please sign in to comment.