/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject into a new instance of <see cref="WorkspaceProviderAuthorization" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject instance to deserialize from.</param> internal WorkspaceProviderAuthorization(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _principalId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("principalId"), out var __jsonPrincipalId) ? (string)__jsonPrincipalId : (string)PrincipalId; } { _roleDefinitionId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("roleDefinitionId"), out var __jsonRoleDefinitionId) ? (string)__jsonRoleDefinitionId : (string)RoleDefinitionId; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject into a new instance of <see cref="EndpointDependency" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject instance to deserialize from.</param> internal EndpointDependency(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _domainName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("domainName"), out var __jsonDomainName) ? (string)__jsonDomainName : (string)DomainName; } { _endpointDetail = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonArray>("endpointDetails"), out var __jsonEndpointDetails) ? If(__jsonEndpointDetails as Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IEndpointDetail[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IEndpointDetail)(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.EndpointDetail.FromJson(__u)))))() : null : EndpointDetail; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject into a new instance of <see cref="Sku" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject instance to deserialize from.</param> internal Sku(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; } { _tier = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("tier"), out var __jsonTier) ? (string)__jsonTier : (string)Tier; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject into a new instance of <see cref="OutboundEnvironmentEndpoint" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject instance to deserialize from.</param> internal OutboundEnvironmentEndpoint(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _category = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("category"), out var __jsonCategory) ? (string)__jsonCategory : (string)Category; } { _endpoint = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonArray>("endpoints"), out var __jsonEndpoints) ? If(__jsonEndpoints as Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IEndpointDependency[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IEndpointDependency)(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.EndpointDependency.FromJson(__u)))))() : null : Endpoint; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject into a new instance of <see cref="Operation" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject instance to deserialize from.</param> internal Operation(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _display = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject>("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.OperationDisplay.FromJson(__jsonDisplay) : Display; } { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject into a new instance of <see cref="EncryptionV2" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject instance to deserialize from.</param> internal EncryptionV2(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _keyVaultProperty = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject>("keyVaultProperties"), out var __jsonKeyVaultProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.EncryptionV2KeyVaultProperties.FromJson(__jsonKeyVaultProperties) : KeyVaultProperty; } { _keySource = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("keySource"), out var __jsonKeySource) ? (string)__jsonKeySource : (string)KeySource; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject into a new instance of <see cref="WorkspaceListResult" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject instance to deserialize from.</param> internal WorkspaceListResult(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _value = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonArray>("value"), out var __jsonValue) ? If(__jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IWorkspace[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.IWorkspace)(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.Workspace.FromJson(__u)))))() : null : Value; } { _nextLink = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject into a new instance of <see cref="WorkspaceCustomObjectParameter" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject instance to deserialize from.</param> internal WorkspaceCustomObjectParameter(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _type = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("type"), out var __jsonType) ? (string)__jsonType : (string)Type; } { _value = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject>("value"), out var __jsonValue) ? Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.WorkspaceCustomObjectParameterValue.FromJson(__jsonValue) : Value; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject into a new instance of <see cref="PrivateEndpointConnectionProperties" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject instance to deserialize from.</param> internal PrivateEndpointConnectionProperties(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _privateEndpoint = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject>("privateEndpoint"), out var __jsonPrivateEndpoint) ? Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.PrivateEndpoint.FromJson(__jsonPrivateEndpoint) : PrivateEndpoint; } { _privateLinkServiceConnectionState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject>("privateLinkServiceConnectionState"), out var __jsonPrivateLinkServiceConnectionState) ? Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.PrivateLinkServiceConnectionState.FromJson(__jsonPrivateLinkServiceConnectionState) : PrivateLinkServiceConnectionState; } { _provisioningState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject into a new instance of <see cref="GroupIdInformationProperties" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject instance to deserialize from.</param> internal GroupIdInformationProperties(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _groupId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("groupId"), out var __jsonGroupId) ? (string)__jsonGroupId : (string)GroupId; } { _requiredMember = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonArray>("requiredMembers"), out var __jsonRequiredMembers) ? If(__jsonRequiredMembers as Microsoft.Azure.PowerShell.Cmdlets.Databricks.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.Databricks.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : RequiredMember; } { _requiredZoneName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonArray>("requiredZoneNames"), out var __jsonRequiredZoneNames) ? If(__jsonRequiredZoneNames as Microsoft.Azure.PowerShell.Cmdlets.Databricks.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.Databricks.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null))))() : null : RequiredZoneName; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject into a new instance of <see cref="OperationDisplay" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject instance to deserialize from.</param> internal OperationDisplay(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _provider = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("provider"), out var __jsonProvider) ? (string)__jsonProvider : (string)Provider; } { _resource = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("resource"), out var __jsonResource) ? (string)__jsonResource : (string)Resource; } { _operation = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("operation"), out var __jsonOperation) ? (string)__jsonOperation : (string)Operation; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject into a new instance of <see cref="ErrorDetail" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject instance to deserialize from.</param> internal ErrorDetail(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _code = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code; } { _message = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message; } { _target = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)Target; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject into a new instance of <see cref="PrivateLinkServiceConnectionState" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject instance to deserialize from.</param> internal PrivateLinkServiceConnectionState(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _status = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status; } { _description = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description; } { _actionRequired = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("actionRequired"), out var __jsonActionRequired) ? (string)__jsonActionRequired : (string)ActionRequired; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject into a new instance of <see cref="Resource" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject instance to deserialize from.</param> internal Resource(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; } { _type = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("type"), out var __jsonType) ? (string)__jsonType : (string)Type; } { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject into a new instance of <see cref="EncryptionV2KeyVaultProperties" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject instance to deserialize from.</param> internal EncryptionV2KeyVaultProperties(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _keyVaultUri = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("keyVaultUri"), out var __jsonKeyVaultUri) ? (string)__jsonKeyVaultUri : (string)KeyVaultUri; } { _keyName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("keyName"), out var __jsonKeyName) ? (string)__jsonKeyName : (string)KeyName; } { _keyVersion = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("keyVersion"), out var __jsonKeyVersion) ? (string)__jsonKeyVersion : (string)KeyVersion; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject into a new instance of <see cref="CreatedBy" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject instance to deserialize from.</param> internal CreatedBy(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _oid = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("oid"), out var __jsonOid) ? (string)__jsonOid : (string)Oid; } { _puid = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("puid"), out var __jsonPuid) ? (string)__jsonPuid : (string)Puid; } { _applicationId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("applicationId"), out var __jsonApplicationId) ? (string)__jsonApplicationId : (string)ApplicationId; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject into a new instance of <see cref="Workspace" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject instance to deserialize from.</param> internal Workspace(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.TrackedResource(json); { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.WorkspaceProperties.FromJson(__jsonProperties) : Property; } { _sku = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject>("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.Sku.FromJson(__jsonSku) : Sku; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject into a new instance of <see cref="ManagedIdentityConfiguration" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject instance to deserialize from.</param> internal ManagedIdentityConfiguration(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _principalId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("principalId"), out var __jsonPrincipalId) ? (string)__jsonPrincipalId : (string)PrincipalId; } { _tenantId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("tenantId"), out var __jsonTenantId) ? (string)__jsonTenantId : (string)TenantId; } { _type = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("type"), out var __jsonType) ? (string)__jsonType : (string)Type; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject into a new instance of <see cref="TrackedResource" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject instance to deserialize from.</param> internal TrackedResource(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } __resource = new Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.Resource(json); { _location = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location; } { _tag = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject>("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.TrackedResourceTags.FromJson(__jsonTags) : Tag; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject into a new instance of <see cref="DatabricksIdentity" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject instance to deserialize from.</param> internal DatabricksIdentity(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; } { _resourceGroupName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("resourceGroupName"), out var __jsonResourceGroupName) ? (string)__jsonResourceGroupName : (string)ResourceGroupName; } { _subscriptionId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)SubscriptionId; } { _workspaceName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("workspaceName"), out var __jsonWorkspaceName) ? (string)__jsonWorkspaceName : (string)WorkspaceName; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject into a new instance of <see cref="VirtualNetworkPeering" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject instance to deserialize from.</param> internal VirtualNetworkPeering(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.VirtualNetworkPeeringPropertiesFormat.FromJson(__jsonProperties) : Property; } { _name = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name; } { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; } { _type = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("type"), out var __jsonType) ? (string)__jsonType : (string)Type; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject into a new instance of <see cref="EndpointDetail" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject instance to deserialize from.</param> internal EndpointDetail(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _iPAddress = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("ipAddress"), out var __jsonIPAddress) ? (string)__jsonIPAddress : (string)IPAddress; } { _port = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonNumber>("port"), out var __jsonPort) ? (int?)__jsonPort : Port; } { _latency = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonNumber>("latency"), out var __jsonLatency) ? (double?)__jsonLatency : Latency; } { _isAccessible = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonBoolean>("isAccessible"), out var __jsonIsAccessible) ? (bool?)__jsonIsAccessible : IsAccessible; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject into a new instance of <see cref="ErrorInfo" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject instance to deserialize from.</param> internal ErrorInfo(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _code = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code; } { _innererror = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("innererror"), out var __jsonInnererror) ? (string)__jsonInnererror : (string)Innererror; } { _message = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message; } { _detail = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonArray>("details"), out var __jsonDetails) ? If(__jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.IErrorDetail[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.IErrorDetail)(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.ErrorDetail.FromJson(__u)))))() : null : Detail; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject into a new instance of <see cref="WorkspaceProperties" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject instance to deserialize from.</param> internal WorkspaceProperties(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _parameter = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject>("parameters"), out var __jsonParameters) ? Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.WorkspaceCustomParameters.FromJson(__jsonParameters) : Parameter; } { _authorization = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonArray>("authorizations"), out var __jsonAuthorizations) ? If(__jsonAuthorizations as Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.IWorkspaceProviderAuthorization[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.IWorkspaceProviderAuthorization)(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.WorkspaceProviderAuthorization.FromJson(__u)))))() : null : Authorization; } { _managedResourceGroupId = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("managedResourceGroupId"), out var __jsonManagedResourceGroupId) ? (string)__jsonManagedResourceGroupId : (string)ManagedResourceGroupId; } { _provisioningState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState; } { _uiDefinitionUri = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("uiDefinitionUri"), out var __jsonUiDefinitionUri) ? (string)__jsonUiDefinitionUri : (string)UiDefinitionUri; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject into a new instance of <see cref="VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork" /// />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject instance to deserialize from.</param> internal VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject into a new instance of <see cref="WorkspaceUpdate" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject instance to deserialize from.</param> internal WorkspaceUpdate(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _tag = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject>("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.WorkspaceUpdateTags.FromJson(__jsonTags) : Tag; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject into a new instance of <see cref="PrivateEndpoint" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject instance to deserialize from.</param> internal PrivateEndpoint(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _id = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject into a new instance of <see cref="AddressSpace" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject instance to deserialize from.</param> internal AddressSpace(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _addressPrefix = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonArray>("addressPrefixes"), out var __jsonAddressPrefixes) ? If(__jsonAddressPrefixes as Microsoft.Azure.PowerShell.Cmdlets.Databricks.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.Databricks.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : AddressPrefix; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject into a new instance of <see cref="VirtualNetworkPeeringPropertiesFormat" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject instance to deserialize from.</param> internal VirtualNetworkPeeringPropertiesFormat(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _databricksAddressSpace = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject>("databricksAddressSpace"), out var __jsonDatabricksAddressSpace) ? Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.AddressSpace.FromJson(__jsonDatabricksAddressSpace) : DatabricksAddressSpace; } { _databricksVirtualNetwork = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject>("databricksVirtualNetwork"), out var __jsonDatabricksVirtualNetwork) ? Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork.FromJson(__jsonDatabricksVirtualNetwork) : DatabricksVirtualNetwork; } { _remoteAddressSpace = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject>("remoteAddressSpace"), out var __jsonRemoteAddressSpace) ? Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.AddressSpace.FromJson(__jsonRemoteAddressSpace) : RemoteAddressSpace; } { _remoteVirtualNetwork = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject>("remoteVirtualNetwork"), out var __jsonRemoteVirtualNetwork) ? Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20180401.VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork.FromJson(__jsonRemoteVirtualNetwork) : RemoteVirtualNetwork; } { _allowForwardedTraffic = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonBoolean>("allowForwardedTraffic"), out var __jsonAllowForwardedTraffic) ? (bool?)__jsonAllowForwardedTraffic : AllowForwardedTraffic; } { _allowGatewayTransit = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonBoolean>("allowGatewayTransit"), out var __jsonAllowGatewayTransit) ? (bool?)__jsonAllowGatewayTransit : AllowGatewayTransit; } { _allowVirtualNetworkAccess = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonBoolean>("allowVirtualNetworkAccess"), out var __jsonAllowVirtualNetworkAccess) ? (bool?)__jsonAllowVirtualNetworkAccess : AllowVirtualNetworkAccess; } { _peeringState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("peeringState"), out var __jsonPeeringState) ? (string)__jsonPeeringState : (string)PeeringState; } { _provisioningState = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonString>("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState; } { _useRemoteGateway = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonBoolean>("useRemoteGateways"), out var __jsonUseRemoteGateways) ? (bool?)__jsonUseRemoteGateways : UseRemoteGateway; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject into a new instance of <see cref="ErrorResponse" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject instance to deserialize from.</param> internal ErrorResponse(Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } { _error = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Json.JsonObject>("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20210401Preview.ErrorInfo.FromJson(__jsonError) : Error; } AfterFromJson(json); }