generated/api/Models/CreateCredential.cs

// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.4, generator: @autorest/powershell@3.0.415)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Commvault.Powershell.Models
{
    using static Commvault.Powershell.Runtime.Extensions;

    /// <summary>To create a new Credential</summary>
    public partial class CreateCredential :
        Commvault.Powershell.Models.ICreateCredential,
        Commvault.Powershell.Models.ICreateCredentialInternal
    {

        /// <summary>Backing field for <see cref="AccountType" /> property.</summary>
        private string _accountType;

        /// <summary>CredentialAccountType</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string AccountType { get => this._accountType; set => this._accountType = value; }

        /// <summary>Backing field for <see cref="Name" /> property.</summary>
        private string _name;

        /// <summary>Name of Credential</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Name { get => this._name; set => this._name = value; }

        /// <summary>Backing field for <see cref="VendorType" /> property.</summary>
        private string _vendorType;

        /// <summary>Cloud vendor types appilcable only for Cloud Account type</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string VendorType { get => this._vendorType; set => this._vendorType = value; }

        /// <summary>Creates an new <see cref="CreateCredential" /> instance.</summary>
        public CreateCredential()
        {

        }
    }
    /// To create a new Credential
    public partial interface ICreateCredential :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>CredentialAccountType</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = true,
        ReadOnly = false,
        Description = @"CredentialAccountType",
        SerializedName = @"accountType",
        PossibleTypes = new [] { typeof(string) })]
        string AccountType { get; set; }
        /// <summary>Name of Credential</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = true,
        ReadOnly = false,
        Description = @"Name of Credential",
        SerializedName = @"name",
        PossibleTypes = new [] { typeof(string) })]
        string Name { get; set; }
        /// <summary>Cloud vendor types appilcable only for Cloud Account type</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Cloud vendor types appilcable only for Cloud Account type",
        SerializedName = @"vendorType",
        PossibleTypes = new [] { typeof(string) })]
        string VendorType { get; set; }

    }
    /// To create a new Credential
    internal partial interface ICreateCredentialInternal

    {
        /// <summary>CredentialAccountType</summary>
        string AccountType { get; set; }
        /// <summary>Name of Credential</summary>
        string Name { get; set; }
        /// <summary>Cloud vendor types appilcable only for Cloud Account type</summary>
        string VendorType { get; set; }

    }
}