Skip to content

Commit

Permalink
Merge pull request #20 from tryAGI/bot/update-openapi_202410110320
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Oct 11, 2024
2 parents 21c885d + 1a2bf66 commit 16c5b2d
Show file tree
Hide file tree
Showing 10 changed files with 210 additions and 204 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public partial interface IMembershipClient
/// <param name="userId"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Instill.DeleteOrganizationMembershipResponse> DeleteOrganizationMembershipAsync(
global::System.Threading.Tasks.Task<object> DeleteOrganizationMembershipAsync(
string organizationId,
string userId,
global::System.Threading.CancellationToken cancellationToken = default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public partial interface IMembershipClient
/// <param name="organizationId"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Instill.DeleteUserMembershipResponse> DeleteUserMembershipAsync(
global::System.Threading.Tasks.Task<object> DeleteUserMembershipAsync(
string userId,
string organizationId,
global::System.Threading.CancellationToken cancellationToken = default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public partial interface IOrganizationClient
/// <param name="organizationId"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Instill.DeleteOrganizationResponse> DeleteOrganizationAsync(
global::System.Threading.Tasks.Task<object> DeleteOrganizationAsync(
string organizationId,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public partial interface ITokenClient
/// <param name="tokenId"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Instill.DeleteTokenResponse> DeleteTokenAsync(
global::System.Threading.Tasks.Task<object> DeleteTokenAsync(
string tokenId,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ partial void ProcessDeleteOrganizationMembershipResponseContent(
/// <param name="userId"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::Instill.DeleteOrganizationMembershipResponse> DeleteOrganizationMembershipAsync(
public async global::System.Threading.Tasks.Task<object> DeleteOrganizationMembershipAsync(
string organizationId,
string userId,
global::System.Threading.CancellationToken cancellationToken = default)
Expand Down Expand Up @@ -109,7 +109,7 @@ partial void ProcessDeleteOrganizationMembershipResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::Instill.DeleteOrganizationMembershipResponse), JsonSerializerContext) as global::Instill.DeleteOrganizationMembershipResponse ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(object), JsonSerializerContext) as object ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ partial void ProcessDeleteUserMembershipResponseContent(
/// <param name="organizationId"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::Instill.DeleteUserMembershipResponse> DeleteUserMembershipAsync(
public async global::System.Threading.Tasks.Task<object> DeleteUserMembershipAsync(
string userId,
string organizationId,
global::System.Threading.CancellationToken cancellationToken = default)
Expand Down Expand Up @@ -109,7 +109,7 @@ partial void ProcessDeleteUserMembershipResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::Instill.DeleteUserMembershipResponse), JsonSerializerContext) as global::Instill.DeleteUserMembershipResponse ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(object), JsonSerializerContext) as object ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
18 changes: 18 additions & 0 deletions src/libs/Instill/Generated/Instill.Models.ProtobufAny2.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

#nullable enable

namespace Instill
{
/// <summary>
///
/// </summary>
public sealed partial class ProtobufAny2
{

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ partial void ProcessDeleteOrganizationResponseContent(
/// <param name="organizationId"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::Instill.DeleteOrganizationResponse> DeleteOrganizationAsync(
public async global::System.Threading.Tasks.Task<object> DeleteOrganizationAsync(
string organizationId,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down Expand Up @@ -103,7 +103,7 @@ partial void ProcessDeleteOrganizationResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::Instill.DeleteOrganizationResponse), JsonSerializerContext) as global::Instill.DeleteOrganizationResponse ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(object), JsonSerializerContext) as object ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ partial void ProcessDeleteTokenResponseContent(
/// <param name="tokenId"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::Instill.DeleteTokenResponse> DeleteTokenAsync(
public async global::System.Threading.Tasks.Task<object> DeleteTokenAsync(
string tokenId,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down Expand Up @@ -103,7 +103,7 @@ partial void ProcessDeleteTokenResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::Instill.DeleteTokenResponse), JsonSerializerContext) as global::Instill.DeleteTokenResponse ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(object), JsonSerializerContext) as object ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Loading

0 comments on commit 16c5b2d

Please sign in to comment.