Class: Google::Apis::RunV2::GoogleCloudRunV2CloudSqlInstance
- Inherits:
-
Object
- Object
- Google::Apis::RunV2::GoogleCloudRunV2CloudSqlInstance
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/run_v2/classes.rb,
lib/google/apis/run_v2/representations.rb,
lib/google/apis/run_v2/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#instances ⇒ Array<String>
The Cloud SQL instance connection names, as can be found in https://console.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRunV2CloudSqlInstance
constructor
A new instance of GoogleCloudRunV2CloudSqlInstance.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRunV2CloudSqlInstance
Returns a new instance of GoogleCloudRunV2CloudSqlInstance.
161 162 163 |
# File 'lib/google/apis/run_v2/classes.rb', line 161 def initialize(**args) update!(**args) end |
Instance Attribute Details
#instances ⇒ Array<String>
The Cloud SQL instance connection names, as can be found in https://console.
cloud.google.com/sql/instances. Visit https://cloud.google.com/sql/docs/mysql/
connect-run for more information on how to connect Cloud SQL and Cloud Run.
Format: project
:location
:instance
Corresponds to the JSON property instances
159 160 161 |
# File 'lib/google/apis/run_v2/classes.rb', line 159 def instances @instances end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
166 167 168 |
# File 'lib/google/apis/run_v2/classes.rb', line 166 def update!(**args) @instances = args[:instances] if args.key?(:instances) end |