Class: Google::Apis::SqladminV1::InstanceReference

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

Overview

Reference to another Cloud SQL instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstanceReference

Returns a new instance of InstanceReference.



1910
1911
1912
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1910

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

Instance Attribute Details

#nameString

The name of the Cloud SQL instance being referenced. This does not include the project ID. Corresponds to the JSON property name

Returns:

  • (String)


1897
1898
1899
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1897

def name
  @name
end

#projectString

The project ID of the Cloud SQL instance being referenced. The default is the same project ID as the instance references it. Corresponds to the JSON property project

Returns:

  • (String)


1903
1904
1905
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1903

def project
  @project
end

#regionString

The region of the Cloud SQL instance being referenced. Corresponds to the JSON property region

Returns:

  • (String)


1908
1909
1910
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1908

def region
  @region
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1915
1916
1917
1918
1919
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1915

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