< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_PublishingProfile()-0%100%
get_ProvisioningState()-0%100%
get_ReplicationStatus()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\GalleryApplicationVersionUpdate.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.Collections.Generic;
 9
 10namespace Azure.ResourceManager.Compute.Models
 11{
 12    /// <summary> Specifies information about the gallery Application Version that you want to update. </summary>
 13    public partial class GalleryApplicationVersionUpdate : UpdateResourceDefinition
 14    {
 15        /// <summary> Initializes a new instance of GalleryApplicationVersionUpdate. </summary>
 016        public GalleryApplicationVersionUpdate()
 17        {
 018        }
 19
 20        /// <summary> Initializes a new instance of GalleryApplicationVersionUpdate. </summary>
 21        /// <param name="id"> Resource Id. </param>
 22        /// <param name="name"> Resource name. </param>
 23        /// <param name="type"> Resource type. </param>
 24        /// <param name="tags"> Resource tags. </param>
 25        /// <param name="publishingProfile"> The publishing profile of a gallery Image Version. </param>
 26        /// <param name="provisioningState"> The provisioning state, which only appears in the response. </param>
 27        /// <param name="replicationStatus"> This is the replication status of the gallery Image Version. </param>
 028        internal GalleryApplicationVersionUpdate(string id, string name, string type, IDictionary<string, string> tags, 
 29        {
 030            PublishingProfile = publishingProfile;
 031            ProvisioningState = provisioningState;
 032            ReplicationStatus = replicationStatus;
 033        }
 34
 35        /// <summary> The publishing profile of a gallery Image Version. </summary>
 036        public GalleryApplicationVersionPublishingProfile PublishingProfile { get; set; }
 37        /// <summary> The provisioning state, which only appears in the response. </summary>
 038        public GalleryApplicationVersionPropertiesProvisioningState? ProvisioningState { get; }
 39        /// <summary> This is the replication status of the gallery Image Version. </summary>
 040        public ReplicationStatus ReplicationStatus { get; }
 41    }
 42}

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\GalleryApplicationVersionUpdate.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 GalleryApplicationVersionUpdate : 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 (PublishingProfile != null)
 47            {
 048                writer.WritePropertyName("publishingProfile");
 049                writer.WriteObjectValue(PublishingProfile);
 50            }
 051            if (ProvisioningState != null)
 52            {
 053                writer.WritePropertyName("provisioningState");
 054                writer.WriteStringValue(ProvisioningState.Value.ToString());
 55            }
 056            if (ReplicationStatus != null)
 57            {
 058                writer.WritePropertyName("replicationStatus");
 059                writer.WriteObjectValue(ReplicationStatus);
 60            }
 061            writer.WriteEndObject();
 062            writer.WriteEndObject();
 063        }
 64    }
 65}