forked from Azure/azure-sdk-for-net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Polish machinelearning (Azure#32665)
* show serialized names * setp one * a few update * update * final polish * fix compilation error
- Loading branch information
1 parent
a952fba
commit c26e657
Showing
1,382 changed files
with
65,981 additions
and
55,759 deletions.
There are no files selected for viewing
6,182 changes: 3,081 additions & 3,101 deletions
6,182
...sourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs
Large diffs are not rendered by default.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
...hineLearning/src/Customized/MachineLearningPartialManagedServiceIdentity.Serialization.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
#nullable disable | ||
|
||
using System.Text.Json; | ||
using Azure.Core; | ||
|
||
namespace Azure.ResourceManager.MachineLearning.Models | ||
{ | ||
public partial class MachineLearningPartialManagedServiceIdentity : IUtf8JsonSerializable | ||
{ | ||
void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) | ||
{ | ||
writer.WriteStartObject(); | ||
if (Optional.IsDefined(ManagedServiceIdentityType)) | ||
{ | ||
writer.WritePropertyName("type"); | ||
writer.WriteStringValue(ManagedServiceIdentityType.Value.ToString()); | ||
} | ||
if (Optional.IsCollectionDefined(UserAssignedIdentities)) | ||
{ | ||
writer.WritePropertyName("userAssignedIdentities"); | ||
writer.WriteStartObject(); | ||
foreach (var item in UserAssignedIdentities) | ||
{ | ||
writer.WritePropertyName(item.Key); | ||
#if NET6_0_OR_GREATER | ||
writer.WriteRawValue(item.Value); | ||
#else | ||
JsonSerializer.Serialize(writer, JsonDocument.Parse(item.Value.ToString()).RootElement); | ||
#endif | ||
} | ||
writer.WriteEndObject(); | ||
} | ||
writer.WriteEndObject(); | ||
} | ||
} | ||
} |
62 changes: 62 additions & 0 deletions
62
...rceManager.MachineLearning/src/Customized/MachineLearningPartialManagedServiceIdentity.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
#nullable disable | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using Azure.Core; | ||
|
||
[assembly:CodeGenSuppressType("MachineLearningPartialManagedServiceIdentity")] | ||
namespace Azure.ResourceManager.MachineLearning.Models | ||
{ | ||
/// <summary> | ||
/// Managed service identity (system assigned and/or user assigned identities) | ||
/// </summary> | ||
public partial class MachineLearningPartialManagedServiceIdentity | ||
{ | ||
/// <summary> Initializes a new instance of PartialManagedServiceIdentity. </summary> | ||
public MachineLearningPartialManagedServiceIdentity() | ||
{ | ||
UserAssignedIdentities = new ChangeTrackingDictionary<string, BinaryData>(); | ||
} | ||
|
||
/// <summary> | ||
/// Managed service identity (system assigned and/or user assigned identities) | ||
/// Serialized Name: PartialManagedServiceIdentity.type | ||
/// </summary> | ||
public Azure.ResourceManager.Models.ManagedServiceIdentityType? ManagedServiceIdentityType { get; set; } | ||
/// <summary> | ||
/// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. | ||
/// Serialized Name: PartialManagedServiceIdentity.userAssignedIdentities | ||
/// <para> | ||
/// To assign an object to the value of this property use <see cref="BinaryData.FromObjectAsJson{T}(T, System.Text.Json.JsonSerializerOptions?)"/>. | ||
/// </para> | ||
/// <para> | ||
/// To assign an already formated json string to this property use <see cref="BinaryData.FromString(string)"/>. | ||
/// </para> | ||
/// <para> | ||
/// Examples: | ||
/// <list type="bullet"> | ||
/// <item> | ||
/// <term>BinaryData.FromObjectAsJson("foo")</term> | ||
/// <description>Creates a payload of "foo".</description> | ||
/// </item> | ||
/// <item> | ||
/// <term>BinaryData.FromString("\"foo\"")</term> | ||
/// <description>Creates a payload of "foo".</description> | ||
/// </item> | ||
/// <item> | ||
/// <term>BinaryData.FromObjectAsJson(new { key = "value" })</term> | ||
/// <description>Creates a payload of { "key": "value" }.</description> | ||
/// </item> | ||
/// <item> | ||
/// <term>BinaryData.FromString("{\"key\": \"value\"}")</term> | ||
/// <description>Creates a payload of { "key": "value" }.</description> | ||
/// </item> | ||
/// </list> | ||
/// </para> | ||
/// </summary> | ||
public IDictionary<string, BinaryData> UserAssignedIdentities { get; } | ||
} | ||
} |
339 changes: 0 additions & 339 deletions
339
...services/Azure.ResourceManager.MachineLearning/src/Generated/BatchDeploymentCollection.cs
This file was deleted.
Oops, something went wrong.
58 changes: 0 additions & 58 deletions
58
...arningservices/Azure.ResourceManager.MachineLearning/src/Generated/BatchDeploymentData.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.