Google Cloud Storage Java Programming Model

From NovaOrdis Knowledge Base
Revision as of 18:56, 2 September 2021 by Ovidiu (talk | contribs) (→‎Internal)
Jump to navigation Jump to search

Internal

Overview

ServiceAccountCredentials serviceAccountCredentials;
Storage storageService = StorageOptions.newBuilder().setCredentials(serviceAccountCredentials).build().getService();

// bucket by name
storageService.get(bucketName, options);
// list buckets
Page<Bucket> buckets = storageService.list();