diff --git a/src/libs/SoundCloud/Generated/SoundCloud.ITracksClient.UpdatesATracksInformationWithRawBody.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.ITracksClient.UpdatesATracksInformationWithRawBody.g.cs
new file mode 100644
index 0000000..885e2d3
--- /dev/null
+++ b/src/libs/SoundCloud/Generated/SoundCloud.ITracksClient.UpdatesATracksInformationWithRawBody.g.cs
@@ -0,0 +1,113 @@
+#nullable enable
+
+namespace SoundCloud
+{
+ public partial interface ITracksClient
+ {
+ ///
+ /// Updates a track's information.
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task UpdatesATracksInformationWithRawBodyAsync(
+ string trackUrn,
+
+ global::SoundCloud.TrackUpdateFormRequest request,
+ global::SoundCloud.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Updates a track's information.
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> UpdatesATracksInformationWithRawBodyAsResponseAsync(
+ string trackUrn,
+
+ global::SoundCloud.TrackUpdateFormRequest request,
+ global::SoundCloud.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Updates a track's information.
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// Default Value: public
+ ///
+ ///
+ /// who can embed this track "all", "me", or "none"
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// The tag_list property contains a list of tags separated by spaces. Multiword tags are quoted in double quotes. We also support machine tags that follow the pattern NAMESPACE:KEY=VALUE. For example: geo:lat=43.555
+ /// camel:size=medium
+ /// "machine:tag=with space"
+ /// Machine tags are not revealed to the user on the track pages.
+ ///
+ ///
+ ///
+ ///
+ /// string, formatted as yyyy-mm-dd, representing release date
+ /// Included only in requests
+ ///
+ ///
+ /// Default Value: true
+ ///
+ ///
+ /// Default Value: true
+ ///
+ ///
+ ///
+ /// Default Value: true
+ ///
+ ///
+ /// When false (quiet mode), play and favorite counts are hidden.
+ ///
+ ///
+ /// When false (quiet mode), comments are hidden.
+ ///
+ ///
+ ///
+ /// Track artwork in binary format. Only for PRO users. Supported formats are gif, jpeg and png.
+ ///
+ ///
+ /// Track artwork in binary format. Only for PRO users. Supported formats are gif, jpeg and png.
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task UpdatesATracksInformationWithRawBodyAsync(
+ string trackUrn,
+ string? trackTitle = default,
+ string? trackPermalink = default,
+ global::SoundCloud.TrackUpdateFormRequestTrackSharing? trackSharing = default,
+ global::SoundCloud.TrackUpdateFormRequestTrackEmbeddableBy? trackEmbeddableBy = default,
+ string? trackPurchaseUrl = default,
+ string? trackDescription = default,
+ string? trackGenre = default,
+ string? trackTagList = default,
+ string? trackLabelName = default,
+ string? trackRelease = default,
+ string? trackReleaseDate = default,
+ bool? trackStreamable = default,
+ bool? trackDownloadable = default,
+ global::SoundCloud.TrackUpdateFormRequestTrackLicense? trackLicense = default,
+ bool? trackCommentable = default,
+ bool? trackRevealStats = default,
+ bool? trackRevealComments = default,
+ string? trackIsrc = default,
+ byte[]? trackArtworkData = default,
+ string? trackArtworkDataname = default,
+ global::SoundCloud.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.ITracksClient.UploadsANewTrackWithRawBody.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.ITracksClient.UploadsANewTrackWithRawBody.g.cs
new file mode 100644
index 0000000..6d9cd11
--- /dev/null
+++ b/src/libs/SoundCloud/Generated/SoundCloud.ITracksClient.UploadsANewTrackWithRawBody.g.cs
@@ -0,0 +1,41 @@
+#nullable enable
+
+namespace SoundCloud
+{
+ public partial interface ITracksClient
+ {
+ ///
+ /// Uploads a new track.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task UploadsANewTrackWithRawBodyAsync(
+
+ global::SoundCloud.AllOf request,
+ global::SoundCloud.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Uploads a new track.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> UploadsANewTrackWithRawBodyAsResponseAsync(
+
+ global::SoundCloud.AllOf request,
+ global::SoundCloud.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Uploads a new track.
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task UploadsANewTrackWithRawBodyAsync(
+ global::SoundCloud.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.Activities.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.Activities.Json.g.cs
index 89ecf91..ef891c5 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.Activities.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.Activities.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.ActivitiesCollectionItem.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.ActivitiesCollectionItem.Json.g.cs
index e0e142b..29d4d9a 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.ActivitiesCollectionItem.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.ActivitiesCollectionItem.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.Comment.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.Comment.Json.g.cs
index 868e647..a8d2eb5 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.Comment.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.Comment.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.CommentUser.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.CommentUser.Json.g.cs
index e0e90e2..ddae26c 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.CommentUser.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.CommentUser.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.Comments.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.Comments.Json.g.cs
index 46d0717..30eb2dd 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.Comments.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.Comments.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.CreatePlaylistsRequest2.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.CreatePlaylistsRequest2.Json.g.cs
index 214ad24..29d2866 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.CreatePlaylistsRequest2.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.CreatePlaylistsRequest2.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateTracksCommentsRequest.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateTracksCommentsRequest.Json.g.cs
index cc16c7e..de0a5ee 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateTracksCommentsRequest.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateTracksCommentsRequest.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateTracksCommentsRequestComment.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateTracksCommentsRequestComment.Json.g.cs
index 067a9b2..a3fae46 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateTracksCommentsRequestComment.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateTracksCommentsRequestComment.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateTracksRequest2.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateTracksRequest2.Json.g.cs
index c1655bf..0db4b4f 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateTracksRequest2.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateTracksRequest2.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateTracksRequest4.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateTracksRequest4.Json.g.cs
index 2a61443..84cfc8b 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateTracksRequest4.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateTracksRequest4.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateUpdatePlaylistFormRequest.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateUpdatePlaylistFormRequest.Json.g.cs
index 0cf01f8..ec4fd40 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateUpdatePlaylistFormRequest.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateUpdatePlaylistFormRequest.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateUpdatePlaylistRequest.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateUpdatePlaylistRequest.Json.g.cs
index 464a916..602297b 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateUpdatePlaylistRequest.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateUpdatePlaylistRequest.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateUpdatePlaylistRequestPlaylist.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateUpdatePlaylistRequestPlaylist.Json.g.cs
index 07a5862..2bfafba 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateUpdatePlaylistRequestPlaylist.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateUpdatePlaylistRequestPlaylist.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateUpdatePlaylistRequestPlaylistTrack.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateUpdatePlaylistRequestPlaylistTrack.Json.g.cs
index a2141c6..339e89d 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateUpdatePlaylistRequestPlaylistTrack.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.CreateUpdatePlaylistRequestPlaylistTrack.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.Error.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.Error.Json.g.cs
index 2a2ef67..a9b9da1 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.Error.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.Error.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.ErrorError.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.ErrorError.Json.g.cs
index 43953cb..6159ba7 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.ErrorError.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.ErrorError.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.Found.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.Found.Json.g.cs
index 82e3757..ab17597 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.Found.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.Found.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.GetTracksBpm.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.GetTracksBpm.Json.g.cs
index 5c3cb51..efd7e0e 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.GetTracksBpm.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.GetTracksBpm.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.GetTracksCreatedAt.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.GetTracksCreatedAt.Json.g.cs
index 4cced3a..bbabd87 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.GetTracksCreatedAt.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.GetTracksCreatedAt.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.GetTracksDuration.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.GetTracksDuration.Json.g.cs
index d3a0c35..a922a6b 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.GetTracksDuration.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.GetTracksDuration.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.Me.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.Me.Json.g.cs
index 276c848..a54c991 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.Me.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.Me.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.MeQuota.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.MeQuota.Json.g.cs
index 5e042a4..446929e 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.MeQuota.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.MeQuota.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.MeSubscription.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.MeSubscription.Json.g.cs
index 2b2033d..0b6bbe4 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.MeSubscription.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.MeSubscription.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.MeSubscriptionProduct.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.MeSubscriptionProduct.Json.g.cs
index d951512..e381283 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.MeSubscriptionProduct.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.MeSubscriptionProduct.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.MeSubscriptions.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.MeSubscriptions.Json.g.cs
index 18de6b3..8c8152b 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.MeSubscriptions.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.MeSubscriptions.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.OAuthToken.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.OAuthToken.Json.g.cs
index eec17a4..c842573 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.OAuthToken.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.OAuthToken.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.Playlist.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.Playlist.Json.g.cs
index f30145d..256695c 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.Playlist.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.Playlist.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.PlaylistLabel.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.PlaylistLabel.Json.g.cs
index 2137c3b..8c4071a 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.PlaylistLabel.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.PlaylistLabel.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.Playlists.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.Playlists.Json.g.cs
index d58ca59..329108f 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.Playlists.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.Playlists.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.Storefront.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.Storefront.Json.g.cs
index 38c515d..6ed1b0a 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.Storefront.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.Storefront.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.StorefrontUpdateRequest.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.StorefrontUpdateRequest.Json.g.cs
index e361289..109e330 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.StorefrontUpdateRequest.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.StorefrontUpdateRequest.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.Streams.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.Streams.Json.g.cs
index ade1a78..2e2c9f4 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.Streams.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.Streams.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.TooManyRequestsVariant2.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.TooManyRequestsVariant2.Json.g.cs
index 86b96ce..d7ec47b 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.TooManyRequestsVariant2.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.TooManyRequestsVariant2.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.Track.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.Track.Json.g.cs
index 94683e5..e394fe4 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.Track.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.Track.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.TrackDataRequest.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.TrackDataRequest.Json.g.cs
index 6369f6e..763c659 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.TrackDataRequest.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.TrackDataRequest.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.TrackMetadataRequest.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.TrackMetadataRequest.Json.g.cs
index 1c79540..c4d1973 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.TrackMetadataRequest.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.TrackMetadataRequest.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.TrackMetadataRequestTrack.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.TrackMetadataRequestTrack.Json.g.cs
index 1a16b1e..146bc46 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.TrackMetadataRequestTrack.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.TrackMetadataRequestTrack.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.TrackUpdateFormRequest.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.TrackUpdateFormRequest.Json.g.cs
index 57df7de..c88a801 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.TrackUpdateFormRequest.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.TrackUpdateFormRequest.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.TrackUser.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.TrackUser.Json.g.cs
index 07e936e..cea3197 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.TrackUser.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.TrackUser.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.Tracks.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.Tracks.Json.g.cs
index 89c308f..491ded6 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.Tracks.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.Tracks.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.User.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.User.Json.g.cs
index 6974e3c..72c4ca6 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.User.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.User.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.UserSubscription.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.UserSubscription.Json.g.cs
index 9df3d5f..17eff46 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.UserSubscription.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.UserSubscription.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.UserSubscriptionProduct.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.UserSubscriptionProduct.Json.g.cs
index 6dc1049..bf2a37c 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.UserSubscriptionProduct.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.UserSubscriptionProduct.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.UserSubscriptions.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.UserSubscriptions.Json.g.cs
index fb7ef1e..f7cacbd 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.UserSubscriptions.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.UserSubscriptions.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.Users.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.Users.Json.g.cs
index 55bd317..8048f00 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.Users.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.Users.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.Models.WebProfile.Json.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.Models.WebProfile.Json.g.cs
index 0ce1e97..4f929bb 100644
--- a/src/libs/SoundCloud/Generated/SoundCloud.Models.WebProfile.Json.g.cs
+++ b/src/libs/SoundCloud/Generated/SoundCloud.Models.WebProfile.Json.g.cs
@@ -138,7 +138,6 @@ public string ToJson(
jsonSerializerOptions);
}
-
///
/// Serializes the current instance to raw JSON using the provided JsonSerializerContext.
///
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.TracksClient.UpdatesATracksInformationWithRawBody.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.TracksClient.UpdatesATracksInformationWithRawBody.g.cs
new file mode 100644
index 0000000..491db61
--- /dev/null
+++ b/src/libs/SoundCloud/Generated/SoundCloud.TracksClient.UpdatesATracksInformationWithRawBody.g.cs
@@ -0,0 +1,626 @@
+
+#nullable enable
+
+namespace SoundCloud
+{
+ public partial class TracksClient
+ {
+
+
+ private static readonly global::SoundCloud.EndPointSecurityRequirement s_UpdatesATracksInformationWithRawBodySecurityRequirement0 =
+ new global::SoundCloud.EndPointSecurityRequirement
+ {
+ Authorizations = new global::SoundCloud.EndPointAuthorizationRequirement[]
+ { new global::SoundCloud.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ SchemeId = "HttpOauth",
+ Location = "Header",
+ Name = "OAuth",
+ FriendlyName = "OAuth",
+ },
+ },
+ };
+ private static readonly global::SoundCloud.EndPointSecurityRequirement[] s_UpdatesATracksInformationWithRawBodySecurityRequirements =
+ new global::SoundCloud.EndPointSecurityRequirement[]
+ { s_UpdatesATracksInformationWithRawBodySecurityRequirement0,
+ };
+ partial void PrepareUpdatesATracksInformationWithRawBodyArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ ref string trackUrn,
+ global::SoundCloud.TrackUpdateFormRequest request);
+ partial void PrepareUpdatesATracksInformationWithRawBodyRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ string trackUrn,
+ global::SoundCloud.TrackUpdateFormRequest request);
+ partial void ProcessUpdatesATracksInformationWithRawBodyResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessUpdatesATracksInformationWithRawBodyResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Updates a track's information.
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task UpdatesATracksInformationWithRawBodyAsync(
+ string trackUrn,
+
+ global::SoundCloud.TrackUpdateFormRequest request,
+ global::SoundCloud.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await UpdatesATracksInformationWithRawBodyAsResponseAsync(
+ trackUrn: trackUrn,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Updates a track's information.
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> UpdatesATracksInformationWithRawBodyAsResponseAsync(
+ string trackUrn,
+
+ global::SoundCloud.TrackUpdateFormRequest request,
+ global::SoundCloud.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: HttpClient);
+ PrepareUpdatesATracksInformationWithRawBodyArguments(
+ httpClient: HttpClient,
+ trackUrn: ref trackUrn,
+ request: request);
+
+
+ var __authorizations = global::SoundCloud.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_UpdatesATracksInformationWithRawBodySecurityRequirements,
+ operationName: "UpdatesATracksInformationWithRawBodyAsync");
+
+ using var __timeoutCancellationTokenSource = global::SoundCloud.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken);
+ var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
+ var __effectiveReadResponseAsString = global::SoundCloud.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ fallbackValue: ReadResponseAsString);
+ var __maxAttempts = global::SoundCloud.AutoSDKRequestOptionsSupport.GetMaxAttempts(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ supportsRetry: true);
+
+ global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
+ {
+
+ var __pathBuilder = new global::SoundCloud.PathBuilder(
+ path: $"/tracks/{trackUrn}",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ __path = global::SoundCloud.AutoSDKRequestOptionsSupport.AppendQueryParameters(
+ path: __path,
+ clientParameters: Options.QueryParameters,
+ requestParameters: requestOptions?.QueryParameters);
+ var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Put,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+#if NET6_0_OR_GREATER
+ __httpRequest.Version = global::System.Net.HttpVersion.Version11;
+ __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
+#endif
+
+ foreach (var __authorization in __authorizations)
+ {
+ if (__authorization.Type == "Http" ||
+ __authorization.Type == "OAuth2" ||
+ __authorization.Type == "OpenIdConnect")
+ {
+ __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
+ scheme: __authorization.Name,
+ parameter: __authorization.Value);
+ }
+ else if (__authorization.Type == "ApiKey" &&
+ __authorization.Location == "Header")
+ {
+ __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
+ }
+ }
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContent = new global::System.Net.Http.StringContent(
+ content: __httpRequestContentBody,
+ encoding: global::System.Text.Encoding.UTF8,
+ mediaType: "multipart/x-www-form-urlencoded");
+ __httpRequest.Content = __httpRequestContent;
+ global::SoundCloud.AutoSDKRequestOptionsSupport.ApplyHeaders(
+ request: __httpRequest,
+ clientHeaders: Options.Headers,
+ requestHeaders: requestOptions?.Headers);
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareUpdatesATracksInformationWithRawBodyRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ trackUrn: trackUrn!,
+ request: request);
+
+ return __httpRequest;
+ }
+
+ global::System.Net.Http.HttpRequestMessage? __httpRequest = null;
+ global::System.Net.Http.HttpResponseMessage? __response = null;
+ var __attemptNumber = 0;
+ try
+ {
+ for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++)
+ {
+ __attemptNumber = __attempt;
+ __httpRequest = __CreateHttpRequest();
+ await global::SoundCloud.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
+ clientOptions: Options,
+ context: global::SoundCloud.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "UpdatesATracksInformationWithRawBody",
+ methodName: "UpdatesATracksInformationWithRawBodyAsync",
+ pathTemplate: "$\"/tracks/{trackUrn}\"",
+ httpMethod: "PUT",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ try
+ {
+ __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ }
+ catch (global::System.Net.Http.HttpRequestException __exception)
+ {
+ var __retryDelay = global::SoundCloud.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
+ var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
+ await global::SoundCloud.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::SoundCloud.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "UpdatesATracksInformationWithRawBody",
+ methodName: "UpdatesATracksInformationWithRawBodyAsync",
+ pathTemplate: "$\"/tracks/{trackUrn}\"",
+ httpMethod: "PUT",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: __exception,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ if (!__willRetry)
+ {
+ throw;
+ }
+
+ __httpRequest.Dispose();
+ __httpRequest = null;
+ await global::SoundCloud.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ if (__response != null &&
+ __attempt < __maxAttempts &&
+ global::SoundCloud.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
+ {
+ var __retryDelay = global::SoundCloud.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
+ await global::SoundCloud.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::SoundCloud.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "UpdatesATracksInformationWithRawBody",
+ methodName: "UpdatesATracksInformationWithRawBodyAsync",
+ pathTemplate: "$\"/tracks/{trackUrn}\"",
+ httpMethod: "PUT",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ __response.Dispose();
+ __response = null;
+ __httpRequest.Dispose();
+ __httpRequest = null;
+ await global::SoundCloud.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ break;
+ }
+
+ if (__response == null)
+ {
+ throw new global::System.InvalidOperationException("No response received.");
+ }
+
+ using (__response)
+ {
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessUpdatesATracksInformationWithRawBodyResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::SoundCloud.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::SoundCloud.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "UpdatesATracksInformationWithRawBody",
+ methodName: "UpdatesATracksInformationWithRawBodyAsync",
+ pathTemplate: "$\"/tracks/{trackUrn}\"",
+ httpMethod: "PUT",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+ else
+ {
+ await global::SoundCloud.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::SoundCloud.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "UpdatesATracksInformationWithRawBody",
+ methodName: "UpdatesATracksInformationWithRawBodyAsync",
+ pathTemplate: "$\"/tracks/{trackUrn}\"",
+ httpMethod: "PUT",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+ // Bad Request
+ if ((int)__response.StatusCode == 400)
+ {
+ string? __content_400 = null;
+ global::System.Exception? __exception_400 = null;
+ global::SoundCloud.Error? __value_400 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_400 = global::SoundCloud.Error.FromJson(__content_400, JsonSerializerContext);
+ }
+ else
+ {
+ __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_400 = global::SoundCloud.Error.FromJson(__content_400, JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_400 = __ex;
+ }
+
+
+ throw global::SoundCloud.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_400,
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+ // Unauthorized
+ if ((int)__response.StatusCode == 401)
+ {
+ string? __content_401 = null;
+ global::System.Exception? __exception_401 = null;
+ global::SoundCloud.Error? __value_401 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_401 = global::SoundCloud.Error.FromJson(__content_401, JsonSerializerContext);
+ }
+ else
+ {
+ __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_401 = global::SoundCloud.Error.FromJson(__content_401, JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_401 = __ex;
+ }
+
+
+ throw global::SoundCloud.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_401,
+ responseBody: __content_401,
+ responseObject: __value_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+
+ if (__effectiveReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessUpdatesATracksInformationWithRawBodyResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ var __value = global::SoundCloud.Track.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::SoundCloud.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::SoundCloud.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw global::SoundCloud.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ using var __content = await __response.Content.ReadAsStreamAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ var __value = await global::SoundCloud.Track.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::SoundCloud.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::SoundCloud.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
+ throw global::SoundCloud.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+ }
+
+ }
+ }
+ finally
+ {
+ __httpRequest?.Dispose();
+ }
+ }
+ ///
+ /// Updates a track's information.
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// Default Value: public
+ ///
+ ///
+ /// who can embed this track "all", "me", or "none"
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// The tag_list property contains a list of tags separated by spaces. Multiword tags are quoted in double quotes. We also support machine tags that follow the pattern NAMESPACE:KEY=VALUE. For example: geo:lat=43.555
+ /// camel:size=medium
+ /// "machine:tag=with space"
+ /// Machine tags are not revealed to the user on the track pages.
+ ///
+ ///
+ ///
+ ///
+ /// string, formatted as yyyy-mm-dd, representing release date
+ /// Included only in requests
+ ///
+ ///
+ /// Default Value: true
+ ///
+ ///
+ /// Default Value: true
+ ///
+ ///
+ ///
+ /// Default Value: true
+ ///
+ ///
+ /// When false (quiet mode), play and favorite counts are hidden.
+ ///
+ ///
+ /// When false (quiet mode), comments are hidden.
+ ///
+ ///
+ ///
+ /// Track artwork in binary format. Only for PRO users. Supported formats are gif, jpeg and png.
+ ///
+ ///
+ /// Track artwork in binary format. Only for PRO users. Supported formats are gif, jpeg and png.
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task UpdatesATracksInformationWithRawBodyAsync(
+ string trackUrn,
+ string? trackTitle = default,
+ string? trackPermalink = default,
+ global::SoundCloud.TrackUpdateFormRequestTrackSharing? trackSharing = default,
+ global::SoundCloud.TrackUpdateFormRequestTrackEmbeddableBy? trackEmbeddableBy = default,
+ string? trackPurchaseUrl = default,
+ string? trackDescription = default,
+ string? trackGenre = default,
+ string? trackTagList = default,
+ string? trackLabelName = default,
+ string? trackRelease = default,
+ string? trackReleaseDate = default,
+ bool? trackStreamable = default,
+ bool? trackDownloadable = default,
+ global::SoundCloud.TrackUpdateFormRequestTrackLicense? trackLicense = default,
+ bool? trackCommentable = default,
+ bool? trackRevealStats = default,
+ bool? trackRevealComments = default,
+ string? trackIsrc = default,
+ byte[]? trackArtworkData = default,
+ string? trackArtworkDataname = default,
+ global::SoundCloud.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __request = new global::SoundCloud.TrackUpdateFormRequest
+ {
+ TrackTitle = trackTitle,
+ TrackPermalink = trackPermalink,
+ TrackSharing = trackSharing,
+ TrackEmbeddableBy = trackEmbeddableBy,
+ TrackPurchaseUrl = trackPurchaseUrl,
+ TrackDescription = trackDescription,
+ TrackGenre = trackGenre,
+ TrackTagList = trackTagList,
+ TrackLabelName = trackLabelName,
+ TrackRelease = trackRelease,
+ TrackReleaseDate = trackReleaseDate,
+ TrackStreamable = trackStreamable,
+ TrackDownloadable = trackDownloadable,
+ TrackLicense = trackLicense,
+ TrackCommentable = trackCommentable,
+ TrackRevealStats = trackRevealStats,
+ TrackRevealComments = trackRevealComments,
+ TrackIsrc = trackIsrc,
+ TrackArtworkData = trackArtworkData,
+ TrackArtworkDataname = trackArtworkDataname,
+ };
+
+ return await UpdatesATracksInformationWithRawBodyAsync(
+ trackUrn: trackUrn,
+ request: __request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/SoundCloud/Generated/SoundCloud.TracksClient.UploadsANewTrackWithRawBody.g.cs b/src/libs/SoundCloud/Generated/SoundCloud.TracksClient.UploadsANewTrackWithRawBody.g.cs
new file mode 100644
index 0000000..023cd64
--- /dev/null
+++ b/src/libs/SoundCloud/Generated/SoundCloud.TracksClient.UploadsANewTrackWithRawBody.g.cs
@@ -0,0 +1,563 @@
+
+#nullable enable
+
+namespace SoundCloud
+{
+ public partial class TracksClient
+ {
+
+
+ private static readonly global::SoundCloud.EndPointSecurityRequirement s_UploadsANewTrackWithRawBodySecurityRequirement0 =
+ new global::SoundCloud.EndPointSecurityRequirement
+ {
+ Authorizations = new global::SoundCloud.EndPointAuthorizationRequirement[]
+ { new global::SoundCloud.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ SchemeId = "HttpOauth",
+ Location = "Header",
+ Name = "OAuth",
+ FriendlyName = "OAuth",
+ },
+ },
+ };
+ private static readonly global::SoundCloud.EndPointSecurityRequirement[] s_UploadsANewTrackWithRawBodySecurityRequirements =
+ new global::SoundCloud.EndPointSecurityRequirement[]
+ { s_UploadsANewTrackWithRawBodySecurityRequirement0,
+ };
+ partial void PrepareUploadsANewTrackWithRawBodyArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ global::SoundCloud.AllOf request);
+ partial void PrepareUploadsANewTrackWithRawBodyRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ global::SoundCloud.AllOf request);
+ partial void ProcessUploadsANewTrackWithRawBodyResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessUploadsANewTrackWithRawBodyResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Uploads a new track.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task UploadsANewTrackWithRawBodyAsync(
+
+ global::SoundCloud.AllOf request,
+ global::SoundCloud.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await UploadsANewTrackWithRawBodyAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Uploads a new track.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> UploadsANewTrackWithRawBodyAsResponseAsync(
+
+ global::SoundCloud.AllOf request,
+ global::SoundCloud.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ PrepareArguments(
+ client: HttpClient);
+ PrepareUploadsANewTrackWithRawBodyArguments(
+ httpClient: HttpClient,
+ request: request);
+
+
+ var __authorizations = global::SoundCloud.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_UploadsANewTrackWithRawBodySecurityRequirements,
+ operationName: "UploadsANewTrackWithRawBodyAsync");
+
+ using var __timeoutCancellationTokenSource = global::SoundCloud.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken);
+ var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
+ var __effectiveReadResponseAsString = global::SoundCloud.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ fallbackValue: ReadResponseAsString);
+ var __maxAttempts = global::SoundCloud.AutoSDKRequestOptionsSupport.GetMaxAttempts(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ supportsRetry: true);
+
+ global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
+ {
+
+ var __pathBuilder = new global::SoundCloud.PathBuilder(
+ path: "/tracks",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ __path = global::SoundCloud.AutoSDKRequestOptionsSupport.AppendQueryParameters(
+ path: __path,
+ clientParameters: Options.QueryParameters,
+ requestParameters: requestOptions?.QueryParameters);
+ var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+#if NET6_0_OR_GREATER
+ __httpRequest.Version = global::System.Net.HttpVersion.Version11;
+ __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
+#endif
+
+ foreach (var __authorization in __authorizations)
+ {
+ if (__authorization.Type == "Http" ||
+ __authorization.Type == "OAuth2" ||
+ __authorization.Type == "OpenIdConnect")
+ {
+ __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
+ scheme: __authorization.Name,
+ parameter: __authorization.Value);
+ }
+ else if (__authorization.Type == "ApiKey" &&
+ __authorization.Location == "Header")
+ {
+ __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
+ }
+ }
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContent = new global::System.Net.Http.StringContent(
+ content: __httpRequestContentBody,
+ encoding: global::System.Text.Encoding.UTF8,
+ mediaType: "multipart/x-www-form-urlencoded");
+ __httpRequest.Content = __httpRequestContent;
+ global::SoundCloud.AutoSDKRequestOptionsSupport.ApplyHeaders(
+ request: __httpRequest,
+ clientHeaders: Options.Headers,
+ requestHeaders: requestOptions?.Headers);
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareUploadsANewTrackWithRawBodyRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ request: request);
+
+ return __httpRequest;
+ }
+
+ global::System.Net.Http.HttpRequestMessage? __httpRequest = null;
+ global::System.Net.Http.HttpResponseMessage? __response = null;
+ var __attemptNumber = 0;
+ try
+ {
+ for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++)
+ {
+ __attemptNumber = __attempt;
+ __httpRequest = __CreateHttpRequest();
+ await global::SoundCloud.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
+ clientOptions: Options,
+ context: global::SoundCloud.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "UploadsANewTrackWithRawBody",
+ methodName: "UploadsANewTrackWithRawBodyAsync",
+ pathTemplate: "\"/tracks\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ try
+ {
+ __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ }
+ catch (global::System.Net.Http.HttpRequestException __exception)
+ {
+ var __retryDelay = global::SoundCloud.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
+ var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
+ await global::SoundCloud.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::SoundCloud.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "UploadsANewTrackWithRawBody",
+ methodName: "UploadsANewTrackWithRawBodyAsync",
+ pathTemplate: "\"/tracks\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: __exception,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ if (!__willRetry)
+ {
+ throw;
+ }
+
+ __httpRequest.Dispose();
+ __httpRequest = null;
+ await global::SoundCloud.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ if (__response != null &&
+ __attempt < __maxAttempts &&
+ global::SoundCloud.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
+ {
+ var __retryDelay = global::SoundCloud.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
+ await global::SoundCloud.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::SoundCloud.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "UploadsANewTrackWithRawBody",
+ methodName: "UploadsANewTrackWithRawBodyAsync",
+ pathTemplate: "\"/tracks\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ __response.Dispose();
+ __response = null;
+ __httpRequest.Dispose();
+ __httpRequest = null;
+ await global::SoundCloud.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ break;
+ }
+
+ if (__response == null)
+ {
+ throw new global::System.InvalidOperationException("No response received.");
+ }
+
+ using (__response)
+ {
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessUploadsANewTrackWithRawBodyResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::SoundCloud.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::SoundCloud.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "UploadsANewTrackWithRawBody",
+ methodName: "UploadsANewTrackWithRawBodyAsync",
+ pathTemplate: "\"/tracks\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+ else
+ {
+ await global::SoundCloud.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::SoundCloud.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "UploadsANewTrackWithRawBody",
+ methodName: "UploadsANewTrackWithRawBodyAsync",
+ pathTemplate: "\"/tracks\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+ // Bad Request
+ if ((int)__response.StatusCode == 400)
+ {
+ string? __content_400 = null;
+ global::System.Exception? __exception_400 = null;
+ global::SoundCloud.Error? __value_400 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_400 = global::SoundCloud.Error.FromJson(__content_400, JsonSerializerContext);
+ }
+ else
+ {
+ __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_400 = global::SoundCloud.Error.FromJson(__content_400, JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_400 = __ex;
+ }
+
+
+ throw global::SoundCloud.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_400,
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+ // Unauthorized
+ if ((int)__response.StatusCode == 401)
+ {
+ string? __content_401 = null;
+ global::System.Exception? __exception_401 = null;
+ global::SoundCloud.Error? __value_401 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_401 = global::SoundCloud.Error.FromJson(__content_401, JsonSerializerContext);
+ }
+ else
+ {
+ __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_401 = global::SoundCloud.Error.FromJson(__content_401, JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_401 = __ex;
+ }
+
+
+ throw global::SoundCloud.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_401,
+ responseBody: __content_401,
+ responseObject: __value_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+ // Unprocessable Entity
+ if ((int)__response.StatusCode == 422)
+ {
+ string? __content_422 = null;
+ global::System.Exception? __exception_422 = null;
+ global::SoundCloud.Error? __value_422 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_422 = global::SoundCloud.Error.FromJson(__content_422, JsonSerializerContext);
+ }
+ else
+ {
+ __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::SoundCloud.Error.FromJson(__content_422, JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_422 = __ex;
+ }
+
+
+ throw global::SoundCloud.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content_422 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_422,
+ responseBody: __content_422,
+ responseObject: __value_422,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+
+ if (__effectiveReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessUploadsANewTrackWithRawBodyResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ var __value = global::SoundCloud.Track.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::SoundCloud.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::SoundCloud.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw global::SoundCloud.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ using var __content = await __response.Content.ReadAsStreamAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ var __value = await global::SoundCloud.Track.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::SoundCloud.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::SoundCloud.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
+ throw global::SoundCloud.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+ }
+
+ }
+ }
+ finally
+ {
+ __httpRequest?.Dispose();
+ }
+ }
+ ///
+ /// Uploads a new track.
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task UploadsANewTrackWithRawBodyAsync(
+ global::SoundCloud.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __request = new global::SoundCloud.AllOf
+ {
+ };
+
+ return await UploadsANewTrackWithRawBodyAsync(
+ request: __request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file