Class: Google::Apis::DatamigrationV1::ConnectionProfile

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

Overview

A connection profile definition.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConnectionProfile

Returns a new instance of ConnectionProfile.



925
926
927
# File 'lib/google/apis/datamigration_v1/classes.rb', line 925

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

Instance Attribute Details

#alloydbGoogle::Apis::DatamigrationV1::AlloyDbConnectionProfile

Specifies required connection parameters, and the parameters required to create an AlloyDB destination cluster. Corresponds to the JSON property alloydb



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

def alloydb
  @alloydb
end

#cloudsqlGoogle::Apis::DatamigrationV1::CloudSqlConnectionProfile

Specifies required connection parameters, and, optionally, the parameters required to create a Cloud SQL destination database instance. Corresponds to the JSON property cloudsql



855
856
857
# File 'lib/google/apis/datamigration_v1/classes.rb', line 855

def cloudsql
  @cloudsql
end

#create_timeString

Output only. The timestamp when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01: 23.045123456Z". Corresponds to the JSON property createTime

Returns:

  • (String)


862
863
864
# File 'lib/google/apis/datamigration_v1/classes.rb', line 862

def create_time
  @create_time
end

#display_nameString

The connection profile display name. Corresponds to the JSON property displayName

Returns:

  • (String)


867
868
869
# File 'lib/google/apis/datamigration_v1/classes.rb', line 867

def display_name
  @display_name
end

#errorGoogle::Apis::DatamigrationV1::Status

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide. Corresponds to the JSON property error



877
878
879
# File 'lib/google/apis/datamigration_v1/classes.rb', line 877

def error
  @error
end

#labelsHash<String,String>

The resource labels for connection profile to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs. Example: "name": "wrench", "mass": "1.3kg", "count" : "3". Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


885
886
887
# File 'lib/google/apis/datamigration_v1/classes.rb', line 885

def labels
  @labels
end

#mysqlGoogle::Apis::DatamigrationV1::MySqlConnectionProfile

Specifies connection parameters required specifically for MySQL databases. Corresponds to the JSON property mysql



890
891
892
# File 'lib/google/apis/datamigration_v1/classes.rb', line 890

def mysql
  @mysql
end

#nameString

The name of this connection profile resource in the form of projects/project/ locations/location/connectionProfiles/connectionProfile. Corresponds to the JSON property name

Returns:

  • (String)


896
897
898
# File 'lib/google/apis/datamigration_v1/classes.rb', line 896

def name
  @name
end

#oracleGoogle::Apis::DatamigrationV1::OracleConnectionProfile

Specifies connection parameters required specifically for Oracle databases. Corresponds to the JSON property oracle



901
902
903
# File 'lib/google/apis/datamigration_v1/classes.rb', line 901

def oracle
  @oracle
end

#postgresqlGoogle::Apis::DatamigrationV1::PostgreSqlConnectionProfile

Specifies connection parameters required specifically for PostgreSQL databases. Corresponds to the JSON property postgresql



906
907
908
# File 'lib/google/apis/datamigration_v1/classes.rb', line 906

def postgresql
  @postgresql
end

#providerString

The database provider. Corresponds to the JSON property provider

Returns:

  • (String)


911
912
913
# File 'lib/google/apis/datamigration_v1/classes.rb', line 911

def provider
  @provider
end

#stateString

The current connection profile state (e.g. DRAFT, READY, or FAILED). Corresponds to the JSON property state

Returns:

  • (String)


916
917
918
# File 'lib/google/apis/datamigration_v1/classes.rb', line 916

def state
  @state
end

#update_timeString

Output only. The timestamp when the resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01: 23.045123456Z". Corresponds to the JSON property updateTime

Returns:

  • (String)


923
924
925
# File 'lib/google/apis/datamigration_v1/classes.rb', line 923

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
# File 'lib/google/apis/datamigration_v1/classes.rb', line 930

def update!(**args)
  @alloydb = args[:alloydb] if args.key?(:alloydb)
  @cloudsql = args[:cloudsql] if args.key?(:cloudsql)
  @create_time = args[:create_time] if args.key?(:create_time)
  @display_name = args[:display_name] if args.key?(:display_name)
  @error = args[:error] if args.key?(:error)
  @labels = args[:labels] if args.key?(:labels)
  @mysql = args[:mysql] if args.key?(:mysql)
  @name = args[:name] if args.key?(:name)
  @oracle = args[:oracle] if args.key?(:oracle)
  @postgresql = args[:postgresql] if args.key?(:postgresql)
  @provider = args[:provider] if args.key?(:provider)
  @state = args[:state] if args.key?(:state)
  @update_time = args[:update_time] if args.key?(:update_time)
end