java-docs-samples

Github星跟蹤圖

Google Cloud Platform Java Samples

Kokoro Build Status
Coverage Status

This repository holds sample code written in Java that demonstrates the
Google Cloud Platform.

Some samples have accompanying guides on <cloud.google.com>. See respective
README files for details.

Set Up

  1. Set up your Java Development Environment

  2. Clone this repository:

     git clone https://github.com/GoogleCloudPlatform/java-docs-samples.git
    
  3. Obtain authentication credentials.

    Create local credentials by running the following command and following the
    oauth2 flow (read more about the command here):

     gcloud auth application-default login
    

    Or manually set the GOOGLE_APPLICATION_CREDENTIALS environment variable
    to point to a service account key JSON file path.

    Learn more at Setting Up Authentication for Server to Server Production Applications.

    Note: Application Default Credentials is able to implicitly find the credentials as long as the application is running on Compute Engine, Kubernetes Engine, App Engine, or Cloud Functions.

Contributing

Licensing

主要指標

概覽
名稱與所有者GoogleCloudPlatform/java-docs-samples
主編程語言Java
編程語言Java (語言數: 12)
平台
許可證Apache License 2.0
所有者活动
創建於2015-03-25 22:48:38
推送於2025-04-24 02:45:12
最后一次提交
發布數1
最新版本名稱monitoring-apiary (發布於 )
第一版名稱monitoring-apiary (發布於 )
用户参与
星數1.8k
關注者數291
派生數2.9k
提交數10.4k
已啟用問題?
問題數2151
打開的問題數26
拉請求數7112
打開的拉請求數22
關閉的拉請求數737
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?