Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
Merge pull request #6 from tryAGI/bot/update-openapi_202409141822
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Sep 14, 2024
2 parents f33e167 + f244aa4 commit 5ddcad3
Show file tree
Hide file tree
Showing 91 changed files with 275 additions and 145 deletions.
8 changes: 6 additions & 2 deletions src/libs/Mystic/Generated/Mystic.AWSClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ public sealed partial class AWSClient : global::System.IDisposable

private readonly global::System.Net.Http.HttpClient _httpClient;

/// <summary>
///
/// </summary>
public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Mystic.SourceGenerationContext.Default;


/// <summary>
/// Creates a new instance of the AWSClient.
Expand All @@ -26,8 +31,7 @@ public sealed partial class AWSClient : global::System.IDisposable
/// <param name="baseUri"></param>
public AWSClient(
global::System.Net.Http.HttpClient? httpClient = null,
global::System.Uri? baseUri = null
)
global::System.Uri? baseUri = null)
{
_httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
_httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);
Expand Down
8 changes: 6 additions & 2 deletions src/libs/Mystic/Generated/Mystic.AzureClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ public sealed partial class AzureClient : global::System.IDisposable

private readonly global::System.Net.Http.HttpClient _httpClient;

/// <summary>
///
/// </summary>
public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Mystic.SourceGenerationContext.Default;


/// <summary>
/// Creates a new instance of the AzureClient.
Expand All @@ -26,8 +31,7 @@ public sealed partial class AzureClient : global::System.IDisposable
/// <param name="baseUri"></param>
public AzureClient(
global::System.Net.Http.HttpClient? httpClient = null,
global::System.Uri? baseUri = null
)
global::System.Uri? baseUri = null)
{
_httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
_httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ partial void ProcessUpcomingInvoiceResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Mystic.SourceGenerationContext.Default.GetUpcomingInvoice) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::Mystic.GetUpcomingInvoice), JsonSerializerContext) as global::Mystic.GetUpcomingInvoice ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
8 changes: 6 additions & 2 deletions src/libs/Mystic/Generated/Mystic.BillingClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ public sealed partial class BillingClient : global::System.IDisposable

private readonly global::System.Net.Http.HttpClient _httpClient;

/// <summary>
///
/// </summary>
public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Mystic.SourceGenerationContext.Default;


/// <summary>
/// Creates a new instance of the BillingClient.
Expand All @@ -26,8 +31,7 @@ public sealed partial class BillingClient : global::System.IDisposable
/// <param name="baseUri"></param>
public BillingClient(
global::System.Net.Http.HttpClient? httpClient = null,
global::System.Uri? baseUri = null
)
global::System.Uri? baseUri = null)
{
_httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
_httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Mystic/Generated/Mystic.CloudClient.AuthAws.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ partial void ProcessAuthAwsResponseContent(
using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + "/v4/cloud/provider/aws/auth", global::System.UriKind.RelativeOrAbsolute));
var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::Mystic.SourceGenerationContext.Default.AWSAuthCreate);
var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
Expand Down Expand Up @@ -90,7 +90,7 @@ partial void ProcessAuthAwsResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Mystic.SourceGenerationContext.Default.AuthAwsV4CloudProviderAwsAuthPostResponse) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::Mystic.AuthAwsV4CloudProviderAwsAuthPostResponse), JsonSerializerContext) as global::Mystic.AuthAwsV4CloudProviderAwsAuthPostResponse ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}

Expand Down
4 changes: 2 additions & 2 deletions src/libs/Mystic/Generated/Mystic.CloudClient.AuthAzure.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ partial void ProcessAuthAzureResponseContent(
using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + "/v4/cloud/provider/azure/auth", global::System.UriKind.RelativeOrAbsolute));
var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::Mystic.SourceGenerationContext.Default.AzureAuthCreate);
var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
Expand Down Expand Up @@ -90,7 +90,7 @@ partial void ProcessAuthAzureResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Mystic.SourceGenerationContext.Default.AuthAzureV4CloudProviderAzureAuthPostResponse) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::Mystic.AuthAzureV4CloudProviderAzureAuthPostResponse), JsonSerializerContext) as global::Mystic.AuthAzureV4CloudProviderAzureAuthPostResponse ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}

Expand Down
2 changes: 1 addition & 1 deletion src/libs/Mystic/Generated/Mystic.CloudClient.AuthGcp.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ partial void ProcessAuthGcpResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Mystic.SourceGenerationContext.Default.AuthGcpV4CloudProviderGcpAuthGetResponse) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::Mystic.AuthGcpV4CloudProviderGcpAuthGetResponse), JsonSerializerContext) as global::Mystic.AuthGcpV4CloudProviderGcpAuthGetResponse ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ partial void ProcessCallbackGcpResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Mystic.SourceGenerationContext.Default.CallbackGcpV4CloudProviderGcpCallbackGetResponse) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::Mystic.CallbackGcpV4CloudProviderGcpCallbackGetResponse), JsonSerializerContext) as global::Mystic.CallbackGcpV4CloudProviderGcpCallbackGetResponse ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ partial void ProcessCreateGcpServiceAccountResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Mystic.SourceGenerationContext.Default.CreateGcpServiceAccountV4CloudProviderGcpServiceAccountsPostResponse) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::Mystic.CreateGcpServiceAccountV4CloudProviderGcpServiceAccountsPostResponse), JsonSerializerContext) as global::Mystic.CreateGcpServiceAccountV4CloudProviderGcpServiceAccountsPostResponse ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ partial void ProcessDeleteCloudCredentialResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Mystic.SourceGenerationContext.Default.HTTPValidationError) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::Mystic.HTTPValidationError), JsonSerializerContext) as global::Mystic.HTTPValidationError ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ partial void ProcessGetAcceleratorAvailabilityResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Mystic.SourceGenerationContext.Default.GetAcceleratorAvailabilityV4CloudProviderGcpAcceleratorAvailabilityGetResponse) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::Mystic.GetAcceleratorAvailabilityV4CloudProviderGcpAcceleratorAvailabilityGetResponse), JsonSerializerContext) as global::Mystic.GetAcceleratorAvailabilityV4CloudProviderGcpAcceleratorAvailabilityGetResponse ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ partial void ProcessGetAcceleratorAvailability2ResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Mystic.SourceGenerationContext.Default.GetAcceleratorAvailabilityV4CloudProviderAwsAcceleratorAvailabilityGetResponse) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::Mystic.GetAcceleratorAvailabilityV4CloudProviderAwsAcceleratorAvailabilityGetResponse), JsonSerializerContext) as global::Mystic.GetAcceleratorAvailabilityV4CloudProviderAwsAcceleratorAvailabilityGetResponse ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ partial void ProcessGetAcceleratorAvailability3ResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Mystic.SourceGenerationContext.Default.GetAcceleratorAvailabilityV4CloudProviderAzureAcceleratorAvailabilityGetResponse) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::Mystic.GetAcceleratorAvailabilityV4CloudProviderAzureAcceleratorAvailabilityGetResponse), JsonSerializerContext) as global::Mystic.GetAcceleratorAvailabilityV4CloudProviderAzureAcceleratorAvailabilityGetResponse ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ partial void ProcessListCredentialsResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Mystic.SourceGenerationContext.Default.IListCredentialGet) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList<global::Mystic.CredentialGet>), JsonSerializerContext) as global::System.Collections.Generic.IList<global::Mystic.CredentialGet> ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ partial void ProcessListProjectsResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Mystic.SourceGenerationContext.Default.IListProjectGet) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList<global::Mystic.ProjectGet>), JsonSerializerContext) as global::System.Collections.Generic.IList<global::Mystic.ProjectGet> ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ partial void ProcessListRegionsResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Mystic.SourceGenerationContext.Default.IListRegionGet) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList<global::Mystic.RegionGet>), JsonSerializerContext) as global::System.Collections.Generic.IList<global::Mystic.RegionGet> ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
8 changes: 6 additions & 2 deletions src/libs/Mystic/Generated/Mystic.CloudClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ public sealed partial class CloudClient : global::System.IDisposable

private readonly global::System.Net.Http.HttpClient _httpClient;

/// <summary>
///
/// </summary>
public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Mystic.SourceGenerationContext.Default;


/// <summary>
/// Creates a new instance of the CloudClient.
Expand All @@ -26,8 +31,7 @@ public sealed partial class CloudClient : global::System.IDisposable
/// <param name="baseUri"></param>
public CloudClient(
global::System.Net.Http.HttpClient? httpClient = null,
global::System.Uri? baseUri = null
)
global::System.Uri? baseUri = null)
{
_httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
_httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ partial void ProcessCreateClusterResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Mystic.SourceGenerationContext.Default.CreateClusterV4ClustersPostResponse) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::Mystic.CreateClusterV4ClustersPostResponse), JsonSerializerContext) as global::Mystic.CreateClusterV4ClustersPostResponse ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ partial void ProcessCreateNodePoolResponseContent(
using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v4/clusters/{clusterId}/node-pools", global::System.UriKind.RelativeOrAbsolute));
var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::Mystic.SourceGenerationContext.Default.NodePoolCreate);
var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
Expand Down Expand Up @@ -96,7 +96,7 @@ partial void ProcessCreateNodePoolResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Mystic.SourceGenerationContext.Default.CreateNodePoolV4ClustersClusterIdNodePoolsPostResponse) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::Mystic.CreateNodePoolV4ClustersClusterIdNodePoolsPostResponse), JsonSerializerContext) as global::Mystic.CreateNodePoolV4ClustersClusterIdNodePoolsPostResponse ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ partial void ProcessDeleteClusterResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Mystic.SourceGenerationContext.Default.HTTPValidationError) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::Mystic.HTTPValidationError), JsonSerializerContext) as global::Mystic.HTTPValidationError ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ partial void ProcessDeleteNodePoolResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Mystic.SourceGenerationContext.Default.HTTPValidationError) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::Mystic.HTTPValidationError), JsonSerializerContext) as global::Mystic.HTTPValidationError ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ partial void ProcessListClustersResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Mystic.SourceGenerationContext.Default.IListClusterGet) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList<global::Mystic.ClusterGet>), JsonSerializerContext) as global::System.Collections.Generic.IList<global::Mystic.ClusterGet> ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ partial void ProcessListNodePoolsResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Mystic.SourceGenerationContext.Default.IListNodePool) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList<global::Mystic.NodePool>), JsonSerializerContext) as global::System.Collections.Generic.IList<global::Mystic.NodePool> ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ partial void ProcessListPipelinesResponseContent(
}

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

0 comments on commit 5ddcad3

Please sign in to comment.