Method: Azure::Hdinsight::Mgmt::V2018_06_01_preview::Clusters#execute_script_actions_async

Defined in:
lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/clusters.rb

#execute_script_actions_async(resource_group_name, cluster_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise

executing script actions. will be added to the HTTP request.

response.

Parameters:

  • resource_group_name (String)

    The name of the resource group.

  • cluster_name (String)

    The name of the cluster.

  • parameters (ExecuteScriptActionParameters)

    The parameters for

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (Concurrent::Promise)

    promise which provides async access to http



771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
# File 'lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/clusters.rb', line 771

def execute_script_actions_async(resource_group_name, cluster_name, parameters, custom_headers:nil)
  # Send request
  promise = begin_execute_script_actions_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers)

  promise = promise.then do |response|
    # Defining deserialization method.
    deserialize_method = lambda do |parsed_response|
    end

    # Waiting for response.
    @client.get_long_running_operation_result(response, deserialize_method)
  end

  promise
end