< Summary

Class:Azure.ResourceManager.Compute.Models.GalleryUpdate
Assembly:Azure.ResourceManager.Compute
File(s):C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\GalleryUpdate.cs
C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\GalleryUpdate.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_Description()-0%100%
get_Identifier()-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\GalleryUpdate.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 Shared Image Gallery that you want to update. </summary>
 13    public partial class GalleryUpdate : UpdateResourceDefinition
 14    {
 15        /// <summary> Initializes a new instance of GalleryUpdate. </summary>
 016        public GalleryUpdate()
 17        {
 018        }
 19
 20        /// <summary> Initializes a new instance of GalleryUpdate. </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="description"> The description of this Shared Image Gallery resource. This property is updatable
 26        /// <param name="identifier"> Describes the gallery unique name. </param>
 27        /// <param name="provisioningState"> The provisioning state, which only appears in the response. </param>
 028        internal GalleryUpdate(string id, string name, string type, IDictionary<string, string> tags, string description
 29        {
 030            Description = description;
 031            Identifier = identifier;
 032            ProvisioningState = provisioningState;
 033        }
 34
 35        /// <summary> The description of this Shared Image Gallery resource. This property is updatable. </summary>
 036        public string Description { get; set; }
 37        /// <summary> Describes the gallery unique name. </summary>
 038        public GalleryIdentifier Identifier { get; set; }
 39        /// <summary> The provisioning state, which only appears in the response. </summary>
 040        public GalleryPropertiesProvisioningState? ProvisioningState { get; }
 41    }
 42}

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