bookmark_borderbookmark
Stay organized with collections
Save and categorize content based on your preferences.
[](std::string const& keyfile){ auto is = std::ifstream(keyfile); is.exceptions(std::ios::badbit);// Minimal error handling in examples auto contents = std::string(std::istreambuf_iterator<char>(is.rdbuf()),{}); auto options = google::cloud::Options{}.set<google::cloud::UnifiedCredentialsOption>( google::cloud::MakeServiceAccountCredentials(contents)); return google::cloud::aiplatform_v1::PersistentResourceServiceClient( google::cloud::aiplatform_v1::MakePersistentResourceServiceConnection( "us-west1"/* regional service region */, options)); }
[[["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-03-21 UTC."],[[["This webpage provides access to different versions of the `aiplatform_v1_1_1PersistentResourceServiceClient-service-account-snippet`, ranging from the latest release candidate (2.37.0-rc) down to version 2.12.0."],["Each version listed links to documentation for a specific release of the aiplatform service, allowing for detailed reference to each one."],["The documentation includes an example of how to override authentication defaults for `aiplatform_v1::PersistentResourceServiceClient` by providing a service account key file."],["The example code illustrates the use of `MakeServiceAccountCredentials` and `MakePersistentResourceServiceConnection` to set up a client with specific authentication and region."]]],[]]