class Connect extends Resource (View source)

The "connect" collection of methods.

Typical usage is:

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

Methods

generateEphemeralCert(string $project, string $instance, GenerateEphemeralCertRequest $postBody, array $optParams = [])

Generates a short-lived X509 certificate containing the provided public key and signed by a private key specific to the target instance. Users may use the certificate to authenticate as themselves when connecting to the database. (connect.generateEphemeralCert)

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

Retrieves connect settings about a Cloud SQL instance. (connect.get)

Details

GenerateEphemeralCertResponse generateEphemeralCert(string $project, string $instance, GenerateEphemeralCertRequest $postBody, array $optParams = [])

Generates a short-lived X509 certificate containing the provided public key and signed by a private key specific to the target instance. Users may use the certificate to authenticate as themselves when connecting to the database. (connect.generateEphemeralCert)

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.

GenerateEphemeralCertRequest $postBody
array $optParams

Optional parameters.

Return Value

GenerateEphemeralCertResponse

Exceptions

Exception

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

Retrieves connect settings about a Cloud SQL instance. (connect.get)

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

ConnectSettings

Exceptions

Exception