def list_by_connector_as_lazy(resource_group_name, hub_name, connector_name, custom_headers:nil)
      response = list_by_connector_async(resource_group_name, hub_name, connector_name, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_by_connector_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
def list_by_connector_as_lazy(resource_group_name, hub_name, connector_name, custom_headers:nil)
      response = list_by_connector_async(resource_group_name, hub_name, connector_name, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_by_connector_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
Gets all the connector mappings in the specified connector.

 @param resource_group_name [String] The name of the resource group.
 @param hub_name [String] The name of the hub.
 @param connector_name [String] The name of the connector.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [ConnectorMappingListResult] which provide lazy access to pages of
 the response.