<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns="http://netconfcentral.org/ns/yuma-time-filter"
  targetNamespace="http://netconfcentral.org/ns/yuma-time-filter"
  elementFormDefault="qualified" attributeFormDefault="unqualified"
  xml:lang="en" version="2011-08-13"
  xmlns:ncx="http://netconfcentral.org/ns/yuma-ncx"
  xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"
  xmlns:yang="urn:ietf:params:xml:ns:yang:ietf-yang-types"
  xmlns:ncm="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring">
  <xs:annotation>
    <xs:documentation>Converted from YANG file 'yuma-time-filter.yang' by yangdump version 2.2.1737
      
      Module: yuma-time-filter
      Organization: Netconf Central
      Version: 2011-08-13
      Contact: Andy Bierman &lt;andy@netconfcentral.org&gt;.</xs:documentation>
    <xs:documentation>Yuma &lt;datastore&gt; extension for optimizing datastore
      polling mechanisms by allowing the client to
      request datastore content only if it has been modified since
      a specified date and time.
      
      If the netconfd server advertises this module then
      the 'last-modified' XML attribute will be added
      to the &lt;rpc-reply&gt; element if there was no 'last-modified'
      attribute in the &lt;rpc&gt; element.  This is only done
      for the NETCONF &lt;get&gt; and &lt;get-config&gt; protocol operations.
      
      Example:
      
      &lt;rpc message-id='2'
          xmlns='urn:ietf:params:xml:ns:netconf:base:1.0'&gt;
        &lt;get /&gt;
      &lt;/rpc&gt;
      
      &lt;rpc-reply message-id='2'
         last-modified='2011-08-14T00:16:49Z'
         xmlns='urn:ietf:params:xml:ns:netconf:base:1.0'&gt;
        &lt;data&gt; ... &lt;/data&gt;
      &lt;/rpc-reply&gt;
      </xs:documentation>
    <xs:appinfo>
      <ncx:reference>
        <ncx:text>RFC 2616: Last-Modified and If-Modified-Since headers</ncx:text>
        <ncx:url>http://www.ietf.org/rfc/rfc2616.txt</ncx:url>
      </ncx:reference>
      <ncx:source>/usr/share/yuma/modules/netconfcentral/yuma-time-filter.yang</ncx:source>
      <ncx:organization>Netconf Central</ncx:organization>
      <ncx:contact>Andy Bierman &lt;andy@netconfcentral.org&gt;.</ncx:contact>
    </xs:appinfo>
    <xs:appinfo>
      <ncx:revision>
        <ncx:version>2011-08-13</ncx:version>
        <ncx:description>Initial version.</ncx:description>
      </ncx:revision>
    </xs:appinfo>
  </xs:annotation>
  <xs:group name="if-modified-since-parm">
    <xs:sequence>
      <xs:element name="if-modified-since" type="yang:date-and-time"
        minOccurs="0">
        <xs:annotation>
          <xs:documentation>If this parameter is present, then the server will
            only process the retrieval request if the
            corresponding 'last-modified' timestamp is
            more recent than this timestamp. If so, then the
            retrieval request is processed as normal.
            If not, an empty &lt;data&gt; element will be returned.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:group>
  <xs:element name="last-modified" type="yang:date-and-time"
    minOccurs="0"
    substitutionGroup="ncm:__.netconf-state.datastores.datastore.A__">
    <xs:annotation>
      <xs:documentation>The date and time when the server last detected
        that the datastore was changed, or last initialized
        if no changes have been made.  Note that state data
        is not included in a datastore, and modifications
        to state data do not affect this timestamp.</xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:element name="if-modified-since" type="yang:date-and-time"
    minOccurs="0" substitutionGroup="nc:__.get-config.input.A__">
    <xs:annotation>
      <xs:documentation>If this parameter is present, then the server will
        only process the retrieval request if the
        corresponding 'last-modified' timestamp is
        more recent than this timestamp. If so, then the
        retrieval request is processed as normal.
        If not, an empty &lt;data&gt; element will be returned.</xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:element name="if-modified-since" type="yang:date-and-time"
    minOccurs="0" substitutionGroup="nc:__.get.input.A__">
    <xs:annotation>
      <xs:documentation>If this parameter is present, then the server will
        only process the retrieval request if the
        corresponding 'last-modified' timestamp is
        more recent than this timestamp. If so, then the
        retrieval request is processed as normal.
        If not, an empty &lt;data&gt; element will be returned.</xs:documentation>
    </xs:annotation>
  </xs:element>
</xs:schema>

