class ProjectsInstances extends Resource (View source)

The "instances" collection of methods.

Typical usage is:

 $sqladminService = new Google\Service\SQLAdmin(...);
 $instances = $sqladminService->projects_instances;

Methods

getDiskShrinkConfig(string $project, string $instance, array $optParams = [])

Get Disk Shrink Config for a given instance. (instances.getDiskShrinkConfig)

getLatestRecoveryTime(string $project, string $instance, array $optParams = [])

Get Latest Recovery Time for a given instance.

performDiskShrink(string $project, string $instance, PerformDiskShrinkContext $postBody, array $optParams = [])

Perform Disk Shrink on primary instance. (instances.performDiskShrink)

rescheduleMaintenance(string $project, string $instance, SqlInstancesRescheduleMaintenanceRequestBody $postBody, array $optParams = [])

Reschedules the maintenance on the given instance.

resetReplicaSize(string $project, string $instance, SqlInstancesResetReplicaSizeRequest $postBody, array $optParams = [])

Reset Replica Size to primary instance disk size.

startExternalSync(string $project, string $instance, SqlInstancesStartExternalSyncRequest $postBody, array $optParams = [])

Start External primary instance migration. (instances.startExternalSync)

verifyExternalSyncSettings(string $project, string $instance, SqlInstancesVerifyExternalSyncSettingsRequest $postBody, array $optParams = [])

Verify External primary instance external sync settings.

Details

SqlInstancesGetDiskShrinkConfigResponse getDiskShrinkConfig(string $project, string $instance, array $optParams = [])

Get Disk Shrink Config for a given instance. (instances.getDiskShrinkConfig)

Parameters

string $project

Project ID of the project that contains the instance.

string $instance

Cloud SQL instance ID. This does not include the project ID.

array $optParams

Optional parameters.

Return Value

SqlInstancesGetDiskShrinkConfigResponse

Exceptions

Exception

SqlInstancesGetLatestRecoveryTimeResponse getLatestRecoveryTime(string $project, string $instance, array $optParams = [])

Get Latest Recovery Time for a given instance.

(instances.getLatestRecoveryTime)

Parameters

string $project

Project ID of the project that contains the instance.

string $instance

Cloud SQL instance ID. This does not include the project ID.

array $optParams

Optional parameters.

Return Value

SqlInstancesGetLatestRecoveryTimeResponse

Exceptions

Exception

Operation performDiskShrink(string $project, string $instance, PerformDiskShrinkContext $postBody, array $optParams = [])

Perform Disk Shrink on primary instance. (instances.performDiskShrink)

Parameters

string $project

Project ID of the project that contains the instance.

string $instance

Cloud SQL instance ID. This does not include the project ID.

PerformDiskShrinkContext $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation rescheduleMaintenance(string $project, string $instance, SqlInstancesRescheduleMaintenanceRequestBody $postBody, array $optParams = [])

Reschedules the maintenance on the given instance.

(instances.rescheduleMaintenance)

Parameters

string $project

ID of the project that contains the instance.

string $instance

Cloud SQL instance ID. This does not include the project ID.

SqlInstancesRescheduleMaintenanceRequestBody $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation resetReplicaSize(string $project, string $instance, SqlInstancesResetReplicaSizeRequest $postBody, array $optParams = [])

Reset Replica Size to primary instance disk size.

(instances.resetReplicaSize)

Parameters

string $project

ID of the project that contains the read replica.

string $instance

Cloud SQL read replica instance name.

SqlInstancesResetReplicaSizeRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation startExternalSync(string $project, string $instance, SqlInstancesStartExternalSyncRequest $postBody, array $optParams = [])

Start External primary instance migration. (instances.startExternalSync)

Parameters

string $project

ID of the project that contains the instance.

string $instance

Cloud SQL instance ID. This does not include the project ID.

SqlInstancesStartExternalSyncRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

SqlInstancesVerifyExternalSyncSettingsResponse verifyExternalSyncSettings(string $project, string $instance, SqlInstancesVerifyExternalSyncSettingsRequest $postBody, array $optParams = [])

Verify External primary instance external sync settings.

(instances.verifyExternalSyncSettings)

Parameters

string $project

Project ID of the project that contains the instance.

string $instance

Cloud SQL instance ID. This does not include the project ID.

SqlInstancesVerifyExternalSyncSettingsRequest $postBody
array $optParams

Optional parameters.

Return Value

SqlInstancesVerifyExternalSyncSettingsResponse

Exceptions

Exception