Class: Google::Apis::DatamigrationV1::ConversionWorkspace

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

The main conversion workspace resource entity.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConversionWorkspace

Returns a new instance of ConversionWorkspace.



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

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

Instance Attribute Details

#create_timeString

Output only. The timestamp when the workspace resource was created. Corresponds to the JSON property createTime

Returns:

  • (String)


871
872
873
# File 'lib/google/apis/datamigration_v1/classes.rb', line 871

def create_time
  @create_time
end

#destinationGoogle::Apis::DatamigrationV1::DatabaseEngineInfo

The type and version of a source or destination DB. Corresponds to the JSON property destination



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

def destination
  @destination
end

#display_nameString

The display name for the workspace Corresponds to the JSON property displayName

Returns:

  • (String)


881
882
883
# File 'lib/google/apis/datamigration_v1/classes.rb', line 881

def display_name
  @display_name
end

#global_settingsHash<String,String>

A generic list of settings for the workspace. The settings are database pair dependant and can indicate default behavior for the mapping rules engine or turn on or off specific features. Such examples can be: convert_foreign_key_to_interleave=true, skip_triggers=false, ignore_non_table_synonyms=true Corresponds to the JSON property globalSettings

Returns:

  • (Hash<String,String>)


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

def global_settings
  @global_settings
end

#has_uncommitted_changesBoolean Also known as: has_uncommitted_changes?

Output only. Whether the workspace has uncommitted changes (changes which were made after the workspace was committed) Corresponds to the JSON property hasUncommittedChanges

Returns:

  • (Boolean)


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

def has_uncommitted_changes
  @has_uncommitted_changes
end

#latest_commit_idString

Output only. The latest commit id Corresponds to the JSON property latestCommitId

Returns:

  • (String)


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

def latest_commit_id
  @latest_commit_id
end

#latest_commit_timeString

Output only. The timestamp when the workspace was committed. Corresponds to the JSON property latestCommitTime

Returns:

  • (String)


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

def latest_commit_time
  @latest_commit_time
end

#nameString

Full name of the workspace resource, in the form of: projects/project/ locations/location/conversionWorkspaces/conversion_workspace. Corresponds to the JSON property name

Returns:

  • (String)


913
914
915
# File 'lib/google/apis/datamigration_v1/classes.rb', line 913

def name
  @name
end

#sourceGoogle::Apis::DatamigrationV1::DatabaseEngineInfo

The type and version of a source or destination DB. Corresponds to the JSON property source



918
919
920
# File 'lib/google/apis/datamigration_v1/classes.rb', line 918

def source
  @source
end

#update_timeString

Output only. The timestamp when the workspace resource was last updated. 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
# File 'lib/google/apis/datamigration_v1/classes.rb', line 930

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @destination = args[:destination] if args.key?(:destination)
  @display_name = args[:display_name] if args.key?(:display_name)
  @global_settings = args[:global_settings] if args.key?(:global_settings)
  @has_uncommitted_changes = args[:has_uncommitted_changes] if args.key?(:has_uncommitted_changes)
  @latest_commit_id = args[:latest_commit_id] if args.key?(:latest_commit_id)
  @latest_commit_time = args[:latest_commit_time] if args.key?(:latest_commit_time)
  @name = args[:name] if args.key?(:name)
  @source = args[:source] if args.key?(:source)
  @update_time = args[:update_time] if args.key?(:update_time)
end