Skip to content

Commit

Permalink
Updates for v2.1.515
Browse files Browse the repository at this point in the history
  • Loading branch information
Concourse committed Oct 25, 2024
1 parent 1a198a2 commit cee1c63
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ This code is automatically generated by the [OpenAPI Generator](https://openapi-

## Versions

- API version: 0.11.6958
- API version: 0.11.6966
- SDK version: 2.0.0

## Requirements
Expand Down
2 changes: 1 addition & 1 deletion sdk/Lusid.Sdk/Client/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ public static string ToDebugReport()
string report = "C# SDK (Lusid.Sdk) Debug Report:\n";
report += " OS: " + System.Environment.OSVersion + "\n";
report += " .NET Framework Version: " + System.Environment.Version + "\n";
report += " Version of the API: 0.11.6958\n";
report += " Version of the API: 0.11.6966\n";
report += " SDK Package Version: 2.0.0\n";

return report;
Expand Down
4 changes: 2 additions & 2 deletions sdk/Lusid.Sdk/Model/CustodianAccountRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,9 @@ public override int GetHashCode()
}

// Scope (string) minLength
if (this.Scope != null && this.Scope.Length < 1)
if (this.Scope != null && this.Scope.Length < 0)
{
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Scope, length must be greater than 1.", new [] { "Scope" });
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Scope, length must be greater than 0.", new [] { "Scope" });
}

// Scope (string) pattern
Expand Down
20 changes: 19 additions & 1 deletion sdk/Lusid.Sdk/Model/DeleteInstrumentPropertiesResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ protected DeleteInstrumentPropertiesResponse() { }
/// Initializes a new instance of the <see cref="DeleteInstrumentPropertiesResponse" /> class.
/// </summary>
/// <param name="asAt">The as-at datetime at which properties were deleted. (required).</param>
/// <param name="stagedModifications">stagedModifications.</param>
/// <param name="links">links.</param>
public DeleteInstrumentPropertiesResponse(DateTimeOffset asAt = default(DateTimeOffset), List<Link> links = default(List<Link>))
public DeleteInstrumentPropertiesResponse(DateTimeOffset asAt = default(DateTimeOffset), StagedModificationsInfo stagedModifications = default(StagedModificationsInfo), List<Link> links = default(List<Link>))
{
this.AsAt = asAt;
this.StagedModifications = stagedModifications;
this.Links = links;
}

Expand All @@ -51,6 +53,12 @@ protected DeleteInstrumentPropertiesResponse() { }
[DataMember(Name = "asAt", IsRequired = true, EmitDefaultValue = true)]
public DateTimeOffset AsAt { get; set; }

/// <summary>
/// Gets or Sets StagedModifications
/// </summary>
[DataMember(Name = "stagedModifications", EmitDefaultValue = false)]
public StagedModificationsInfo StagedModifications { get; set; }

/// <summary>
/// Gets or Sets Links
/// </summary>
Expand All @@ -66,6 +74,7 @@ public override string ToString()
StringBuilder sb = new StringBuilder();
sb.Append("class DeleteInstrumentPropertiesResponse {\n");
sb.Append(" AsAt: ").Append(AsAt).Append("\n");
sb.Append(" StagedModifications: ").Append(StagedModifications).Append("\n");
sb.Append(" Links: ").Append(Links).Append("\n");
sb.Append("}\n");
return sb.ToString();
Expand Down Expand Up @@ -107,6 +116,11 @@ public bool Equals(DeleteInstrumentPropertiesResponse input)
(this.AsAt != null &&
this.AsAt.Equals(input.AsAt))
) &&
(
this.StagedModifications == input.StagedModifications ||
(this.StagedModifications != null &&
this.StagedModifications.Equals(input.StagedModifications))
) &&
(
this.Links == input.Links ||
this.Links != null &&
Expand All @@ -128,6 +142,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.AsAt.GetHashCode();
}
if (this.StagedModifications != null)
{
hashCode = (hashCode * 59) + this.StagedModifications.GetHashCode();
}
if (this.Links != null)
{
hashCode = (hashCode * 59) + this.Links.GetHashCode();
Expand Down
26 changes: 26 additions & 0 deletions sdk/Lusid.Sdk/Model/DeleteInstrumentsResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,21 @@ protected DeleteInstrumentsResponse() { }
[DataMember(Name = "asAt", IsRequired = true, EmitDefaultValue = true)]
public DateTimeOffset AsAt { get; set; }

/// <summary>
/// Information about the pending staged modifications for the current entity.
/// </summary>
/// <value>Information about the pending staged modifications for the current entity.</value>
[DataMember(Name = "staged", EmitDefaultValue = true)]
public Dictionary<string, StagedModificationsInfo> Staged { get; private set; }

/// <summary>
/// Returns false as Staged should not be serialized given that it's read-only.
/// </summary>
/// <returns>false (boolean)</returns>
public bool ShouldSerializeStaged()
{
return false;
}
/// <summary>
/// Gets or Sets Links
/// </summary>
Expand All @@ -76,6 +91,7 @@ public override string ToString()
sb.Append("class DeleteInstrumentsResponse {\n");
sb.Append(" Href: ").Append(Href).Append("\n");
sb.Append(" AsAt: ").Append(AsAt).Append("\n");
sb.Append(" Staged: ").Append(Staged).Append("\n");
sb.Append(" Links: ").Append(Links).Append("\n");
sb.Append("}\n");
return sb.ToString();
Expand Down Expand Up @@ -122,6 +138,12 @@ public bool Equals(DeleteInstrumentsResponse input)
(this.AsAt != null &&
this.AsAt.Equals(input.AsAt))
) &&
(
this.Staged == input.Staged ||
this.Staged != null &&
input.Staged != null &&
this.Staged.SequenceEqual(input.Staged)
) &&
(
this.Links == input.Links ||
this.Links != null &&
Expand All @@ -147,6 +169,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.AsAt.GetHashCode();
}
if (this.Staged != null)
{
hashCode = (hashCode * 59) + this.Staged.GetHashCode();
}
if (this.Links != null)
{
hashCode = (hashCode * 59) + this.Links.GetHashCode();
Expand Down
1 change: 1 addition & 0 deletions sdk/docs/DeleteInstrumentPropertiesResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**AsAt** | **DateTimeOffset** | The as-at datetime at which properties were deleted. |
**StagedModifications** | [**StagedModificationsInfo**](StagedModificationsInfo.md) | | [optional]
**Links** | [**List&lt;Link&gt;**](Link.md) | | [optional]

[Back to Model list](../README.md#documentation-for-models) &#8226; [Back to API list](../README.md#documentation-for-api-endpoints) &#8226; [Back to README](../README.md)
Expand Down
1 change: 1 addition & 0 deletions sdk/docs/DeleteInstrumentsResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Href** | **string** | The specific Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime. | [optional]
**AsAt** | **DateTimeOffset** | The as-at datetime at which the instrument was deleted. |
**Staged** | [**Dictionary&lt;string, StagedModificationsInfo&gt;**](StagedModificationsInfo.md) | Information about the pending staged modifications for the current entity. | [optional] [readonly]
**Links** | [**List&lt;Link&gt;**](Link.md) | | [optional]

[Back to Model list](../README.md#documentation-for-models) &#8226; [Back to API list](../README.md#documentation-for-api-endpoints) &#8226; [Back to README](../README.md)
Expand Down

0 comments on commit cee1c63

Please sign in to comment.