/* Code generated by Azure.Iot.Operations.ProtocolCompilerLib v1.0.0.0; DO NOT EDIT. */

#nullable enable

using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
using Azure.Iot.Operations.Services.AssetAndDeviceRegistry.Generated.Common;

namespace Azure.Iot.Operations.Services.AssetAndDeviceRegistry.Generated.AdrBaseService
{
    /// <summary>
    /// Response containing the discovered asset response or error details if the operation failed.
    /// </summary>
    [System.CodeDom.Compiler.GeneratedCode("Azure.Iot.Operations.ProtocolCompilerLib", "1.0.0.0")]
    public partial class CreateOrUpdateDiscoveredAssetResponseSchema
    {
        /// <summary>
        /// Error for the 'createOrUpdateDiscoveredAsset' Action.
        /// </summary>
        [JsonPropertyName("createOrUpdateDiscoveredAssetError")]
        [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
        public AkriServiceError? CreateOrUpdateDiscoveredAssetError { get; set; } = default;

        /// <summary>
        /// The discovered asset response.
        /// </summary>
        [JsonPropertyName("discoveredAssetResponse")]
        [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
        public DiscoveredAssetResponseSchema? DiscoveredAssetResponse { get; set; } = default;

    }
}
