You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getting-started-dotnet -
A quickstart and tutorial that demonstrates how to build a complete web
application using Cloud Datastore, Cloud Storage, and Cloud Pub/Sub and deploy it to Google Compute Engine.
Specifying a Project ID
Most Google Cloud Libraries for .NET require a project ID. If you
don't remember yours (or haven't created a project yet), navigate to
the Google Developers Console to view
your project ID (or create a new project and then get the ID). Once
done, record the value and make sure to pass it as a parameter to
the methods that require it.
Authentication
Every API call needs to be authenticated. In order to successfully
make a call, first ensure that the necessary Google Cloud
APIs are enabled for your project and that
you've downloaded the right set of keys (if it applies to you) as
explained in the authentication documentation.
Next, choose a method for authenticating API requests from within your project:
When using google-cloud-dotnet libraries from within Compute/App Engine, no additional authentication steps are necessary.
When using google-cloud-dotnet libraries elsewhere, you can do one of the following:
Define the environment variable GOOGLE_APPLICATION_CREDENTIALS to be the location of the key. For example:
set GOOGLE_APPLICATION_CREDENTIALS=/path/to/my/key.json
If running locally for development/testing, you can authenticate using the Google Cloud SDK.
Download the SDK if you haven't already, then login by running the following in the command line:
The version number in the package name (and .NET namespace)
represents the version of the underlying API; the version number for
the package itself indicates the status of the client library.