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

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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _succeeded = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonArray>("succeeded"), out var __jsonSucceeded) ? If(__jsonSucceeded as Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.ICollectionsDetails[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.ICollectionsDetails)(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.CollectionsDetails.FromJson(__u)))))() : null : Succeeded; }
            { _failed = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonArray>("failed"), out var __jsonFailed) ? If(__jsonFailed as Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonArray, out var __q) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.ICollectionsDetails[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p) => (Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.ICollectionsDetails)(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.CollectionsDetails.FromJson(__p)))))() : null : Failed; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject into a new instance of <see cref="WithdrawDetails" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal WithdrawDetails(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _planId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("planId"), out var __jsonPlanId) ? (string)__jsonPlanId : (string)PlanId; }
            { _publisherId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("publisherId"), out var __jsonPublisherId) ? (string)__jsonPublisherId : (string)PublisherId; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject into a new instance of <see cref="QueryApprovedPlans" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal QueryApprovedPlans(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _offerId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("offerId"), out var __jsonOfferId) ? (string)__jsonOfferId : (string)OfferId; }
            { _planId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonArray>("planIds"), out var __jsonPlanIds) ? If(__jsonPlanIds as Microsoft.Azure.PowerShell.Cmdlets.Marketplace.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.Marketplace.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : PlanId; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject into a new instance of <see cref="NotificationsSettingsProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal NotificationsSettingsProperties(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _recipient = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonArray>("recipients"), out var __jsonRecipients) ? If(__jsonRecipients as Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IRecipient[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IRecipient)(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.Recipient.FromJson(__u)))))() : null : Recipient; }
            { _sendToAllMarketplaceAdmin = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonBoolean>("sendToAllMarketplaceAdmins"), out var __jsonSendToAllMarketplaceAdmins) ? (bool?)__jsonSendToAllMarketplaceAdmins : SendToAllMarketplaceAdmin; }
            AfterFromJson(json);
        }
Пример #6
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject into a new instance of <see cref="BulkCollectionsDetails" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal BulkCollectionsDetails(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _collectionId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonArray>("collectionIds"), out var __jsonCollectionIds) ? If(__jsonCollectionIds as Microsoft.Azure.PowerShell.Cmdlets.Marketplace.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.Marketplace.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : CollectionId; }
            { _action = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("action"), out var __jsonAction) ? (string)__jsonAction : (string)Action; }
            AfterFromJson(json);
        }
Пример #7
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject into a new instance of <see cref="ErrorResponseError" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ErrorResponseError(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _planId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("planId"), out var __jsonPlanId) ? (string)__jsonPlanId : (string)PlanId; }
            { _planDisplayName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("planDisplayName"), out var __jsonPlanDisplayName) ? (string)__jsonPlanDisplayName : (string)PlanDisplayName; }
            AfterFromJson(json);
        }
Пример #9
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject into a new instance of <see cref="PrivateStoreNotificationsState" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal PrivateStoreNotificationsState(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _stopSellNotification = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonArray>("stopSellNotifications"), out var __jsonStopSellNotifications) ? If(__jsonStopSellNotifications as Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IStopSellNotifications[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IStopSellNotifications)(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.StopSellNotifications.FromJson(__u)))))() : null : StopSellNotification; }
            { _newNotification = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonArray>("newNotifications"), out var __jsonNewNotifications) ? If(__jsonNewNotifications as Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonArray, out var __q) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.INewNotifications[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p) => (Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.INewNotifications)(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.NewNotifications.FromJson(__p)))))() : null : NewNotification; }
            { _approvalRequest = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonArray>("approvalRequests"), out var __jsonApprovalRequests) ? If(__jsonApprovalRequests as Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonArray, out var __l) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IRequestApprovalsDetails[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k) => (Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IRequestApprovalsDetails)(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.RequestApprovalsDetails.FromJson(__k)))))() : null : ApprovalRequest; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject into a new instance of <see cref="PlanRequesterDetails" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal PlanRequesterDetails(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _planId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("planId"), out var __jsonPlanId) ? (string)__jsonPlanId : (string)PlanId; }
            { _planDisplayName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("planDisplayName"), out var __jsonPlanDisplayName) ? (string)__jsonPlanDisplayName : (string)PlanDisplayName; }
            { _requester = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonArray>("requesters"), out var __jsonRequesters) ? If(__jsonRequesters as Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IUserRequestDetails[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IUserRequestDetails)(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.UserRequestDetails.FromJson(__u)))))() : null : Requester; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject into a new instance of <see cref="TransferOffersDetails" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal TransferOffersDetails(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _targetCollection = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonArray>("targetCollections"), out var __jsonTargetCollections) ? If(__jsonTargetCollections as Microsoft.Azure.PowerShell.Cmdlets.Marketplace.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.Marketplace.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : TargetCollection; }
            { _operation = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("operation"), out var __jsonOperation) ? (string)__jsonOperation : (string)Operation; }
            { _offerIdsList = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonArray>("offerIdsList"), out var __jsonOfferIdsList) ? If(__jsonOfferIdsList as Microsoft.Azure.PowerShell.Cmdlets.Marketplace.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.Marketplace.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null))))() : null : OfferIdsList; }
            AfterFromJson(json);
        }
Пример #12
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject into a new instance of <see cref="Recipient" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal Recipient(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _principalId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("principalId"), out var __jsonPrincipalId) ? (string)__jsonPrincipalId : (string)PrincipalId; }
            { _emailAddress = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("emailAddress"), out var __jsonEmailAddress) ? (string)__jsonEmailAddress : (string)EmailAddress; }
            { _displayName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)DisplayName; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject into a new instance of <see cref="QueryRequestApproval" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal QueryRequestApproval(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _uniqueOfferId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("uniqueOfferId"), out var __jsonUniqueOfferId) ? (string)__jsonUniqueOfferId : (string)UniqueOfferId; }
            { _plansDetail = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject>("plansDetails"), out var __jsonPlansDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.QueryRequestApprovalPlansDetails.FromJson(__jsonPlansDetails) : PlansDetail; }
            { _etag = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag; }
            { _messageCode = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonNumber>("messageCode"), out var __jsonMessageCode) ? (long?)__jsonMessageCode : MessageCode; }
            AfterFromJson(json);
        }
Пример #14
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject into a new instance of <see cref="Resource" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal Resource(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _systemData = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject>("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.SystemData.FromJson(__jsonSystemData) : SystemData; }
            { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            { _type = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("type"), out var __jsonType) ? (string)__jsonType : (string)Type; }
            AfterFromJson(json);
        }
Пример #15
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject into a new instance of <see cref="SingleOperationDisplay" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal SingleOperationDisplay(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _user = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("user"), out var __jsonUser) ? (string)__jsonUser : (string)User; }
            { _date = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("date"), out var __jsonDate) ? (string)__jsonDate : (string)Date; }
            { _justification = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("justification"), out var __jsonJustification) ? (string)__jsonJustification : (string)Justification; }
            { _subscriptionId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)SubscriptionId; }
            { _subscriptionName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("subscriptionName"), out var __jsonSubscriptionName) ? (string)__jsonSubscriptionName : (string)SubscriptionName; }
            AfterFromJson(json);
        }
Пример #17
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject into a new instance of <see cref="SingleOperation" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal SingleOperation(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _display = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject>("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.SingleOperationDisplay.FromJson(__jsonDisplay) : Display; }
            { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; }
            { _isDataAction = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonBoolean>("isDataAction"), out var __jsonIsDataAction) ? (bool?)__jsonIsDataAction : IsDataAction; }
            { _origin = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("origin"), out var __jsonOrigin) ? (string)__jsonOrigin : (string)Origin; }
            { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Any.FromJson(__jsonProperties) : Property; }
            AfterFromJson(json);
        }
Пример #18
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject into a new instance of <see cref="AcknowledgeOfferNotificationDetails" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal AcknowledgeOfferNotificationDetails(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _acknowledge = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonBoolean>("acknowledge"), out var __jsonAcknowledge) ? (bool?)__jsonAcknowledge : Acknowledge; }
            { _dismiss = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonBoolean>("dismiss"), out var __jsonDismiss) ? (bool?)__jsonDismiss : Dismiss; }
            { _removeOffer = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonBoolean>("removeOffer"), out var __jsonRemoveOffer) ? (bool?)__jsonRemoveOffer : RemoveOffer; }
            { _addPlan = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonArray>("addPlans"), out var __jsonAddPlans) ? If(__jsonAddPlans as Microsoft.Azure.PowerShell.Cmdlets.Marketplace.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.Marketplace.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : AddPlan; }
            { _removePlan = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonArray>("removePlans"), out var __jsonRemovePlans) ? If(__jsonRemovePlans as Microsoft.Azure.PowerShell.Cmdlets.Marketplace.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.Marketplace.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null))))() : null : RemovePlan; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject into a new instance of <see cref="TransferOffersProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal TransferOffersProperties(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.TransferOffersDetails.FromJson(__jsonProperties) : Property; }
            AfterFromJson(json);
        }
Пример #20
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject into a new instance of <see cref="ErrorResponse" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ErrorResponse(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _error = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject>("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.ErrorResponseError.FromJson(__jsonError) : Error; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject into a new instance of <see cref="QueryApprovedPlansResponse" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal QueryApprovedPlansResponse(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _detail = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonArray>("details"), out var __jsonDetails) ? If(__jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IQueryApprovedPlansDetails[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IQueryApprovedPlansDetails)(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.QueryApprovedPlansDetails.FromJson(__u)))))() : null : Detail; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject into a new instance of <see cref="BillingAccountsResponse" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal BillingAccountsResponse(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _billingAccount = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonArray>("billingAccounts"), out var __jsonBillingAccounts) ? If(__jsonBillingAccounts as Microsoft.Azure.PowerShell.Cmdlets.Marketplace.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.Marketplace.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : BillingAccount; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject into a new instance of <see cref="CollectionsToSubscriptionsMappingPayload" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal CollectionsToSubscriptionsMappingPayload(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.CollectionsToSubscriptionsMappingProperties.FromJson(__jsonProperties) : Property; }
            AfterFromJson(json);
        }
Пример #24
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject into a new instance of <see cref="Offer" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal Offer(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _notificationsSetting = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject>("notificationsSettings"), out var __jsonNotificationsSettings) ? Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.NotificationsSettingsProperties.FromJson(__jsonNotificationsSettings) : NotificationsSetting; }
            { _availability = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("availability"), out var __jsonAvailability) ? (string)__jsonAvailability : (string)Availability; }
            { _privateStoreId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("privateStoreId"), out var __jsonPrivateStoreId) ? (string)__jsonPrivateStoreId : (string)PrivateStoreId; }
            { _eTag = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("eTag"), out var __jsonETag) ? (string)__jsonETag : (string)ETag; }
            { _privateStoreName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("privateStoreName"), out var __jsonPrivateStoreName) ? (string)__jsonPrivateStoreName : (string)PrivateStoreName; }
            { _tenantId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("tenantId"), out var __jsonTenantId) ? (string)__jsonTenantId : (string)TenantId; }
            { _isGov = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonBoolean>("isGov"), out var __jsonIsGov) ? (bool?)__jsonIsGov : IsGov; }
            { _collectionId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonArray>("collectionIds"), out var __jsonCollectionIds) ? If(__jsonCollectionIds as Microsoft.Azure.PowerShell.Cmdlets.Marketplace.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.Marketplace.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : CollectionId; }
            { _branding = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject>("branding"), out var __jsonBranding) ? Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.PrivateStorePropertiesBranding.FromJson(__jsonBranding) : Branding; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject into a new instance of <see cref="AdminRequestApprovalProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal AdminRequestApprovalProperties(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _offerId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("offerId"), out var __jsonOfferId) ? (string)__jsonOfferId : (string)OfferId; }
            { _displayName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)DisplayName; }
            { _publisherId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("publisherId"), out var __jsonPublisherId) ? (string)__jsonPublisherId : (string)PublisherId; }
            { _adminAction = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("adminAction"), out var __jsonAdminAction) ? (string)__jsonAdminAction : (string)AdminAction; }
            { _approvedPlan = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonArray>("approvedPlans"), out var __jsonApprovedPlans) ? If(__jsonApprovedPlans as Microsoft.Azure.PowerShell.Cmdlets.Marketplace.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.Marketplace.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : ApprovedPlan; }
            { _comment = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("comment"), out var __jsonComment) ? (string)__jsonComment : (string)Comment; }
            { _administrator = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("administrator"), out var __jsonAdministrator) ? (string)__jsonAdministrator : (string)Administrator; }
            { _plan = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonArray>("plans"), out var __jsonPlans) ? If(__jsonPlans as Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonArray, out var __q) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IPlanRequesterDetails[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p) => (Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IPlanRequesterDetails)(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.PlanRequesterDetails.FromJson(__p)))))() : null : Plan; }
            { _collectionId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonArray>("collectionIds"), out var __jsonCollectionIds) ? If(__jsonCollectionIds as Microsoft.Azure.PowerShell.Cmdlets.Marketplace.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.Marketplace.Runtime.Json.JsonString __j ? (string)(__j.ToString()) : null))))() : null : CollectionId; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject into a new instance of <see cref="CollectionProperties" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal CollectionProperties(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _collectionId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("collectionId"), out var __jsonCollectionId) ? (string)__jsonCollectionId : (string)CollectionId; }
            { _collectionName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("collectionName"), out var __jsonCollectionName) ? (string)__jsonCollectionName : (string)CollectionName; }
            { _claim = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("claim"), out var __jsonClaim) ? (string)__jsonClaim : (string)Claim; }
            { _allSubscription = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonBoolean>("allSubscriptions"), out var __jsonAllSubscriptions) ? (bool?)__jsonAllSubscriptions : AllSubscription; }
            { _subscriptionsList = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonArray>("subscriptionsList"), out var __jsonSubscriptionsList) ? If(__jsonSubscriptionsList as Microsoft.Azure.PowerShell.Cmdlets.Marketplace.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.Marketplace.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : SubscriptionsList; }
            { _enabled = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonBoolean>("enabled"), out var __jsonEnabled) ? (bool?)__jsonEnabled : Enabled; }
            { _numberOfOffer = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonNumber>("numberOfOffers"), out var __jsonNumberOfOffers) ? (long?)__jsonNumberOfOffers : NumberOfOffer; }
            AfterFromJson(json);
        }
Пример #28
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject into a new instance of <see cref="StopSellNotifications" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal StopSellNotifications(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _offerId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("offerId"), out var __jsonOfferId) ? (string)__jsonOfferId : (string)OfferId; }
            { _displayName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)DisplayName; }
            { _isEntire = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonBoolean>("isEntire"), out var __jsonIsEntire) ? (bool?)__jsonIsEntire : IsEntire; }
            { _messageCode = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonNumber>("messageCode"), out var __jsonMessageCode) ? (long?)__jsonMessageCode : MessageCode; }
            { _icon = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("icon"), out var __jsonIcon) ? (string)__jsonIcon : (string)Icon; }
            { _plan = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonArray>("plans"), out var __jsonPlans) ? If(__jsonPlans as Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IPlanNotificationDetails[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.IPlanNotificationDetails)(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Api20210601.PlanNotificationDetails.FromJson(__u)))))() : null : Plan; }
            AfterFromJson(json);
        }
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject into a new instance of <see cref="MarketplaceIdentity" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal MarketplaceIdentity(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _privateStoreId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("privateStoreId"), out var __jsonPrivateStoreId) ? (string)__jsonPrivateStoreId : (string)PrivateStoreId; }
            { _requestApprovalId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("requestApprovalId"), out var __jsonRequestApprovalId) ? (string)__jsonRequestApprovalId : (string)RequestApprovalId; }
            { _adminRequestApprovalId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("adminRequestApprovalId"), out var __jsonAdminRequestApprovalId) ? (string)__jsonAdminRequestApprovalId : (string)AdminRequestApprovalId; }
            { _offerId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("offerId"), out var __jsonOfferId) ? (string)__jsonOfferId : (string)OfferId; }
            { _collectionId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("collectionId"), out var __jsonCollectionId) ? (string)__jsonCollectionId : (string)CollectionId; }
            { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; }
            AfterFromJson(json);
        }
Пример #30
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject into a new instance of <see cref="PlanDetails" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal PlanDetails(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            { _planId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("planId"), out var __jsonPlanId) ? (string)__jsonPlanId : (string)PlanId; }
            { _status = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status; }
            { _requestDate = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonObject>("requestDate"), out var __jsonRequestDate) ? Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.Any.FromJson(__jsonRequestDate) : RequestDate; }
            { _justification = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("justification"), out var __jsonJustification) ? (string)__jsonJustification : (string)Justification; }
            { _subscriptionId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)SubscriptionId; }
            { _subscriptionName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Json.JsonString>("subscriptionName"), out var __jsonSubscriptionName) ? (string)__jsonSubscriptionName : (string)SubscriptionName; }
            AfterFromJson(json);
        }