이 페이지에서는 Cloud Functions API의 Cloud 클라이언트 라이브러리를 시작하는 방법을 보여줍니다. 클라이언트 라이브러리를 사용하면 지원되는 언어로Google Cloud API에 쉽게 액세스할 수 있습니다. 원시 요청을 서버에 보내Google Cloud API를 직접 사용할 수 있지만 클라이언트 라이브러리는 작성해야 하는 코드 양을 크게 줄여 주는 간소화 기능을 제공합니다.
클라이언트 라이브러리 설명에서 Cloud 클라이언트 라이브러리 및 이전 Google API 클라이언트 라이브러리에 대해 자세히 알아보세요.
Google Cloud API 호출을 인증하기 위해 클라이언트 라이브러리는 애플리케이션 기본 사용자 인증 정보(ADC)를 지원합니다. 라이브러리는 정의된 위치 집합에서 사용자 인증 정보를 찾고 이러한 사용자 인증 정보를 사용해서 API에 대한 요청을 인증합니다. ADC를 사용하면 애플리케이션 코드를 수정할 필요 없이 로컬 개발 또는 프로덕션과 같은 다양한 환경에서 애플리케이션에 사용자 인증 정보를 제공할 수 있습니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-08-25(UTC)"],[[["\u003cp\u003eCloud Client Libraries simplify access to Google Cloud APIs, reducing the amount of code needed compared to making raw requests.\u003c/p\u003e\n"],["\u003cp\u003eThis library for the Cloud Functions API is currently in Beta and subject to the Pre-GA Offerings Terms, meaning it may have limited support.\u003c/p\u003e\n"],["\u003cp\u003eInstallation instructions are provided for C#, Go, Java, Node.js, PHP, Python, and Ruby, along with links to relevant setup guides.\u003c/p\u003e\n"],["\u003cp\u003eThe page guides users through setting up Application Default Credentials (ADC) for authenticating calls to Google Cloud APIs in both production and local development environments.\u003c/p\u003e\n"],["\u003cp\u003eEach language section includes links to additional resources like API references, best practices, issue trackers, Stack Overflow discussions, and source code repositories.\u003c/p\u003e\n"]]],[],null,["This page shows how to get started with the Cloud Client Libraries for the\nCloud Functions API. Client libraries make it easier to access\nGoogle Cloud APIs from a supported language. Although you can use\nGoogle Cloud APIs directly by making raw requests to the server, client\nlibraries provide simplifications that significantly reduce the amount of code\nyou need to write.\n\nRead more about the Cloud Client Libraries\nand the older Google API Client Libraries in\n[Client libraries explained](/apis/docs/client-libraries-explained).\n|\n| **Beta**\n|\n|\n| This library is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA libraries are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nInstall the client library \n\nC# \n\n```\nInstall-Package Google.Cloud.Functions.V1 -Pre\n```\n\nFor more information, see [Setting Up a C# Development Environment](/dotnet/docs/setup).\n\nGo \n\n```\ngo get -d cloud.google.com/go/...\n```\n\nFor more information, see [Setting Up a Go Development Environment](/go/docs/setup).\n\nJava\n\nIf you are using [Maven](https://maven.apache.org/), add\nthe following to your `pom.xml` file. For more information about\nBOMs, see [The Google Cloud Platform Libraries BOM](https://cloud.google.com/java/docs/bom). \n\n \u003cdependencyManagement\u003e\n \u003cdependencies\u003e\n \u003cdependency\u003e\n \u003cgroupId\u003ecom.google.cloud\u003c/groupId\u003e\n \u003cartifactId\u003elibraries-bom\u003c/artifactId\u003e\n \u003cversion\u003e26.66.0\u003c/version\u003e\n \u003ctype\u003epom\u003c/type\u003e\n \u003cscope\u003eimport\u003c/scope\u003e\n \u003c/dependency\u003e\n \u003c/dependencies\u003e\n \u003c/dependencyManagement\u003e\n\n \u003cdependencies\u003e\n \u003cdependency\u003e\n \u003cgroupId\u003ecom.google.cloud\u003c/groupId\u003e\n \u003cartifactId\u003egoogle-cloud-functions\u003c/artifactId\u003e\n \u003c/dependency\u003e\n \u003c/dependencies\u003e\n\nIf you are using [Gradle](https://gradle.org/),\nadd the following to your dependencies: \n\n implementation 'com.google.cloud:google-cloud-functions:2.74.0'\n\nIf you are using [sbt](https://www.scala-sbt.org/), add\nthe following to your dependencies: \n\n libraryDependencies += \"com.google.cloud\" % \"google-cloud-functions\" % \"2.74.0\"\n\n| **Note:** Cloud Java client libraries do not currently support Android.\n\nFor more information, see [Setting Up a Java Development Environment](/java/docs/setup).\n\nNode.js \n\n```\nnpm install @google-cloud/functions\n```\n\nFor more information, see [Setting Up a Node.js Development Environment](/nodejs/docs/setup).\n\nPHP \n\n```\ncomposer require google/cloud\n```\n\nFor more information, see [Using PHP on Google Cloud](/php/docs).\n\nPython \n\n```\npip install --upgrade google-cloud\n```\n\nFor more information, see [Setting Up a Python Development Environment](/python/docs/setup).\n\nRuby \n\n```\ngem install google-cloud-functions\n```\n\nFor more information, see [Setting Up a Ruby Development Environment](/ruby/docs/setup).\n\n\u003cbr /\u003e\n\nSet up authentication To authenticate calls to Google Cloud APIs, client libraries support [Application Default Credentials (ADC)](/docs/authentication/application-default-credentials); the libraries look for credentials in a set of defined locations and use those credentials to authenticate requests to the API. With ADC, you can make credentials available to your application in a variety of environments, such as local development or production, without needing to modify your application code.\n\nFor production environments, the way you set up ADC depends on the service\nand context. For more information, see [Set up Application Default Credentials](/docs/authentication/provide-credentials-adc).\n\nFor a local development environment, you can set up ADC with the credentials\nthat are associated with your Google Account:\n\n1.\n [Install](/sdk/docs/install) the Google Cloud CLI.\n\n After installation,\n [initialize](/sdk/docs/initializing) the Google Cloud CLI by running the following command:\n\n ```bash\n gcloud init\n ```\n\n\n If you're using an external identity provider (IdP), you must first\n [sign in to the gcloud CLI with your federated identity](/iam/docs/workforce-log-in-gcloud).\n2.\n\n If you're using a local shell, then create local authentication credentials for your user\n account:\n\n ```bash\n gcloud auth application-default login\n ```\n\n You don't need to do this if you're using Cloud Shell.\n\n\n If an authentication error is returned, and you are using an external identity provider\n (IdP), confirm that you have\n [signed in to the gcloud CLI with your federated identity](/iam/docs/workforce-log-in-gcloud).\n\n\n A sign-in screen appears. After you sign in, your credentials are stored in the\n [local credential file used by ADC](/docs/authentication/application-default-credentials#personal).\n\nAdditional resources \n\nC#\n\nThe following list contains links to more resources related to the\nclient library for C#:\n\n- [API reference](/dotnet/docs/reference)\n- [Client libraries best practices](/apis/docs/client-libraries-best-practices)\n- [Issue tracker](https://github.com/googleapis/google-cloud-dotnet/issues)\n- [`google-cloud-functions` on Stack Overflow](https://stackoverflow.com/search?q=%5Bgoogle-cloud-functions%5D+%5Bc%23%5D)\n- [Source code](https://github.com/googleapis/google-cloud-dotnet)\n\nGo\n\nThe following list contains links to more resources related to the\nclient library for Go:\n\n- [API reference](/go/docs/reference)\n- [Client libraries best practices](/apis/docs/client-libraries-best-practices)\n- [Issue tracker](https://github.com/googleapis/google-cloud-go/issues)\n- [`google-cloud-functions` on Stack Overflow](https://stackoverflow.com/search?q=%5Bgoogle-cloud-functions%5D+%5Bgo%5D)\n- [Source code](https://github.com/googleapis/google-cloud-go)\n\nJava\n\nThe following list contains links to more resources related to the\nclient library for Java:\n\n- [API reference](/java/docs/reference)\n- [Client libraries best practices](/apis/docs/client-libraries-best-practices)\n- [Issue tracker](https://github.com/googleapis/google-cloud-java/issues)\n- [`google-cloud-functions` on Stack Overflow](https://stackoverflow.com/search?q=%5Bgoogle-cloud-functions%5D+%5Bjava%5D)\n- [Source code](https://github.com/googleapis/google-cloud-java)\n\nNode.js\n\nThe following list contains links to more resources related to the\nclient library for Node.js:\n\n- [API reference](/nodejs/docs/reference)\n- [Client libraries best practices](/apis/docs/client-libraries-best-practices)\n- [Issue tracker](https://github.com/googleapis/nodejs-functions/issues)\n- [`google-cloud-functions` on Stack Overflow](https://stackoverflow.com/search?q=%5Bgoogle-cloud-functions%5D+%5Bnode.js%5D)\n- [Source code](https://github.com/googleapis/nodejs-functions)\n\nPHP\n\nThe following list contains links to more resources related to the\nclient library for PHP:\n\n- [API reference](/php/docs/reference)\n- [Client libraries best practices](/apis/docs/client-libraries-best-practices)\n- [Issue tracker](https://github.com/googleapis/google-cloud-php/issues)\n- [`google-cloud-functions` on Stack Overflow](https://stackoverflow.com/search?q=%5Bgoogle-cloud-functions%5D+%5Bphp%5D)\n- [Source code](https://github.com/googleapis/google-cloud-php)\n\nPython\n\nThe following list contains links to more resources related to the\nclient library for Python:\n\n- [API reference](/python/docs/reference)\n- [Client libraries best practices](/apis/docs/client-libraries-best-practices)\n- [Issue tracker](https://github.com/googleapis/google-cloud-python/issues)\n- [`google-cloud-functions` on Stack Overflow](https://stackoverflow.com/search?q=%5Bgoogle-cloud-functions%5D+%5Bpython%5D)\n- [Source code](https://github.com/googleapis/google-cloud-python)\n\nRuby\n\nThe following list contains links to more resources related to the\nclient library for Ruby:\n\n- [API reference](/ruby/docs/reference)\n- [Client libraries best practices](/apis/docs/client-libraries-best-practices)\n- [Issue tracker](https://github.com/googleapis/google-cloud-ruby/issues)\n- [`google-cloud-functions` on Stack Overflow](https://stackoverflow.com/search?q=%5Bgoogle-cloud-functions%5D+%5Bruby%5D)\n- [Source code](https://github.com/googleapis/google-cloud-ruby)\n\n\u003cbr /\u003e"]]