Class: Google::Apis::RunV2::GoogleCloudRunV2CloudSqlInstance

Inherits:
Object
  • Object
show all
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 specific Cloud SQL instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRunV2CloudSqlInstance

Returns a new instance of GoogleCloudRunV2CloudSqlInstance.



74
75
76
# File 'lib/google/apis/run_v2/classes.rb', line 74

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#connectionsArray<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 connections

Returns:

  • (Array<String>)


72
73
74
# File 'lib/google/apis/run_v2/classes.rb', line 72

def connections
  @connections
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



79
80
81
# File 'lib/google/apis/run_v2/classes.rb', line 79

def update!(**args)
  @connections = args[:connections] if args.key?(:connections)
end