target.apidocs.com.google.api.services.sqladmin.SQLAdmin.Projects.Instances.html Maven / Gradle / Ivy
The newest version!
SQLAdmin.Projects.Instances (Cloud SQL Admin API v1-rev20241108-2.0.0)
com.google.api.services.sqladmin
Class SQLAdmin.Projects.Instances
- java.lang.Object
-
- com.google.api.services.sqladmin.SQLAdmin.Projects.Instances
-
- Enclosing class:
- SQLAdmin.Projects
public class SQLAdmin.Projects.Instances
extends Object
The "instances" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
SQLAdmin.Projects.Instances.GetDiskShrinkConfig
class
SQLAdmin.Projects.Instances.GetLatestRecoveryTime
class
SQLAdmin.Projects.Instances.PerformDiskShrink
class
SQLAdmin.Projects.Instances.RescheduleMaintenance
class
SQLAdmin.Projects.Instances.ResetReplicaSize
class
SQLAdmin.Projects.Instances.StartExternalSync
class
SQLAdmin.Projects.Instances.VerifyExternalSyncSettings
-
Constructor Summary
Constructors
Constructor and Description
Instances()
-
Method Summary
-
-
Method Detail
-
getDiskShrinkConfig
public SQLAdmin.Projects.Instances.GetDiskShrinkConfig getDiskShrinkConfig(String project,
String instance)
throws IOException
Get Disk Shrink Config for a given instance.
Create a request for the method "instances.getDiskShrinkConfig".
This request holds the parameters needed by the sqladmin server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID of the project that contains the instance.
instance
- Cloud SQL instance ID. This does not include the project ID.
- Returns:
- the request
- Throws:
IOException
-
getLatestRecoveryTime
public SQLAdmin.Projects.Instances.GetLatestRecoveryTime getLatestRecoveryTime(String project,
String instance)
throws IOException
Get Latest Recovery Time for a given instance.
Create a request for the method "instances.getLatestRecoveryTime".
This request holds the parameters needed by the sqladmin server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote
operation.
- Parameters:
project
- Project ID of the project that contains the instance.
instance
- Cloud SQL instance ID. This does not include the project ID.
- Returns:
- the request
- Throws:
IOException
-
performDiskShrink
public SQLAdmin.Projects.Instances.PerformDiskShrink performDiskShrink(String project,
String instance,
PerformDiskShrinkContext content)
throws IOException
Perform Disk Shrink on primary instance.
Create a request for the method "instances.performDiskShrink".
This request holds the parameters needed by the sqladmin server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID of the project that contains the instance.
instance
- Cloud SQL instance ID. This does not include the project ID.
content
- the PerformDiskShrinkContext
- Returns:
- the request
- Throws:
IOException
-
rescheduleMaintenance
public SQLAdmin.Projects.Instances.RescheduleMaintenance rescheduleMaintenance(String project,
String instance,
SqlInstancesRescheduleMaintenanceRequestBody content)
throws IOException
Reschedules the maintenance on the given instance.
Create a request for the method "instances.rescheduleMaintenance".
This request holds the parameters needed by the sqladmin server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote
operation.
- Parameters:
project
- ID of the project that contains the instance.
instance
- Cloud SQL instance ID. This does not include the project ID.
content
- the SqlInstancesRescheduleMaintenanceRequestBody
- Returns:
- the request
- Throws:
IOException
-
resetReplicaSize
public SQLAdmin.Projects.Instances.ResetReplicaSize resetReplicaSize(String project,
String instance,
SqlInstancesResetReplicaSizeRequest content)
throws IOException
Reset Replica Size to primary instance disk size.
Create a request for the method "instances.resetReplicaSize".
This request holds the parameters needed by the sqladmin server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- ID of the project that contains the read replica.
instance
- Cloud SQL read replica instance name.
content
- the SqlInstancesResetReplicaSizeRequest
- Returns:
- the request
- Throws:
IOException
-
startExternalSync
public SQLAdmin.Projects.Instances.StartExternalSync startExternalSync(String project,
String instance,
SqlInstancesStartExternalSyncRequest content)
throws IOException
Start External primary instance migration.
Create a request for the method "instances.startExternalSync".
This request holds the parameters needed by the sqladmin server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- ID of the project that contains the instance.
instance
- Cloud SQL instance ID. This does not include the project ID.
content
- the SqlInstancesStartExternalSyncRequest
- Returns:
- the request
- Throws:
IOException
-
verifyExternalSyncSettings
public SQLAdmin.Projects.Instances.VerifyExternalSyncSettings verifyExternalSyncSettings(String project,
String instance,
SqlInstancesVerifyExternalSyncSettingsRequest content)
throws IOException
Verify External primary instance external sync settings.
Create a request for the method "instances.verifyExternalSyncSettings".
This request holds the parameters needed by the sqladmin server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote
operation.
- Parameters:
project
- Project ID of the project that contains the instance.
instance
- Cloud SQL instance ID. This does not include the project ID.
content
- the SqlInstancesVerifyExternalSyncSettingsRequest
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy