[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud Storage API - Class Google::Cloud::Storage::Credentials (v1.57.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.57.0 (latest)](/ruby/docs/reference/google-cloud-storage/latest/Google-Cloud-Storage-Credentials)\n- [1.56.0](/ruby/docs/reference/google-cloud-storage/1.56.0/Google-Cloud-Storage-Credentials)\n- [1.55.0](/ruby/docs/reference/google-cloud-storage/1.55.0/Google-Cloud-Storage-Credentials)\n- [1.54.0](/ruby/docs/reference/google-cloud-storage/1.54.0/Google-Cloud-Storage-Credentials)\n- [1.53.0](/ruby/docs/reference/google-cloud-storage/1.53.0/Google-Cloud-Storage-Credentials)\n- [1.52.0](/ruby/docs/reference/google-cloud-storage/1.52.0/Google-Cloud-Storage-Credentials)\n- [1.51.0](/ruby/docs/reference/google-cloud-storage/1.51.0/Google-Cloud-Storage-Credentials)\n- [1.50.0](/ruby/docs/reference/google-cloud-storage/1.50.0/Google-Cloud-Storage-Credentials)\n- [1.49.0](/ruby/docs/reference/google-cloud-storage/1.49.0/Google-Cloud-Storage-Credentials)\n- [1.48.1](/ruby/docs/reference/google-cloud-storage/1.48.1/Google-Cloud-Storage-Credentials)\n- [1.47.0](/ruby/docs/reference/google-cloud-storage/1.47.0/Google-Cloud-Storage-Credentials)\n- [1.46.0](/ruby/docs/reference/google-cloud-storage/1.46.0/Google-Cloud-Storage-Credentials)\n- [1.45.0](/ruby/docs/reference/google-cloud-storage/1.45.0/Google-Cloud-Storage-Credentials)\n- [1.44.0](/ruby/docs/reference/google-cloud-storage/1.44.0/Google-Cloud-Storage-Credentials)\n- [1.43.0](/ruby/docs/reference/google-cloud-storage/1.43.0/Google-Cloud-Storage-Credentials)\n- [1.42.0](/ruby/docs/reference/google-cloud-storage/1.42.0/Google-Cloud-Storage-Credentials)\n- [1.41.0](/ruby/docs/reference/google-cloud-storage/1.41.0/Google-Cloud-Storage-Credentials)\n- [1.40.0](/ruby/docs/reference/google-cloud-storage/1.40.0/Google-Cloud-Storage-Credentials)\n- [1.39.0](/ruby/docs/reference/google-cloud-storage/1.39.0/Google-Cloud-Storage-Credentials)\n- [1.38.0](/ruby/docs/reference/google-cloud-storage/1.38.0/Google-Cloud-Storage-Credentials)\n- [1.37.0](/ruby/docs/reference/google-cloud-storage/1.37.0/Google-Cloud-Storage-Credentials)\n- [1.36.2](/ruby/docs/reference/google-cloud-storage/1.36.2/Google-Cloud-Storage-Credentials)\n- [1.35.0](/ruby/docs/reference/google-cloud-storage/1.35.0/Google-Cloud-Storage-Credentials) \nReference documentation and code samples for the Cloud Storage API class Google::Cloud::Storage::Credentials.\n\nCredentials\n-----------\n\nRepresents the authentication and authorization used to connect to the\nStorage API. \n\nInherits\n--------\n\n- Google::Auth::Credentials\n\nExample\n-------\n\n```ruby\nrequire \"google/cloud/storage\"\n\nkeyfile = \"/path/to/keyfile.json\"\ncreds = Google::Cloud::Storage::Credentials.new keyfile\n\nstorage = Google::Cloud::Storage.new(\n project_id: \"my-project\",\n credentials: creds\n)\n\nstorage.project_id #=\u003e \"my-project\"\n```\n\nConstants\n---------\n\n### SCOPE\n\n**value:**\\[\"https://www.googleapis.com/auth/devstorage.full_control\"\\].freeze\n\n### PATH_ENV_VARS\n\n**value:**\\[\n\"STORAGE_CREDENTIALS\",\n\"STORAGE_KEYFILE\",\n\"GOOGLE_CLOUD_CREDENTIALS\",\n\"GOOGLE_CLOUD_KEYFILE\",\n\"GCLOUD_KEYFILE\"\n\\].freeze\n\n### JSON_ENV_VARS\n\n**value:**\\[\n\"STORAGE_CREDENTIALS_JSON\",\n\"STORAGE_KEYFILE_JSON\",\n\"GOOGLE_CLOUD_CREDENTIALS_JSON\",\n\"GOOGLE_CLOUD_KEYFILE_JSON\",\n\"GCLOUD_KEYFILE_JSON\"\n\\].freeze\n\n### DEFAULT_PATHS\n\n**value:**\\[\"\\~/.config/gcloud/application_default_credentials.json\"\\].freeze"]]