Google Cloud Storage Java Programming Model
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();