All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.spanner.v1.Spanner.Projects.Instances.Backups.Create.html Maven / Gradle / Ivy

There is a newer version: v1-rev20241020-2.0.0
Show newest version






Spanner.Projects.Instances.Backups.Create (Cloud Spanner API v1-rev20240711-2.0.0)












com.google.api.services.spanner.v1

Class Spanner.Projects.Instances.Backups.Create

    • Constructor Detail

      • Create

        protected Create(String parent,
                         Backup content)
        Starts creating a new Cloud Spanner Backup. The returned backup long-running operation will have a name of the format `projects//instances//backups//operations/` and can be used to track creation of the backup. The metadata field type is CreateBackupMetadata. The response field type is Backup, if successful. Cancelling the returned operation will stop the creation and delete the backup. There can be only one pending backup creation per database. Backup creation of different databases can run concurrently. Create a request for the method "backups.create". This request holds the parameters needed by the the spanner server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

        Spanner.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must be called to initialize this instance immediately after invoking the constructor.

        Parameters:
        parent - Required. The name of the instance in which the backup will be created. This must be the same instance that contains the database the backup will be created from. The backup will be stored in the location(s) specified in the instance configuration of this instance. Values are of the form `projects//instances/`.
        content - the Backup
        Since:
        1.13

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy