• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

BUILDH A D02-Sep-20202.1 KiB6455

README.mdH A D02-Sep-2020733 2416

storage_bucket_acl_samples.ccH A D02-Sep-202012.8 KiB316238

storage_bucket_cors_samples.ccH A D02-Sep-20205.2 KiB13595

storage_bucket_default_kms_key_samples.ccH A D02-Sep-20206.5 KiB162117

storage_bucket_iam_samples.ccH A D02-Sep-202020.8 KiB505396

storage_bucket_requester_pays_samples.ccH A D02-Sep-202010.5 KiB254193

storage_bucket_samples.ccH A D02-Sep-202025.9 KiB663499

storage_client_mock_samples.ccH A D02-Sep-20208.1 KiB214156

storage_default_object_acl_samples.ccH A D02-Sep-202010.8 KiB270201

storage_event_based_hold_samples.ccH A D02-Sep-20206.7 KiB169117

storage_examples.bzlH A D02-Sep-20201.8 KiB4946

storage_examples_common.bzlH A D02-Sep-2020882 2622

storage_examples_common.ccH A D02-Sep-20203.3 KiB8860

storage_examples_common.hH A D02-Sep-20202.1 KiB5529

storage_examples_common_test.ccH A D02-Sep-20205.3 KiB163123

storage_examples_unit_tests.bzlH A D02-Sep-2020830 2320

storage_grpc_samples.ccH A D02-Sep-20204.3 KiB11480

storage_lifecycle_management_samples.ccH A D02-Sep-20207.2 KiB181131

storage_notification_samples.ccH A D02-Sep-20208.5 KiB205151

storage_object_acl_samples.ccH A D02-Sep-202014.6 KiB348265

storage_object_cmek_samples.ccH A D02-Sep-20207.6 KiB187139

storage_object_csek_samples.ccH A D02-Sep-202012.8 KiB306222

storage_object_file_transfer_samples.ccH A D02-Sep-20208.3 KiB202146

storage_object_hold_samples.ccH A D02-Sep-20208.3 KiB194145

storage_object_resumable_write_samples.ccH A D02-Sep-20206.1 KiB149106

storage_object_rewrite_samples.ccH A D02-Sep-202011.8 KiB277219

storage_object_samples.ccH A D02-Sep-202031.2 KiB750579

storage_object_versioning_samples.ccH A D02-Sep-202010.4 KiB251192

storage_policy_doc_samples.ccH A D02-Sep-20207.3 KiB175134

storage_public_object_samples.ccH A D02-Sep-20204.4 KiB11781

storage_quickstart.ccH A D02-Sep-20203 KiB8650

storage_retention_policy_samples.ccH A D02-Sep-20208.7 KiB226160

storage_service_account_samples.ccH A D02-Sep-202013.7 KiB340261

storage_signed_url_v2_samples.ccH A D02-Sep-20204.6 KiB11482

storage_signed_url_v4_samples.ccH A D02-Sep-20204.5 KiB11280

storage_website_samples.ccH A D02-Sep-20207.5 KiB188137

README.md

1# Google Cloud Storage Code Samples
2
3This directory contains code snippets showing how to use the Google Cloud
4Storage APIs.  These snippets are referenced from the Doxygen documentation.
5
6## Compiling the Samples
7
8These examples are compiled as part of the build for the Google Cloud C++
9Libraries.  The instructions on how to compile the code are in the
10[top-level README](../../../../README.md) file.
11
12## Running the Samples
13
14Follow the
15[instructions](https://cloud.google.com/storage/docs/quickstart-gsutil)
16to create a project, enable billing, and create a bucket using the `gsutil`
17command-line tool.
18
19Then you can get the metadata for a bucket using:
20
21```bash
22./storage_bucket_samples get-metadata gcp-public-data-landsat
23```
24