Class: Telnyx::Resources::Storage::Migrations::Actions
- Inherits:
-
Object
- Object
- Telnyx::Resources::Storage::Migrations::Actions
- Defined in:
- lib/telnyx/resources/storage/migrations/actions.rb
Overview
Migrate data from an external provider into Telnyx Cloud Storage
Instance Method Summary collapse
-
#initialize(client:) ⇒ Actions
constructor
private
A new instance of Actions.
-
#stop(id, request_options: {}) ⇒ Telnyx::Models::Storage::Migrations::ActionStopResponse
Stop a Migration.
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.
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
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 |