< Summary

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

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_OsType()-0%100%
get_OsState()-0%100%
get_HyperVGeneration()-0%100%
get_EndOfLifeDate()-0%100%
get_Identifier()-0%100%
get_Recommended()-0%100%
get_Disallowed()-0%100%
get_PurchasePlan()-0%100%
get_ProvisioningState()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\GalleryImageUpdate.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 Image Definition that you want to update. </summary>
 14    public partial class GalleryImageUpdate : UpdateResourceDefinition
 15    {
 16        /// <summary> Initializes a new instance of GalleryImageUpdate. </summary>
 017        public GalleryImageUpdate()
 18        {
 019        }
 20
 21        /// <summary> Initializes a new instance of GalleryImageUpdate. </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 Image Definition resource. This property is updat
 27        /// <param name="eula"> The Eula agreement for the gallery Image Definition. </param>
 28        /// <param name="privacyStatementUri"> The privacy statement uri. </param>
 29        /// <param name="releaseNoteUri"> The release note uri. </param>
 30        /// <param name="osType"> This property allows you to specify the type of the OS that is included in the disk wh
 31        /// <param name="osState"> This property allows the user to specify whether the virtual machines created under t
 32        /// <param name="hyperVGeneration"> The hypervisor generation of the Virtual Machine. Applicable to OS disks onl
 33        /// <param name="endOfLifeDate"> The end of life date of the gallery Image Definition. This property can be used
 34        /// <param name="identifier"> This is the gallery Image Definition identifier. </param>
 35        /// <param name="recommended"> The properties describe the recommended machine configuration for this Image Defi
 36        /// <param name="disallowed"> Describes the disallowed disk types. </param>
 37        /// <param name="purchasePlan"> Describes the gallery Image Definition purchase plan. This is used by marketplac
 38        /// <param name="provisioningState"> The provisioning state, which only appears in the response. </param>
 039        internal GalleryImageUpdate(string id, string name, string type, IDictionary<string, string> tags, string descri
 40        {
 041            Description = description;
 042            Eula = eula;
 043            PrivacyStatementUri = privacyStatementUri;
 044            ReleaseNoteUri = releaseNoteUri;
 045            OsType = osType;
 046            OsState = osState;
 047            HyperVGeneration = hyperVGeneration;
 048            EndOfLifeDate = endOfLifeDate;
 049            Identifier = identifier;
 050            Recommended = recommended;
 051            Disallowed = disallowed;
 052            PurchasePlan = purchasePlan;
 053            ProvisioningState = provisioningState;
 054        }
 55
 56        /// <summary> The description of this gallery Image Definition resource. This property is updatable. </summary>
 057        public string Description { get; set; }
 58        /// <summary> The Eula agreement for the gallery Image Definition. </summary>
 059        public string Eula { get; set; }
 60        /// <summary> The privacy statement uri. </summary>
 061        public string PrivacyStatementUri { get; set; }
 62        /// <summary> The release note uri. </summary>
 063        public string ReleaseNoteUri { get; set; }
 64        /// <summary> This property allows you to specify the type of the OS that is included in the disk when creating 
 065        public OperatingSystemTypes? OsType { get; set; }
 66        /// <summary> This property allows the user to specify whether the virtual machines created under this image are
 067        public OperatingSystemStateTypes? OsState { get; set; }
 68        /// <summary> The hypervisor generation of the Virtual Machine. Applicable to OS disks only. </summary>
 069        public HyperVGeneration? HyperVGeneration { get; set; }
 70        /// <summary> The end of life date of the gallery Image Definition. This property can be used for decommissionin
 071        public DateTimeOffset? EndOfLifeDate { get; set; }
 72        /// <summary> This is the gallery Image Definition identifier. </summary>
 073        public GalleryImageIdentifier Identifier { get; set; }
 74        /// <summary> The properties describe the recommended machine configuration for this Image Definition. These pro
 075        public RecommendedMachineConfiguration Recommended { get; set; }
 76        /// <summary> Describes the disallowed disk types. </summary>
 077        public Disallowed Disallowed { get; set; }
 78        /// <summary> Describes the gallery Image Definition purchase plan. This is used by marketplace images. </summar
 079        public ImagePurchasePlan PurchasePlan { get; set; }
 80        /// <summary> The provisioning state, which only appears in the response. </summary>
 081        public GalleryImagePropertiesProvisioningState? ProvisioningState { get; }
 82    }
 83}

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\GalleryImageUpdate.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 GalleryImageUpdate : 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 (OsType != null)
 67            {
 068                writer.WritePropertyName("osType");
 069                writer.WriteStringValue(OsType.Value.ToSerialString());
 70            }
 071            if (OsState != null)
 72            {
 073                writer.WritePropertyName("osState");
 074                writer.WriteStringValue(OsState.Value.ToSerialString());
 75            }
 076            if (HyperVGeneration != null)
 77            {
 078                writer.WritePropertyName("hyperVGeneration");
 079                writer.WriteStringValue(HyperVGeneration.Value.ToString());
 80            }
 081            if (EndOfLifeDate != null)
 82            {
 083                writer.WritePropertyName("endOfLifeDate");
 084                writer.WriteStringValue(EndOfLifeDate.Value, "O");
 85            }
 086            if (Identifier != null)
 87            {
 088                writer.WritePropertyName("identifier");
 089                writer.WriteObjectValue(Identifier);
 90            }
 091            if (Recommended != null)
 92            {
 093                writer.WritePropertyName("recommended");
 094                writer.WriteObjectValue(Recommended);
 95            }
 096            if (Disallowed != null)
 97            {
 098                writer.WritePropertyName("disallowed");
 099                writer.WriteObjectValue(Disallowed);
 100            }
 0101            if (PurchasePlan != null)
 102            {
 0103                writer.WritePropertyName("purchasePlan");
 0104                writer.WriteObjectValue(PurchasePlan);
 105            }
 0106            if (ProvisioningState != null)
 107            {
 0108                writer.WritePropertyName("provisioningState");
 0109                writer.WriteStringValue(ProvisioningState.Value.ToString());
 110            }
 0111            writer.WriteEndObject();
 0112            writer.WriteEndObject();
 0113        }
 114    }
 115}