target.apidocs.com.google.api.services.backupdr.v1.Backupdr.Projects.Locations.BackupVaults.DataSources.html Maven / Gradle / Ivy
Backupdr.Projects.Locations.BackupVaults.DataSources (Backup and DR Service API v1-rev20240731-2.0.0)
com.google.api.services.backupdr.v1
Class Backupdr.Projects.Locations.BackupVaults.DataSources
- java.lang.Object
-
- com.google.api.services.backupdr.v1.Backupdr.Projects.Locations.BackupVaults.DataSources
-
- Enclosing class:
- Backupdr.Projects.Locations.BackupVaults
public class Backupdr.Projects.Locations.BackupVaults.DataSources
extends Object
The "dataSources" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Backupdr.Projects.Locations.BackupVaults.DataSources.AbandonBackup
class
Backupdr.Projects.Locations.BackupVaults.DataSources.Backups
The "backups" collection of methods.
class
Backupdr.Projects.Locations.BackupVaults.DataSources.FetchAccessToken
class
Backupdr.Projects.Locations.BackupVaults.DataSources.FinalizeBackup
class
Backupdr.Projects.Locations.BackupVaults.DataSources.Get
class
Backupdr.Projects.Locations.BackupVaults.DataSources.InitiateBackup
class
Backupdr.Projects.Locations.BackupVaults.DataSources.List
class
Backupdr.Projects.Locations.BackupVaults.DataSources.Patch
class
Backupdr.Projects.Locations.BackupVaults.DataSources.Remove
class
Backupdr.Projects.Locations.BackupVaults.DataSources.SetInternalStatus
-
Constructor Summary
Constructors
Constructor and Description
DataSources()
-
Method Summary
-
-
Method Detail
-
abandonBackup
public Backupdr.Projects.Locations.BackupVaults.DataSources.AbandonBackup abandonBackup(String dataSource,
AbandonBackupRequest content)
throws IOException
Internal only. Abandons a backup.
Create a request for the method "dataSources.abandonBackup".
This request holds the parameters needed by the backupdr server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
dataSource
- Required. The resource name of the instance, in the format
'projects/locations/backupVaults/dataSources/'.
content
- the AbandonBackupRequest
- Returns:
- the request
- Throws:
IOException
-
fetchAccessToken
public Backupdr.Projects.Locations.BackupVaults.DataSources.FetchAccessToken fetchAccessToken(String name,
FetchAccessTokenRequest content)
throws IOException
Internal only. Fetch access token for a given data source.
Create a request for the method "dataSources.fetchAccessToken".
This request holds the parameters needed by the backupdr server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. The resource name for the location for which static IPs should be returned. Must be in the
format 'projects/locations/backupVaults/dataSources'.
content
- the FetchAccessTokenRequest
- Returns:
- the request
- Throws:
IOException
-
finalizeBackup
public Backupdr.Projects.Locations.BackupVaults.DataSources.FinalizeBackup finalizeBackup(String dataSource,
FinalizeBackupRequest content)
throws IOException
Internal only. Finalize a backup that was started by a call to InitiateBackup.
Create a request for the method "dataSources.finalizeBackup".
This request holds the parameters needed by the backupdr server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
dataSource
- Required. The resource name of the instance, in the format
'projects/locations/backupVaults/dataSources/'.
content
- the FinalizeBackupRequest
- Returns:
- the request
- Throws:
IOException
-
get
public Backupdr.Projects.Locations.BackupVaults.DataSources.Get get(String name)
throws IOException
Gets details of a DataSource.
Create a request for the method "dataSources.get".
This request holds the parameters needed by the backupdr server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. Name of the data source resource name, in the format
'projects/{project_id}/locations/{location}/backupVaults/{resource_name}/dataSource/{resou
rce_name}'
- Returns:
- the request
- Throws:
IOException
-
initiateBackup
public Backupdr.Projects.Locations.BackupVaults.DataSources.InitiateBackup initiateBackup(String dataSource,
InitiateBackupRequest content)
throws IOException
Internal only. Initiates a backup.
Create a request for the method "dataSources.initiateBackup".
This request holds the parameters needed by the backupdr server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
dataSource
- Required. The resource name of the instance, in the format
'projects/locations/backupVaults/dataSources/'.
content
- the InitiateBackupRequest
- Returns:
- the request
- Throws:
IOException
-
list
public Backupdr.Projects.Locations.BackupVaults.DataSources.List list(String parent)
throws IOException
Lists DataSources in a given project and location.
Create a request for the method "dataSources.list".
This request holds the parameters needed by the backupdr server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
parent
- Required. The project and location for which to retrieve data sources information, in the format
'projects/{project_id}/locations/{location}'. In Cloud Backup and DR, locations map to
Google Cloud regions, for example **us-central1**. To retrieve data sources for all
locations, use "-" for the '{location}' value.
- Returns:
- the request
- Throws:
IOException
-
patch
public Backupdr.Projects.Locations.BackupVaults.DataSources.Patch patch(String name,
DataSource content)
throws IOException
Updates the settings of a DataSource.
Create a request for the method "dataSources.patch".
This request holds the parameters needed by the backupdr server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Output only. Identifier. The resource name.
content
- the DataSource
- Returns:
- the request
- Throws:
IOException
-
remove
public Backupdr.Projects.Locations.BackupVaults.DataSources.Remove remove(String name,
RemoveDataSourceRequest content)
throws IOException
Deletes a DataSource. This is a custom method instead of a standard delete method because
external clients will not delete DataSources except for BackupDR backup appliances.
Create a request for the method "dataSources.remove".
This request holds the parameters needed by the backupdr server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. Name of the resource.
content
- the RemoveDataSourceRequest
- Returns:
- the request
- Throws:
IOException
-
setInternalStatus
public Backupdr.Projects.Locations.BackupVaults.DataSources.SetInternalStatus setInternalStatus(String dataSource,
SetInternalStatusRequest content)
throws IOException
Sets the internal status of a DataSource.
Create a request for the method "dataSources.setInternalStatus".
This request holds the parameters needed by the backupdr server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
dataSource
- Required. The resource name of the instance, in the format
'projects/locations/backupVaults/dataSources/'.
content
- the SetInternalStatusRequest
- Returns:
- the request
- Throws:
IOException
-
backups
public Backupdr.Projects.Locations.BackupVaults.DataSources.Backups backups()
An accessor for creating requests from the Backups collection.
The typical use is:
Backupdr backupdr = new Backupdr(...);
Backupdr.Backups.List request = backupdr.backups().list(parameters ...)
- Returns:
- the resource collection
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy