generated/api/Models/OracleObjectBucketContent.cs
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.8.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>Oracle Cloud Infrastructure Object Storage</summary> public partial class OracleObjectBucketContent : Commvault.Powershell.Models.IOracleObjectBucketContent, Commvault.Powershell.Models.IOracleObjectBucketContentInternal, Commvault.Powershell.Runtime.IValidates { /// <summary> /// Backing field for Inherited model <see cref= "Commvault.Powershell.Models.ICloudStorageAdvanced" /> /// </summary> private Commvault.Powershell.Models.ICloudStorageAdvanced __cloudStorageAdvanced = new Commvault.Powershell.Models.CloudStorageAdvanced(); /// <summary> /// Backing field for Inherited model <see cref= "Commvault.Powershell.Models.ICloudStorageProxy" /> /// </summary> private Commvault.Powershell.Models.ICloudStorageProxy __cloudStorageProxy = new Commvault.Powershell.Models.CloudStorageProxy(); /// <summary> /// The access type for the cloud access path can be either read (writing to path not allowed) or read and write (writing /// to path allowed) /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public string Access { get => ((Commvault.Powershell.Models.ICloudStorageAdvancedInternal)__cloudStorageAdvanced).Access; set => ((Commvault.Powershell.Models.ICloudStorageAdvancedInternal)__cloudStorageAdvanced).Access = value; } /// <summary>Backing field for <see cref="Bucket" /> property.</summary> private string _bucket; /// <summary>Name of the bucket</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Bucket { get => this._bucket; set => this._bucket = value; } /// <summary>Backing field for <see cref="CloudType" /> property.</summary> private string _cloudType= @"Oracle Cloud Infrastructure Object Storage"; /// <summary>Name of cloud vendor</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string CloudType { get => this._cloudType; } /// <summary>Internal Acessors for CloudType</summary> string Commvault.Powershell.Models.IOracleObjectBucketContentInternal.CloudType { get => this._cloudType; set { {_cloudType = value;} } } /// <summary>Backing field for <see cref="CompartmentName" /> property.</summary> private string _compartmentName; /// <summary>OCI compartment name</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string CompartmentName { get => this._compartmentName; set => this._compartmentName = value; } /// <summary>Enable/Disable access of bucket to a media Agent</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public bool? Enable { get => ((Commvault.Powershell.Models.ICloudStorageAdvancedInternal)__cloudStorageAdvanced).Enable; set => ((Commvault.Powershell.Models.ICloudStorageAdvancedInternal)__cloudStorageAdvanced).Enable = value; } /// <summary>Backing field for <see cref="KeyFingerprint" /> property.</summary> private string _keyFingerprint; /// <summary>PEM key's fingerprint</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string KeyFingerprint { get => this._keyFingerprint; set => this._keyFingerprint = value; } /// <summary>Password for proxy configuration (Should be in Base64 format)</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public System.Security.SecureString Password { get => ((Commvault.Powershell.Models.ICloudStorageProxyInternal)__cloudStorageProxy).Password; set => ((Commvault.Powershell.Models.ICloudStorageProxyInternal)__cloudStorageProxy).Password = value; } /// <summary>Backing field for <see cref="PemKeyFilename" /> property.</summary> private string _pemKeyFilename; /// <summary>PEM filename containing the private-key</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string PemKeyFilename { get => this._pemKeyFilename; set => this._pemKeyFilename = value; } /// <summary>Port for proxy configuration</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public long? Port { get => ((Commvault.Powershell.Models.ICloudStorageProxyInternal)__cloudStorageProxy).Port; set => ((Commvault.Powershell.Models.ICloudStorageProxyInternal)__cloudStorageProxy).Port = value; } /// <summary>Backing field for <see cref="PrivateKeyPassword" /> property.</summary> private string _privateKeyPassword; /// <summary>Password for the private key</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string PrivateKeyPassword { get => this._privateKeyPassword; set => this._privateKeyPassword = value; } /// <summary> /// If the MediaAgent accesses the mount path using a proxy then proxy server address needs to be provided. If you want to /// remove proxy information, pass empty string in proxyAddress. /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public string ProxyAddress { get => ((Commvault.Powershell.Models.ICloudStorageProxyInternal)__cloudStorageProxy).ProxyAddress; set => ((Commvault.Powershell.Models.ICloudStorageProxyInternal)__cloudStorageProxy).ProxyAddress = value; } /// <summary>Backing field for <see cref="ServiceHost" /> property.</summary> private string _serviceHost; /// <summary> /// IP address or fully qualified domain name or URL for the cloud library based on cloud vendor /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string ServiceHost { get => this._serviceHost; set => this._serviceHost = value; } /// <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="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>Username for proxy configuration</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public string Username { get => ((Commvault.Powershell.Models.ICloudStorageProxyInternal)__cloudStorageProxy).Username; set => ((Commvault.Powershell.Models.ICloudStorageProxyInternal)__cloudStorageProxy).Username = value; } /// <summary>Creates an new <see cref="OracleObjectBucketContent" /> instance.</summary> public OracleObjectBucketContent() { } /// <summary>Validates that this object meets the validation criteria.</summary> /// <param name="eventListener">an <see cref="Commvault.Powershell.Runtime.IEventListener" /> instance that will receive validation /// events.</param> /// <returns> /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. /// </returns> public async global::System.Threading.Tasks.Task Validate(Commvault.Powershell.Runtime.IEventListener eventListener) { await eventListener.AssertNotNull(nameof(__cloudStorageProxy), __cloudStorageProxy); await eventListener.AssertObjectIsValid(nameof(__cloudStorageProxy), __cloudStorageProxy); await eventListener.AssertNotNull(nameof(__cloudStorageAdvanced), __cloudStorageAdvanced); await eventListener.AssertObjectIsValid(nameof(__cloudStorageAdvanced), __cloudStorageAdvanced); } } /// Oracle Cloud Infrastructure Object Storage public partial interface IOracleObjectBucketContent : Commvault.Powershell.Runtime.IJsonSerializable, Commvault.Powershell.Models.ICloudStorageProxy, Commvault.Powershell.Models.ICloudStorageAdvanced { /// <summary>Name of the bucket</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Name of the bucket", SerializedName = @"bucket", PossibleTypes = new [] { typeof(string) })] string Bucket { get; set; } /// <summary>Name of cloud vendor</summary> [Commvault.Powershell.Runtime.Info( Required = true, ReadOnly = true, Description = @"Name of cloud vendor", SerializedName = @"cloudType", PossibleTypes = new [] { typeof(string) })] string CloudType { get; } /// <summary>OCI compartment name</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"OCI compartment name", SerializedName = @"compartmentName", PossibleTypes = new [] { typeof(string) })] string CompartmentName { get; set; } /// <summary>PEM key's fingerprint</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"PEM key's fingerprint", SerializedName = @"keyFingerprint", PossibleTypes = new [] { typeof(string) })] string KeyFingerprint { get; set; } /// <summary>PEM filename containing the private-key</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"PEM filename containing the private-key", SerializedName = @"pemKeyFilename", PossibleTypes = new [] { typeof(string) })] string PemKeyFilename { get; set; } /// <summary>Password for the private key</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Password for the private key", SerializedName = @"privateKeyPassword", PossibleTypes = new [] { typeof(string) })] string PrivateKeyPassword { get; set; } /// <summary> /// IP address or fully qualified domain name or URL for the cloud library based on cloud vendor /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"IP address or fully qualified domain name or URL for the cloud library based on cloud vendor", SerializedName = @"serviceHost", PossibleTypes = new [] { typeof(string) })] string ServiceHost { get; set; } /// <summary>Oracle Cloud ID</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Oracle Cloud ID", SerializedName = @"tenancyOCID", PossibleTypes = new [] { typeof(string) })] string TenancyOcid { get; set; } /// <summary>User name for the Oracle Cloud ID</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"User name for the Oracle Cloud ID", SerializedName = @"userOCID", PossibleTypes = new [] { typeof(string) })] string UserOcid { get; set; } } /// Oracle Cloud Infrastructure Object Storage internal partial interface IOracleObjectBucketContentInternal : Commvault.Powershell.Models.ICloudStorageProxyInternal, Commvault.Powershell.Models.ICloudStorageAdvancedInternal { /// <summary>Name of the bucket</summary> string Bucket { get; set; } /// <summary>Name of cloud vendor</summary> string CloudType { get; set; } /// <summary>OCI compartment name</summary> string CompartmentName { get; set; } /// <summary>PEM key's fingerprint</summary> string KeyFingerprint { get; set; } /// <summary>PEM filename containing the private-key</summary> string PemKeyFilename { get; set; } /// <summary>Password for the private key</summary> string PrivateKeyPassword { get; set; } /// <summary> /// IP address or fully qualified domain name or URL for the cloud library based on cloud vendor /// </summary> string ServiceHost { get; set; } /// <summary>Oracle Cloud ID</summary> string TenancyOcid { get; set; } /// <summary>User name for the Oracle Cloud ID</summary> string UserOcid { get; set; } } } |