Cloud Run V2 API - Class Google::Cloud::Run::V2::CloudSqlInstance (v0.32.0)

Reference documentation and code samples for the Cloud Run V2 API class Google::Cloud::Run::V2::CloudSqlInstance.

Represents a set of Cloud SQL instances. Each one will be available under /cloudsql/[instance]. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#instances

def instances() -> ::Array<::String>
Returns
  • (::Array<::String>) — A list of Cloud SQL instance connection names. Cloud Run uses these to establish connections to the specified Cloud SQL instances. While the SQL instance name itself is unique within a project, the full connection name requires the location for proper routing. Format: {project}:{location}:{instance} Example: my-project:us-central1:my-instance

    You can find this value on the instance's Overview page in the Google Cloud console or by using the following gcloud command:

    sh gcloud sql instances describe INSTANCE_NAME \ --format='value(connectionName)'

    Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run.

#instances=

def instances=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — A list of Cloud SQL instance connection names. Cloud Run uses these to establish connections to the specified Cloud SQL instances. While the SQL instance name itself is unique within a project, the full connection name requires the location for proper routing. Format: {project}:{location}:{instance} Example: my-project:us-central1:my-instance

    You can find this value on the instance's Overview page in the Google Cloud console or by using the following gcloud command:

    sh gcloud sql instances describe INSTANCE_NAME \ --format='value(connectionName)'

    Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run.

Returns
  • (::Array<::String>) — A list of Cloud SQL instance connection names. Cloud Run uses these to establish connections to the specified Cloud SQL instances. While the SQL instance name itself is unique within a project, the full connection name requires the location for proper routing. Format: {project}:{location}:{instance} Example: my-project:us-central1:my-instance

    You can find this value on the instance's Overview page in the Google Cloud console or by using the following gcloud command:

    sh gcloud sql instances describe INSTANCE_NAME \ --format='value(connectionName)'

    Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run.