diff --git a/VERSION b/VERSION index 6aeb3f60..cb8b75d0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.91-release +1.2.92-release diff --git a/examples/generic/pom.xml b/examples/generic/pom.xml index 54480f3e..5272f055 100644 --- a/examples/generic/pom.xml +++ b/examples/generic/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 @@ -19,7 +19,7 @@ cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/examples/uhost/pom.xml b/examples/uhost/pom.xml index 383cb1e2..32cc6a62 100644 --- a/examples/uhost/pom.xml +++ b/examples/uhost/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 @@ -19,7 +19,7 @@ cn.ucloud ucloud-sdk-java-uhost - 1.2.91-release + 1.2.92-release diff --git a/pom.xml b/pom.xml index 8b19a4e1..4fea2f91 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ cn.ucloud ucloud-sdk-java pom - 1.2.91-release + 1.2.92-release ucloud-sdk-java-common ucloud-sdk-java-cloudwatch diff --git a/ucloud-sdk-java-cloudwatch/pom.xml b/ucloud-sdk-java-cloudwatch/pom.xml index d5228d15..b6537d34 100644 --- a/ucloud-sdk-java-cloudwatch/pom.xml +++ b/ucloud-sdk-java-cloudwatch/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-cloudwatch ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-common/pom.xml b/ucloud-sdk-java-common/pom.xml index bedda3c2..4958e741 100644 --- a/ucloud-sdk-java-common/pom.xml +++ b/ucloud-sdk-java-common/pom.xml @@ -7,13 +7,13 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-common ucloud-sdk-java - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-cube/pom.xml b/ucloud-sdk-java-cube/pom.xml index 9d29c3f9..010dcb00 100644 --- a/ucloud-sdk-java-cube/pom.xml +++ b/ucloud-sdk-java-cube/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-cube ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-ipsecvpn/pom.xml b/ucloud-sdk-java-ipsecvpn/pom.xml index 1d316d3b..d5ccf059 100644 --- a/ucloud-sdk-java-ipsecvpn/pom.xml +++ b/ucloud-sdk-java-ipsecvpn/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-ipsecvpn ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-label/pom.xml b/ucloud-sdk-java-label/pom.xml index 0a1f0d74..e1e7af99 100644 --- a/ucloud-sdk-java-label/pom.xml +++ b/ucloud-sdk-java-label/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-label ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-nlb/pom.xml b/ucloud-sdk-java-nlb/pom.xml index a3cc03f6..9e85952e 100644 --- a/ucloud-sdk-java-nlb/pom.xml +++ b/ucloud-sdk-java-nlb/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-nlb ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-pathx/pom.xml b/ucloud-sdk-java-pathx/pom.xml index df711418..710a8b55 100644 --- a/ucloud-sdk-java-pathx/pom.xml +++ b/ucloud-sdk-java-pathx/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-pathx ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-sandbox/pom.xml b/ucloud-sdk-java-sandbox/pom.xml index abf3824f..f808781f 100644 --- a/ucloud-sdk-java-sandbox/pom.xml +++ b/ucloud-sdk-java-sandbox/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-sandbox ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-sts/pom.xml b/ucloud-sdk-java-sts/pom.xml index fbc68f54..c619580e 100644 --- a/ucloud-sdk-java-sts/pom.xml +++ b/ucloud-sdk-java-sts/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-sts ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-tidb/pom.xml b/ucloud-sdk-java-tidb/pom.xml index 2a917476..992e0b90 100644 --- a/ucloud-sdk-java-tidb/pom.xml +++ b/ucloud-sdk-java-tidb/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-tidb ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-uaccount/pom.xml b/ucloud-sdk-java-uaccount/pom.xml index d4387f1c..9cf91ec0 100644 --- a/ucloud-sdk-java-uaccount/pom.xml +++ b/ucloud-sdk-java-uaccount/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-uaccount ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-uai_modelverse/pom.xml b/ucloud-sdk-java-uai_modelverse/pom.xml index 56022bb3..aab304db 100644 --- a/ucloud-sdk-java-uai_modelverse/pom.xml +++ b/ucloud-sdk-java-uai_modelverse/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-uai_modelverse ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-uas/pom.xml b/ucloud-sdk-java-uas/pom.xml index 06b0feed..12484032 100644 --- a/ucloud-sdk-java-uas/pom.xml +++ b/ucloud-sdk-java-uas/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-uas ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-ubill/pom.xml b/ucloud-sdk-java-ubill/pom.xml index fe6bf410..c59696b1 100644 --- a/ucloud-sdk-java-ubill/pom.xml +++ b/ucloud-sdk-java-ubill/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-ubill ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-ucdn/pom.xml b/ucloud-sdk-java-ucdn/pom.xml index 20ec4830..c939073e 100644 --- a/ucloud-sdk-java-ucdn/pom.xml +++ b/ucloud-sdk-java-ucdn/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-ucdn ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-uclickhouse/pom.xml b/ucloud-sdk-java-uclickhouse/pom.xml index c582607d..84038dd8 100644 --- a/ucloud-sdk-java-uclickhouse/pom.xml +++ b/ucloud-sdk-java-uclickhouse/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-uclickhouse ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-ucompshare/pom.xml b/ucloud-sdk-java-ucompshare/pom.xml index 78ca7c88..5be42221 100644 --- a/ucloud-sdk-java-ucompshare/pom.xml +++ b/ucloud-sdk-java-ucompshare/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-ucompshare ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-udb/pom.xml b/ucloud-sdk-java-udb/pom.xml index c70e519c..564a35c7 100644 --- a/ucloud-sdk-java-udb/pom.xml +++ b/ucloud-sdk-java-udb/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-udb ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-udbproxy/pom.xml b/ucloud-sdk-java-udbproxy/pom.xml index 9d833852..6f38b3d9 100644 --- a/ucloud-sdk-java-udbproxy/pom.xml +++ b/ucloud-sdk-java-udbproxy/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-udbproxy ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-udi/pom.xml b/ucloud-sdk-java-udi/pom.xml index 0bae30a9..74577a3e 100644 --- a/ucloud-sdk-java-udi/pom.xml +++ b/ucloud-sdk-java-udi/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-udi ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-udisk/pom.xml b/ucloud-sdk-java-udisk/pom.xml index 0ea0cd5f..0c6f94df 100644 --- a/ucloud-sdk-java-udisk/pom.xml +++ b/ucloud-sdk-java-udisk/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-udisk ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-udns/pom.xml b/ucloud-sdk-java-udns/pom.xml index 5ef312b0..b9ab79f2 100644 --- a/ucloud-sdk-java-udns/pom.xml +++ b/ucloud-sdk-java-udns/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-udns ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-udpn/pom.xml b/ucloud-sdk-java-udpn/pom.xml index 2b3adda4..8ee2b307 100644 --- a/ucloud-sdk-java-udpn/pom.xml +++ b/ucloud-sdk-java-udpn/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-udpn ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-uec/pom.xml b/ucloud-sdk-java-uec/pom.xml index c83d2439..af45250e 100644 --- a/ucloud-sdk-java-uec/pom.xml +++ b/ucloud-sdk-java-uec/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-uec ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-ues/pom.xml b/ucloud-sdk-java-ues/pom.xml index 17dd276e..475f30b0 100644 --- a/ucloud-sdk-java-ues/pom.xml +++ b/ucloud-sdk-java-ues/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-ues ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-uewaf/pom.xml b/ucloud-sdk-java-uewaf/pom.xml index 84249e0d..055d3839 100644 --- a/ucloud-sdk-java-uewaf/pom.xml +++ b/ucloud-sdk-java-uewaf/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-uewaf ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-ufile/pom.xml b/ucloud-sdk-java-ufile/pom.xml index c320f27b..7fe89356 100644 --- a/ucloud-sdk-java-ufile/pom.xml +++ b/ucloud-sdk-java-ufile/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-ufile ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-ufs/pom.xml b/ucloud-sdk-java-ufs/pom.xml index 2ef31439..65acde23 100644 --- a/ucloud-sdk-java-ufs/pom.xml +++ b/ucloud-sdk-java-ufs/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-ufs ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-uhadoop/pom.xml b/ucloud-sdk-java-uhadoop/pom.xml index 27bd4af6..30cc03df 100644 --- a/ucloud-sdk-java-uhadoop/pom.xml +++ b/ucloud-sdk-java-uhadoop/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-uhadoop ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-uhids/pom.xml b/ucloud-sdk-java-uhids/pom.xml index dac7a90a..b6125952 100644 --- a/ucloud-sdk-java-uhids/pom.xml +++ b/ucloud-sdk-java-uhids/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-uhids ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-uhost/pom.xml b/ucloud-sdk-java-uhost/pom.xml index 13ef5f91..02e5fdb4 100644 --- a/ucloud-sdk-java-uhost/pom.xml +++ b/ucloud-sdk-java-uhost/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-uhost ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-uk8s/pom.xml b/ucloud-sdk-java-uk8s/pom.xml index 9e335876..1abfb016 100644 --- a/ucloud-sdk-java-uk8s/pom.xml +++ b/ucloud-sdk-java-uk8s/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-uk8s ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/client/UK8SClient.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/client/UK8SClient.java index acd56842..294c2740 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/client/UK8SClient.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/client/UK8SClient.java @@ -27,10 +27,14 @@ import cn.ucloud.uk8s.models.AddUK8SUHostNodeResponse; import cn.ucloud.uk8s.models.CreateUK8SClusterV2Request; import cn.ucloud.uk8s.models.CreateUK8SClusterV2Response; +import cn.ucloud.uk8s.models.CreateUK8SULSConfigRequest; +import cn.ucloud.uk8s.models.CreateUK8SULSConfigResponse; import cn.ucloud.uk8s.models.DelUK8SClusterNodeV2Request; import cn.ucloud.uk8s.models.DelUK8SClusterNodeV2Response; import cn.ucloud.uk8s.models.DelUK8SClusterRequest; import cn.ucloud.uk8s.models.DelUK8SClusterResponse; +import cn.ucloud.uk8s.models.DeleteUK8SULSConfigRequest; +import cn.ucloud.uk8s.models.DeleteUK8SULSConfigResponse; import cn.ucloud.uk8s.models.DescribeUK8SClusterRequest; import cn.ucloud.uk8s.models.DescribeUK8SClusterResponse; import cn.ucloud.uk8s.models.DescribeUK8SImageRequest; @@ -47,8 +51,12 @@ import cn.ucloud.uk8s.models.ListUK8SClusterV2Response; import cn.ucloud.uk8s.models.ListUK8SNodeGroupRequest; import cn.ucloud.uk8s.models.ListUK8SNodeGroupResponse; +import cn.ucloud.uk8s.models.ListUK8SULSConfigRequest; +import cn.ucloud.uk8s.models.ListUK8SULSConfigResponse; import cn.ucloud.uk8s.models.RemoveUK8SNodeGroupRequest; import cn.ucloud.uk8s.models.RemoveUK8SNodeGroupResponse; +import cn.ucloud.uk8s.models.UpdateUK8SULSConfigRequest; +import cn.ucloud.uk8s.models.UpdateUK8SULSConfigResponse; /** This client is used to call actions of **UK8S** service */ public class UK8SClient extends DefaultClient implements UK8SClientInterface { @@ -118,6 +126,19 @@ public CreateUK8SClusterV2Response createUK8SClusterV2(CreateUK8SClusterV2Reques this.invoke(request, CreateUK8SClusterV2Response.class); } + /** + * CreateUK8SULSConfig - 创建UK8日志采集配置 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUK8SULSConfigResponse createUK8SULSConfig(CreateUK8SULSConfigRequest request) + throws UCloudException { + request.setAction("CreateUK8SULSConfig"); + return (CreateUK8SULSConfigResponse) + this.invoke(request, CreateUK8SULSConfigResponse.class); + } + /** * DelUK8SCluster - 删除UK8S集群 * @@ -143,6 +164,19 @@ public DelUK8SClusterNodeV2Response delUK8SClusterNodeV2(DelUK8SClusterNodeV2Req this.invoke(request, DelUK8SClusterNodeV2Response.class); } + /** + * DeleteUK8SULSConfig - 删除UK8S日志采集配置 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUK8SULSConfigResponse deleteUK8SULSConfig(DeleteUK8SULSConfigRequest request) + throws UCloudException { + request.setAction("DeleteUK8SULSConfig"); + return (DeleteUK8SULSConfigResponse) + this.invoke(request, DeleteUK8SULSConfigResponse.class); + } + /** * DescribeUK8SCluster - 获取集群信息 * @@ -241,6 +275,18 @@ public ListUK8SNodeGroupResponse listUK8SNodeGroup(ListUK8SNodeGroupRequest requ return (ListUK8SNodeGroupResponse) this.invoke(request, ListUK8SNodeGroupResponse.class); } + /** + * ListUK8SULSConfig - 查询 UK8s 的 ULS 日志采集配置 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUK8SULSConfigResponse listUK8SULSConfig(ListUK8SULSConfigRequest request) + throws UCloudException { + request.setAction("ListUK8SULSConfig"); + return (ListUK8SULSConfigResponse) this.invoke(request, ListUK8SULSConfigResponse.class); + } + /** * RemoveUK8SNodeGroup - 删除UK8S节点池 * @@ -253,4 +299,17 @@ public RemoveUK8SNodeGroupResponse removeUK8SNodeGroup(RemoveUK8SNodeGroupReques return (RemoveUK8SNodeGroupResponse) this.invoke(request, RemoveUK8SNodeGroupResponse.class); } + + /** + * UpdateUK8SULSConfig - 更新UK8S日志采集配置 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUK8SULSConfigResponse updateUK8SULSConfig(UpdateUK8SULSConfigRequest request) + throws UCloudException { + request.setAction("UpdateUK8SULSConfig"); + return (UpdateUK8SULSConfigResponse) + this.invoke(request, UpdateUK8SULSConfigResponse.class); + } } diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/client/UK8SClientInterface.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/client/UK8SClientInterface.java index 760085d8..49bb0358 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/client/UK8SClientInterface.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/client/UK8SClientInterface.java @@ -25,10 +25,14 @@ import cn.ucloud.uk8s.models.AddUK8SUHostNodeResponse; import cn.ucloud.uk8s.models.CreateUK8SClusterV2Request; import cn.ucloud.uk8s.models.CreateUK8SClusterV2Response; +import cn.ucloud.uk8s.models.CreateUK8SULSConfigRequest; +import cn.ucloud.uk8s.models.CreateUK8SULSConfigResponse; import cn.ucloud.uk8s.models.DelUK8SClusterNodeV2Request; import cn.ucloud.uk8s.models.DelUK8SClusterNodeV2Response; import cn.ucloud.uk8s.models.DelUK8SClusterRequest; import cn.ucloud.uk8s.models.DelUK8SClusterResponse; +import cn.ucloud.uk8s.models.DeleteUK8SULSConfigRequest; +import cn.ucloud.uk8s.models.DeleteUK8SULSConfigResponse; import cn.ucloud.uk8s.models.DescribeUK8SClusterRequest; import cn.ucloud.uk8s.models.DescribeUK8SClusterResponse; import cn.ucloud.uk8s.models.DescribeUK8SImageRequest; @@ -45,8 +49,12 @@ import cn.ucloud.uk8s.models.ListUK8SClusterV2Response; import cn.ucloud.uk8s.models.ListUK8SNodeGroupRequest; import cn.ucloud.uk8s.models.ListUK8SNodeGroupResponse; +import cn.ucloud.uk8s.models.ListUK8SULSConfigRequest; +import cn.ucloud.uk8s.models.ListUK8SULSConfigResponse; import cn.ucloud.uk8s.models.RemoveUK8SNodeGroupRequest; import cn.ucloud.uk8s.models.RemoveUK8SNodeGroupResponse; +import cn.ucloud.uk8s.models.UpdateUK8SULSConfigRequest; +import cn.ucloud.uk8s.models.UpdateUK8SULSConfigResponse; /** This client is used to call actions of **UK8S** service */ public interface UK8SClientInterface extends Client { @@ -96,6 +104,15 @@ public AddUK8SUHostNodeResponse addUK8SUHostNode(AddUK8SUHostNodeRequest request public CreateUK8SClusterV2Response createUK8SClusterV2(CreateUK8SClusterV2Request request) throws UCloudException; + /** + * CreateUK8SULSConfig - 创建UK8日志采集配置 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUK8SULSConfigResponse createUK8SULSConfig(CreateUK8SULSConfigRequest request) + throws UCloudException; + /** * DelUK8SCluster - 删除UK8S集群 * @@ -114,6 +131,15 @@ public DelUK8SClusterResponse delUK8SCluster(DelUK8SClusterRequest request) public DelUK8SClusterNodeV2Response delUK8SClusterNodeV2(DelUK8SClusterNodeV2Request request) throws UCloudException; + /** + * DeleteUK8SULSConfig - 删除UK8S日志采集配置 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUK8SULSConfigResponse deleteUK8SULSConfig(DeleteUK8SULSConfigRequest request) + throws UCloudException; + /** * DescribeUK8SCluster - 获取集群信息 * @@ -186,6 +212,15 @@ public ListUK8SClusterV2Response listUK8SClusterV2(ListUK8SClusterV2Request requ public ListUK8SNodeGroupResponse listUK8SNodeGroup(ListUK8SNodeGroupRequest request) throws UCloudException; + /** + * ListUK8SULSConfig - 查询 UK8s 的 ULS 日志采集配置 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUK8SULSConfigResponse listUK8SULSConfig(ListUK8SULSConfigRequest request) + throws UCloudException; + /** * RemoveUK8SNodeGroup - 删除UK8S节点池 * @@ -194,4 +229,13 @@ public ListUK8SNodeGroupResponse listUK8SNodeGroup(ListUK8SNodeGroupRequest requ */ public RemoveUK8SNodeGroupResponse removeUK8SNodeGroup(RemoveUK8SNodeGroupRequest request) throws UCloudException; + + /** + * UpdateUK8SULSConfig - 更新UK8S日志采集配置 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUK8SULSConfigResponse updateUK8SULSConfig(UpdateUK8SULSConfigRequest request) + throws UCloudException; } diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/CreateUK8SULSConfigRequest.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/CreateUK8SULSConfigRequest.java new file mode 100644 index 00000000..9cb5b5ba --- /dev/null +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/CreateUK8SULSConfigRequest.java @@ -0,0 +1,613 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uk8s.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +import java.util.List; + +public class CreateUK8SULSConfigRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 日志服务中用于接收日志的目标 Topic ID。 */ + @NotEmpty + @UCloudParam("TopicID") + private String topicID; + + /** UK8S 集群ID。 */ + @NotEmpty + @UCloudParam("ClusterId") + private String clusterId; + + /** + * 要创建的日志的采集规则的名称,不能重复。总长度不能超过 + * 253个字符。字符类型:只能包含小写字母(a-z)、数字(0-9)、破折号(-)和点(.)。开头和结尾字符:必须以小写字母或数字开头,并且也必须以小写字母或数字结尾。不允许以 - 或 . + * 开头或结尾。连续特殊字符:不能连续出现点(.)或破折号(-)。 + */ + @NotEmpty + @UCloudParam("Name") + private String name; + + /** */ + @UCloudParam("ExtractRule") + private ExtractRule extractRule; + + /** */ + @UCloudParam("InputDetail") + private InputDetail inputDetail; + + /** */ + @UCloudParam("MatchRule") + private MatchRule matchRule; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getTopicID() { + return topicID; + } + + public void setTopicID(String topicID) { + this.topicID = topicID; + } + + public String getClusterId() { + return clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ExtractRule getExtractRule() { + return extractRule; + } + + public void setExtractRule(ExtractRule extractRule) { + this.extractRule = extractRule; + } + + public InputDetail getInputDetail() { + return inputDetail; + } + + public void setInputDetail(InputDetail inputDetail) { + this.inputDetail = inputDetail; + } + + public MatchRule getMatchRule() { + return matchRule; + } + + public void setMatchRule(MatchRule matchRule) { + this.matchRule = matchRule; + } + + public static class ExtractRule extends Request { + + /** + * 日志解析类型,决定了如何结构化日志。可选值: + * multi_line_delimiter:多行分隔符,delimiter:分隔符,full_regex:完全正则,multi_line_full_regex:多行完全正则,minimal_list:单行全文日志,multi_line:多行全文日志 + */ + @NotEmpty + @UCloudParam("LogType") + private String logType; + + /** 采集策略。可选值: full (全量采集存量日志), increment (从当前时间点增量采集)。默认为 full。 */ + @UCloudParam("CollectPolicy") + private String collectPolicy; + + /** 日志原文的编码格式。可选值: utf-8, gbk。默认为 utf-8。 */ + @UCloudParam("Encode") + private String encode; + + /** 当LogType 为分隔符、正则、多行正则时可用 */ + @UCloudParam("Keys") + private List keys; + + /** 当 LogType 为delimiter 时可选,接收 "space"、"tab"、"|"、";"、","。 */ + @UCloudParam("Delimiter") + private String delimiter; + + /** 行首正则表达式。当 logType 为多行模式 (如 multi_line 或 multi_line_full_regex) 时,用于标识一条新日志的开始。 */ + @UCloudParam("BeginningRegex") + private String beginningRegex; + + /** 日志提取正则表达式。当 logType 为正则模式 (如 full_regex,multi_line_full_regex) 时,用于从日志中提取字段。 */ + @UCloudParam("LogRegex") + private String logRegex; + + /** */ + @UCloudParam("ExtractRule") + private ExtractRuleExtractRule extractRule; + + /** 当日志为 json 或正则提取时,指定包含日志时间的字段名 (Key)。 */ + @UCloudParam("TimeKey") + private String timeKey; + + /** timeKey 对应的时间格式。 */ + @UCloudParam("TimeFormat") + private String timeFormat; + + /** 是否上传解析失败的日志。true 表示上传,false 表示丢弃。默认为 false。 */ + @UCloudParam("UnMatchUpload") + private String unMatchUpload; + + /** 没有设置默认值;UnMatchUpload="true" 时强制要求填写 */ + @UCloudParam("UnMatchKey") + private String unMatchKey; + + /** Base64 编码的分隔符,优先级高于 Delimiter */ + @UCloudParam("DelimiterBase64") + private String delimiterBase64; + + /** Base64 编码的行首正则,优先级高于 BeginningRegex */ + @UCloudParam("BeginningRegexBase64") + private String beginningRegexBase64; + + public String getLogType() { + return logType; + } + + public void setLogType(String logType) { + this.logType = logType; + } + + public String getCollectPolicy() { + return collectPolicy; + } + + public void setCollectPolicy(String collectPolicy) { + this.collectPolicy = collectPolicy; + } + + public String getEncode() { + return encode; + } + + public void setEncode(String encode) { + this.encode = encode; + } + + public List getKeys() { + return keys; + } + + public void setKeys(List keys) { + this.keys = keys; + } + + public String getDelimiter() { + return delimiter; + } + + public void setDelimiter(String delimiter) { + this.delimiter = delimiter; + } + + public String getBeginningRegex() { + return beginningRegex; + } + + public void setBeginningRegex(String beginningRegex) { + this.beginningRegex = beginningRegex; + } + + public String getLogRegex() { + return logRegex; + } + + public void setLogRegex(String logRegex) { + this.logRegex = logRegex; + } + + public ExtractRuleExtractRule getExtractRule() { + return extractRule; + } + + public void setExtractRule(ExtractRuleExtractRule extractRule) { + this.extractRule = extractRule; + } + + public String getTimeKey() { + return timeKey; + } + + public void setTimeKey(String timeKey) { + this.timeKey = timeKey; + } + + public String getTimeFormat() { + return timeFormat; + } + + public void setTimeFormat(String timeFormat) { + this.timeFormat = timeFormat; + } + + public String getUnMatchUpload() { + return unMatchUpload; + } + + public void setUnMatchUpload(String unMatchUpload) { + this.unMatchUpload = unMatchUpload; + } + + public String getUnMatchKey() { + return unMatchKey; + } + + public void setUnMatchKey(String unMatchKey) { + this.unMatchKey = unMatchKey; + } + + public String getDelimiterBase64() { + return delimiterBase64; + } + + public void setDelimiterBase64(String delimiterBase64) { + this.delimiterBase64 = delimiterBase64; + } + + public String getBeginningRegexBase64() { + return beginningRegexBase64; + } + + public void setBeginningRegexBase64(String beginningRegexBase64) { + this.beginningRegexBase64 = beginningRegexBase64; + } + } + + public static class ExtractRuleExtractRule extends Request { + + /** Base64 编码的日志提取正则表达式。 */ + @UCloudParam("LogRegexBase64") + private String logRegexBase64; + + public String getLogRegexBase64() { + return logRegexBase64; + } + + public void setLogRegexBase64(String logRegexBase64) { + this.logRegexBase64 = logRegexBase64; + } + } + + public static class InputDetail extends Request { + + /** 日志输入类型。支持 container_file 和 container_stdout */ + @NotEmpty + @UCloudParam("Type") + private String type; + + /** */ + @UCloudParam("Metadata") + private InputDetailMetadata metadata; + + /** */ + @UCloudParam("FilePaths") + private List filePaths; + + /** all、stdout、stderr,默认 all (用于 InputDetail.Type = container_stdout) */ + @UCloudParam("Stream") + private String stream; + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public InputDetailMetadata getMetadata() { + return metadata; + } + + public void setMetadata(InputDetailMetadata metadata) { + this.metadata = metadata; + } + + public List getFilePaths() { + return filePaths; + } + + public void setFilePaths(List filePaths) { + this.filePaths = filePaths; + } + + public String getStream() { + return stream; + } + + public void setStream(String stream) { + this.stream = stream; + } + } + + public static class InputDetailFilePaths extends Request { + + /** 定义采集路径 */ + @UCloudParam("Path") + private String path; + + /** 定义采集路径的文件名 */ + @UCloudParam("File") + private String file; + + public String getPath() { + return path; + } + + public void setPath(String path) { + this.path = path; + } + + public String getFile() { + return file; + } + + public void setFile(String file) { + this.file = file; + } + } + + public static class InputDetailMetadata extends Request { + + /** + * 指定具体要采集元数据的容器名。如果留空,则不采集容器的元数据,可选字段:container_name,namespace,pod_name,pod_ip,pod_uid,container_id,image_name。Pod + * Label 元数据通过指定 InputDetail.Metadata.Labels字段。 + */ + @UCloudParam("Container") + private String container; + + /** + * 定义要采集哪些 Pod 的标签 (Labels)。可选值: * (采集所有标签), "app,version" (仅采集 app 和 version), "" + * (不采集任何标签)。 + */ + @UCloudParam("Labels") + private String labels; + + public String getContainer() { + return container; + } + + public void setContainer(String container) { + this.container = container; + } + + public String getLabels() { + return labels; + } + + public void setLabels(String labels) { + this.labels = labels; + } + } + + public static class MatchRule extends Request { + + /** 容器名称匹配操作符。支持:in(包含),notin(不包含) */ + @UCloudParam("ContainerOperator") + private String containerOperator; + + /** 要匹配的容器名称,*表示所有容器,用逗号分隔 */ + @UCloudParam("Container") + private String container; + + /** */ + @UCloudParam("Workloads") + private List workloads; + + /** */ + @UCloudParam("PodLabels") + private MatchRulePodLabels podLabels; + + public String getContainerOperator() { + return containerOperator; + } + + public void setContainerOperator(String containerOperator) { + this.containerOperator = containerOperator; + } + + public String getContainer() { + return container; + } + + public void setContainer(String container) { + this.container = container; + } + + public List getWorkloads() { + return workloads; + } + + public void setWorkloads(List workloads) { + this.workloads = workloads; + } + + public MatchRulePodLabels getPodLabels() { + return podLabels; + } + + public void setPodLabels(MatchRulePodLabels podLabels) { + this.podLabels = podLabels; + } + } + + public static class MatchRulePodLabels extends Request { + + /** 指定/排除命名空间, 可选值: in/notin */ + @UCloudParam("NamespaceOperator") + private String namespaceOperator; + + /** 命名空间名称 */ + @UCloudParam("Namespace") + private String namespace; + + /** */ + @UCloudParam("Labels") + private List labels; + + public String getNamespaceOperator() { + return namespaceOperator; + } + + public void setNamespaceOperator(String namespaceOperator) { + this.namespaceOperator = namespaceOperator; + } + + public String getNamespace() { + return namespace; + } + + public void setNamespace(String namespace) { + this.namespace = namespace; + } + + public List getLabels() { + return labels; + } + + public void setLabels(List labels) { + this.labels = labels; + } + } + + public static class MatchRulePodLabelsLabels extends Request { + + /** 按 Pod 标签匹配时,要匹配的标签的 Key。 */ + @UCloudParam("Key") + private String key; + + /** 按 Pod 标签匹配时,标签值的匹配操作符。可选值: in, notin。 */ + @UCloudParam("ValueOperator") + private String valueOperator; + + /** 按 Pod 标签匹配时,要匹配的标签的值。 */ + @UCloudParam("Value") + private String value; + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValueOperator() { + return valueOperator; + } + + public void setValueOperator(String valueOperator) { + this.valueOperator = valueOperator; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + + public static class MatchRuleWorkloads extends Request { + + /** 按工作负载匹配时,工作负载所在的命名空间。 */ + @UCloudParam("Namespace") + private String namespace; + + /** 按工作负载匹配时,工作负载的类型,例如 deployment, statefulset, daemonset,job, cronjob。 */ + @UCloudParam("Type") + private String type; + + /** 按工作负载匹配时,工作负载的名称。 */ + @UCloudParam("Name") + private String name; + + public String getNamespace() { + return namespace; + } + + public void setNamespace(String namespace) { + this.namespace = namespace; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + } +} diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/CreateUK8SULSConfigResponse.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/CreateUK8SULSConfigResponse.java new file mode 100644 index 00000000..3bc3c865 --- /dev/null +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/CreateUK8SULSConfigResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uk8s.models; + + + +import cn.ucloud.common.response.Response; + +public class CreateUK8SULSConfigResponse extends Response {} diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DeleteUK8SULSConfigRequest.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DeleteUK8SULSConfigRequest.java new file mode 100644 index 00000000..b3015001 --- /dev/null +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DeleteUK8SULSConfigRequest.java @@ -0,0 +1,86 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uk8s.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DeleteUK8SULSConfigRequest extends Request { + + /** 地域。参见地域和可用区列表。 */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见可用区列表。 */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** 项目ID。不填写为默认项目,子帐号必须填写。请参考GetProjectList接口。 */ + @UCloudParam("ProjectId") + private String projectId; + + /** 要操作的 UK8S 集群的 ID。 */ + @NotEmpty + @UCloudParam("ClusterId") + private String clusterId; + + /** 要删除的日志的采集规则的名称。 */ + @NotEmpty + @UCloudParam("Name") + private String name; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getClusterId() { + return clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } +} diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DeleteUK8SULSConfigResponse.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DeleteUK8SULSConfigResponse.java new file mode 100644 index 00000000..97bb9b7a --- /dev/null +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DeleteUK8SULSConfigResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uk8s.models; + + + +import cn.ucloud.common.response.Response; + +public class DeleteUK8SULSConfigResponse extends Response {} diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/ListUK8SULSConfigRequest.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/ListUK8SULSConfigRequest.java new file mode 100644 index 00000000..23fd2799 --- /dev/null +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/ListUK8SULSConfigRequest.java @@ -0,0 +1,88 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uk8s.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ListUK8SULSConfigRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 日志服务中用于接收日志的目标 TopicId。 */ + @NotEmpty + @UCloudParam("TopicID") + private String topicID; + + /** 集群 Id,如果不填,返回该账号该地域所有集群的 ULSConfig */ + @UCloudParam("ClusterId") + private String clusterId; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getTopicID() { + return topicID; + } + + public void setTopicID(String topicID) { + this.topicID = topicID; + } + + public String getClusterId() { + return clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + } +} diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/ListUK8SULSConfigResponse.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/ListUK8SULSConfigResponse.java new file mode 100644 index 00000000..ac800e2d --- /dev/null +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/ListUK8SULSConfigResponse.java @@ -0,0 +1,512 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uk8s.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class ListUK8SULSConfigResponse extends Response { + + /** 日志服务配置,见 ClusterLogConfig */ + @SerializedName("LogConfig") + private List logConfig; + + public List getLogConfig() { + return logConfig; + } + + public void setLogConfig(List logConfig) { + this.logConfig = logConfig; + } + + public static class ULSExtractRule extends Response { + + /** 采集策略。可选值: full (全量采集存量日志), increment (从当前时间点增量采集)。默认为 full。 */ + @SerializedName("CollectPolicy") + private String collectPolicy; + + /** 日志原文的编码格式。可选值: utf-8, gbk。默认为 utf-8。 */ + @SerializedName("Encode") + private String encode; + + /** 日志解析类型,决定了如何结构化日志。 */ + @SerializedName("LogType") + private String logType; + + /** 当 LogType 为delimiter_log 时可选,可选字段 ' ',' ','|',';',',' */ + @SerializedName("Delimiter") + private String delimiter; + + /** 行首正则表达式。当 logType 为多行模式 (如 multiline_log 或 multiline_fullregex_log) 时,用于标识一条新日志的开始。 */ + @SerializedName("BeginningRegex") + private String beginningRegex; + + /** 日志提取正则表达式。当 logType 为正则模式 (如 fullregex_log 或 multiline_fullregex_log) 时,用于从日志中提取字段。 */ + @SerializedName("LogRegex") + private String logRegex; + + /** 指定时间字段。 */ + @SerializedName("TimeKey") + private String timeKey; + + /** timeKey 对应的时间格式。如: %Y-%m-%d %H:%M:%S */ + @SerializedName("TimeFormat") + private String timeFormat; + + /** 是否上传解析失败的日志。true 表示上传,false 表示丢弃。默认为 false。 */ + @SerializedName("UnMatchUpload") + private String unMatchUpload; + + /** 如果 unMatchUpload 为 true,无法解析的日志原文将被存放在此字段指定的 Key 下。默认为 LogParseFailure。 */ + @SerializedName("UnMatchKey") + private String unMatchKey; + + public String getCollectPolicy() { + return collectPolicy; + } + + public void setCollectPolicy(String collectPolicy) { + this.collectPolicy = collectPolicy; + } + + public String getEncode() { + return encode; + } + + public void setEncode(String encode) { + this.encode = encode; + } + + public String getLogType() { + return logType; + } + + public void setLogType(String logType) { + this.logType = logType; + } + + public String getDelimiter() { + return delimiter; + } + + public void setDelimiter(String delimiter) { + this.delimiter = delimiter; + } + + public String getBeginningRegex() { + return beginningRegex; + } + + public void setBeginningRegex(String beginningRegex) { + this.beginningRegex = beginningRegex; + } + + public String getLogRegex() { + return logRegex; + } + + public void setLogRegex(String logRegex) { + this.logRegex = logRegex; + } + + public String getTimeKey() { + return timeKey; + } + + public void setTimeKey(String timeKey) { + this.timeKey = timeKey; + } + + public String getTimeFormat() { + return timeFormat; + } + + public void setTimeFormat(String timeFormat) { + this.timeFormat = timeFormat; + } + + public String getUnMatchUpload() { + return unMatchUpload; + } + + public void setUnMatchUpload(String unMatchUpload) { + this.unMatchUpload = unMatchUpload; + } + + public String getUnMatchKey() { + return unMatchKey; + } + + public void setUnMatchKey(String unMatchKey) { + this.unMatchKey = unMatchKey; + } + } + + public static class ULSFilePaths extends Response { + + /** 定义采集路径 */ + @SerializedName("Path") + private String path; + + /** 采集文件 */ + @SerializedName("File") + private String file; + + public String getPath() { + return path; + } + + public void setPath(String path) { + this.path = path; + } + + public String getFile() { + return file; + } + + public void setFile(String file) { + this.file = file; + } + } + + public static class ULSInputDetail extends Response { + + /** 采集路径,数组。 */ + @SerializedName("FilePaths") + private List filePaths; + + /** 日志输入类型。当前主要支持 container_file,表示采集容器标准输出或文件。 */ + @SerializedName("Type") + private String type; + + /** 定义哪些容器相关的元数据需要附加到日志中。 */ + @SerializedName("InputMetadata") + private ULSInputMetadata inputMetadata; + + public List getFilePaths() { + return filePaths; + } + + public void setFilePaths(List filePaths) { + this.filePaths = filePaths; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public ULSInputMetadata getInputMetadata() { + return inputMetadata; + } + + public void setInputMetadata(ULSInputMetadata inputMetadata) { + this.inputMetadata = inputMetadata; + } + } + + public static class ULSInputMetadata extends Response { + + /** + * 指定具体要采集元数据的容器名。如果留空,则不采集容器的元数据,可选字段:container_name,namespace,pod_name,pod_ip,pod_uid,container_id,image_name。Pod + * Label 元数据通过指定 InputDetail.Metadata.Labels 字段。 + */ + @SerializedName("Container") + private String container; + + /** + * 定义要采集哪些 Pod 的标签 (Labels)。可选值:*:采集所有标签。app,version:仅采集 app 和 version + * 这两个标签。""(空字符串):不采集任何标签。 + */ + @SerializedName("Labels") + private String labels; + + public String getContainer() { + return container; + } + + public void setContainer(String container) { + this.container = container; + } + + public String getLabels() { + return labels; + } + + public void setLabels(String labels) { + this.labels = labels; + } + } + + public static class ULSLabels extends Response { + + /** 要匹配的标签的 Key。 */ + @SerializedName("Key") + private String key; + + /** 标签值的匹配操作符。可选值: in, notin。 */ + @SerializedName("ValueOperator") + private String valueOperator; + + /** 要匹配的标签的值。 */ + @SerializedName("Value") + private String value; + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValueOperator() { + return valueOperator; + } + + public void setValueOperator(String valueOperator) { + this.valueOperator = valueOperator; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + + public static class ULSLogConfig extends Response { + + /** uk8s集群id */ + @SerializedName("ClusterId") + private String clusterId; + + /** 机器组 */ + @SerializedName("MachineGroup") + private String machineGroup; + + /** 定义日志的提取、解析和格式化规则。见 ULSExtractRule */ + @SerializedName("ExtractRule") + private ULSExtractRule extractRule; + + /** 定义日志的输入来源(例如容器文件)。见 ULSInputDetail */ + @SerializedName("InputDetail") + private ULSInputDetail inputDetail; + + /** 定义此采集规则要匹配的目标 Pod 或工作负载。 见 ULSMatchRule */ + @SerializedName("MatchRule") + private ULSMatchRule matchRule; + + /** 日志服务中用于接收日志的目标 Topic ID。 */ + @SerializedName("TopicID") + private String topicID; + + /** 采集配置规则名称 */ + @SerializedName("Name") + private String name; + + public String getClusterId() { + return clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + } + + public String getMachineGroup() { + return machineGroup; + } + + public void setMachineGroup(String machineGroup) { + this.machineGroup = machineGroup; + } + + public ULSExtractRule getExtractRule() { + return extractRule; + } + + public void setExtractRule(ULSExtractRule extractRule) { + this.extractRule = extractRule; + } + + public ULSInputDetail getInputDetail() { + return inputDetail; + } + + public void setInputDetail(ULSInputDetail inputDetail) { + this.inputDetail = inputDetail; + } + + public ULSMatchRule getMatchRule() { + return matchRule; + } + + public void setMatchRule(ULSMatchRule matchRule) { + this.matchRule = matchRule; + } + + public String getTopicID() { + return topicID; + } + + public void setTopicID(String topicID) { + this.topicID = topicID; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + } + + public static class ULSMatchRule extends Response { + + /** 容器名称匹配操作符。支持:in(包含),notin(不包含) */ + @SerializedName("ContainerOperator") + private String containerOperator; + + /** 要匹配的容器名称,*表示所有容器,用逗号分隔 */ + @SerializedName("Container") + private String container; + + /** 按工作负载进行匹配。 */ + @SerializedName("Workloads") + private List workloads; + + /** 按 Pod 的标签进行匹配,提供更灵活的选择。 */ + @SerializedName("PodLabels") + private ULSPodLabelsMatch podLabels; + + public String getContainerOperator() { + return containerOperator; + } + + public void setContainerOperator(String containerOperator) { + this.containerOperator = containerOperator; + } + + public String getContainer() { + return container; + } + + public void setContainer(String container) { + this.container = container; + } + + public List getWorkloads() { + return workloads; + } + + public void setWorkloads(List workloads) { + this.workloads = workloads; + } + + public ULSPodLabelsMatch getPodLabels() { + return podLabels; + } + + public void setPodLabels(ULSPodLabelsMatch podLabels) { + this.podLabels = podLabels; + } + } + + public static class ULSPodLabelsMatch extends Response { + + /** 命名空间名称的匹配操作符。可选值: in, notin。 */ + @SerializedName("NamespaceOperator") + private String namespaceOperator; + + /** 要匹配的命名空间。namespaceOperator 存在时必需。 */ + @SerializedName("Namespace") + private String namespace; + + /** 一个标签选择器数组,用于定义匹配的标签条件。 */ + @SerializedName("Labels") + private List labels; + + public String getNamespaceOperator() { + return namespaceOperator; + } + + public void setNamespaceOperator(String namespaceOperator) { + this.namespaceOperator = namespaceOperator; + } + + public String getNamespace() { + return namespace; + } + + public void setNamespace(String namespace) { + this.namespace = namespace; + } + + public List getLabels() { + return labels; + } + + public void setLabels(List labels) { + this.labels = labels; + } + } + + public static class ULSWorkloadMatch extends Response { + + /** 工作负载所在的命名空间。 */ + @SerializedName("Namespace") + private String namespace; + + /** 工作负载的类型,例如 deployment, statefulset, daemonset,cronjob,job。 */ + @SerializedName("Type") + private String type; + + /** 工作负载的名称。 */ + @SerializedName("Name") + private String name; + + public String getNamespace() { + return namespace; + } + + public void setNamespace(String namespace) { + this.namespace = namespace; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + } +} diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/UpdateUK8SULSConfigRequest.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/UpdateUK8SULSConfigRequest.java new file mode 100644 index 00000000..721db062 --- /dev/null +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/UpdateUK8SULSConfigRequest.java @@ -0,0 +1,591 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uk8s.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +import java.util.List; + +public class UpdateUK8SULSConfigRequest extends Request { + + /** 地域。参见地域和可用区列表:https://docs.ucloud.cn/api/summary/regionlist */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见地域和可用区列表:https://docs.ucloud.cn/api/summary/regionlist */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。请参考GetProjectList接口:https://docs.ucloud.cn/api/summary/get_project_list + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 要修改的日志采集规则名称。名称长度不能超过253个字符,只能包含小写字母、数字、破折号和点,并且必须以字母或数字开头和结尾。 */ + @NotEmpty + @UCloudParam("Name") + private String name; + + /** UK8S集群ID。 */ + @NotEmpty + @UCloudParam("ClusterId") + private String clusterId; + + /** 日志服务中用于接收日志的目标Topic ID。不填写时保持原Topic ID不变。 */ + @UCloudParam("TopicID") + private String topicID; + + /** */ + @UCloudParam("ExtractRule") + private ExtractRule extractRule; + + /** */ + @UCloudParam("InputDetail") + private InputDetail inputDetail; + + /** */ + @UCloudParam("MatchRule") + private MatchRule matchRule; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getClusterId() { + return clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + } + + public String getTopicID() { + return topicID; + } + + public void setTopicID(String topicID) { + this.topicID = topicID; + } + + public ExtractRule getExtractRule() { + return extractRule; + } + + public void setExtractRule(ExtractRule extractRule) { + this.extractRule = extractRule; + } + + public InputDetail getInputDetail() { + return inputDetail; + } + + public void setInputDetail(InputDetail inputDetail) { + this.inputDetail = inputDetail; + } + + public MatchRule getMatchRule() { + return matchRule; + } + + public void setMatchRule(MatchRule matchRule) { + this.matchRule = matchRule; + } + + public static class ExtractRule extends Request { + + /** 采集策略。可选值:full(全量采集存量日志)、increment(从当前时间点增量采集)。默认为full。 */ + @UCloudParam("CollectPolicy") + private String collectPolicy; + + /** 日志原文的编码格式。可选值:utf-8、gbk。默认为utf-8。 */ + @UCloudParam("Encode") + private String encode; + + /** + * 日志解析类型。可选值:json、delimiter、full_regex、multi_line_full_regex、multi_line_delimiter、minimal_list、multi_line。 + */ + @NotEmpty + @UCloudParam("LogType") + private String logType; + + /** + * 行首正则表达式。multi_line、multi_line_full_regex或multi_line_delimiter模式下,BeginningRegex和BeginningRegexBase64必须至少填写一个。 + */ + @UCloudParam("BeginningRegex") + private String beginningRegex; + + /** Base64编码的行首正则表达式。填写时优先于BeginningRegex。 */ + @UCloudParam("BeginningRegexBase64") + private String beginningRegexBase64; + + /** 日志提取正则表达式。full_regex或multi_line_full_regex模式下,LogRegex和LogRegexBase64必须至少填写一个。 */ + @UCloudParam("LogRegex") + private String logRegex; + + /** Base64编码的日志提取正则表达式。填写时优先于LogRegex。 */ + @UCloudParam("LogRegexBase64") + private String logRegexBase64; + + /** 分隔符。delimiter或multi_line_delimiter模式下可用。可选值:space、tab、|、;、,。 */ + @UCloudParam("Delimiter") + private String delimiter; + + /** Base64编码的分隔符。填写时优先于Delimiter。 */ + @UCloudParam("DelimiterBase64") + private String delimiterBase64; + + /** 包含日志时间的字段名。 */ + @UCloudParam("TimeKey") + private String timeKey; + + /** TimeKey对应的时间格式。json、full_regex或multi_line_full_regex模式下,填写TimeKey时必须同时填写TimeFormat。 */ + @UCloudParam("TimeFormat") + private String timeFormat; + + /** 是否上传解析失败的日志。字符串true表示上传,false表示丢弃。默认为false。 */ + @UCloudParam("UnMatchUpload") + private String unMatchUpload; + + /** 存放无法解析的日志原文的Key。UnMatchUpload为true时必须填写。 */ + @UCloudParam("UnMatchKey") + private String unMatchKey; + + /** 提取后的字段名。仅适用于delimiter、full_regex、multi_line_full_regex和multi_line_delimiter。 */ + @UCloudParam("Keys") + private List keys; + + public String getCollectPolicy() { + return collectPolicy; + } + + public void setCollectPolicy(String collectPolicy) { + this.collectPolicy = collectPolicy; + } + + public String getEncode() { + return encode; + } + + public void setEncode(String encode) { + this.encode = encode; + } + + public String getLogType() { + return logType; + } + + public void setLogType(String logType) { + this.logType = logType; + } + + public String getBeginningRegex() { + return beginningRegex; + } + + public void setBeginningRegex(String beginningRegex) { + this.beginningRegex = beginningRegex; + } + + public String getBeginningRegexBase64() { + return beginningRegexBase64; + } + + public void setBeginningRegexBase64(String beginningRegexBase64) { + this.beginningRegexBase64 = beginningRegexBase64; + } + + public String getLogRegex() { + return logRegex; + } + + public void setLogRegex(String logRegex) { + this.logRegex = logRegex; + } + + public String getLogRegexBase64() { + return logRegexBase64; + } + + public void setLogRegexBase64(String logRegexBase64) { + this.logRegexBase64 = logRegexBase64; + } + + public String getDelimiter() { + return delimiter; + } + + public void setDelimiter(String delimiter) { + this.delimiter = delimiter; + } + + public String getDelimiterBase64() { + return delimiterBase64; + } + + public void setDelimiterBase64(String delimiterBase64) { + this.delimiterBase64 = delimiterBase64; + } + + public String getTimeKey() { + return timeKey; + } + + public void setTimeKey(String timeKey) { + this.timeKey = timeKey; + } + + public String getTimeFormat() { + return timeFormat; + } + + public void setTimeFormat(String timeFormat) { + this.timeFormat = timeFormat; + } + + public String getUnMatchUpload() { + return unMatchUpload; + } + + public void setUnMatchUpload(String unMatchUpload) { + this.unMatchUpload = unMatchUpload; + } + + public String getUnMatchKey() { + return unMatchKey; + } + + public void setUnMatchKey(String unMatchKey) { + this.unMatchKey = unMatchKey; + } + + public List getKeys() { + return keys; + } + + public void setKeys(List keys) { + this.keys = keys; + } + } + + public static class InputDetail extends Request { + + /** 日志输入类型。可选值:container_file、container_stdout。 */ + @NotEmpty + @UCloudParam("Type") + private String type; + + /** 容器标准输出流类型。仅适用于container_stdout,可选值:all、stdout、stderr,默认为all。 */ + @UCloudParam("Stream") + private String stream; + + /** */ + @UCloudParam("Metadata") + private InputDetailMetadata metadata; + + /** */ + @UCloudParam("FilePaths") + private List filePaths; + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getStream() { + return stream; + } + + public void setStream(String stream) { + this.stream = stream; + } + + public InputDetailMetadata getMetadata() { + return metadata; + } + + public void setMetadata(InputDetailMetadata metadata) { + this.metadata = metadata; + } + + public List getFilePaths() { + return filePaths; + } + + public void setFilePaths(List filePaths) { + this.filePaths = filePaths; + } + } + + public static class InputDetailFilePaths extends Request { + + /** 日志采集路径。仅适用于container_file。 */ + @UCloudParam("Path") + private String path; + + /** 要采集的文件名。仅适用于container_file。 */ + @UCloudParam("File") + private String file; + + public String getPath() { + return path; + } + + public void setPath(String path) { + this.path = path; + } + + public String getFile() { + return file; + } + + public void setFile(String file) { + this.file = file; + } + } + + public static class InputDetailMetadata extends Request { + + /** + * 要附加到日志中的容器元数据字段,多个字段使用逗号分隔。可选字段:container_name、namespace、pod_name、pod_ip、pod_uid、container_id、image_name。留空表示不采集容器元数据。 + */ + @UCloudParam("Container") + private String container; + + /** 要采集的Pod标签。*表示采集所有标签,app,version表示仅采集指定标签,空字符串表示不采集标签。 */ + @UCloudParam("Labels") + private String labels; + + public String getContainer() { + return container; + } + + public void setContainer(String container) { + this.container = container; + } + + public String getLabels() { + return labels; + } + + public void setLabels(String labels) { + this.labels = labels; + } + } + + public static class MatchRule extends Request { + + /** 要匹配的容器名称,*表示所有容器,多个名称使用逗号分隔。 */ + @UCloudParam("Container") + private String container; + + /** 容器名称匹配操作符。可选值:in、notin。填写该参数时必须同时填写MatchRule.Container。 */ + @UCloudParam("ContainerOperator") + private String containerOperator; + + /** */ + @UCloudParam("Workloads") + private List workloads; + + /** */ + @UCloudParam("PodLabels") + private MatchRulePodLabels podLabels; + + public String getContainer() { + return container; + } + + public void setContainer(String container) { + this.container = container; + } + + public String getContainerOperator() { + return containerOperator; + } + + public void setContainerOperator(String containerOperator) { + this.containerOperator = containerOperator; + } + + public List getWorkloads() { + return workloads; + } + + public void setWorkloads(List workloads) { + this.workloads = workloads; + } + + public MatchRulePodLabels getPodLabels() { + return podLabels; + } + + public void setPodLabels(MatchRulePodLabels podLabels) { + this.podLabels = podLabels; + } + } + + public static class MatchRulePodLabels extends Request { + + /** + * 按Pod标签匹配时,命名空间名称的匹配操作符。可选值:in、notin。填写该参数时必须同时填写MatchRule.PodLabels.Namespace。PodLabels和Workloads不能同时设置。 + */ + @UCloudParam("NamespaceOperator") + private String namespaceOperator; + + /** 按Pod标签匹配时要匹配的命名空间。 */ + @UCloudParam("Namespace") + private String namespace; + + /** */ + @UCloudParam("Labels") + private List labels; + + public String getNamespaceOperator() { + return namespaceOperator; + } + + public void setNamespaceOperator(String namespaceOperator) { + this.namespaceOperator = namespaceOperator; + } + + public String getNamespace() { + return namespace; + } + + public void setNamespace(String namespace) { + this.namespace = namespace; + } + + public List getLabels() { + return labels; + } + + public void setLabels(List labels) { + this.labels = labels; + } + } + + public static class MatchRulePodLabelsLabels extends Request { + + /** 按Pod标签匹配时,要匹配的标签Key。 */ + @UCloudParam("Key") + private String key; + + /** 标签值匹配操作符。可选值:in、notin。 */ + @UCloudParam("ValueOperator") + private String valueOperator; + + /** 要匹配的标签值。 */ + @UCloudParam("Value") + private String value; + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValueOperator() { + return valueOperator; + } + + public void setValueOperator(String valueOperator) { + this.valueOperator = valueOperator; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + + public static class MatchRuleWorkloads extends Request { + + /** 按工作负载匹配时,工作负载所在的命名空间。Workloads和PodLabels不能同时设置。 */ + @UCloudParam("Namespace") + private String namespace; + + /** 工作负载类型。可选值:deployment、statefulset、daemonset、job、cronjob。 */ + @UCloudParam("Type") + private String type; + + /** 工作负载名称。 */ + @UCloudParam("Name") + private String name; + + public String getNamespace() { + return namespace; + } + + public void setNamespace(String namespace) { + this.namespace = namespace; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + } +} diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/UpdateUK8SULSConfigResponse.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/UpdateUK8SULSConfigResponse.java new file mode 100644 index 00000000..de9b153d --- /dev/null +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/UpdateUK8SULSConfigResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uk8s.models; + + + +import cn.ucloud.common.response.Response; + +public class UpdateUK8SULSConfigResponse extends Response {} diff --git a/ucloud-sdk-java-ukafka/pom.xml b/ucloud-sdk-java-ukafka/pom.xml index bc1abbdb..6a6022e2 100644 --- a/ucloud-sdk-java-ukafka/pom.xml +++ b/ucloud-sdk-java-ukafka/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-ukafka ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-ukms/pom.xml b/ucloud-sdk-java-ukms/pom.xml index 4787809f..93f60795 100644 --- a/ucloud-sdk-java-ukms/pom.xml +++ b/ucloud-sdk-java-ukms/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-ukms ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-ulb/pom.xml b/ucloud-sdk-java-ulb/pom.xml index babcfea5..1f527fd0 100644 --- a/ucloud-sdk-java-ulb/pom.xml +++ b/ucloud-sdk-java-ulb/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-ulb ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-ulighthost/pom.xml b/ucloud-sdk-java-ulighthost/pom.xml index b24141ff..c9d7fdbc 100644 --- a/ucloud-sdk-java-ulighthost/pom.xml +++ b/ucloud-sdk-java-ulighthost/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-ulighthost ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-ulog/pom.xml b/ucloud-sdk-java-ulog/pom.xml index 9d9f58aa..193b3843 100644 --- a/ucloud-sdk-java-ulog/pom.xml +++ b/ucloud-sdk-java-ulog/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-ulog ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-ulogservice/pom.xml b/ucloud-sdk-java-ulogservice/pom.xml index a9704be6..b6a9495f 100644 --- a/ucloud-sdk-java-ulogservice/pom.xml +++ b/ucloud-sdk-java-ulogservice/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-ulogservice ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-umem/pom.xml b/ucloud-sdk-java-umem/pom.xml index 0343f8d3..4e53504b 100644 --- a/ucloud-sdk-java-umem/pom.xml +++ b/ucloud-sdk-java-umem/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-umem ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-umon/pom.xml b/ucloud-sdk-java-umon/pom.xml index a4a18a96..1259a0b4 100644 --- a/ucloud-sdk-java-umon/pom.xml +++ b/ucloud-sdk-java-umon/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-umon ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-umongodb/pom.xml b/ucloud-sdk-java-umongodb/pom.xml index 1c71cd9e..160d5345 100644 --- a/ucloud-sdk-java-umongodb/pom.xml +++ b/ucloud-sdk-java-umongodb/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-umongodb ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-unet/pom.xml b/ucloud-sdk-java-unet/pom.xml index 0239aa1e..d72dfd46 100644 --- a/ucloud-sdk-java-unet/pom.xml +++ b/ucloud-sdk-java-unet/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-unet ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-upfs/pom.xml b/ucloud-sdk-java-upfs/pom.xml index 8e61d69d..37ba843b 100644 --- a/ucloud-sdk-java-upfs/pom.xml +++ b/ucloud-sdk-java-upfs/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-upfs ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-upgsql/pom.xml b/ucloud-sdk-java-upgsql/pom.xml index fda9938c..fe2a6e21 100644 --- a/ucloud-sdk-java-upgsql/pom.xml +++ b/ucloud-sdk-java-upgsql/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-upgsql ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-uphone/pom.xml b/ucloud-sdk-java-uphone/pom.xml index 60549c42..cdc4b745 100644 --- a/ucloud-sdk-java-uphone/pom.xml +++ b/ucloud-sdk-java-uphone/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-uphone ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-uphost/pom.xml b/ucloud-sdk-java-uphost/pom.xml index b4383343..f06c7600 100644 --- a/ucloud-sdk-java-uphost/pom.xml +++ b/ucloud-sdk-java-uphost/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-uphost ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-uslk/pom.xml b/ucloud-sdk-java-uslk/pom.xml index 9e44e0e0..ed8174c3 100644 --- a/ucloud-sdk-java-uslk/pom.xml +++ b/ucloud-sdk-java-uslk/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-uslk ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-usms/pom.xml b/ucloud-sdk-java-usms/pom.xml index 96a0c342..34cf33c2 100644 --- a/ucloud-sdk-java-usms/pom.xml +++ b/ucloud-sdk-java-usms/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-usms ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-usnap/pom.xml b/ucloud-sdk-java-usnap/pom.xml index b790088c..976048d0 100644 --- a/ucloud-sdk-java-usnap/pom.xml +++ b/ucloud-sdk-java-usnap/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-usnap ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-uvms/pom.xml b/ucloud-sdk-java-uvms/pom.xml index 440df217..b8df1cc6 100644 --- a/ucloud-sdk-java-uvms/pom.xml +++ b/ucloud-sdk-java-uvms/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-uvms ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-uwsc/pom.xml b/ucloud-sdk-java-uwsc/pom.xml index 1fe1c9e1..3863fbfa 100644 --- a/ucloud-sdk-java-uwsc/pom.xml +++ b/ucloud-sdk-java-uwsc/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-uwsc ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release diff --git a/ucloud-sdk-java-vpc/pom.xml b/ucloud-sdk-java-vpc/pom.xml index 9f2ea670..d1b52f7b 100644 --- a/ucloud-sdk-java-vpc/pom.xml +++ b/ucloud-sdk-java-vpc/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.91-release + 1.2.92-release 4.0.0 ucloud-sdk-java-vpc ucloud-sdk-java - 1.2.91-release + 1.2.92-release cn.ucloud ucloud-sdk-java-common - 1.2.91-release + 1.2.92-release