< Summary

Class:Azure.ResourceManager.Compute.Models.GalleryApplicationUpdate
Assembly:Azure.ResourceManager.Compute
File(s):C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\GalleryApplicationUpdate.cs
C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\GalleryApplicationUpdate.Serialization.cs
Covered lines:0
Uncovered lines:56
Coverable lines:56
Total lines:135
Line coverage:0% (0 of 56)
Covered branches:0
Total branches:22
Branch coverage:0% (0 of 22)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Description()-0%100%
get_Eula()-0%100%
get_PrivacyStatementUri()-0%100%
get_ReleaseNoteUri()-0%100%
get_EndOfLifeDate()-0%100%
get_SupportedOSType()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\GalleryApplicationUpdate.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System;
 9using System.Collections.Generic;
 10
 11namespace Azure.ResourceManager.Compute.Models
 12{
 13    /// <summary> Specifies information about the gallery Application Definition that you want to update. </summary>
 14    public partial class GalleryApplicationUpdate : UpdateResourceDefinition
 15    {
 16        /// <summary> Initializes a new instance of GalleryApplicationUpdate. </summary>
 017        public GalleryApplicationUpdate()
 18        {
 019        }
 20
 21        /// <summary> Initializes a new instance of GalleryApplicationUpdate. </summary>
 22        /// <param name="id"> Resource Id. </param>
 23        /// <param name="name"> Resource name. </param>
 24        /// <param name="type"> Resource type. </param>
 25        /// <param name="tags"> Resource tags. </param>
 26        /// <param name="description"> The description of this gallery Application Definition resource. This property is
 27        /// <param name="eula"> The Eula agreement for the gallery Application Definition. </param>
 28        /// <param name="privacyStatementUri"> The privacy statement uri. </param>
 29        /// <param name="releaseNoteUri"> The release note uri. </param>
 30        /// <param name="endOfLifeDate"> The end of life date of the gallery Application Definition. This property can b
 31        /// <param name="supportedOSType"> This property allows you to specify the supported type of the OS that applica
 032        internal GalleryApplicationUpdate(string id, string name, string type, IDictionary<string, string> tags, string 
 33        {
 034            Description = description;
 035            Eula = eula;
 036            PrivacyStatementUri = privacyStatementUri;
 037            ReleaseNoteUri = releaseNoteUri;
 038            EndOfLifeDate = endOfLifeDate;
 039            SupportedOSType = supportedOSType;
 040        }
 41
 42        /// <summary> The description of this gallery Application Definition resource. This property is updatable. </sum
 043        public string Description { get; set; }
 44        /// <summary> The Eula agreement for the gallery Application Definition. </summary>
 045        public string Eula { get; set; }
 46        /// <summary> The privacy statement uri. </summary>
 047        public string PrivacyStatementUri { get; set; }
 48        /// <summary> The release note uri. </summary>
 049        public string ReleaseNoteUri { get; set; }
 50        /// <summary> The end of life date of the gallery Application Definition. This property can be used for decommis
 051        public DateTimeOffset? EndOfLifeDate { get; set; }
 52        /// <summary> This property allows you to specify the supported type of the OS that application is built for. &l
 053        public OperatingSystemTypes? SupportedOSType { get; set; }
 54    }
 55}

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\GalleryApplicationUpdate.Serialization.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System.Text.Json;
 9using Azure.Core;
 10
 11namespace Azure.ResourceManager.Compute.Models
 12{
 13    public partial class GalleryApplicationUpdate : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (Id != null)
 19            {
 020                writer.WritePropertyName("id");
 021                writer.WriteStringValue(Id);
 22            }
 023            if (Name != null)
 24            {
 025                writer.WritePropertyName("name");
 026                writer.WriteStringValue(Name);
 27            }
 028            if (Type != null)
 29            {
 030                writer.WritePropertyName("type");
 031                writer.WriteStringValue(Type);
 32            }
 033            if (Tags != null)
 34            {
 035                writer.WritePropertyName("tags");
 036                writer.WriteStartObject();
 037                foreach (var item in Tags)
 38                {
 039                    writer.WritePropertyName(item.Key);
 040                    writer.WriteStringValue(item.Value);
 41                }
 042                writer.WriteEndObject();
 43            }
 044            writer.WritePropertyName("properties");
 045            writer.WriteStartObject();
 046            if (Description != null)
 47            {
 048                writer.WritePropertyName("description");
 049                writer.WriteStringValue(Description);
 50            }
 051            if (Eula != null)
 52            {
 053                writer.WritePropertyName("eula");
 054                writer.WriteStringValue(Eula);
 55            }
 056            if (PrivacyStatementUri != null)
 57            {
 058                writer.WritePropertyName("privacyStatementUri");
 059                writer.WriteStringValue(PrivacyStatementUri);
 60            }
 061            if (ReleaseNoteUri != null)
 62            {
 063                writer.WritePropertyName("releaseNoteUri");
 064                writer.WriteStringValue(ReleaseNoteUri);
 65            }
 066            if (EndOfLifeDate != null)
 67            {
 068                writer.WritePropertyName("endOfLifeDate");
 069                writer.WriteStringValue(EndOfLifeDate.Value, "O");
 70            }
 071            if (SupportedOSType != null)
 72            {
 073                writer.WritePropertyName("supportedOSType");
 074                writer.WriteStringValue(SupportedOSType.Value.ToSerialString());
 75            }
 076            writer.WriteEndObject();
 077            writer.WriteEndObject();
 078        }
 79    }
 80}