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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _key = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("key"), out var __jsonKey) ? (string)__jsonKey : (string)Key; }
            { _value = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("value"), out var __jsonValue) ? (string)__jsonValue : (string)Value; }
            AfterFromJson(json);
        }
예제 #2
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject into a new instance of <see cref="Sku" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal Sku(Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            { _tier = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("tier"), out var __jsonTier) ? (string)__jsonTier : (string)Tier; }
            AfterFromJson(json);
        }
예제 #3
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject into a new instance of <see cref="FacebookPage" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal FacebookPage(Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; }
            { _accessToken = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("accessToken"), out var __jsonAccessToken) ? (string)__jsonAccessToken : (string)AccessToken; }
            AfterFromJson(json);
        }
예제 #4
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject into a new instance of <see cref="EnterpriseChannelCheckNameAvailabilityResponse"
        /// />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal EnterpriseChannelCheckNameAvailabilityResponse(Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _valid = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonBoolean>("valid"), out var __jsonValid) ? (bool?)__jsonValid : Valid; }
            { _message = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message; }
            AfterFromJson(json);
        }
예제 #5
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject into a new instance of <see cref="ErrorBody" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ErrorBody(Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _code = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code; }
            { _message = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject into a new instance of <see cref="WebChatChannelProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal WebChatChannelProperties(Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _webChatEmbedCode = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("webChatEmbedCode"), out var __jsonWebChatEmbedCode) ? (string)__jsonWebChatEmbedCode : (string)WebChatEmbedCode; }
            { _site = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonArray>("sites"), out var __jsonSites) ? If(__jsonSites as Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IWebChatSite[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IWebChatSite)(Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.WebChatSite.FromJson(__u)))))() : null : Site; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject into a new instance of <see cref="CheckNameAvailabilityRequestBody" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal CheckNameAvailabilityRequestBody(Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            { _type = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("type"), out var __jsonType) ? (string)__jsonType : (string)Type; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject into a new instance of <see cref="ServiceProviderResponseList" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ServiceProviderResponseList(Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _nextLink = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink; }
            { _value = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonArray>("value"), out var __jsonValue) ? If(__jsonValue as Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IServiceProvider[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IServiceProvider)(Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.ServiceProvider.FromJson(__u)))))() : null : Value; }
            AfterFromJson(json);
        }
예제 #9
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject into a new instance of <see cref="MSTeamsChannelProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal MSTeamsChannelProperties(Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _enableCalling = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonBoolean>("enableCalling"), out var __jsonEnableCalling) ? (bool?)__jsonEnableCalling : EnableCalling; }
            { _callingWebHook = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("callingWebHook"), out var __jsonCallingWebHook) ? (string)__jsonCallingWebHook : (string)CallingWebHook; }
            { _isEnabled = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonBoolean>("isEnabled"), out var __jsonIsEnabled) ? (bool)__jsonIsEnabled : IsEnabled; }
            AfterFromJson(json);
        }
예제 #10
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject into a new instance of <see cref="TelegramChannelProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal TelegramChannelProperties(Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _accessToken = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("accessToken"), out var __jsonAccessToken) ? (string)__jsonAccessToken : (string)AccessToken; }
            { _isValidated = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonBoolean>("isValidated"), out var __jsonIsValidated) ? (bool?)__jsonIsValidated : IsValidated; }
            { _isEnabled = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonBoolean>("isEnabled"), out var __jsonIsEnabled) ? (bool)__jsonIsEnabled : IsEnabled; }
            AfterFromJson(json);
        }
예제 #11
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject into a new instance of <see cref="EmailChannelProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal EmailChannelProperties(Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _emailAddress = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("emailAddress"), out var __jsonEmailAddress) ? (string)__jsonEmailAddress : (string)EmailAddress; }
            { _password = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("password"), out var __jsonPassword) ? (string)__jsonPassword : (string)Password; }
            { _isEnabled = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonBoolean>("isEnabled"), out var __jsonIsEnabled) ? (bool)__jsonIsEnabled : IsEnabled; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject into a new instance of <see cref="OperationDisplayInfo" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal OperationDisplayInfo(Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _description = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description; }
            { _operation = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("operation"), out var __jsonOperation) ? (string)__jsonOperation : (string)Operation; }
            { _provider = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("provider"), out var __jsonProvider) ? (string)__jsonProvider : (string)Provider; }
            { _resource = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("resource"), out var __jsonResource) ? (string)__jsonResource : (string)Resource; }
            AfterFromJson(json);
        }
예제 #13
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject into a new instance of <see cref="KikChannelProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal KikChannelProperties(Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _userName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("userName"), out var __jsonUserName) ? (string)__jsonUserName : (string)UserName; }
            { _apiKey = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("apiKey"), out var __jsonApiKey) ? (string)__jsonApiKey : (string)ApiKey; }
            { _isValidated = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonBoolean>("isValidated"), out var __jsonIsValidated) ? (bool?)__jsonIsValidated : IsValidated; }
            { _isEnabled = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonBoolean>("isEnabled"), out var __jsonIsEnabled) ? (bool)__jsonIsEnabled : IsEnabled; }
            AfterFromJson(json);
        }
예제 #14
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject into a new instance of <see cref="OperationEntity" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal OperationEntity(Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _display = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject>("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.OperationDisplayInfo.FromJson(__jsonDisplay) : Display; }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            { _origin = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("origin"), out var __jsonOrigin) ? (string)__jsonOrigin : (string)Origin; }
            { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Any.FromJson(__jsonProperties) : Property; }
            AfterFromJson(json);
        }
예제 #15
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject into a new instance of <see cref="EnterpriseChannelNode" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal EnterpriseChannelNode(Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; }
            { _state = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("state"), out var __jsonState) ? (string)__jsonState : (string)State; }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            { _azureSku = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("azureSku"), out var __jsonAzureSku) ? (string)__jsonAzureSku : (string)AzureSku; }
            { _azureLocation = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("azureLocation"), out var __jsonAzureLocation) ? (string)__jsonAzureLocation : (string)AzureLocation; }
            AfterFromJson(json);
        }
예제 #16
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject into a new instance of <see cref="Error" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal Error(Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _error1 = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject>("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.ErrorBody.FromJson(__jsonError) : Error1; }
            AfterFromJson(json);
        }
예제 #17
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject into a new instance of <see cref="ServiceProvider" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ServiceProvider(Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.ServiceProviderProperties.FromJson(__jsonProperties) : Property; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject into a new instance of <see cref="ConnectionSetting" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ConnectionSetting(Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __resource = new Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.Resource(json);
            { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.ConnectionSettingProperties.FromJson(__jsonProperties) : Property; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject into a new instance of <see cref="DirectLineChannel" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal DirectLineChannel(Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __channel = new Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.Channel(json);
            { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.DirectLineChannelProperties.FromJson(__jsonProperties) : Property; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject into a new instance of <see cref="SkypeChannelProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal SkypeChannelProperties(Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _enableMessaging = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonBoolean>("enableMessaging"), out var __jsonEnableMessaging) ? (bool?)__jsonEnableMessaging : EnableMessaging; }
            { _enableMediaCard = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonBoolean>("enableMediaCards"), out var __jsonEnableMediaCards) ? (bool?)__jsonEnableMediaCards : EnableMediaCard; }
            { _enableVideo = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonBoolean>("enableVideo"), out var __jsonEnableVideo) ? (bool?)__jsonEnableVideo : EnableVideo; }
            { _enableCalling = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonBoolean>("enableCalling"), out var __jsonEnableCalling) ? (bool?)__jsonEnableCalling : EnableCalling; }
            { _enableScreenSharing = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonBoolean>("enableScreenSharing"), out var __jsonEnableScreenSharing) ? (bool?)__jsonEnableScreenSharing : EnableScreenSharing; }
            { _enableGroup = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonBoolean>("enableGroups"), out var __jsonEnableGroups) ? (bool?)__jsonEnableGroups : EnableGroup; }
            { _groupsMode = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("groupsMode"), out var __jsonGroupsMode) ? (string)__jsonGroupsMode : (string)GroupsMode; }
            { _callingWebHook = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("callingWebHook"), out var __jsonCallingWebHook) ? (string)__jsonCallingWebHook : (string)CallingWebHook; }
            { _isEnabled = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonBoolean>("isEnabled"), out var __jsonIsEnabled) ? (bool)__jsonIsEnabled : IsEnabled; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject into a new instance of <see cref="SlackChannelProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal SlackChannelProperties(Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _clientId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("clientId"), out var __jsonClientId) ? (string)__jsonClientId : (string)ClientId; }
            { _clientSecret = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("clientSecret"), out var __jsonClientSecret) ? (string)__jsonClientSecret : (string)ClientSecret; }
            { _verificationToken = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("verificationToken"), out var __jsonVerificationToken) ? (string)__jsonVerificationToken : (string)VerificationToken; }
            { _landingPageUrl = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("landingPageUrl"), out var __jsonLandingPageUrl) ? (string)__jsonLandingPageUrl : (string)LandingPageUrl; }
            { _redirectAction = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("redirectAction"), out var __jsonRedirectAction) ? (string)__jsonRedirectAction : (string)RedirectAction; }
            { _lastSubmissionId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("lastSubmissionId"), out var __jsonLastSubmissionId) ? (string)__jsonLastSubmissionId : (string)LastSubmissionId; }
            { _registerBeforeOAuthFlow = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonBoolean>("registerBeforeOAuthFlow"), out var __jsonRegisterBeforeOAuthFlow) ? (bool?)__jsonRegisterBeforeOAuthFlow : RegisterBeforeOAuthFlow; }
            { _isValidated = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonBoolean>("isValidated"), out var __jsonIsValidated) ? (bool?)__jsonIsValidated : IsValidated; }
            { _isEnabled = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonBoolean>("isEnabled"), out var __jsonIsEnabled) ? (bool)__jsonIsEnabled : IsEnabled; }
            AfterFromJson(json);
        }
예제 #22
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject into a new instance of <see cref="DirectLineSite" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal DirectLineSite(Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _siteId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("siteId"), out var __jsonSiteId) ? (string)__jsonSiteId : (string)SiteId; }
            { _siteName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("siteName"), out var __jsonSiteName) ? (string)__jsonSiteName : (string)SiteName; }
            { _key = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("key"), out var __jsonKey) ? (string)__jsonKey : (string)Key; }
            { _key2 = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("key2"), out var __jsonKey2) ? (string)__jsonKey2 : (string)Key2; }
            { _isEnabled = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonBoolean>("isEnabled"), out var __jsonIsEnabled) ? (bool)__jsonIsEnabled : IsEnabled; }
            { _isV1Enabled = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonBoolean>("isV1Enabled"), out var __jsonIsV1Enabled) ? (bool)__jsonIsV1Enabled : IsV1Enabled; }
            { _isV3Enabled = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonBoolean>("isV3Enabled"), out var __jsonIsV3Enabled) ? (bool)__jsonIsV3Enabled : IsV3Enabled; }
            { _isSecureSiteEnabled = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonBoolean>("isSecureSiteEnabled"), out var __jsonIsSecureSiteEnabled) ? (bool?)__jsonIsSecureSiteEnabled : IsSecureSiteEnabled; }
            { _trustedOrigin = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonArray>("trustedOrigins"), out var __jsonTrustedOrigins) ? If(__jsonTrustedOrigins as Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <string[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (string)(__u is Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : TrustedOrigin; }
            AfterFromJson(json);
        }
예제 #23
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject into a new instance of <see cref="Resource" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal Resource(Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _sku = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject>("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.Sku.FromJson(__jsonSku) : Sku; }
            { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            { _location = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location; }
            { _type = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("type"), out var __jsonType) ? (string)__jsonType : (string)Type; }
            { _tag = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject>("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.ResourceTags.FromJson(__jsonTags) : Tag; }
            { _kind = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("kind"), out var __jsonKind) ? (string)__jsonKind : (string)Kind; }
            { _etag = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag; }
            AfterFromJson(json);
        }
예제 #24
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject into a new instance of <see cref="ConnectionSettingProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ConnectionSettingProperties(Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _clientId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("clientId"), out var __jsonClientId) ? (string)__jsonClientId : (string)ClientId; }
            { _settingId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("settingId"), out var __jsonSettingId) ? (string)__jsonSettingId : (string)SettingId; }
            { _clientSecret = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("clientSecret"), out var __jsonClientSecret) ? (string)__jsonClientSecret : (string)ClientSecret; }
            { _scope = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("scopes"), out var __jsonScopes) ? (string)__jsonScopes : (string)Scope; }
            { _serviceProviderId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("serviceProviderId"), out var __jsonServiceProviderId) ? (string)__jsonServiceProviderId : (string)ServiceProviderId; }
            { _serviceProviderDisplayName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("serviceProviderDisplayName"), out var __jsonServiceProviderDisplayName) ? (string)__jsonServiceProviderDisplayName : (string)ServiceProviderDisplayName; }
            { _parameter = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonArray>("parameters"), out var __jsonParameters) ? If(__jsonParameters as Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IConnectionSettingParameter[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IConnectionSettingParameter)(Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.ConnectionSettingParameter.FromJson(__u)))))() : null : Parameter; }
            AfterFromJson(json);
        }
예제 #25
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject into a new instance of <see cref="ServiceProviderProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ServiceProviderProperties(Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; }
            { _displayName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)DisplayName; }
            { _serviceProviderName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("serviceProviderName"), out var __jsonServiceProviderName) ? (string)__jsonServiceProviderName : (string)ServiceProviderName; }
            { _devPortalUrl = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("devPortalUrl"), out var __jsonDevPortalUrl) ? (string)__jsonDevPortalUrl : (string)DevPortalUrl; }
            { _iconUrl = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("iconUrl"), out var __jsonIconUrl) ? (string)__jsonIconUrl : (string)IconUrl; }
            { _parameter = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonArray>("parameters"), out var __jsonParameters) ? If(__jsonParameters as Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IServiceProviderParameter[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IServiceProviderParameter)(Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.ServiceProviderParameter.FromJson(__u)))))() : null : Parameter; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject into a new instance of <see cref="BotServiceIdentity" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal BotServiceIdentity(Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _resourceGroupName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("resourceGroupName"), out var __jsonResourceGroupName) ? (string)__jsonResourceGroupName : (string)ResourceGroupName; }
            { _resourceName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("resourceName"), out var __jsonResourceName) ? (string)__jsonResourceName : (string)ResourceName; }
            { _subscriptionId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)SubscriptionId; }
            { _channelName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("channelName"), out var __jsonChannelName) ? (string)__jsonChannelName : (string)ChannelName; }
            { _connectionName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("connectionName"), out var __jsonConnectionName) ? (string)__jsonConnectionName : (string)ConnectionName; }
            { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; }
            AfterFromJson(json);
        }
예제 #27
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject into a new instance of <see cref="WebChatSite" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal WebChatSite(Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _siteId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("siteId"), out var __jsonSiteId) ? (string)__jsonSiteId : (string)SiteId; }
            { _siteName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("siteName"), out var __jsonSiteName) ? (string)__jsonSiteName : (string)SiteName; }
            { _key = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("key"), out var __jsonKey) ? (string)__jsonKey : (string)Key; }
            { _key2 = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("key2"), out var __jsonKey2) ? (string)__jsonKey2 : (string)Key2; }
            { _isEnabled = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonBoolean>("isEnabled"), out var __jsonIsEnabled) ? (bool)__jsonIsEnabled : IsEnabled; }
            { _enablePreview = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonBoolean>("enablePreview"), out var __jsonEnablePreview) ? (bool)__jsonEnablePreview : EnablePreview; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject into a new instance of <see cref="ServiceProviderParameter" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ServiceProviderParameter(Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            { _type = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("type"), out var __jsonType) ? (string)__jsonType : (string)Type; }
            { _displayName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)DisplayName; }
            { _description = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description; }
            { _helpUrl = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("helpUrl"), out var __jsonHelpUrl) ? (string)__jsonHelpUrl : (string)HelpUrl; }
            { _default = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("default"), out var __jsonDefault) ? (string)__jsonDefault : (string)Default; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject into a new instance of <see cref="FacebookChannelProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal FacebookChannelProperties(Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _verifyToken = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("verifyToken"), out var __jsonVerifyToken) ? (string)__jsonVerifyToken : (string)VerifyToken; }
            { _page = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonArray>("pages"), out var __jsonPages) ? If(__jsonPages as Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IFacebookPage[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IFacebookPage)(Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.FacebookPage.FromJson(__u)))))() : null : Page; }
            { _appId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("appId"), out var __jsonAppId) ? (string)__jsonAppId : (string)AppId; }
            { _appSecret = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("appSecret"), out var __jsonAppSecret) ? (string)__jsonAppSecret : (string)AppSecret; }
            { _callbackUrl = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("callbackUrl"), out var __jsonCallbackUrl) ? (string)__jsonCallbackUrl : (string)CallbackUrl; }
            { _isEnabled = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonBoolean>("isEnabled"), out var __jsonIsEnabled) ? (bool)__jsonIsEnabled : IsEnabled; }
            AfterFromJson(json);
        }
예제 #30
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject into a new instance of <see cref="BotProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal BotProperties(Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _displayName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)DisplayName; }
            { _description = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description; }
            { _iconUrl = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("iconUrl"), out var __jsonIconUrl) ? (string)__jsonIconUrl : (string)IconUrl; }
            { _endpoint = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("endpoint"), out var __jsonEndpoint) ? (string)__jsonEndpoint : (string)Endpoint; }
            { _endpointVersion = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("endpointVersion"), out var __jsonEndpointVersion) ? (string)__jsonEndpointVersion : (string)EndpointVersion; }
            { _msaAppId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("msaAppId"), out var __jsonMsaAppId) ? (string)__jsonMsaAppId : (string)MsaAppId; }
            { _configuredChannel = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonArray>("configuredChannels"), out var __jsonConfiguredChannels) ? If(__jsonConfiguredChannels as Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <string[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (string)(__u is Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : ConfiguredChannel; }
            { _enabledChannel = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonArray>("enabledChannels"), out var __jsonEnabledChannels) ? If(__jsonEnabledChannels as Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonArray, out var __q) ? new global::System.Func <string[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p) => (string)(__p is Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null))))() : null : EnabledChannel; }
            { _developerAppInsightKey = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("developerAppInsightKey"), out var __jsonDeveloperAppInsightKey) ? (string)__jsonDeveloperAppInsightKey : (string)DeveloperAppInsightKey; }
            { _developerAppInsightsApiKey = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("developerAppInsightsApiKey"), out var __jsonDeveloperAppInsightsApiKey) ? (string)__jsonDeveloperAppInsightsApiKey : (string)DeveloperAppInsightsApiKey; }
            { _developerAppInsightsApplicationId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("developerAppInsightsApplicationId"), out var __jsonDeveloperAppInsightsApplicationId) ? (string)__jsonDeveloperAppInsightsApplicationId : (string)DeveloperAppInsightsApplicationId; }
            { _luisAppId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonArray>("luisAppIds"), out var __jsonLuisAppIds) ? If(__jsonLuisAppIds as Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonArray, out var __l) ? new global::System.Func <string[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k) => (string)(__k is Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString __j ? (string)(__j.ToString()) : null))))() : null : LuisAppId; }
            { _luisKey = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.Json.JsonString>("luisKey"), out var __jsonLuisKey) ? (string)__jsonLuisKey : (string)LuisKey; }
            AfterFromJson(json);
        }