Class: Google::Apis::DatamigrationV1::ApplyConversionWorkspaceRequest

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

Request message for 'ApplyConversionWorkspace' request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ApplyConversionWorkspaceRequest

Returns a new instance of ApplyConversionWorkspaceRequest.



139
140
141
# File 'lib/google/apis/datamigration_v1/classes.rb', line 139

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

Instance Attribute Details

#auto_commitBoolean Also known as: auto_commit?

Optional. Specifies whether the conversion workspace is to be committed automatically after the apply. Corresponds to the JSON property autoCommit

Returns:

  • (Boolean)


118
119
120
# File 'lib/google/apis/datamigration_v1/classes.rb', line 118

def auto_commit
  @auto_commit
end

#connection_profileString

Optional. Fully qualified (Uri) name of the destination connection profile. Corresponds to the JSON property connectionProfile

Returns:

  • (String)


124
125
126
# File 'lib/google/apis/datamigration_v1/classes.rb', line 124

def connection_profile
  @connection_profile
end

#dry_runBoolean Also known as: dry_run?

Optional. Only validates the apply process, but doesn't change the destination database. Only works for PostgreSQL destination connection profile. Corresponds to the JSON property dryRun

Returns:

  • (Boolean)


130
131
132
# File 'lib/google/apis/datamigration_v1/classes.rb', line 130

def dry_run
  @dry_run
end

#filterString

Filter which entities to apply. Leaving this field empty will apply all of the entities. Supports Google AIP 160 based filtering. Corresponds to the JSON property filter

Returns:

  • (String)


137
138
139
# File 'lib/google/apis/datamigration_v1/classes.rb', line 137

def filter
  @filter
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



144
145
146
147
148
149
# File 'lib/google/apis/datamigration_v1/classes.rb', line 144

def update!(**args)
  @auto_commit = args[:auto_commit] if args.key?(:auto_commit)
  @connection_profile = args[:connection_profile] if args.key?(:connection_profile)
  @dry_run = args[:dry_run] if args.key?(:dry_run)
  @filter = args[:filter] if args.key?(:filter)
end