Class ConnectResource
The "connect" collection of methods.
Inherited Members
Namespace: Google.Apis.SQLAdmin.v1
Assembly: Google.Apis.SQLAdmin.v1.dll
Syntax
public class ConnectResource
Constructors
ConnectResource(IClientService)
Constructs a new resource.
Declaration
public ConnectResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
GenerateEphemeralCert(GenerateEphemeralCertRequest, string, string)
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.
Declaration
public virtual ConnectResource.GenerateEphemeralCertRequest GenerateEphemeralCert(GenerateEphemeralCertRequest body, string project, string instance)
Parameters
Type | Name | Description |
---|---|---|
GenerateEphemeralCertRequest | body | The body of the request. |
string | project | Project ID of the project that contains the instance. |
string | instance | Cloud SQL instance ID. This does not include the project ID. |
Returns
Type | Description |
---|---|
ConnectResource.GenerateEphemeralCertRequest |
Get(string, string)
Retrieves connect settings about a Cloud SQL instance.
Declaration
public virtual ConnectResource.GetRequest Get(string project, string instance)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID of the project that contains the instance. |
string | instance | Cloud SQL instance ID. This does not include the project ID. |
Returns
Type | Description |
---|---|
ConnectResource.GetRequest |