Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Core
/// <summary>
/// A class representing a sub-resource that contains only the ID.
/// </summary>
public partial class SubResourceWritable : IUtf8JsonSerializable
public partial class WritableSubResource : IUtf8JsonSerializable
{
/// <summary>
/// Serialize the input SubResourceReadOnly object.
Expand All @@ -32,7 +32,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
/// </summary>
/// <param name="element">The JSON element to be deserialized.</param>
/// <returns>Deserialized SubResourceReadOnly object.</returns>
internal static SubResourceWritable DeserializeSubResourceReadOnly(JsonElement element)
internal static WritableSubResource DeserializeSubResourceReadOnly(JsonElement element)
{
Optional<string> id = default;
foreach (var property in element.EnumerateObject())
Expand All @@ -43,7 +43,7 @@ internal static SubResourceWritable DeserializeSubResourceReadOnly(JsonElement e
continue;
}
}
return new SubResourceWritable(id.Value);
return new WritableSubResource(id.Value);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ namespace Azure.ResourceManager.Core
/// A class representing a sub-resource that contains only the read-only ID.
/// </summary>
[ReferenceType]
public partial class SubResourceWritable
public partial class WritableSubResource
{
/// <summary> Initializes a new instance of SubResourceReadOnly. </summary>
[InitializationConstructor]
public SubResourceWritable()
public WritableSubResource()
{
}

/// <summary> Initializes a new instance of SubResourceReadOnly. </summary>
/// <param name="id"> ARM resource Id. </param>
[SerializationConstructor]
protected internal SubResourceWritable(string id)
protected internal WritableSubResource(string id)
{
Id = id;
}
Expand Down