Class: Telnyx::Resources::Storage::Migrations::Actions

Inherits:
Object
  • Object
show all
Defined in:
lib/telnyx/resources/storage/migrations/actions.rb

Overview

Migrate data from an external provider into Telnyx Cloud Storage

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Actions

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Actions.

Parameters:



32
33
34
# File 'lib/telnyx/resources/storage/migrations/actions.rb', line 32

def initialize(client:)
  @client = client
end

Instance Method Details

#stop(id, request_options: {}) ⇒ Telnyx::Models::Storage::Migrations::ActionStopResponse

Stop a Migration

Parameters:

  • id (String)

    Unique identifier for the data migration.

  • request_options (Telnyx::RequestOptions, Hash{Symbol=>Object}, nil)

Returns:

See Also:



20
21
22
23
24
25
26
27
# File 'lib/telnyx/resources/storage/migrations/actions.rb', line 20

def stop(id, params = {})
  @client.request(
    method: :post,
    path: ["storage/migrations/%1$s/actions/stop", id],
    model: Telnyx::Models::Storage::Migrations::ActionStopResponse,
    options: params[:request_options]
  )
end