generated/api/Models/OracleCredentialContent.cs
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/powershell@4.0.708) // 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> /// Applicable only for credentials with Cloud Account, Vendor Type as Oracle Cloud Infrastructutre /// </summary> public partial class OracleCredentialContent : Commvault.Powershell.Models.IOracleCredentialContent, Commvault.Powershell.Models.IOracleCredentialContentInternal { /// <summary>Backing field for <see cref="Certificate" /> property.</summary> private string _certificate; /// <summary>Certificate of Credential</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Certificate { get => this._certificate; set => this._certificate = value; } /// <summary>Internal Acessors for OwnerUser</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IOracleCredentialContentInternal.OwnerUser { get => ((Commvault.Powershell.Models.ICredentialSecurityInternal)Security).OwnerUser; set => ((Commvault.Powershell.Models.ICredentialSecurityInternal)Security).OwnerUser = value; } /// <summary>Internal Acessors for OwnerUserGroup</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IOracleCredentialContentInternal.OwnerUserGroup { get => ((Commvault.Powershell.Models.ICredentialSecurityInternal)Security).OwnerUserGroup; set => ((Commvault.Powershell.Models.ICredentialSecurityInternal)Security).OwnerUserGroup = value; } /// <summary>Internal Acessors for Security</summary> Commvault.Powershell.Models.ICredentialSecurity Commvault.Powershell.Models.IOracleCredentialContentInternal.Security { get => (this._security = this._security ?? new Commvault.Powershell.Models.CredentialSecurity()); set { {_security = value;} } } /// <summary>Internal Acessors for SecurityOwner</summary> Commvault.Powershell.Models.ICredentialOwner Commvault.Powershell.Models.IOracleCredentialContentInternal.SecurityOwner { get => ((Commvault.Powershell.Models.ICredentialSecurityInternal)Security).Owner; set => ((Commvault.Powershell.Models.ICredentialSecurityInternal)Security).Owner = value; } /// <summary>Backing field for <see cref="ConnectString" /> property.</summary> private string _connectString; /// <summary>Connect String for Credential</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string ConnectString { get => this._connectString; set => this._connectString = value; } /// <summary>Backing field for <see cref="DbName" /> property.</summary> private string _dbName; /// <summary>DB Name for Credential</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string DbName { get => this._dbName; set => this._dbName = value; } /// <summary>Backing field for <see cref="Description" /> property.</summary> private string _description; /// <summary>Updated description of Credential</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Description { get => this._description; set => this._description = value; } /// <summary>Backing field for <see cref="NewName" /> property.</summary> private string _newName; /// <summary>Updated name of credential</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string NewName { get => this._newName; set => this._newName = value; } /// <summary>Backing field for <see cref="Password" /> property.</summary> private string _password; /// <summary>Password of Credential. Password must be in base64 encoded format.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Password { get => this._password; set => this._password = value; } /// <summary>Backing field for <see cref="Security" /> property.</summary> private Commvault.Powershell.Models.ICredentialSecurity _security; /// <summary>Security association of a list of users and user groups</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.ICredentialSecurity Security { get => (this._security = this._security ?? new Commvault.Powershell.Models.CredentialSecurity()); set => this._security = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public System.Collections.Generic.List<Commvault.Powershell.Models.ICredentialSecurityAssociations> SecurityAssociations { get => ((Commvault.Powershell.Models.ICredentialSecurityInternal)Security).Associations; set => ((Commvault.Powershell.Models.ICredentialSecurityInternal)Security).Associations = value ?? null /* arrayOf */; } /// <summary>Backing field for <see cref="TenancyOcid" /> property.</summary> private string _tenancyOcid; /// <summary>Oracle Cloud ID</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string TenancyOcid { get => this._tenancyOcid; set => this._tenancyOcid = value; } /// <summary>Backing field for <see cref="UserAccount" /> property.</summary> private string _userAccount; /// <summary>User Account of Credential</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string UserAccount { get => this._userAccount; set => this._userAccount = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? UserGroupId { get => ((Commvault.Powershell.Models.ICredentialSecurityInternal)Security).UserGroupId; set => ((Commvault.Powershell.Models.ICredentialSecurityInternal)Security).UserGroupId = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string UserGroupName { get => ((Commvault.Powershell.Models.ICredentialSecurityInternal)Security).UserGroupName; set => ((Commvault.Powershell.Models.ICredentialSecurityInternal)Security).UserGroupName = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? UserId { get => ((Commvault.Powershell.Models.ICredentialSecurityInternal)Security).UserId; set => ((Commvault.Powershell.Models.ICredentialSecurityInternal)Security).UserId = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string UserName { get => ((Commvault.Powershell.Models.ICredentialSecurityInternal)Security).UserName; set => ((Commvault.Powershell.Models.ICredentialSecurityInternal)Security).UserName = value ?? null; } /// <summary>Backing field for <see cref="UserOcid" /> property.</summary> private string _userOcid; /// <summary>User name for the Oracle Cloud ID</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string UserOcid { get => this._userOcid; set => this._userOcid = value; } /// <summary>Creates an new <see cref="OracleCredentialContent" /> instance.</summary> public OracleCredentialContent() { } } /// Applicable only for credentials with Cloud Account, Vendor Type as Oracle Cloud Infrastructutre public partial interface IOracleCredentialContent : Commvault.Powershell.Runtime.IJsonSerializable { /// <summary>Certificate of Credential</summary> [Commvault.Powershell.Runtime.Info( Required = true, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Certificate of Credential", SerializedName = @"certificate", PossibleTypes = new [] { typeof(string) })] string Certificate { get; set; } /// <summary>Connect String for Credential</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Connect String for Credential", SerializedName = @"connectString", PossibleTypes = new [] { typeof(string) })] string ConnectString { get; set; } /// <summary>DB Name for Credential</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"DB Name for Credential", SerializedName = @"dbName", PossibleTypes = new [] { typeof(string) })] string DbName { get; set; } /// <summary>Updated description of Credential</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Updated description of Credential", SerializedName = @"description", PossibleTypes = new [] { typeof(string) })] string Description { get; set; } /// <summary>Updated name of credential</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Updated name of credential", SerializedName = @"newName", PossibleTypes = new [] { typeof(string) })] string NewName { get; set; } /// <summary>Password of Credential. Password must be in base64 encoded format.</summary> [Commvault.Powershell.Runtime.Info( Required = true, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Password of Credential. Password must be in base64 encoded format.", SerializedName = @"password", PossibleTypes = new [] { typeof(string) })] string Password { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"associations", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.ICredentialSecurityAssociations) })] System.Collections.Generic.List<Commvault.Powershell.Models.ICredentialSecurityAssociations> SecurityAssociations { get; set; } /// <summary>Oracle Cloud ID</summary> [Commvault.Powershell.Runtime.Info( Required = true, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Oracle Cloud ID", SerializedName = @"tenancyOCID", PossibleTypes = new [] { typeof(string) })] string TenancyOcid { get; set; } /// <summary>User Account of Credential</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"User Account of Credential", SerializedName = @"userAccount", PossibleTypes = new [] { typeof(string) })] string UserAccount { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? UserGroupId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string UserGroupName { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? UserId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string UserName { get; set; } /// <summary>User name for the Oracle Cloud ID</summary> [Commvault.Powershell.Runtime.Info( Required = true, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"User name for the Oracle Cloud ID", SerializedName = @"userOCID", PossibleTypes = new [] { typeof(string) })] string UserOcid { get; set; } } /// Applicable only for credentials with Cloud Account, Vendor Type as Oracle Cloud Infrastructutre internal partial interface IOracleCredentialContentInternal { /// <summary>Certificate of Credential</summary> string Certificate { get; set; } /// <summary>Connect String for Credential</summary> string ConnectString { get; set; } /// <summary>DB Name for Credential</summary> string DbName { get; set; } /// <summary>Updated description of Credential</summary> string Description { get; set; } /// <summary>Updated name of credential</summary> string NewName { get; set; } Commvault.Powershell.Models.IIdName OwnerUser { get; set; } Commvault.Powershell.Models.IIdName OwnerUserGroup { get; set; } /// <summary>Password of Credential. Password must be in base64 encoded format.</summary> string Password { get; set; } /// <summary>Security association of a list of users and user groups</summary> Commvault.Powershell.Models.ICredentialSecurity Security { get; set; } System.Collections.Generic.List<Commvault.Powershell.Models.ICredentialSecurityAssociations> SecurityAssociations { get; set; } /// <summary>Owner of a credential can be a user or user group</summary> Commvault.Powershell.Models.ICredentialOwner SecurityOwner { get; set; } /// <summary>Oracle Cloud ID</summary> string TenancyOcid { get; set; } /// <summary>User Account of Credential</summary> string UserAccount { get; set; } long? UserGroupId { get; set; } string UserGroupName { get; set; } long? UserId { get; set; } string UserName { get; set; } /// <summary>User name for the Oracle Cloud ID</summary> string UserOcid { get; set; } } } |