Class: Google::Apis::FirebasedataconnectV1beta::PostgreSql

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

Overview

Settings for PostgreSQL data source.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PostgreSql

Returns a new instance of PostgreSql.



849
850
851
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 849

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

Instance Attribute Details

#cloud_sqlGoogle::Apis::FirebasedataconnectV1beta::CloudSqlInstance

Settings for CloudSQL instance configuration. Corresponds to the JSON property cloudSql



829
830
831
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 829

def cloud_sql
  @cloud_sql
end

#databaseString

Required. Name of the PostgreSQL database. Corresponds to the JSON property database

Returns:

  • (String)


834
835
836
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 834

def database
  @database
end

#schema_validationString

Optional. Configure how much Postgresql schema validation to perform. Default to STRICT if not specified. Corresponds to the JSON property schemaValidation

Returns:

  • (String)


840
841
842
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 840

def schema_validation
  @schema_validation
end

#unlinkedBoolean Also known as: unlinked?

No Postgres data source is linked. If set, don't allow database and schema_validation to be configured. Corresponds to the JSON property unlinked

Returns:

  • (Boolean)


846
847
848
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 846

def unlinked
  @unlinked
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



854
855
856
857
858
859
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 854

def update!(**args)
  @cloud_sql = args[:cloud_sql] if args.key?(:cloud_sql)
  @database = args[:database] if args.key?(:database)
  @schema_validation = args[:schema_validation] if args.key?(:schema_validation)
  @unlinked = args[:unlinked] if args.key?(:unlinked)
end