def create_or_update_alert_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers:nil)
      # Send request
      promise = begin_create_or_update_alert_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers)

      promise = promise.then do |response|
        # Defining deserialization method.
        deserialize_method = lambda do |parsed_response|
          result_mapper = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertSettings.mapper()
          parsed_response = @client.deserialize(result_mapper, parsed_response)
        end

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

      promise
    end
def create_or_update_alert_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers:nil)
      # Send request
      promise = begin_create_or_update_alert_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers)

      promise = promise.then do |response|
        # Defining deserialization method.
        deserialize_method = lambda do |parsed_response|
          result_mapper = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertSettings.mapper()
          parsed_response = @client.deserialize(result_mapper, parsed_response)
        end

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

      promise
    end
@param device_name [String] The device name
 @param parameters [AlertSettings] The alert settings to be added or updated.
 @param resource_group_name [String] The resource group name
 @param manager_name [String] The manager name
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [Concurrent::Promise] promise which provides async access to http
 response.