Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PP9-18550: Regenerate contracts #710

Merged
merged 2 commits into from Dec 7, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -17775,7 +17775,7 @@ private Newtonsoft.Json.JsonSerializerSettings CreateSerializerSettings()
/// <exception cref="PictureparkException">Internal server error</exception>
/// <exception cref="PictureparkException">Entity not found</exception>
/// <exception cref="PictureparkNotFoundException">Entity not found</exception>
public virtual async System.Threading.Tasks.Task<OutputFormatDetail> GetAsync(string customerId, string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
public virtual async System.Threading.Tasks.Task<StaticOutputFormatDetail> GetAsync(string customerId, string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
var urlBuilder_ = new System.Text.StringBuilder();
urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/OutputFormat/customer/{customerId}/outputformats/{id}");
Expand Down Expand Up @@ -17814,7 +17814,7 @@ public virtual async System.Threading.Tasks.Task<OutputFormatDetail> GetAsync(st
var status_ = (int)response_.StatusCode;
if (status_ == 200)
{
var objectResponse_ = await ReadObjectResponseAsync<OutputFormatDetail>(response_, headers_, cancellationToken).ConfigureAwait(false);
var objectResponse_ = await ReadObjectResponseAsync<StaticOutputFormatDetail>(response_, headers_, cancellationToken).ConfigureAwait(false);
if (objectResponse_.Object == null)
{
throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null);
Expand Down Expand Up @@ -17946,7 +17946,7 @@ public virtual async System.Threading.Tasks.Task<OutputFormatDetail> GetAsync(st
/// <exception cref="PictureparkException">Internal server error</exception>
/// <exception cref="PictureparkException">Entity not found</exception>
/// <exception cref="PictureparkNotFoundException">Entity not found</exception>
public virtual async System.Threading.Tasks.Task<BusinessProcess> UpdateAsync(string customerId, string id, OutputFormatEditable format, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
public virtual async System.Threading.Tasks.Task<BusinessProcess> UpdateAsync(string customerId, string id, StaticOutputFormatEditable format, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
if (format == null)
throw new System.ArgumentNullException("format");
Expand Down Expand Up @@ -18295,7 +18295,7 @@ public virtual async System.Threading.Tasks.Task<BusinessProcess> DeleteAsync(st
/// <exception cref="PictureparkException">Internal server error</exception>
/// <exception cref="PictureparkException">Entity not found</exception>
/// <exception cref="PictureparkNotFoundException">Entity not found</exception>
public virtual async System.Threading.Tasks.Task<BusinessProcess> CreateAsync(string customerId, OutputFormat format, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
public virtual async System.Threading.Tasks.Task<BusinessProcess> CreateAsync(string customerId, StaticOutputFormat format, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
if (format == null)
throw new System.ArgumentNullException("format");
Expand Down
149 changes: 117 additions & 32 deletions src/Picturepark.SDK.V1.CloudManager/Generated/Contracts.Generated.cs
Expand Up @@ -1106,7 +1106,7 @@ public partial interface IOutputFormatClient
/// <exception cref="PictureparkException">Internal server error</exception>
/// <exception cref="PictureparkException">Entity not found</exception>
/// <exception cref="PictureparkNotFoundException">Entity not found</exception>
System.Threading.Tasks.Task<OutputFormatDetail> GetAsync(string customerId, string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
System.Threading.Tasks.Task<StaticOutputFormatDetail> GetAsync(string customerId, string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
/// <exception cref="ApiException">A server side error occurred.</exception>
Expand All @@ -1117,7 +1117,7 @@ public partial interface IOutputFormatClient
/// <exception cref="PictureparkException">Internal server error</exception>
/// <exception cref="PictureparkException">Entity not found</exception>
/// <exception cref="PictureparkNotFoundException">Entity not found</exception>
System.Threading.Tasks.Task<BusinessProcess> UpdateAsync(string customerId, string id, OutputFormatEditable format, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
System.Threading.Tasks.Task<BusinessProcess> UpdateAsync(string customerId, string id, StaticOutputFormatEditable format, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
/// <exception cref="ApiException">A server side error occurred.</exception>
Expand All @@ -1139,7 +1139,7 @@ public partial interface IOutputFormatClient
/// <exception cref="PictureparkException">Internal server error</exception>
/// <exception cref="PictureparkException">Entity not found</exception>
/// <exception cref="PictureparkNotFoundException">Entity not found</exception>
System.Threading.Tasks.Task<BusinessProcess> CreateAsync(string customerId, OutputFormat format, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
System.Threading.Tasks.Task<BusinessProcess> CreateAsync(string customerId, StaticOutputFormat format, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

}

Expand Down Expand Up @@ -16659,7 +16659,7 @@ public partial class CustomerCreateRequest
public LanguageConfiguration LanguageConfiguration { get; set; }

[Newtonsoft.Json.JsonProperty("outputFormats", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public System.Collections.Generic.ICollection<OutputFormat> OutputFormats { get; set; }
public System.Collections.Generic.ICollection<StaticOutputFormat> OutputFormats { get; set; }

[Newtonsoft.Json.JsonProperty("contentRetentionTime", Required = Newtonsoft.Json.Required.Always)]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
Expand Down Expand Up @@ -17138,38 +17138,25 @@ public static LanguageConfiguration FromJson(string data)
}

/// <summary>
/// Represents an output format.
/// Represents a static output format used in cloud manager.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class OutputFormat : OutputFormatEditable
public partial class StaticOutputFormat : StaticOutputFormatEditable
{
/// <summary>
/// Output format ID.
/// </summary>
[Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Id { get; set; }

/// <summary>
/// Marks if this is a system output format.
/// </summary>
[Newtonsoft.Json.JsonProperty("system", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[System.Obsolete("Will be removed in future versions")]
public bool System { get; set; }

/// <summary>
/// A dynamic output format is not rendered automatically, but only on demand.
/// </summary>
[Newtonsoft.Json.JsonProperty("dynamic", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public bool Dynamic { get; set; }

/// <summary>
/// Specifies if output format should be taken into account during data extraction.
/// </summary>
[Newtonsoft.Json.JsonProperty("dataExtraction", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[System.Obsolete("Will be removed in future versions")]
public bool DataExtraction { get; set; }

/// <summary>
/// Temporary outputs will not be backed up.
/// </summary>
[Newtonsoft.Json.JsonProperty("temporary", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public bool Temporary { get; set; }

Expand All @@ -17179,15 +17166,119 @@ public string ToJson()
return Newtonsoft.Json.JsonConvert.SerializeObject(this, new Newtonsoft.Json.JsonSerializerSettings());

}
public static OutputFormat FromJson(string data)
public static StaticOutputFormat FromJson(string data)
{

return Newtonsoft.Json.JsonConvert.DeserializeObject<StaticOutputFormat>(data, new Newtonsoft.Json.JsonSerializerSettings());

}

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class StaticOutputFormatEditable : OutputFormatEditable
{
[Newtonsoft.Json.JsonProperty("storageAttributes", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public OutputFormatStorageAttributes StorageAttributes { get; set; }

public string ToJson()
{

return Newtonsoft.Json.JsonConvert.SerializeObject(this, new Newtonsoft.Json.JsonSerializerSettings());

}
public static StaticOutputFormatEditable FromJson(string data)
{

return Newtonsoft.Json.JsonConvert.DeserializeObject<OutputFormat>(data, new Newtonsoft.Json.JsonSerializerSettings());
return Newtonsoft.Json.JsonConvert.DeserializeObject<StaticOutputFormatEditable>(data, new Newtonsoft.Json.JsonSerializerSettings());

}

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class OutputFormatStorageAttributes
{
[Newtonsoft.Json.JsonProperty("azure", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public AzureStorageAttributes Azure { get; set; }

public string ToJson()
{

return Newtonsoft.Json.JsonConvert.SerializeObject(this, new Newtonsoft.Json.JsonSerializerSettings());

}
public static OutputFormatStorageAttributes FromJson(string data)
{

return Newtonsoft.Json.JsonConvert.DeserializeObject<OutputFormatStorageAttributes>(data, new Newtonsoft.Json.JsonSerializerSettings());

}

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class AzureStorageAttributes
{
[Newtonsoft.Json.JsonProperty("accessTierPhases", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public System.Collections.Generic.ICollection<AzureStorageAccessTierPhase> AccessTierPhases { get; set; }

public string ToJson()
{

return Newtonsoft.Json.JsonConvert.SerializeObject(this, new Newtonsoft.Json.JsonSerializerSettings());

}
public static AzureStorageAttributes FromJson(string data)
{

return Newtonsoft.Json.JsonConvert.DeserializeObject<AzureStorageAttributes>(data, new Newtonsoft.Json.JsonSerializerSettings());

}

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class AzureStorageAccessTierPhase
{
[Newtonsoft.Json.JsonProperty("tier", Required = Newtonsoft.Json.Required.Always)]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public AzureStorageAccessTier Tier { get; set; }

[Newtonsoft.Json.JsonProperty("duration", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public System.TimeSpan? Duration { get; set; }

public string ToJson()
{

return Newtonsoft.Json.JsonConvert.SerializeObject(this, new Newtonsoft.Json.JsonSerializerSettings());

}
public static AzureStorageAccessTierPhase FromJson(string data)
{

return Newtonsoft.Json.JsonConvert.DeserializeObject<AzureStorageAccessTierPhase>(data, new Newtonsoft.Json.JsonSerializerSettings());

}

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.0.0))")]
public enum AzureStorageAccessTier
{

[System.Runtime.Serialization.EnumMember(Value = @"Hot")]
Hot = 0,

[System.Runtime.Serialization.EnumMember(Value = @"Cool")]
Cool = 1,

[System.Runtime.Serialization.EnumMember(Value = @"Cold")]
Cold = 2,

}

/// <summary>
/// Represents the editable part of the output format.
/// </summary>
Expand Down Expand Up @@ -22101,15 +22192,9 @@ public static ContentDownloadsEditable FromJson(string data)

}

/// <summary>
/// Represents an output format.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class OutputFormatDetail : OutputFormat
public partial class StaticOutputFormatDetail : StaticOutputFormat
{
/// <summary>
/// Audit information.
/// </summary>
[Newtonsoft.Json.JsonProperty("audit", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public UserAuditDetail Audit { get; set; }

Expand All @@ -22119,10 +22204,10 @@ public string ToJson()
return Newtonsoft.Json.JsonConvert.SerializeObject(this, new Newtonsoft.Json.JsonSerializerSettings());

}
public static OutputFormatDetail FromJson(string data)
public static StaticOutputFormatDetail FromJson(string data)
{

return Newtonsoft.Json.JsonConvert.DeserializeObject<OutputFormatDetail>(data, new Newtonsoft.Json.JsonSerializerSettings());
return Newtonsoft.Json.JsonConvert.DeserializeObject<StaticOutputFormatDetail>(data, new Newtonsoft.Json.JsonSerializerSettings());

}

Expand Down
2 changes: 2 additions & 0 deletions src/Picturepark.SDK.V1.Contract/Contracts.Generated.cs
Expand Up @@ -33648,6 +33648,7 @@ public partial class OutputFormat : OutputFormatEditable
/// Marks if this is a system output format.
/// </summary>
[Newtonsoft.Json.JsonProperty("system", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[System.Obsolete("Will be removed in future versions")]
public bool System { get; set; }

/// <summary>
Expand All @@ -33660,6 +33661,7 @@ public partial class OutputFormat : OutputFormatEditable
/// Specifies if output format should be taken into account during data extraction.
/// </summary>
[Newtonsoft.Json.JsonProperty("dataExtraction", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[System.Obsolete("Will be removed in future versions")]
public bool DataExtraction { get; set; }

/// <summary>
Expand Down