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

target.apidocs.com.google.api.services.sqladmin.SQLAdmin.Connect.html Maven / Gradle / Ivy

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






SQLAdmin.Connect (Cloud SQL Admin API v1-rev20240925-2.0.0)












com.google.api.services.sqladmin

Class SQLAdmin.Connect

  • Enclosing class:
    SQLAdmin


    public class SQLAdmin.Connect
    extends Object
    The "connect" collection of methods.
    • Constructor Detail

      • Connect

        public Connect()
    • Method Detail

      • generateEphemeralCert

        public SQLAdmin.Connect.GenerateEphemeralCert generateEphemeralCert(String project,
                                                                            String instance,
                                                                            GenerateEphemeralCertRequest content)
                                                                     throws IOException
        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. Create a request for the method "connect.generateEphemeralCert". 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 GenerateEphemeralCertRequest
        Returns:
        the request
        Throws:
        IOException
      • get

        public SQLAdmin.Connect.Get get(String project,
                                        String instance)
                                 throws IOException
        Retrieves connect settings about a Cloud SQL instance. Create a request for the method "connect.get". 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

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy