Class: Google::Apis::NetworkmanagementV1beta1::CloudSqlInstanceInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/networkmanagement_v1beta1/classes.rb,
generated/google/apis/networkmanagement_v1beta1/representations.rb,
generated/google/apis/networkmanagement_v1beta1/representations.rb

Overview

For display only. Metadata associated with a Cloud SQL instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudSqlInstanceInfo

Returns a new instance of CloudSqlInstanceInfo.



246
247
248
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 246

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

Instance Attribute Details

#display_nameString

Name of a Cloud SQL instance. Corresponds to the JSON property displayName

Returns:

  • (String)


218
219
220
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 218

def display_name
  @display_name
end

#external_ipString

External IP address of Cloud SQL instance. Corresponds to the JSON property externalIp

Returns:

  • (String)


223
224
225
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 223

def external_ip
  @external_ip
end

#internal_ipString

Internal IP address of Cloud SQL instance. Corresponds to the JSON property internalIp

Returns:

  • (String)


228
229
230
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 228

def internal_ip
  @internal_ip
end

#network_uriString

URI of a Cloud SQL instance network or empty string if instance does not have one. Corresponds to the JSON property networkUri

Returns:

  • (String)


234
235
236
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 234

def network_uri
  @network_uri
end

#regionString

Region in which the Cloud SQL instance is running. Corresponds to the JSON property region

Returns:

  • (String)


239
240
241
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 239

def region
  @region
end

#uriString

URI of a Cloud SQL instance. Corresponds to the JSON property uri

Returns:

  • (String)


244
245
246
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 244

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



251
252
253
254
255
256
257
258
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 251

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @external_ip = args[:external_ip] if args.key?(:external_ip)
  @internal_ip = args[:internal_ip] if args.key?(:internal_ip)
  @network_uri = args[:network_uri] if args.key?(:network_uri)
  @region = args[:region] if args.key?(:region)
  @uri = args[:uri] if args.key?(:uri)
end