Class: Google::Apis::NetworkmanagementV1::CloudSqlInstanceInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/networkmanagement_v1/classes.rb,
lib/google/apis/networkmanagement_v1/representations.rb,
lib/google/apis/networkmanagement_v1/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.



500
501
502
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 500

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)


472
473
474
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 472

def display_name
  @display_name
end

#external_ipString

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

Returns:

  • (String)


477
478
479
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 477

def external_ip
  @external_ip
end

#internal_ipString

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

Returns:

  • (String)


482
483
484
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 482

def internal_ip
  @internal_ip
end

#network_uriString

URI of a Cloud SQL instance network or empty string if the instance does not have one. In format "projects/project/global/networks/network". Corresponds to the JSON property networkUri

Returns:

  • (String)


488
489
490
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 488

def network_uri
  @network_uri
end

#regionString

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

Returns:

  • (String)


493
494
495
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 493

def region
  @region
end

#uriString

URI of a Cloud SQL instance in format "projects/project/instances/instance" Corresponds to the JSON property uri

Returns:

  • (String)


498
499
500
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 498

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



505
506
507
508
509
510
511
512
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 505

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