Class: Telnyx::Resources::Storage::Migrations::Actions
- Inherits:
-
Object
- Object
- Telnyx::Resources::Storage::Migrations::Actions
- Defined in:
- lib/telnyx/resources/storage/migrations/actions.rb
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.
31 32 33 |
# File 'lib/telnyx/resources/storage/migrations/actions.rb', line 31 def initialize(client:) @client = client end |
Instance Method Details
#stop(id, request_options: {}) ⇒ Telnyx::Models::Storage::Migrations::ActionStopResponse
Stop a Migration
19 20 21 22 23 24 25 26 |
# File 'lib/telnyx/resources/storage/migrations/actions.rb', line 19 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 |