< Summary

Class:Azure.Core.CodeGenModelAttribute
Assembly:Azure.Messaging.EventGrid
File(s):C:\Git\azure-sdk-for-net\sdk\core\Azure.Core\src\Shared\AutoRest\CodeGenModelAttribute.cs
Covered lines:0
Uncovered lines:6
Coverable lines:6
Total lines:31
Line coverage:0% (0 of 6)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
get_Usage()-0%100%
get_Formats()-0%100%
.ctor()-0%100%
.ctor(...)-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\core\Azure.Core\src\Shared\AutoRest\CodeGenModelAttribute.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4#nullable enable
 5
 6using System;
 7
 8namespace Azure.Core
 9{
 10    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Enum | AttributeTargets.Struct)]
 11    internal class CodeGenModelAttribute : CodeGenTypeAttribute
 12    {
 13        /// <summary>
 14        /// Gets or sets a coma separated list of additional model usage modes. Allowed values: model, error, intput, ou
 15        /// </summary>
 016        public string[]? Usage { get; set; }
 17
 18        /// <summary>
 19        /// Gets or sets a coma separated list of additional model serialization formats.
 20        /// </summary>
 021        public string[]? Formats { get; set; }
 22
 023        public CodeGenModelAttribute() : base(null)
 24        {
 025        }
 26
 027        public CodeGenModelAttribute(string originalName): base(originalName)
 28        {
 029        }
 30    }
 31}