feat(wxapi): 新增批量代云开发云托管管理相关接口

This commit is contained in:
Fu Diwei
2021-08-06 13:32:44 +08:00
parent 23c722bbea
commit 624bf3c565
29 changed files with 2069 additions and 0 deletions

View File

@@ -277,5 +277,287 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
return await client.SendRequestAsync<Models.ComponentTcbInvokeCloudFunctionResponse>(flurlReq, httpContent: httpContent, cancellationToken: cancellationToken);
}
#endregion
#region ContainerService
/// <summary>
/// <para>异步调用 [POST] /componenttcb/opencontainerservice 接口。</para>
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/cloudbase/batch/opencontainerservice.html </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ComponentTcbOpenContainerServiceResponse> ExecuteComponentTcbOpenContainerServiceAsync(this WechatApiClient client, Models.ComponentTcbOpenContainerServiceRequest request, CancellationToken cancellationToken = default)
{
if (client is null) throw new ArgumentNullException(nameof(client));
if (request is null) throw new ArgumentNullException(nameof(request));
IFlurlRequest flurlReq = client
.CreateRequest(request, HttpMethod.Post, "componenttcb", "opencontainerservice")
.SetQueryParam("access_token", request.ComponentAccessToken);
return await client.SendRequestWithJsonAsync<Models.ComponentTcbOpenContainerServiceResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
}
/// <summary>
/// <para>异步调用 [POST] /tcb/usecloudaccesstoken 接口。</para>
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/cloudbase/batch/usecloudaccesstoken.html </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ComponentTcbUseCloudAccessTokenResponse> ExecuteComponentTcbUseCloudAccessTokenAsync(this WechatApiClient client, Models.ComponentTcbUseCloudAccessTokenRequest request, CancellationToken cancellationToken = default)
{
if (client is null) throw new ArgumentNullException(nameof(client));
if (request is null) throw new ArgumentNullException(nameof(request));
IFlurlRequest flurlReq = client
.CreateRequest(request, HttpMethod.Post, "tcb", "usecloudaccesstoken")
.SetQueryParam("access_token", request.ComponentAccessToken);
return await client.SendRequestWithJsonAsync<Models.ComponentTcbUseCloudAccessTokenResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
}
/// <summary>
/// <para>异步调用 [POST] /componenttcb/createcontainerservice 接口。</para>
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/cloudbase/batch/createcontainerservice.html </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ComponentTcbCreateContainerServiceResponse> ExecuteComponentTcbCreateContainerServiceAsync(this WechatApiClient client, Models.ComponentTcbCreateContainerServiceRequest request, CancellationToken cancellationToken = default)
{
if (client is null) throw new ArgumentNullException(nameof(client));
if (request is null) throw new ArgumentNullException(nameof(request));
IFlurlRequest flurlReq = client
.CreateRequest(request, HttpMethod.Post, "componenttcb", "createcontainerservice")
.SetQueryParam("access_token", request.ComponentAccessToken);
return await client.SendRequestWithJsonAsync<Models.ComponentTcbCreateContainerServiceResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
}
/// <summary>
/// <para>异步调用 [POST] /componenttcb/getcslist 接口。</para>
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/cloudbase/batch/getcslist.html </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ComponentTcbGetContainerServiceListResponse> ExecuteComponentTcbGetContainerServiceListAsync(this WechatApiClient client, Models.ComponentTcbGetContainerServiceListRequest request, CancellationToken cancellationToken = default)
{
if (client is null) throw new ArgumentNullException(nameof(client));
if (request is null) throw new ArgumentNullException(nameof(request));
IFlurlRequest flurlReq = client
.CreateRequest(request, HttpMethod.Post, "componenttcb", "getcslist")
.SetQueryParam("access_token", request.ComponentAccessToken);
return await client.SendRequestWithJsonAsync<Models.ComponentTcbGetContainerServiceListResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
}
/// <summary>
/// <para>异步调用 [POST] /componenttcb/delcontainerservice 接口。</para>
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/cloudbase/batch/delcontainerservice.html </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ComponentTcbDeleteContainerServiceResponse> ExecuteComponentTcbDeleteContainerServiceAsync(this WechatApiClient client, Models.ComponentTcbDeleteContainerServiceRequest request, CancellationToken cancellationToken = default)
{
if (client is null) throw new ArgumentNullException(nameof(client));
if (request is null) throw new ArgumentNullException(nameof(request));
IFlurlRequest flurlReq = client
.CreateRequest(request, HttpMethod.Post, "componenttcb", "delcontainerservice")
.SetQueryParam("access_token", request.ComponentAccessToken);
return await client.SendRequestWithJsonAsync<Models.ComponentTcbDeleteContainerServiceResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
}
/// <summary>
/// <para>异步调用 [POST] /componenttcb/createcsversion 接口。</para>
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/cloudbase/batch/createcsversion.html </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ComponentTcbCreateContainerServiceVersionResponse> ExecuteComponentTcbCreateContainerServiceVersionAsync(this WechatApiClient client, Models.ComponentTcbCreateContainerServiceVersionRequest request, CancellationToken cancellationToken = default)
{
if (client is null) throw new ArgumentNullException(nameof(client));
if (request is null) throw new ArgumentNullException(nameof(request));
IFlurlRequest flurlReq = client
.CreateRequest(request, HttpMethod.Post, "componenttcb", "createcsversion")
.SetQueryParam("access_token", request.ComponentAccessToken);
return await client.SendRequestWithJsonAsync<Models.ComponentTcbCreateContainerServiceVersionResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
}
/// <summary>
/// <para>异步调用 [POST] /componenttcb/batchcreatecsversion 接口。</para>
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/cloudbase/batch/batchcreatecsversion.html </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ComponentTcbBatchCreateContainerServiceVersionResponse> ExecuteComponentTcbBatchCreateContainerServiceVersionAsync(this WechatApiClient client, Models.ComponentTcbBatchCreateContainerServiceVersionRequest request, CancellationToken cancellationToken = default)
{
if (client is null) throw new ArgumentNullException(nameof(client));
if (request is null) throw new ArgumentNullException(nameof(request));
IFlurlRequest flurlReq = client
.CreateRequest(request, HttpMethod.Post, "componenttcb", "batchcreatecsversion")
.SetQueryParam("access_token", request.ComponentAccessToken);
return await client.SendRequestWithJsonAsync<Models.ComponentTcbBatchCreateContainerServiceVersionResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
}
/// <summary>
/// <para>异步调用 [POST] /componenttcb/delcsversion 接口。</para>
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/cloudbase/batch/delcsversion.html </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ComponentTcbDeleteContainerServiceVersionResponse> ExecuteComponentTcbDeleteContainerServiceVersionAsync(this WechatApiClient client, Models.ComponentTcbDeleteContainerServiceVersionRequest request, CancellationToken cancellationToken = default)
{
if (client is null) throw new ArgumentNullException(nameof(client));
if (request is null) throw new ArgumentNullException(nameof(request));
IFlurlRequest flurlReq = client
.CreateRequest(request, HttpMethod.Post, "componenttcb", "delcsversion")
.SetQueryParam("access_token", request.ComponentAccessToken);
return await client.SendRequestWithJsonAsync<Models.ComponentTcbDeleteContainerServiceVersionResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
}
/// <summary>
/// <para>异步调用 [POST] /componenttcb/batchdelcsversion 接口。</para>
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/cloudbase/batch/batchDelCSVersion.html </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ComponentTcbBatchDeleteContainerServiceVersionResponse> ExecuteComponentTcbBatchDeleteContainerServiceVersionAsync(this WechatApiClient client, Models.ComponentTcbBatchDeleteContainerServiceVersionRequest request, CancellationToken cancellationToken = default)
{
if (client is null) throw new ArgumentNullException(nameof(client));
if (request is null) throw new ArgumentNullException(nameof(request));
IFlurlRequest flurlReq = client
.CreateRequest(request, HttpMethod.Post, "componenttcb", "batchdelcsversion")
.SetQueryParam("access_token", request.ComponentAccessToken);
return await client.SendRequestWithJsonAsync<Models.ComponentTcbBatchDeleteContainerServiceVersionResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
}
/// <summary>
/// <para>异步调用 [POST] /componenttcb/getcsversionlist 接口。</para>
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/cloudbase/batch/getcsversionlist.html </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ComponentTcbGetContainerServiceVersionListResponse> ExecuteComponentTcbGetContainerServiceVersionListAsync(this WechatApiClient client, Models.ComponentTcbGetContainerServiceVersionListRequest request, CancellationToken cancellationToken = default)
{
if (client is null) throw new ArgumentNullException(nameof(client));
if (request is null) throw new ArgumentNullException(nameof(request));
IFlurlRequest flurlReq = client
.CreateRequest(request, HttpMethod.Post, "componenttcb", "getcsversionlist")
.SetQueryParam("access_token", request.ComponentAccessToken);
return await client.SendRequestWithJsonAsync<Models.ComponentTcbGetContainerServiceVersionListResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
}
/// <summary>
/// <para>异步调用 [POST] /componenttcb/getcsversiondetail 接口。</para>
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/cloudbase/batch/getcsversiondetail.html </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ComponentTcbGetContainerServiceVersionDetailResponse> ExecuteComponentTcbGetContainerServiceVersionDetailAsync(this WechatApiClient client, Models.ComponentTcbGetContainerServiceVersionDetailRequest request, CancellationToken cancellationToken = default)
{
if (client is null) throw new ArgumentNullException(nameof(client));
if (request is null) throw new ArgumentNullException(nameof(request));
IFlurlRequest flurlReq = client
.CreateRequest(request, HttpMethod.Post, "componenttcb", "getcsversiondetail")
.SetQueryParam("access_token", request.ComponentAccessToken);
return await client.SendRequestWithJsonAsync<Models.ComponentTcbGetContainerServiceVersionDetailResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
}
/// <summary>
/// <para>异步调用 [POST] /componenttcb/setcsversionconfig 接口。</para>
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/cloudbase/batch/setcsversionconfig.html </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ComponentTcbSetContainerServiceVersionConfigResponse> ExecuteComponentTcbSetContainerServiceVersionConfigAsync(this WechatApiClient client, Models.ComponentTcbSetContainerServiceVersionConfigRequest request, CancellationToken cancellationToken = default)
{
if (client is null) throw new ArgumentNullException(nameof(client));
if (request is null) throw new ArgumentNullException(nameof(request));
IFlurlRequest flurlReq = client
.CreateRequest(request, HttpMethod.Post, "componenttcb", "setcsversionconfig")
.SetQueryParam("access_token", request.ComponentAccessToken);
return await client.SendRequestWithJsonAsync<Models.ComponentTcbSetContainerServiceVersionConfigResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
}
/// <summary>
/// <para>异步调用 [POST] /componenttcb/setcspropotion 接口。</para>
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/cloudbase/batch/setcspropotion.html </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ComponentTcbSetContainerServicePropotionResponse> ExecuteComponentTcbSetContainerServicePropotionAsync(this WechatApiClient client, Models.ComponentTcbSetContainerServicePropotionRequest request, CancellationToken cancellationToken = default)
{
if (client is null) throw new ArgumentNullException(nameof(client));
if (request is null) throw new ArgumentNullException(nameof(request));
IFlurlRequest flurlReq = client
.CreateRequest(request, HttpMethod.Post, "componenttcb", "setcspropotion")
.SetQueryParam("access_token", request.ComponentAccessToken);
return await client.SendRequestWithJsonAsync<Models.ComponentTcbSetContainerServicePropotionResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
}
/// <summary>
/// <para>异步调用 [POST] /componenttcb/batchsetcspropotion 接口。</para>
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/cloudbase/batch/batchSetCSPropotion.html </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ComponentTcbBatchSetContainerServicePropotionResponse> ExecuteComponentTcbBatchSetContainerServicePropotionAsync(this WechatApiClient client, Models.ComponentTcbBatchSetContainerServicePropotionRequest request, CancellationToken cancellationToken = default)
{
if (client is null) throw new ArgumentNullException(nameof(client));
if (request is null) throw new ArgumentNullException(nameof(request));
IFlurlRequest flurlReq = client
.CreateRequest(request, HttpMethod.Post, "componenttcb", "batchsetcspropotion")
.SetQueryParam("access_token", request.ComponentAccessToken);
return await client.SendRequestWithJsonAsync<Models.ComponentTcbBatchSetContainerServicePropotionResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
}
#endregion
}
}

View File

@@ -0,0 +1,73 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /componenttcb/createcontainerservice 接口的请求。</para>
/// </summary>
public class ComponentTcbCreateContainerServiceRequest : WechatApiRequest
{
public static class Types
{
public class VPC
{
/// <summary>
/// 获取或设置 VPC 唯一标识。
/// </summary>
[Newtonsoft.Json.JsonProperty("vpcid")]
[System.Text.Json.Serialization.JsonPropertyName("vpcid")]
public string VPCId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置子网 ID 列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("subnetids")]
[System.Text.Json.Serialization.JsonPropertyName("subnetids")]
public IList<string> SubnetIdList { get; set; } = new List<string>();
/// <summary>
/// 获取或设置创建类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("create_type")]
[System.Text.Json.Serialization.JsonPropertyName("create_type")]
public int CreateType { get; set; }
}
}
/// <summary>
/// 获取或设置第三方平台 AccessToken。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
public string ComponentAccessToken { get; set; } = string.Empty;
/// <summary>
/// 获取或设置环境 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("env")]
[System.Text.Json.Serialization.JsonPropertyName("env")]
public string EnvironmentId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置服务名。
/// </summary>
[Newtonsoft.Json.JsonProperty("service_name")]
[System.Text.Json.Serialization.JsonPropertyName("service_name")]
public string ServiceName { get; set; } = string.Empty;
/// <summary>
/// 获取或设置备注。
/// </summary>
[Newtonsoft.Json.JsonProperty("remark")]
[System.Text.Json.Serialization.JsonPropertyName("remark")]
public string? Remark { get; set; }
/// <summary>
/// 获取或设置 VPC 信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("vpc")]
[System.Text.Json.Serialization.JsonPropertyName("vpc")]
public Types.VPC? VPC { get; set; }
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /componenttcb/createcontainerservice 接口的响应。</para>
/// </summary>
public class ComponentTcbCreateContainerServiceResponse : WechatApiResponse
{
}
}

View File

@@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /componenttcb/delcontainerservice 接口的请求。</para>
/// </summary>
public class ComponentTcbDeleteContainerServiceRequest : WechatApiRequest
{
/// <summary>
/// 获取或设置第三方平台 AccessToken。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
public string ComponentAccessToken { get; set; } = string.Empty;
/// <summary>
/// 获取或设置环境 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("env")]
[System.Text.Json.Serialization.JsonPropertyName("env")]
public string EnvironmentId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置服务名。
/// </summary>
[Newtonsoft.Json.JsonProperty("service_name")]
[System.Text.Json.Serialization.JsonPropertyName("service_name")]
public string ServiceName { get; set; } = string.Empty;
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /componenttcb/delcontainerservice 接口的响应。</para>
/// </summary>
public class ComponentTcbDeleteContainerServiceResponse : WechatApiResponse
{
}
}

View File

@@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /componenttcb/getcslist 接口的请求。</para>
/// </summary>
public class ComponentTcbGetContainerServiceListRequest : WechatApiRequest
{
/// <summary>
/// 获取或设置第三方平台 AccessToken。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
public string ComponentAccessToken { get; set; } = string.Empty;
/// <summary>
/// 获取或设置环境 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("env")]
[System.Text.Json.Serialization.JsonPropertyName("env")]
public string EnvironmentId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置分页起始位置。
/// </summary>
[Newtonsoft.Json.JsonProperty("offset")]
[System.Text.Json.Serialization.JsonPropertyName("offset")]
public int? Offset { get; set; }
/// <summary>
/// 获取或设置分页每页数量。
/// </summary>
[Newtonsoft.Json.JsonProperty("limit")]
[System.Text.Json.Serialization.JsonPropertyName("limit")]
public int? Limit { get; set; }
}
}

View File

@@ -0,0 +1,77 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /componenttcb/getcslist 接口的响应。</para>
/// </summary>
public class ComponentTcbGetContainerServiceListResponse : WechatApiResponse
{
public static class Types
{
public class ContainerService
{
/// <summary>
/// 获取或设置服务名。
/// </summary>
[Newtonsoft.Json.JsonProperty("server_name")]
[System.Text.Json.Serialization.JsonPropertyName("server_name")]
public string ServiceName { get; set; } = default!;
/// <summary>
/// 获取或设置 VPC 唯一标识。
/// </summary>
[Newtonsoft.Json.JsonProperty("vpcid")]
[System.Text.Json.Serialization.JsonPropertyName("vpcid")]
public string VPCId { get; set; } = default!;
/// <summary>
/// 获取或设置服务状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("status")]
[System.Text.Json.Serialization.JsonPropertyName("status")]
public string Status { get; set; } = default!;
/// <summary>
/// 获取或设置镜像地址。
/// </summary>
[Newtonsoft.Json.JsonProperty("image_repo")]
[System.Text.Json.Serialization.JsonPropertyName("image_repo")]
public string? ImageRepository { get; set; }
/// <summary>
/// 获取或设置修改时间。
/// </summary>
[Newtonsoft.Json.JsonProperty("updated_time")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339DateTimeOffsetConverter))]
[System.Text.Json.Serialization.JsonPropertyName("updated_time")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339DateTimeOffsetConverter))]
public DateTimeOffset UpdateTime { get; set; } = default!;
/// <summary>
/// 获取或设置创建时间。
/// </summary>
[Newtonsoft.Json.JsonProperty("created_time")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339DateTimeOffsetConverter))]
[System.Text.Json.Serialization.JsonPropertyName("created_time")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339DateTimeOffsetConverter))]
public DateTimeOffset CreateTime { get; set; } = default!;
}
}
/// <summary>
/// 获取或设置云托管服务列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("cslist")]
[System.Text.Json.Serialization.JsonPropertyName("cslist")]
public Types.ContainerService[] ContainerServiceList { get; set; } = default!;
/// <summary>
/// 获取或设置云函数总数量。
/// </summary>
[Newtonsoft.Json.JsonProperty("total")]
[System.Text.Json.Serialization.JsonPropertyName("total")]
public int TotalCount { get; set; }
}
}

View File

@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /componenttcb/opencontainerservice 接口的请求。</para>
/// </summary>
public class ComponentTcbOpenContainerServiceRequest : WechatApiRequest
{
/// <summary>
/// 获取或设置第三方平台 AccessToken。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
public string ComponentAccessToken { get; set; } = string.Empty;
/// <summary>
/// 获取或设置环境 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("env")]
[System.Text.Json.Serialization.JsonPropertyName("env")]
public string EnvironmentId { get; set; } = string.Empty;
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /componenttcb/opencontainerservice 接口的响应。</para>
/// </summary>
public class ComponentTcbOpenContainerServiceResponse : WechatApiResponse
{
}
}

View File

@@ -0,0 +1,53 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /tcb/usecloudaccesstoken 接口的请求。</para>
/// </summary>
public class ComponentTcbUseCloudAccessTokenRequest : WechatApiRequest
{
/// <summary>
/// 获取或设置第三方平台 AccessToken。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
public string ComponentAccessToken { get; set; } = string.Empty;
/// <summary>
/// 获取或设置操作类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("action")]
[System.Text.Json.Serialization.JsonPropertyName("action")]
public string Action { get; set; } = string.Empty;
/// <summary>
/// 获取或设置环境 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("env")]
[System.Text.Json.Serialization.JsonPropertyName("env")]
public string EnvironmentId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置是否关闭。
/// </summary>
[Newtonsoft.Json.JsonProperty("open")]
[System.Text.Json.Serialization.JsonPropertyName("open")]
public bool? IsOpen { get; set; }
/// <summary>
/// 获取或设置 API 白名单列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("api_whitelist")]
[System.Text.Json.Serialization.JsonPropertyName("api_whitelist")]
public IList<string>? ApiWhiteList { get; set; }
/// <summary>
/// 获取或设置版本号。
/// </summary>
[Newtonsoft.Json.JsonProperty("version")]
[System.Text.Json.Serialization.JsonPropertyName("version")]
public int? Version { get; set; }
}
}

View File

@@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /tcb/usecloudaccesstoken 接口的响应。</para>
/// </summary>
public class ComponentTcbUseCloudAccessTokenResponse : WechatApiResponse
{
/// <summary>
/// 获取或设置是否关闭。
/// </summary>
[Newtonsoft.Json.JsonProperty("open")]
[System.Text.Json.Serialization.JsonPropertyName("open")]
public bool? IsOpen { get; set; }
/// <summary>
/// 获取或设置 API 白名单列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("api_whitelist")]
[System.Text.Json.Serialization.JsonPropertyName("api_whitelist")]
public string[]? ApiWhiteList { get; set; }
/// <summary>
/// 获取或设置版本号。
/// </summary>
[Newtonsoft.Json.JsonProperty("version")]
[System.Text.Json.Serialization.JsonPropertyName("version")]
public int? Version { get; set; }
}
}

View File

@@ -0,0 +1,59 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /componenttcb/batchsetcspropotion 接口的请求。</para>
/// </summary>
public class ComponentTcbBatchSetContainerServicePropotionRequest : WechatApiRequest
{
public static class Types
{
public class ContainerService
{
public static class Types
{
public class Version : ComponentTcbSetContainerServicePropotionRequest.Types.Version
{
}
}
/// <summary>
/// 获取或设置环境 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("env")]
[System.Text.Json.Serialization.JsonPropertyName("env")]
public string EnvironmentId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置服务名。
/// </summary>
[Newtonsoft.Json.JsonProperty("service_name")]
[System.Text.Json.Serialization.JsonPropertyName("service_name")]
public string ServiceName { get; set; } = string.Empty;
/// <summary>
/// 获取或设置版本列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("items")]
[System.Text.Json.Serialization.JsonPropertyName("items")]
public IList<Types.Version> VersionList { get; set; } = new List<Types.Version>();
}
}
/// <summary>
/// 获取或设置第三方平台 AccessToken。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
public string ComponentAccessToken { get; set; } = string.Empty;
/// <summary>
/// 获取或设置云托管服务列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("items")]
[System.Text.Json.Serialization.JsonPropertyName("items")]
public IList<Types.ContainerService> ContainerServiceList { get; set; } = new List<Types.ContainerService>();
}
}

View File

@@ -0,0 +1,55 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /componenttcb/batchsetcspropotion 接口的响应。</para>
/// </summary>
public class ComponentTcbBatchSetContainerServicePropotionResponse : WechatApiResponse
{
public static class Types
{
public class Success
{
/// <summary>
/// 获取或设置环境 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("env")]
[System.Text.Json.Serialization.JsonPropertyName("env")]
public string EnvironmentId { get; set; } = default!;
/// <summary>
/// 获取或设置服务名。
/// </summary>
[Newtonsoft.Json.JsonProperty("service_name")]
[System.Text.Json.Serialization.JsonPropertyName("service_name")]
public string ServiceName { get; set; } = default!;
}
public class Failure : Success
{
/// <summary>
/// 获取或设置错误描述。
/// </summary>
[Newtonsoft.Json.JsonProperty("errmsg")]
[System.Text.Json.Serialization.JsonPropertyName("errmsg")]
public string ErrorMessage { get; set; } = default!;
}
}
/// <summary>
/// 获取或设置成功项列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("succ_list")]
[System.Text.Json.Serialization.JsonPropertyName("succ_list")]
public Types.Success[] SuccessList { get; set; } = default!;
/// <summary>
/// 获取或设置失败项列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("fail_list")]
[System.Text.Json.Serialization.JsonPropertyName("fail_list")]
public Types.Failure[] FailureList { get; set; } = default!;
}
}

View File

@@ -0,0 +1,59 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /componenttcb/setcspropotion 接口的请求。</para>
/// </summary>
public class ComponentTcbSetContainerServicePropotionRequest : WechatApiRequest
{
public static class Types
{
public class Version
{
/// <summary>
/// 获取或设置版本名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("version_name")]
[System.Text.Json.Serialization.JsonPropertyName("version_name")]
public string VersionName { get; set; } = string.Empty;
/// <summary>
/// 获取或设置流量占比范围0100
/// </summary>
[Newtonsoft.Json.JsonProperty("flow_ratio")]
[System.Text.Json.Serialization.JsonPropertyName("flow_ratio")]
public int FlowRatio { get; set; }
}
}
/// <summary>
/// 获取或设置第三方平台 AccessToken。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
public string ComponentAccessToken { get; set; } = string.Empty;
/// <summary>
/// 获取或设置环境 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("env")]
[System.Text.Json.Serialization.JsonPropertyName("env")]
public string EnvironmentId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置服务名。
/// </summary>
[Newtonsoft.Json.JsonProperty("service_name")]
[System.Text.Json.Serialization.JsonPropertyName("service_name")]
public string ServiceName { get; set; } = string.Empty;
/// <summary>
/// 获取或设置版本列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("items")]
[System.Text.Json.Serialization.JsonPropertyName("items")]
public IList<Types.Version> VersionList { get; set; } = new List<Types.Version>();
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /componenttcb/setcspropotion 接口的响应。</para>
/// </summary>
public class ComponentTcbSetContainerServicePropotionResponse : WechatApiResponse
{
}
}

View File

@@ -0,0 +1,215 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /componenttcb/batchcreatecsversion 接口的请求。</para>
/// </summary>
public class ComponentTcbBatchCreateContainerServiceVersionRequest : WechatApiRequest
{
public static class Types
{
public class Image : ComponentTcbCreateContainerServiceVersionRequest.Types.Image
{
}
public class Code : ComponentTcbCreateContainerServiceVersionRequest.Types.Code
{
}
public class ImageSecret : ComponentTcbCreateContainerServiceVersionRequest.Types.ImageSecret
{
}
}
/// <summary>
/// 获取或设置第三方平台 AccessToken。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
public string ComponentAccessToken { get; set; } = string.Empty;
/// <summary>
/// 获取或设置环境 ID 列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("envs")]
[System.Text.Json.Serialization.JsonPropertyName("envs")]
public IList<string> EnvironmentIdList { get; set; } = new List<string>();
/// <summary>
/// 获取或设置服务名。
/// </summary>
[Newtonsoft.Json.JsonProperty("service_name")]
[System.Text.Json.Serialization.JsonPropertyName("service_name")]
public string ServiceName { get; set; } = string.Empty;
/// <summary>
/// 获取或设置上传方式。
/// </summary>
[Newtonsoft.Json.JsonProperty("upload_type")]
[System.Text.Json.Serialization.JsonPropertyName("upload_type")]
public string UploadType { get; set; } = string.Empty;
/// <summary>
/// 获取或设置流量占比范围0100
/// </summary>
[Newtonsoft.Json.JsonProperty("flow_ratio")]
[System.Text.Json.Serialization.JsonPropertyName("flow_ratio")]
public int? FlowRatio { get; set; }
/// <summary>
/// 获取或设置 CPU 核心数。
/// </summary>
[Newtonsoft.Json.JsonProperty("cpu")]
[System.Text.Json.Serialization.JsonPropertyName("cpu")]
public double? CPUCount { get; set; }
/// <summary>
/// 获取或设置内存大小单位GB
/// </summary>
[Newtonsoft.Json.JsonProperty("mem")]
[System.Text.Json.Serialization.JsonPropertyName("mem")]
public double? MemorySize { get; set; }
/// <summary>
/// 获取或设置最小副本数范围050
/// </summary>
[Newtonsoft.Json.JsonProperty("minnum")]
[System.Text.Json.Serialization.JsonPropertyName("minnum")]
public int? MinReplicas { get; set; }
/// <summary>
/// 获取或设置最大副本数范围050
/// </summary>
[Newtonsoft.Json.JsonProperty("maxnum")]
[System.Text.Json.Serialization.JsonPropertyName("maxnum")]
public int? MaxReplicas { get; set; }
/// <summary>
/// 获取或设置策略类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("policy_type")]
[System.Text.Json.Serialization.JsonPropertyName("policy_type")]
public string? PolicyType { get; set; }
/// <summary>
/// 获取或设置策略阈值范围0100
/// </summary>
[Newtonsoft.Json.JsonProperty("policy_threshold")]
[System.Text.Json.Serialization.JsonPropertyName("policy_threshold")]
public int? PolicyThreshold { get; set; }
/// <summary>
/// 获取或设置端口号。
/// </summary>
[Newtonsoft.Json.JsonProperty("container_port")]
[System.Text.Json.Serialization.JsonPropertyName("container_port")]
public int? ContainerPort { get; set; }
/// <summary>
/// 获取或设置仓库类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("repository_type")]
[System.Text.Json.Serialization.JsonPropertyName("repository_type")]
public string? RepositoryType { get; set; }
/// <summary>
/// 获取或设置仓库地址。
/// </summary>
[Newtonsoft.Json.JsonProperty("repository")]
[System.Text.Json.Serialization.JsonPropertyName("repository")]
public string? RepositoryUrl { get; set; }
/// <summary>
/// 获取或设置 Dockerfile 路径。
/// </summary>
[Newtonsoft.Json.JsonProperty("dockerfile_path")]
[System.Text.Json.Serialization.JsonPropertyName("dockerfile_path")]
public string? DockerfilePath { get; set; }
/// <summary>
/// 获取或设置构建目录。
/// </summary>
[Newtonsoft.Json.JsonProperty("build_dir")]
[System.Text.Json.Serialization.JsonPropertyName("build_dir")]
public string? BuildDirectory { get; set; }
/// <summary>
/// 获取或设置环境变量。
/// </summary>
[Newtonsoft.Json.JsonProperty("env_params")]
[System.Text.Json.Serialization.JsonPropertyName("env_params")]
public string? EnvironmentVariables { get; set; }
/// <summary>
/// 获取或设置分支。
/// </summary>
[Newtonsoft.Json.JsonProperty("branch")]
[System.Text.Json.Serialization.JsonPropertyName("branch")]
public string? Branch { get; set; }
/// <summary>
/// 获取或设置包名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("package_name")]
[System.Text.Json.Serialization.JsonPropertyName("package_name")]
public string? PackageName { get; set; }
/// <summary>
/// 获取或设置包版本。
/// </summary>
[Newtonsoft.Json.JsonProperty("package_version")]
[System.Text.Json.Serialization.JsonPropertyName("package_version")]
public string? PackageVersion { get; set; }
/// <summary>
/// 获取或设置镜像信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("image_info")]
[System.Text.Json.Serialization.JsonPropertyName("image_info")]
public Types.Image? Image { get; set; }
/// <summary>
/// 获取或设置代码信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("code_detail")]
[System.Text.Json.Serialization.JsonPropertyName("code_detail")]
public Types.Code? Code { get; set; }
/// <summary>
/// 获取或设置私有镜像密钥信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("image_secret_info")]
[System.Text.Json.Serialization.JsonPropertyName("image_secret_info")]
public Types.ImageSecret? ImageSecret { get; set; }
/// <summary>
/// 获取或设置私有镜像认证密钥。
/// </summary>
[Newtonsoft.Json.JsonProperty("image_pulls_secret")]
[System.Text.Json.Serialization.JsonPropertyName("image_pulls_secret")]
public string? ImagePullsSecret { get; set; }
/// <summary>
/// 获取或设置自定义采集日志路径。
/// </summary>
[Newtonsoft.Json.JsonProperty("custom_logs")]
[System.Text.Json.Serialization.JsonPropertyName("custom_logs")]
public string? CustomLogPath { get; set; }
/// <summary>
/// 获取或设置是否开启微信令牌自动推送。
/// </summary>
[Newtonsoft.Json.JsonProperty("mount_wx_token")]
[System.Text.Json.Serialization.JsonPropertyName("mount_wx_token")]
public bool? IsMountWechatToken { get; set; }
/// <summary>
/// 获取或设置备注。
/// </summary>
[Newtonsoft.Json.JsonProperty("version_remark")]
[System.Text.Json.Serialization.JsonPropertyName("version_remark")]
public string? Remark { get; set; }
}
}

View File

@@ -0,0 +1,62 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /componenttcb/batchcreatecsversion 接口的响应。</para>
/// </summary>
public class ComponentTcbBatchCreateContainerServiceVersionResponse : WechatApiResponse
{
public static class Types
{
public class Success
{
/// <summary>
/// 获取或设置环境 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("env")]
[System.Text.Json.Serialization.JsonPropertyName("env")]
public string EnvironmentId { get; set; } = default!;
/// <summary>
/// 获取或设置版本名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("version_name")]
[System.Text.Json.Serialization.JsonPropertyName("version_name")]
public string VersionName { get; set; } = default!;
}
public class Failure
{
/// <summary>
/// 获取或设置环境 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("env")]
[System.Text.Json.Serialization.JsonPropertyName("env")]
public string EnvironmentId { get; set; } = default!;
/// <summary>
/// 获取或设置错误描述。
/// </summary>
[Newtonsoft.Json.JsonProperty("errormsg")]
[System.Text.Json.Serialization.JsonPropertyName("errormsg")]
public string ErrorMessage { get; set; } = default!;
}
}
/// <summary>
/// 获取或设置成功项列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("succ_list")]
[System.Text.Json.Serialization.JsonPropertyName("succ_list")]
public Types.Success[] SuccessList { get; set; } = default!;
/// <summary>
/// 获取或设置失败项列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("fail_list")]
[System.Text.Json.Serialization.JsonPropertyName("fail_list")]
public Types.Failure[] FailureList { get; set; } = default!;
}
}

View File

@@ -0,0 +1,52 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /componenttcb/batchdelcsversion 接口的请求。</para>
/// </summary>
public class ComponentTcbBatchDeleteContainerServiceVersionRequest : WechatApiRequest
{
public static class Types
{
public class Version
{
/// <summary>
/// 获取或设置环境 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("env")]
[System.Text.Json.Serialization.JsonPropertyName("env")]
public string EnvironmentId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置服务名。
/// </summary>
[Newtonsoft.Json.JsonProperty("service_name")]
[System.Text.Json.Serialization.JsonPropertyName("service_name")]
public string ServiceName { get; set; } = string.Empty;
/// <summary>
/// 获取或设置版本名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("version_name")]
[System.Text.Json.Serialization.JsonPropertyName("version_name")]
public string VersionName { get; set; } = string.Empty;
}
}
/// <summary>
/// 获取或设置第三方平台 AccessToken。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
public string ComponentAccessToken { get; set; } = string.Empty;
/// <summary>
/// 获取或设置版本列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("items")]
[System.Text.Json.Serialization.JsonPropertyName("items")]
public IList<Types.Version> VersionList { get; set; } = new List<Types.Version>();
}
}

View File

@@ -0,0 +1,63 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /componenttcb/batchdelcsversion 接口的响应。</para>
/// </summary>
public class ComponentTcbBatchDeleteContainerServiceVersionResponse : WechatApiResponse
{
public static class Types
{
public class Success
{
/// <summary>
/// 获取或设置环境 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("env")]
[System.Text.Json.Serialization.JsonPropertyName("env")]
public string EnvironmentId { get; set; } = default!;
/// <summary>
/// 获取或设置服务名。
/// </summary>
[Newtonsoft.Json.JsonProperty("service_name")]
[System.Text.Json.Serialization.JsonPropertyName("service_name")]
public string ServiceName { get; set; } = default!;
/// <summary>
/// 获取或设置版本名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("version_name")]
[System.Text.Json.Serialization.JsonPropertyName("version_name")]
public string VersionName { get; set; } = default!;
}
public class Failure : Success
{
/// <summary>
/// 获取或设置错误描述。
/// </summary>
[Newtonsoft.Json.JsonProperty("errmsg")]
[System.Text.Json.Serialization.JsonPropertyName("errmsg")]
public string ErrorMessage { get; set; } = default!;
}
}
/// <summary>
/// 获取或设置成功项列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("succ_list")]
[System.Text.Json.Serialization.JsonPropertyName("succ_list")]
public Types.Success[] SuccessList { get; set; } = default!;
/// <summary>
/// 获取或设置失败项列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("fail_list")]
[System.Text.Json.Serialization.JsonPropertyName("fail_list")]
public Types.Failure[] FailureList { get; set; } = default!;
}
}

View File

@@ -0,0 +1,309 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /componenttcb/createcsversion 接口的请求。</para>
/// </summary>
public class ComponentTcbCreateContainerServiceVersionRequest : WechatApiRequest
{
public static class Types
{
public class Image
{
/// <summary>
/// 获取或设置镜像仓库名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("repository_name")]
[System.Text.Json.Serialization.JsonPropertyName("repository_name")]
public string RepositoryName { get; set; } = string.Empty;
/// <summary>
/// 获取或设置是否公有。
/// </summary>
[Newtonsoft.Json.JsonProperty("ispublic")]
[System.Text.Json.Serialization.JsonPropertyName("ispublic")]
public bool IsPublic { get; set; }
/// <summary>
/// 获取或设置镜像 Tag 名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("tagname")]
[System.Text.Json.Serialization.JsonPropertyName("tagname")]
public string TagName { get; set; } = string.Empty;
/// <summary>
/// 获取或设置镜像服务地址。
/// </summary>
[Newtonsoft.Json.JsonProperty("server_addr")]
[System.Text.Json.Serialization.JsonPropertyName("server_addr")]
public string ServerAddress { get; set; } = string.Empty;
/// <summary>
/// 获取或设置镜像拉取地址。
/// </summary>
[Newtonsoft.Json.JsonProperty("image_url")]
[System.Text.Json.Serialization.JsonPropertyName("image_url")]
public string ImageUrl { get; set; } = string.Empty;
}
public class Code
{
public static class Types
{
public class Repository
{
/// <summary>
/// 获取或设置仓库名字。
/// </summary>
[Newtonsoft.Json.JsonProperty("name")]
[System.Text.Json.Serialization.JsonPropertyName("name")]
public string? Name { get; set; }
/// <summary>
/// 获取或设置仓库完整名字。
/// </summary>
[Newtonsoft.Json.JsonProperty("fullname")]
[System.Text.Json.Serialization.JsonPropertyName("fullname")]
public string? FullName { get; set; }
}
}
/// <summary>
/// 获取或设置仓库信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("name")]
[System.Text.Json.Serialization.JsonPropertyName("name")]
public Types.Repository? Repository { get; set; }
/// <summary>
/// 获取或设置仓库地址。
/// </summary>
[Newtonsoft.Json.JsonProperty("url")]
[System.Text.Json.Serialization.JsonPropertyName("url")]
public string? Url { get; set; }
}
public class ImageSecret
{
/// <summary>
/// 获取或设置镜像地址。
/// </summary>
[Newtonsoft.Json.JsonProperty("registryserver")]
[System.Text.Json.Serialization.JsonPropertyName("registryserver")]
public string? RegistryServer { get; set; }
/// <summary>
/// 获取或设置用户名。
/// </summary>
[Newtonsoft.Json.JsonProperty("username")]
[System.Text.Json.Serialization.JsonPropertyName("username")]
public string? Username { get; set; }
/// <summary>
/// 获取或设置密码。
/// </summary>
[Newtonsoft.Json.JsonProperty("password")]
[System.Text.Json.Serialization.JsonPropertyName("password")]
public string? Password { get; set; }
/// <summary>
/// 获取或设置邮箱。
/// </summary>
[Newtonsoft.Json.JsonProperty("email")]
[System.Text.Json.Serialization.JsonPropertyName("email")]
public string? Email { get; set; }
}
}
/// <summary>
/// 获取或设置第三方平台 AccessToken。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
public string ComponentAccessToken { get; set; } = string.Empty;
/// <summary>
/// 获取或设置环境 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("env")]
[System.Text.Json.Serialization.JsonPropertyName("env")]
public string EnvironmentId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置服务名。
/// </summary>
[Newtonsoft.Json.JsonProperty("service_name")]
[System.Text.Json.Serialization.JsonPropertyName("service_name")]
public string ServiceName { get; set; } = string.Empty;
/// <summary>
/// 获取或设置上传方式。
/// </summary>
[Newtonsoft.Json.JsonProperty("upload_type")]
[System.Text.Json.Serialization.JsonPropertyName("upload_type")]
public string UploadType { get; set; } = string.Empty;
/// <summary>
/// 获取或设置流量占比范围0100
/// </summary>
[Newtonsoft.Json.JsonProperty("flow_ratio")]
[System.Text.Json.Serialization.JsonPropertyName("flow_ratio")]
public int? FlowRatio { get; set; }
/// <summary>
/// 获取或设置 CPU 核心数。
/// </summary>
[Newtonsoft.Json.JsonProperty("cpu")]
[System.Text.Json.Serialization.JsonPropertyName("cpu")]
public double? CPUCount { get; set; }
/// <summary>
/// 获取或设置内存大小单位GB
/// </summary>
[Newtonsoft.Json.JsonProperty("mem")]
[System.Text.Json.Serialization.JsonPropertyName("mem")]
public double? MemorySize { get; set; }
/// <summary>
/// 获取或设置最小副本数范围050
/// </summary>
[Newtonsoft.Json.JsonProperty("minnum")]
[System.Text.Json.Serialization.JsonPropertyName("minnum")]
public int? MinReplicas { get; set; }
/// <summary>
/// 获取或设置最大副本数范围050
/// </summary>
[Newtonsoft.Json.JsonProperty("maxnum")]
[System.Text.Json.Serialization.JsonPropertyName("maxnum")]
public int? MaxReplicas { get; set; }
/// <summary>
/// 获取或设置策略类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("policy_type")]
[System.Text.Json.Serialization.JsonPropertyName("policy_type")]
public string? PolicyType { get; set; }
/// <summary>
/// 获取或设置策略阈值范围0100
/// </summary>
[Newtonsoft.Json.JsonProperty("policy_threshold")]
[System.Text.Json.Serialization.JsonPropertyName("policy_threshold")]
public int? PolicyThreshold { get; set; }
/// <summary>
/// 获取或设置端口号。
/// </summary>
[Newtonsoft.Json.JsonProperty("container_port")]
[System.Text.Json.Serialization.JsonPropertyName("container_port")]
public int? ContainerPort { get; set; }
/// <summary>
/// 获取或设置仓库类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("repository_type")]
[System.Text.Json.Serialization.JsonPropertyName("repository_type")]
public string? RepositoryType { get; set; }
/// <summary>
/// 获取或设置仓库地址。
/// </summary>
[Newtonsoft.Json.JsonProperty("repository")]
[System.Text.Json.Serialization.JsonPropertyName("repository")]
public string? RepositoryUrl { get; set; }
/// <summary>
/// 获取或设置 Dockerfile 路径。
/// </summary>
[Newtonsoft.Json.JsonProperty("dockerfile_path")]
[System.Text.Json.Serialization.JsonPropertyName("dockerfile_path")]
public string? DockerfilePath { get; set; }
/// <summary>
/// 获取或设置构建目录。
/// </summary>
[Newtonsoft.Json.JsonProperty("build_dir")]
[System.Text.Json.Serialization.JsonPropertyName("build_dir")]
public string? BuildDirectory { get; set; }
/// <summary>
/// 获取或设置环境变量。
/// </summary>
[Newtonsoft.Json.JsonProperty("env_params")]
[System.Text.Json.Serialization.JsonPropertyName("env_params")]
public string? EnvironmentVariables { get; set; }
/// <summary>
/// 获取或设置分支。
/// </summary>
[Newtonsoft.Json.JsonProperty("branch")]
[System.Text.Json.Serialization.JsonPropertyName("branch")]
public string? Branch { get; set; }
/// <summary>
/// 获取或设置包名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("package_name")]
[System.Text.Json.Serialization.JsonPropertyName("package_name")]
public string? PackageName { get; set; }
/// <summary>
/// 获取或设置包版本。
/// </summary>
[Newtonsoft.Json.JsonProperty("package_version")]
[System.Text.Json.Serialization.JsonPropertyName("package_version")]
public string? PackageVersion { get; set; }
/// <summary>
/// 获取或设置镜像信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("image_info")]
[System.Text.Json.Serialization.JsonPropertyName("image_info")]
public Types.Image? Image { get; set; }
/// <summary>
/// 获取或设置代码信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("code_detail")]
[System.Text.Json.Serialization.JsonPropertyName("code_detail")]
public Types.Code? Code { get; set; }
/// <summary>
/// 获取或设置私有镜像密钥信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("image_secret_info")]
[System.Text.Json.Serialization.JsonPropertyName("image_secret_info")]
public Types.ImageSecret? ImageSecret { get; set; }
/// <summary>
/// 获取或设置私有镜像认证密钥。
/// </summary>
[Newtonsoft.Json.JsonProperty("image_pulls_secret")]
[System.Text.Json.Serialization.JsonPropertyName("image_pulls_secret")]
public string? ImagePullsSecret { get; set; }
/// <summary>
/// 获取或设置自定义采集日志路径。
/// </summary>
[Newtonsoft.Json.JsonProperty("custom_logs")]
[System.Text.Json.Serialization.JsonPropertyName("custom_logs")]
public string? CustomLogPath { get; set; }
/// <summary>
/// 获取或设置是否开启微信令牌自动推送。
/// </summary>
[Newtonsoft.Json.JsonProperty("mount_wx_token")]
[System.Text.Json.Serialization.JsonPropertyName("mount_wx_token")]
public bool? IsMountWechatToken { get; set; }
/// <summary>
/// 获取或设置备注。
/// </summary>
[Newtonsoft.Json.JsonProperty("version_remark")]
[System.Text.Json.Serialization.JsonPropertyName("version_remark")]
public string? Remark { get; set; }
}
}

View File

@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /componenttcb/createcsversion 接口的响应。</para>
/// </summary>
public class ComponentTcbCreateContainerServiceVersionResponse : WechatApiResponse
{
/// <summary>
/// 获取或设置版本名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("version_name")]
[System.Text.Json.Serialization.JsonPropertyName("version_name")]
public string VersionName { get; set; } = default!;
}
}

View File

@@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /componenttcb/delcsversion 接口的请求。</para>
/// </summary>
public class ComponentTcbDeleteContainerServiceVersionRequest : WechatApiRequest
{
/// <summary>
/// 获取或设置第三方平台 AccessToken。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
public string ComponentAccessToken { get; set; } = string.Empty;
/// <summary>
/// 获取或设置环境 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("env")]
[System.Text.Json.Serialization.JsonPropertyName("env")]
public string EnvironmentId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置服务名。
/// </summary>
[Newtonsoft.Json.JsonProperty("service_name")]
[System.Text.Json.Serialization.JsonPropertyName("service_name")]
public string ServiceName { get; set; } = string.Empty;
/// <summary>
/// 获取或设置版本名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("version_name")]
[System.Text.Json.Serialization.JsonPropertyName("version_name")]
public string VersionName { get; set; } = string.Empty;
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /componenttcb/delcsversion 接口的响应。</para>
/// </summary>
public class ComponentTcbDeleteContainerServiceVersionResponse : WechatApiResponse
{
}
}

View File

@@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /componenttcb/getcsversiondetail 接口的请求。</para>
/// </summary>
public class ComponentTcbGetContainerServiceVersionDetailRequest : WechatApiRequest
{
/// <summary>
/// 获取或设置第三方平台 AccessToken。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
public string ComponentAccessToken { get; set; } = string.Empty;
/// <summary>
/// 获取或设置环境 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("env")]
[System.Text.Json.Serialization.JsonPropertyName("env")]
public string EnvironmentId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置服务名。
/// </summary>
[Newtonsoft.Json.JsonProperty("service_name")]
[System.Text.Json.Serialization.JsonPropertyName("service_name")]
public string ServiceName { get; set; } = string.Empty;
/// <summary>
/// 获取或设置版本名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("version_name")]
[System.Text.Json.Serialization.JsonPropertyName("version_name")]
public string VersionName { get; set; } = string.Empty;
}
}

View File

@@ -0,0 +1,190 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /componenttcb/getcsversiondetail 接口的响应。</para>
/// </summary>
public class ComponentTcbGetContainerServiceVersionDetailResponse : WechatApiResponse
{
/// <summary>
/// 获取或设置版本名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("version_name")]
[System.Text.Json.Serialization.JsonPropertyName("version_name")]
public string VersionName { get; set; } = default!;
/// <summary>
/// 获取或设置版本状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("status")]
[System.Text.Json.Serialization.JsonPropertyName("status")]
public string Status { get; set; } = default!;
/// <summary>
/// 获取或设置上传方式。
/// </summary>
[Newtonsoft.Json.JsonProperty("upload_type")]
[System.Text.Json.Serialization.JsonPropertyName("upload_type")]
public string UploadType { get; set; } = default!;
/// <summary>
/// 获取或设置 CPU 核心数。
/// </summary>
[Newtonsoft.Json.JsonProperty("cpu")]
[System.Text.Json.Serialization.JsonPropertyName("cpu")]
public double CPUCount { get; set; }
/// <summary>
/// 获取或设置内存大小单位GB
/// </summary>
[Newtonsoft.Json.JsonProperty("mem")]
[System.Text.Json.Serialization.JsonPropertyName("mem")]
public double MemorySize { get; set; }
/// <summary>
/// 获取或设置最小副本数范围050
/// </summary>
[Newtonsoft.Json.JsonProperty("minnum")]
[System.Text.Json.Serialization.JsonPropertyName("minnum")]
public int MinReplicas { get; set; }
/// <summary>
/// 获取或设置最大副本数范围050
/// </summary>
[Newtonsoft.Json.JsonProperty("maxnum")]
[System.Text.Json.Serialization.JsonPropertyName("maxnum")]
public int MaxReplicas { get; set; }
/// <summary>
/// 获取或设置策略类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("policy_type")]
[System.Text.Json.Serialization.JsonPropertyName("policy_type")]
public string PolicyType { get; set; } = default!;
/// <summary>
/// 获取或设置策略阈值范围0100
/// </summary>
[Newtonsoft.Json.JsonProperty("policy_threshold")]
[System.Text.Json.Serialization.JsonPropertyName("policy_threshold")]
public int PolicyThreshold { get; set; }
/// <summary>
/// 获取或设置版本 IP。
/// </summary>
[Newtonsoft.Json.JsonProperty("version_ip")]
[System.Text.Json.Serialization.JsonPropertyName("version_ip")]
public string VersionIP { get; set; } = default!;
/// <summary>
/// 获取或设置版本端口。
/// </summary>
[Newtonsoft.Json.JsonProperty("version_port")]
[System.Text.Json.Serialization.JsonPropertyName("version_port")]
public int VersionPort { get; set; }
/// <summary>
/// 获取或设置端口号。
/// </summary>
[Newtonsoft.Json.JsonProperty("container_port")]
[System.Text.Json.Serialization.JsonPropertyName("container_port")]
public int ContainerPort { get; set; }
/// <summary>
/// 获取或设置仓库类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("repo_type")]
[System.Text.Json.Serialization.JsonPropertyName("repo_type")]
public string RepositoryType { get; set; } = default!;
/// <summary>
/// 获取或设置仓库地址。
/// </summary>
[Newtonsoft.Json.JsonProperty("repo")]
[System.Text.Json.Serialization.JsonPropertyName("repo")]
public string RepositoryUrl { get; set; } = default!;
/// <summary>
/// 获取或设置 Dockerfile 路径。
/// </summary>
[Newtonsoft.Json.JsonProperty("dockerfile_path")]
[System.Text.Json.Serialization.JsonPropertyName("dockerfile_path")]
public string DockerfilePath { get; set; } = default!;
/// <summary>
/// 获取或设置构建目录。
/// </summary>
[Newtonsoft.Json.JsonProperty("build_dir")]
[System.Text.Json.Serialization.JsonPropertyName("build_dir")]
public string BuildDirectory { get; set; } = default!;
/// <summary>
/// 获取或设置环境变量。
/// </summary>
[Newtonsoft.Json.JsonProperty("env_params")]
[System.Text.Json.Serialization.JsonPropertyName("env_params")]
public string EnvironmentVariables { get; set; } = default!;
/// <summary>
/// 获取或设置分支。
/// </summary>
[Newtonsoft.Json.JsonProperty("branch")]
[System.Text.Json.Serialization.JsonPropertyName("branch")]
public string Branch { get; set; } = default!;
/// <summary>
/// 获取或设置备注。
/// </summary>
[Newtonsoft.Json.JsonProperty("remark")]
[System.Text.Json.Serialization.JsonPropertyName("remark")]
public string? Remark { get; set; }
/// <summary>
/// 获取或设置包名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("package_name")]
[System.Text.Json.Serialization.JsonPropertyName("package_name")]
public string PackageName { get; set; } = default!;
/// <summary>
/// 获取或设置包版本。
/// </summary>
[Newtonsoft.Json.JsonProperty("package_version")]
[System.Text.Json.Serialization.JsonPropertyName("package_version")]
public string PackageVersion { get; set; } = default!;
/// <summary>
/// 获取或设置镜像地址。
/// </summary>
[Newtonsoft.Json.JsonProperty("image_url")]
[System.Text.Json.Serialization.JsonPropertyName("image_url")]
public string? ImageUrl { get; set; }
/// <summary>
/// 获取或设置自定义采集日志路径。
/// </summary>
[Newtonsoft.Json.JsonProperty("custom_logs")]
[System.Text.Json.Serialization.JsonPropertyName("custom_logs")]
public string? CustomLogPath { get; set; }
/// <summary>
/// 获取或设置修改时间。
/// </summary>
[Newtonsoft.Json.JsonProperty("updated_time")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339DateTimeOffsetConverter))]
[System.Text.Json.Serialization.JsonPropertyName("updated_time")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339DateTimeOffsetConverter))]
public DateTimeOffset UpdateTime { get; set; } = default!;
/// <summary>
/// 获取或设置创建时间。
/// </summary>
[Newtonsoft.Json.JsonProperty("created_time")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339DateTimeOffsetConverter))]
[System.Text.Json.Serialization.JsonPropertyName("created_time")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339DateTimeOffsetConverter))]
public DateTimeOffset CreateTime { get; set; } = default!;
}
}

View File

@@ -0,0 +1,46 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /componenttcb/getcsversionlist 接口的请求。</para>
/// </summary>
public class ComponentTcbGetContainerServiceVersionListRequest : WechatApiRequest
{
/// <summary>
/// 获取或设置第三方平台 AccessToken。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
public string ComponentAccessToken { get; set; } = string.Empty;
/// <summary>
/// 获取或设置环境 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("env")]
[System.Text.Json.Serialization.JsonPropertyName("env")]
public string EnvironmentId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置服务名。
/// </summary>
[Newtonsoft.Json.JsonProperty("service_name")]
[System.Text.Json.Serialization.JsonPropertyName("service_name")]
public string ServiceName { get; set; } = string.Empty;
/// <summary>
/// 获取或设置分页起始位置。
/// </summary>
[Newtonsoft.Json.JsonProperty("offset")]
[System.Text.Json.Serialization.JsonPropertyName("offset")]
public int? Offset { get; set; }
/// <summary>
/// 获取或设置分页每页数量。
/// </summary>
[Newtonsoft.Json.JsonProperty("limit")]
[System.Text.Json.Serialization.JsonPropertyName("limit")]
public int? Limit { get; set; }
}
}

View File

@@ -0,0 +1,98 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /componenttcb/getcsversionlist 接口的响应。</para>
/// </summary>
public class ComponentTcbGetContainerServiceVersionListResponse : WechatApiResponse
{
public static class Types
{
public class Version
{
/// <summary>
/// 获取或设置版本名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("version_name")]
[System.Text.Json.Serialization.JsonPropertyName("version_name")]
public string VersionName { get; set; } = default!;
/// <summary>
/// 获取或设置版本状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("status")]
[System.Text.Json.Serialization.JsonPropertyName("status")]
public string Status { get; set; } = default!;
/// <summary>
/// 获取或设置流量占比。
/// </summary>
[Newtonsoft.Json.JsonProperty("flow_ratio")]
[System.Text.Json.Serialization.JsonPropertyName("flow_ratio")]
public int FlowRatio { get; set; }
/// <summary>
/// 获取或设置构建 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("buildid")]
[System.Text.Json.Serialization.JsonPropertyName("buildid")]
public int BuildId { get; set; }
/// <summary>
/// 获取或设置上传类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("upload_type")]
[System.Text.Json.Serialization.JsonPropertyName("upload_type")]
public string UploadType { get; set; } = default!;
/// <summary>
/// 获取或设置最小副本数。
/// </summary>
[Newtonsoft.Json.JsonProperty("min_replicas")]
[System.Text.Json.Serialization.JsonPropertyName("min_replicas")]
public int MinReplicas { get; set; }
/// <summary>
/// 获取或设置最大副本数。
/// </summary>
[Newtonsoft.Json.JsonProperty("max_replicas")]
[System.Text.Json.Serialization.JsonPropertyName("max_replicas")]
public int MaxReplicas { get; set; }
/// <summary>
/// 获取或设置修改时间。
/// </summary>
[Newtonsoft.Json.JsonProperty("updated_time")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339DateTimeOffsetConverter))]
[System.Text.Json.Serialization.JsonPropertyName("updated_time")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339DateTimeOffsetConverter))]
public DateTimeOffset UpdateTime { get; set; } = default!;
/// <summary>
/// 获取或设置创建时间。
/// </summary>
[Newtonsoft.Json.JsonProperty("created_time")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339DateTimeOffsetConverter))]
[System.Text.Json.Serialization.JsonPropertyName("created_time")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339DateTimeOffsetConverter))]
public DateTimeOffset CreateTime { get; set; } = default!;
}
}
/// <summary>
/// 获取或设置版本列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("items")]
[System.Text.Json.Serialization.JsonPropertyName("items")]
public Types.Version[] VersionList { get; set; } = default!;
/// <summary>
/// 获取或设置云函数总数量。
/// </summary>
[Newtonsoft.Json.JsonProperty("total")]
[System.Text.Json.Serialization.JsonPropertyName("total")]
public int TotalCount { get; set; }
}
}

View File

@@ -0,0 +1,80 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /componenttcb/setcsversionconfig 接口的请求。</para>
/// </summary>
public class ComponentTcbSetContainerServiceVersionConfigRequest : WechatApiRequest
{
/// 获取或设置第三方平台 AccessToken。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
public string ComponentAccessToken { get; set; } = string.Empty;
/// <summary>
/// 获取或设置环境 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("env")]
[System.Text.Json.Serialization.JsonPropertyName("env")]
public string EnvironmentId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置服务名。
/// </summary>
[Newtonsoft.Json.JsonProperty("service_name")]
[System.Text.Json.Serialization.JsonPropertyName("service_name")]
public string ServiceName { get; set; } = string.Empty;
/// <summary>
/// 获取或设置版本名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("version_name")]
[System.Text.Json.Serialization.JsonPropertyName("version_name")]
public string VersionName { get; set; } = string.Empty;
/// <summary>
/// 获取或设置最小副本数范围050
/// </summary>
[Newtonsoft.Json.JsonProperty("minnum")]
[System.Text.Json.Serialization.JsonPropertyName("minnum")]
public int? MinReplicas { get; set; }
/// <summary>
/// 获取或设置最大副本数范围050
/// </summary>
[Newtonsoft.Json.JsonProperty("maxnum")]
[System.Text.Json.Serialization.JsonPropertyName("maxnum")]
public int? MaxReplicas { get; set; }
/// <summary>
/// 获取或设置端口号。
/// </summary>
[Newtonsoft.Json.JsonProperty("container_port")]
[System.Text.Json.Serialization.JsonPropertyName("container_port")]
public int? ContainerPort { get; set; }
/// <summary>
/// 获取或设置环境变量。
/// </summary>
[Newtonsoft.Json.JsonProperty("env_params")]
[System.Text.Json.Serialization.JsonPropertyName("env_params")]
public string? EnvironmentVariables { get; set; }
/// <summary>
/// 获取或设置自定义采集日志路径。
/// </summary>
[Newtonsoft.Json.JsonProperty("custom_logs")]
[System.Text.Json.Serialization.JsonPropertyName("custom_logs")]
public string? CustomLogPath { get; set; }
/// <summary>
/// 获取或设置备注。
/// </summary>
[Newtonsoft.Json.JsonProperty("remark")]
[System.Text.Json.Serialization.JsonPropertyName("remark")]
public string? Remark { get; set; }
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /componenttcb/setcsversionconfig 接口的响应。</para>
/// </summary>
public class ComponentTcbSetContainerServiceVersionConfigResponse : WechatApiResponse
{
}
}