Class: Google::Apis::ConfigV1::AutoMigrationConfig

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

Overview

AutoMigrationConfig contains the automigration configuration for a project.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AutoMigrationConfig

Returns a new instance of AutoMigrationConfig.



150
151
152
# File 'lib/google/apis/config_v1/classes.rb', line 150

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

Instance Attribute Details

#auto_migration_enabledBoolean Also known as: auto_migration_enabled?

Optional. Whether the auto migration is enabled for the project. Corresponds to the JSON property autoMigrationEnabled

Returns:

  • (Boolean)


136
137
138
# File 'lib/google/apis/config_v1/classes.rb', line 136

def auto_migration_enabled
  @auto_migration_enabled
end

#nameString

Identifier. The name of the AutoMigrationConfig. Format: 'projects/project_id /locations/location/AutoMigrationConfig'. Corresponds to the JSON property name

Returns:

  • (String)


143
144
145
# File 'lib/google/apis/config_v1/classes.rb', line 143

def name
  @name
end

#update_timeString

Output only. Time the AutoMigrationConfig was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


148
149
150
# File 'lib/google/apis/config_v1/classes.rb', line 148

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



155
156
157
158
159
# File 'lib/google/apis/config_v1/classes.rb', line 155

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