Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Commit

Permalink
Update with latest auto generated classes from Swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
xpouyat committed Oct 20, 2023
1 parent cc4251f commit f07bd3b
Show file tree
Hide file tree
Showing 29 changed files with 130 additions and 130 deletions.
2 changes: 0 additions & 2 deletions MK.IO/Account/Models/LocationListResponseSchema.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using MK.IO.Models;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace MK.IO
{
Expand Down
2 changes: 0 additions & 2 deletions MK.IO/Account/Models/LocationResponseSchema.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using MK.IO.Models;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace MK.IO
{
Expand Down
2 changes: 0 additions & 2 deletions MK.IO/Account/Models/SubscriptionListResponseSchema.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using MK.IO.Models;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace MK.IO
{
Expand Down
2 changes: 0 additions & 2 deletions MK.IO/Account/Models/SubscriptionResponseSchema.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using MK.IO.Models;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace MK.IO
{
Expand Down
2 changes: 1 addition & 1 deletion MK.IO/AccountFilter/AccountFiltersOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public async Task<List<AccountFilterSchema>> ListAsync()
{
var url = Client.GenerateApiUrl(_accountFiltersApiUrl);
string responseContent = await Client.GetObjectContentAsync(url);
return JsonConvert.DeserializeObject<AccountFilterListResponseSchema>(responseContent, ConverterLE.Settings).Filters;
return JsonConvert.DeserializeObject<AccountFilterListResponseSchema>(responseContent, ConverterLE.Settings).Value;
}

/// <inheritdoc/>
Expand Down
2 changes: 1 addition & 1 deletion MK.IO/AssetFilter/AssetFiltersOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public async Task<List<AssetFilterSchema>> ListAsync(string assetName)
{
var url = Client.GenerateApiUrl(_assetFiltersApiUrl, assetName);
string responseContent = await Client.GetObjectContentAsync(url);
return JsonConvert.DeserializeObject<AssetFilterListResponseSchema>(responseContent, ConverterLE.Settings).Filters;
return JsonConvert.DeserializeObject<AssetFilterListResponseSchema>(responseContent, ConverterLE.Settings).Value;
}

/// <inheritdoc/>
Expand Down
8 changes: 4 additions & 4 deletions MK.IO/CsharpDotNet2/Model/AbsoluteClipTime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ public class AbsoluteClipTime
/// The discriminator for derived types.
/// </summary>
/// <value>The discriminator for derived types.</value>
[DataMember(Name = "odatatype", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "odatatype")]
public string Odatatype { get; set; }
[DataMember(Name = "@odata.type", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "@odata.type")]
public string OdataType { get; set; }

/// <summary>
/// The time position on the timeline of the input media. It is usually specified as an ISO8601 period. e.g PT30S for 30 seconds.
Expand All @@ -36,7 +36,7 @@ public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class AbsoluteClipTime {\n");
sb.Append(" Odatatype: ").Append(Odatatype).Append("\n");
sb.Append(" OdataType: ").Append(OdataType).Append("\n");
sb.Append(" Time: ").Append(Time).Append("\n");
sb.Append("}\n");
return sb.ToString();
Expand Down
8 changes: 4 additions & 4 deletions MK.IO/CsharpDotNet2/Model/AccountFilterListResponseSchema.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ public class AccountFilterListResponseSchema
/// A list of account filters
/// </summary>
/// <value>A list of account filters</value>
[DataMember(Name = "filters", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "filters")]
public List<AccountFilterSchema> Filters { get; set; }
[DataMember(Name = "value", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "value")]
public List<AccountFilterSchema> Value { get; set; }


/// <summary>
Expand All @@ -28,7 +28,7 @@ public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class AccountFilterListResponseSchema {\n");
sb.Append(" Value: ").Append(Filters).Append("\n");
sb.Append(" Value: ").Append(Value).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down
8 changes: 4 additions & 4 deletions MK.IO/CsharpDotNet2/Model/AssetFilterListResponseSchema.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ public class AssetFilterListResponseSchema
/// A list of asset filters
/// </summary>
/// <value>A list of asset filters</value>
[DataMember(Name = "filters", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "filters")]
public List<AssetFilterSchema> Filters { get; set; }
[DataMember(Name = "value", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "value")]
public List<AssetFilterSchema> Value { get; set; }


/// <summary>
Expand All @@ -28,7 +28,7 @@ public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class AssetFilterListResponseSchema {\n");
sb.Append(" Value: ").Append(Filters).Append("\n");
sb.Append(" Value: ").Append(Value).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down
9 changes: 9 additions & 0 deletions MK.IO/CsharpDotNet2/Model/AssetProperties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ public class AssetProperties
[JsonProperty(PropertyName = "container")]
public string Container { get; set; }

/// <summary>
/// This field defines the deletion policy for the underlying storage container. This determines the behavior when an asset record is deleted. There are two options, 'DELETE', and 'PRESERVE'. A deletion policy of 'DELETE' will result in the associated storage container and all its contents being removed from storage. A deletion policy of 'PRESERVE' will leave the content in-place in your storage account. If left blank, the default behavior of the system will be to PRESERVE content. Once set by the user, this value can be modified, but not un-set.
/// </summary>
/// <value>This field defines the deletion policy for the underlying storage container. This determines the behavior when an asset record is deleted. There are two options, 'DELETE', and 'PRESERVE'. A deletion policy of 'DELETE' will result in the associated storage container and all its contents being removed from storage. A deletion policy of 'PRESERVE' will leave the content in-place in your storage account. If left blank, the default behavior of the system will be to PRESERVE content. Once set by the user, this value can be modified, but not un-set.</value>
[DataMember(Name = "containerDeletionPolicy", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "containerDeletionPolicy")]
public string ContainerDeletionPolicy { get; set; }

/// <summary>
/// The Asset description.
/// </summary>
Expand Down Expand Up @@ -79,6 +87,7 @@ public override string ToString()
sb.Append(" AlternateId: ").Append(AlternateId).Append("\n");
sb.Append(" AssetId: ").Append(AssetId).Append("\n");
sb.Append(" Container: ").Append(Container).Append("\n");
sb.Append(" ContainerDeletionPolicy: ").Append(ContainerDeletionPolicy).Append("\n");
sb.Append(" Description: ").Append(Description).Append("\n");
sb.Append(" EncryptionScope: ").Append(EncryptionScope).Append("\n");
sb.Append(" StorageAccountName: ").Append(StorageAccountName).Append("\n");
Expand Down
6 changes: 4 additions & 2 deletions MK.IO/CsharpDotNet2/Model/AssetStorageDataSpecSchema.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,17 @@ public class AssetStorageDataSpecSchema
public ExceptionsSchema Exceptions { get; set; }

/// <summary>
/// Gets or Sets Files
/// A list of files in the storage container. This only represents files present at the top-level of the container.
/// </summary>
/// <value>A list of files in the storage container. This only represents files present at the top-level of the container.</value>
[DataMember(Name = "files", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "files")]
public List<FileSchema> Files { get; set; }

/// <summary>
/// Gets or Sets Folders
/// A list of folders in the storage container.
/// </summary>
/// <value>A list of folders in the storage container.</value>
[DataMember(Name = "folders", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "folders")]
public List<FolderSchema> Folders { get; set; }
Expand Down
18 changes: 9 additions & 9 deletions MK.IO/CsharpDotNet2/Model/AudioAnalyzerPreset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ namespace MK.IO.Models
[DataContract]
public class AudioAnalyzerPreset
{
/// <summary>
/// The discriminator for derived types.
/// </summary>
/// <value>The discriminator for derived types.</value>
[DataMember(Name = "@odata.type", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "@odata.type")]
public string OdataType { get; set; }

/// <summary>
/// The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US')
/// </summary>
Expand All @@ -35,14 +43,6 @@ public class AudioAnalyzerPreset
[JsonProperty(PropertyName = "mode")]
public string Mode { get; set; }

/// <summary>
/// The discriminator for derived types.
/// </summary>
/// <value>The discriminator for derived types.</value>
[DataMember(Name = "odatatype", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "odatatype")]
public string Odatatype { get; set; }


/// <summary>
/// Get the string presentation of the object
Expand All @@ -52,10 +52,10 @@ public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class AudioAnalyzerPreset {\n");
sb.Append(" OdataType: ").Append(OdataType).Append("\n");
sb.Append(" AudioLanguage: ").Append(AudioLanguage).Append("\n");
sb.Append(" ExperimentalOptions: ").Append(ExperimentalOptions).Append("\n");
sb.Append(" Mode: ").Append(Mode).Append("\n");
sb.Append(" Odatatype: ").Append(Odatatype).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down
18 changes: 9 additions & 9 deletions MK.IO/CsharpDotNet2/Model/AudioTrackDescriptor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ namespace MK.IO.Models
[DataContract]
public class AudioTrackDescriptor
{
/// <summary>
/// The discriminator for derived types.
/// </summary>
/// <value>The discriminator for derived types.</value>
[DataMember(Name = "@odata.type", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "@odata.type")]
public string OdataType { get; set; }

/// <summary>
/// Optional designation for single channel audio tracks.
/// </summary>
Expand All @@ -19,14 +27,6 @@ public class AudioTrackDescriptor
[JsonProperty(PropertyName = "channelMapping")]
public string ChannelMapping { get; set; }

/// <summary>
/// The discriminator for derived types.
/// </summary>
/// <value>The discriminator for derived types.</value>
[DataMember(Name = "odatatype", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "odatatype")]
public string Odatatype { get; set; }


/// <summary>
/// Get the string presentation of the object
Expand All @@ -36,8 +36,8 @@ public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class AudioTrackDescriptor {\n");
sb.Append(" OdataType: ").Append(OdataType).Append("\n");
sb.Append(" ChannelMapping: ").Append(ChannelMapping).Append("\n");
sb.Append(" Odatatype: ").Append(Odatatype).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down
18 changes: 9 additions & 9 deletions MK.IO/CsharpDotNet2/Model/FromAllInputFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ namespace MK.IO.Models
[DataContract]
public class FromAllInputFile
{
/// <summary>
/// The discriminator for derived types.
/// </summary>
/// <value>The discriminator for derived types.</value>
[DataMember(Name = "@odata.type", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "@odata.type")]
public string OdataType { get; set; }

/// <summary>
/// The list of TrackDescriptors which define the metadata and selection of tracks in the input.
/// </summary>
Expand All @@ -19,14 +27,6 @@ public class FromAllInputFile
[JsonProperty(PropertyName = "includedTracks")]
public List<TrackDiscriminator> IncludedTracks { get; set; }

/// <summary>
/// The discriminator for derived types.
/// </summary>
/// <value>The discriminator for derived types.</value>
[DataMember(Name = "odatatype", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "odatatype")]
public string Odatatype { get; set; }


/// <summary>
/// Get the string presentation of the object
Expand All @@ -36,8 +36,8 @@ public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class FromAllInputFile {\n");
sb.Append(" OdataType: ").Append(OdataType).Append("\n");
sb.Append(" IncludedTracks: ").Append(IncludedTracks).Append("\n");
sb.Append(" Odatatype: ").Append(Odatatype).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down
18 changes: 9 additions & 9 deletions MK.IO/CsharpDotNet2/Model/FromEachInputFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ namespace MK.IO.Models
[DataContract]
public class FromEachInputFile
{
/// <summary>
/// The discriminator for derived types.
/// </summary>
/// <value>The discriminator for derived types.</value>
[DataMember(Name = "@odata.type", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "@odata.type")]
public string OdataType { get; set; }

/// <summary>
/// The list of TrackDescriptors which define the metadata and selection of tracks in the input.
/// </summary>
Expand All @@ -19,14 +27,6 @@ public class FromEachInputFile
[JsonProperty(PropertyName = "includedTracks")]
public List<TrackDiscriminator> IncludedTracks { get; set; }

/// <summary>
/// The discriminator for derived types.
/// </summary>
/// <value>The discriminator for derived types.</value>
[DataMember(Name = "odatatype", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "odatatype")]
public string Odatatype { get; set; }


/// <summary>
/// Get the string presentation of the object
Expand All @@ -36,8 +36,8 @@ public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class FromEachInputFile {\n");
sb.Append(" OdataType: ").Append(OdataType).Append("\n");
sb.Append(" IncludedTracks: ").Append(IncludedTracks).Append("\n");
sb.Append(" Odatatype: ").Append(Odatatype).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down
18 changes: 9 additions & 9 deletions MK.IO/CsharpDotNet2/Model/InputFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ namespace MK.IO.Models
[DataContract]
public class InputFile
{
/// <summary>
/// The discriminator for derived types.
/// </summary>
/// <value>The discriminator for derived types.</value>
[DataMember(Name = "@odata.type", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "@odata.type")]
public string OdataType { get; set; }

/// <summary>
/// Name of the file that this input definition applies to.
/// </summary>
Expand All @@ -27,14 +35,6 @@ public class InputFile
[JsonProperty(PropertyName = "includedTracks")]
public List<TrackDiscriminator> IncludedTracks { get; set; }

/// <summary>
/// The discriminator for derived types.
/// </summary>
/// <value>The discriminator for derived types.</value>
[DataMember(Name = "odatatype", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "odatatype")]
public string Odatatype { get; set; }


/// <summary>
/// Get the string presentation of the object
Expand All @@ -44,9 +44,9 @@ public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class InputFile {\n");
sb.Append(" OdataType: ").Append(OdataType).Append("\n");
sb.Append(" Filename: ").Append(Filename).Append("\n");
sb.Append(" IncludedTracks: ").Append(IncludedTracks).Append("\n");
sb.Append(" Odatatype: ").Append(Odatatype).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down
Loading

0 comments on commit f07bd3b

Please sign in to comment.