C# PowerShell JavaScript Other
Latest commit c9cb2a1 Feb 24, 2017 @SurferJeffAtGoogle SurferJeffAtGoogle committed on GitHub Merge pull request #183 from SurferJeffAtGoogle/randomName
Move RandomBucketName() to RandomName().
Permalink
Failed to load latest commit information.
appengine/flexible Update index.html Feb 23, 2017
auth Revert "Update copyright year" Dec 6, 2016
bigquery/api Update Nuget packages Dec 13, 2016
datastore/api Add QuickStart and test to Datastore. Feb 14, 2017
endpoints/getting-started An endpoints sample with tests. Feb 17, 2017
error-reporting/api Move sample to error-reporting/api/diagnostics/ Dec 20, 2016
kms/api Remove .ToString() and add State: back for tests Feb 15, 2017
language/api Update all the READMEs. Nov 16, 2016
logging/api Move sample to error-reporting/api/diagnostics/ Dec 20, 2016
powershell Find-GcsObject exists no more. Use Get-GcsObject. Dec 1, 2016
pubsub/api Add comment for backoff settings Jan 25, 2017
sessionstate Stop writing log warnings when an operation takes too long. Jan 12, 2017
speech/api Add a sample and test that demonstrates transcribing a .flac file. Feb 14, 2017
storage Vision: Remove obsolete samples and update README.md Jan 20, 2017
testutil Move RandomBucketName() to RandomName(). Feb 24, 2017
vision/api Add comments to vision quickstart. Jan 27, 2017
.gitignore Appengine flex Redis sample. Feb 10, 2017
BuildTools.psm1 Work around issue 35673193. Feb 22, 2017
CONTRIBUTING.md Add style section to CONTRIBUTING.md. Aug 26, 2016
Copyright.txt Add ExportTable sample. May 19, 2016
LICENSE C# sample for bigquery to be plugged into https://cloud.google.com/bi… Sep 21, 2015
README.md Complete README for analytics. Feb 14, 2017
TESTING.md Revise READMEs. May 16, 2016
buildAndRunTests.ps1 App Engine flex static sample. Feb 7, 2017
favicon.ico C# sample for bigquery to be plugged into https://cloud.google.com/bi… Sep 21, 2015

README.md

Google Cloud Platform .NET Docs Samples

A collection of samples that demonstrate how to call some Google Cloud services from C#.

The APIs and .NET Libraries page lists all the Cloud APIs you can call from .NET.

The samples in this repo cover only some of the total APIs that you can call from .NET.

Build Status

Build and Run

To build and run a sample, open the solution file (.sln) with Visual Studio 2015 or later and build it.

But no sample will work until you:

  1. Create a project in the Google Cloud Platform Console. If you haven't already created a project, create one now. Projects enable you to manage all Google Cloud Platform resources for your app, including deployment, access control, billing, and services.

    1. Open the Cloud Platform Console.
    2. In the drop-down menu at the top, select Create a project.
    3. Click Show advanced options. Under App Engine location, select a United States location.
    4. Give your project a name.
    5. Make a note of the project ID, which might be different from the project name. The project ID is used in commands and in configurations.
  2. Enable billing for your project. If you haven't already enabled billing for your project, enable billing now. Enabling billing allows the application to consume billable resources such as running instances and storing data.

  3. Download credentials.

    1. Visit the API Manager Dashboard and click Credentials.
    2. Click Create credentials and choose Service Account key.
    3. Under Service account, choose Compute Engine default service account, and leave JSON selected under Key Type. Click Create. A .json file will be downloaded to your computer.
    4. Set the environment variable GOOGLE_APPLICATION_CREDENTIALS to the path of the JSON key that was downloaded. In powershell, the command will like something like this:

      # For this powershell session.
      PS > $env:GOOGLE_APPLICATION_CREDENTIALS = "$env:USERPROFILE\Downloads\your-project-id-dea9fa230eae3.json"
      # For all processes created after this command.
      PS > [Environment]::SetEnvironmentVariable("GOOGLE_APPLICATION_CREDENTIALS", "$env:USERPROFILE\Downloads\your-project-id-dea9fa230eae3.json", "User")
  4. Enable APIs. Visit the API Manager Dashboard and click ENABLE API. Enable the APIs you plan to call. Are you going to use Cloud Datastore? Enable the Cloud Datastore API. Each API must be enabled individually.

  5. Download or clone this repo with

    git clone https://github.com/GoogleCloudPlatform/dotnet-docs-samples

    Browse the directories, find a solution (.sln) file, open it with Visual Studio 2015 or later, and run it!

Contributing changes

Licensing

Testing