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::MigrationServiceClient( google::cloud::aiplatform_v1::MakeMigrationServiceConnection( "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-14 UTC."],[[["This webpage provides access to various versions of the `aiplatform` C++ library documentation, ranging from version 2.12.0 up to the release candidate 2.37.0-rc."],["Each version listed links to documentation for the `aiplatform_v1_1_1MigrationServiceClient-service-account-snippet`, which is a part of the Google Cloud AI Platform."],["The latest version available is a release candidate, 2.37.0-rc, while the most stable published version referenced on the page is 2.36.0."],["An example code snippet is provided demonstrating how to override the default authentication for the `aiplatform_v1::MigrationServiceClient` using a service account key file."],["The code snippet shows that the service account credentials can be set using the google cloud options that takes the service account key file contents, which can be passed to the MigrationServiceClient."]]],[]]