GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — java-docs-samples/storage/json-api at master · eyupaltindal/java-docs-samples

Expand file tree

/

json-api

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

json-api

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
src
src
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

README.md

Outline

Google Cloud Storage (GCS) and the Google Java API Client library

Open in Cloud Shell

Google Cloud Storage Service features a REST-based API that allows developers to store and access arbitrarily-large objects. These sample Java applications demonstrate how to access the Google Cloud Storage JSON API using the Google Java API Client Libraries. For more information, read the Google Cloud Storage JSON API Overview.

Quickstart

  1. Install the Google Cloud SDK, including the gcloud tool.

  2. Setup the gcloud tool.

    gcloud init
    
  3. Clone this repo.

    git clone https://github.com/GoogleCloudPlatform/java-docs-samples.git
    
  4. Install Maven.

  5. Build this project from this directory:

    mvn package
    
  6. Run one of the sample apps by specifying its class name and a bucket name:

    mvn exec:java -Dexec.mainClass=StorageSample \
            -Dexec.args="ABucketName"
    

Note that if it's been a while, you may need to login with gcloud.

gcloud auth application-default login

Products

  • Google Cloud Storage

Language

  • Java

Dependencies

  • Google APIs Client Library for Java
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.