if(!metadata->has_autoclass()){ std::cout <<"The bucket "<< metadata->name()<<" does not have an" <<" autoclass configuration.\n"; return; }
std::cout <<"Autoclass is " <<(metadata->autoclass().enabled ?"enabled":"disabled") <<" for bucket "<< metadata->name()<<". " <<" The bucket's full autoclass configuration is " << metadata->autoclass()<<"\n"; }
std::cout <<"The autoclass configuration for bucket "<< bucket_name <<" was successfully updated."; if(!metadata->has_autoclass()){ std::cout <<" The bucket no longer has an autoclass configuration.\n"; return; } std::cout <<" The new configuration is "<< metadata->autoclass()<<"\n"; }
[[["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-04-22 UTC."],[[["This webpage provides documentation for the `BucketAutoclass` feature within the Google Cloud Storage C++ client library, spanning versions from 2.11.0 up to the latest release candidate 2.37.0-rc."],["`BucketAutoclass` can be enabled or disabled for a bucket and its current configuration can be retrieved via the `GetBucketMetadata` method, with an example demonstrating how to check for and describe a bucket's current autoclass settings."],["The `PatchBucket` method can be used to update the autoclass configuration for a specific bucket, illustrated by an example showing how to enable or disable autoclass, with the result then being outputted to the user to show success or failure."],["The documentation outlines four different constructors for the `BucketAutoclass` class, each accepting varying parameters like a boolean, a string, and/or a `std::chrono::system_clock::time_point`."],["The primary function of this documentation is to show the user how to utilize the `BucketAutoclass` to manage a bucket, and it's various versions to track changes."]]],[]]