< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_PublishingProfile()-0%100%
get_ProvisioningState()-0%100%
get_StorageProfile()-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\GalleryImageVersionUpdate.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 Image Version that you want to update. </summary>
 13    public partial class GalleryImageVersionUpdate : UpdateResourceDefinition
 14    {
 15        /// <summary> Initializes a new instance of GalleryImageVersionUpdate. </summary>
 016        public GalleryImageVersionUpdate()
 17        {
 018        }
 19
 20        /// <summary> Initializes a new instance of GalleryImageVersionUpdate. </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"> Describes the basic gallery artifact publishing profile. </param>
 26        /// <param name="provisioningState"> The provisioning state, which only appears in the response. </param>
 27        /// <param name="storageProfile"> This is the storage profile of a Gallery Image Version. </param>
 28        /// <param name="replicationStatus"> This is the replication status of the gallery Image Version. </param>
 029        internal GalleryImageVersionUpdate(string id, string name, string type, IDictionary<string, string> tags, Galler
 30        {
 031            PublishingProfile = publishingProfile;
 032            ProvisioningState = provisioningState;
 033            StorageProfile = storageProfile;
 034            ReplicationStatus = replicationStatus;
 035        }
 36
 37        /// <summary> Describes the basic gallery artifact publishing profile. </summary>
 038        public GalleryArtifactPublishingProfileBase PublishingProfile { get; set; }
 39        /// <summary> The provisioning state, which only appears in the response. </summary>
 040        public GalleryImageVersionPropertiesProvisioningState? ProvisioningState { get; }
 41        /// <summary> This is the storage profile of a Gallery Image Version. </summary>
 042        public GalleryImageVersionStorageProfile StorageProfile { get; set; }
 43        /// <summary> This is the replication status of the gallery Image Version. </summary>
 044        public ReplicationStatus ReplicationStatus { get; }
 45    }
 46}

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\GalleryImageVersionUpdate.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 GalleryImageVersionUpdate : 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 (StorageProfile != null)
 57            {
 058                writer.WritePropertyName("storageProfile");
 059                writer.WriteObjectValue(StorageProfile);
 60            }
 061            if (ReplicationStatus != null)
 62            {
 063                writer.WritePropertyName("replicationStatus");
 064                writer.WriteObjectValue(ReplicationStatus);
 65            }
 066            writer.WriteEndObject();
 067            writer.WriteEndObject();
 068        }
 69    }
 70}