/// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonObject into a new instance of <see cref="AzureStorageMsiScanProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal AzureStorageMsiScanProperties(Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __scanProperties = new Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ScanProperties(json);
            AfterFromJson(json);
        }
Exemple #2
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonObject into a new instance of <see cref="AzureDataExplorerMsiScanProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal AzureDataExplorerMsiScanProperties(Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __scanProperties = new Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ScanProperties(json);
            { _database = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonString>("database"), out var __jsonDatabase) ? (string)__jsonDatabase : (string)Database; }
            AfterFromJson(json);
        }
Exemple #3
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonObject into a new instance of <see cref="AzureStorageCredentialScanProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal AzureStorageCredentialScanProperties(Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __scanProperties = new Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ScanProperties(json);
            { _credential = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonObject>("credential"), out var __jsonCredential) ? Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.CredentialReference.FromJson(__jsonCredential) : Credential; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonObject into a new instance of <see cref="PowerBiMsiScanProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal PowerBiMsiScanProperties(Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __scanProperties = new Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ScanProperties(json);
            { _includePersonalWorkspace = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonBoolean>("includePersonalWorkspaces"), out var __jsonIncludePersonalWorkspaces) ? (bool?)__jsonIncludePersonalWorkspaces : IncludePersonalWorkspace; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonObject into a new instance of <see cref="MitiScanProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal MitiScanProperties(Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __scanProperties = new Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ScanProperties(json);
            { _maximumMemoryAllowedInGb = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonString>("maximumMemoryAllowedInGb"), out var __jsonMaximumMemoryAllowedInGb) ? (string)__jsonMaximumMemoryAllowedInGb : (string)MaximumMemoryAllowedInGb; }
            { _mitiCache = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonString>("mitiCache"), out var __jsonMitiCache) ? (string)__jsonMitiCache : (string)MitiCache; }
            AfterFromJson(json);
        }
Exemple #6
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonObject into a new instance of <see cref="TeradataUserPassScanProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal TeradataUserPassScanProperties(Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __scanProperties = new Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ScanProperties(json);
            { _username = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonString>("username"), out var __jsonUsername) ? (string)__jsonUsername : (string)Username; }
            { _password = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonString>("password"), out var __jsonPassword) ? (string)__jsonPassword : (string)Password; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonObject into a new instance of <see cref="AmazonS3CredentialScanProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal AmazonS3CredentialScanProperties(Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __scanProperties = new Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ScanProperties(json);
            { _credential = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonObject>("credential"), out var __jsonCredential) ? Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.CredentialReference.FromJson(__jsonCredential) : Credential; }
            { _roleArn = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonString>("roleARN"), out var __jsonRoleArn) ? (string)__jsonRoleArn : (string)RoleArn; }
            { _isMauiScan = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonBoolean>("isMauiScan"), out var __jsonIsMauiScan) ? (bool?)__jsonIsMauiScan : IsMauiScan; }
            AfterFromJson(json);
        }
Exemple #8
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonObject into a new instance of <see cref="AzureMySqlScanProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal AzureMySqlScanProperties(Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __scanProperties = new Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ScanProperties(json);
            { _credential = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonObject>("credential"), out var __jsonCredential) ? Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.CredentialReference.FromJson(__jsonCredential) : Credential; }
            { _serverEndpoint = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonString>("serverEndpoint"), out var __jsonServerEndpoint) ? (string)__jsonServerEndpoint : (string)ServerEndpoint; }
            { _port = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonNumber>("port"), out var __jsonPort) ? (int?)__jsonPort : Port; }
            { _databaseName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonString>("databaseName"), out var __jsonDatabaseName) ? (string)__jsonDatabaseName : (string)DatabaseName; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonObject into a new instance of <see cref="PowerBiDelegatedScanProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal PowerBiDelegatedScanProperties(Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __scanProperties = new Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Models.Api20211001Preview.ScanProperties(json);
            { _tenant = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonString>("tenant"), out var __jsonTenant) ? (string)__jsonTenant : (string)Tenant; }
            { _authenticationType = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonString>("authenticationType"), out var __jsonAuthenticationType) ? (string)__jsonAuthenticationType : (string)AuthenticationType; }
            { _clientId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonString>("clientId"), out var __jsonClientId) ? (string)__jsonClientId : (string)ClientId; }
            { _userName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonString>("userName"), out var __jsonUserName) ? (string)__jsonUserName : (string)UserName; }
            { _password = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonString>("password"), out var __jsonPassword) ? (string)__jsonPassword : (string)Password; }
            { _includePersonalWorkspace = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime.Json.JsonBoolean>("includePersonalWorkspaces"), out var __jsonIncludePersonalWorkspaces) ? (bool?)__jsonIncludePersonalWorkspaces : IncludePersonalWorkspace; }
            AfterFromJson(json);
        }