<?xml version="1.0"?>
<!--
  ~ Copyright (c) 2010-2017 Evolveum
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<resourceObjectShadowChangeDescription xmlns:apit='http://midpoint.evolveum.com/xml/ns/public/common/api-types-3'
    xmlns='http://midpoint.evolveum.com/xml/ns/public/common/common-3'
    xmlns:c='http://midpoint.evolveum.com/xml/ns/public/common/common-3'
    xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
    xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3">
    <objectDelta>
        <t:changeType>add</t:changeType>
        <t:objectType>ShadowType</t:objectType>
        <t:objectToAdd xsi:type="ShadowType">
            <!-- No OID for account. The OID will be generated once the account shadow
        is added to the repository. -->
            <!-- No name here. We expect that it will be generated -->
            <c:resourceRef oid="ee0a9074-6bcd-4f8d-8a7d-88dca572769c" />
            <c:objectClass>ri:AccountObjectClass</c:objectClass>
            <c:kind>account</c:kind>
            <c:intent>contact</c:intent>
            <c:attributes>
                <icfs:uid>23406</icfs:uid>
                <icfs:name>j.sparrow</icfs:name>
                <ri:emailAddress>j.sparrow@example.com</ri:emailAddress>
                <ri:lastName>Sparrow</ri:lastName>
                <ri:middleName>Jr</ri:middleName>
                <ri:firstName>Jack</ri:firstName>
            </c:attributes>
        </t:objectToAdd>

    </objectDelta>
</resourceObjectShadowChangeDescription>
