Returns true if this backup is ready to use. The value returned by this method
could be out-of-sync with the value returned by #getState(), as this method will make a
round-trip to the server and return a value based on the response from the server.
public OperationFuture<Database,RestoreDatabaseMetadata> restore(DatabaseId database)
Restores this backup to the specified database. The database must not already exist and will be
created by this call. The database may be created in a different instance than where the backup
is stored.
Updates the IAM policy for this backup and returns the resulting policy. It is highly
recommended to first get the current policy and base the updated policy on the returned policy.
See Policy.Builder#setEtag(String) for information on the recommended read-modify-write
cycle.
Parameter
Name
Description
policy
com.google.cloud.Policy
Returns
Type
Description
com.google.cloud.Policy
testIAMPermissions(Iterable<String> permissions)
public Iterable<String> testIAMPermissions(Iterable<String> permissions)
Tests for the given permissions on this backup for the caller.
[[["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 2024-11-19 UTC."],[],[]]