diff --git a/VERSION b/VERSION index d9444783..9020c41c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.38-release +1.2.39-release diff --git a/examples/generic/pom.xml b/examples/generic/pom.xml index 65818a8d..8e0e5d0c 100644 --- a/examples/generic/pom.xml +++ b/examples/generic/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 @@ -18,7 +18,7 @@ cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/examples/uhost/pom.xml b/examples/uhost/pom.xml index 169027c5..87330e45 100644 --- a/examples/uhost/pom.xml +++ b/examples/uhost/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 @@ -18,7 +18,7 @@ cn.ucloud ucloud-sdk-java-uhost - 1.2.38-release + 1.2.39-release diff --git a/pom.xml b/pom.xml index 77878fab..777749ab 100644 --- a/pom.xml +++ b/pom.xml @@ -7,12 +7,13 @@ cn.ucloud ucloud-sdk-java pom - 1.2.38-release + 1.2.39-release ucloud-sdk-java-common ucloud-sdk-java-cloudwatch ucloud-sdk-java-cube ucloud-sdk-java-ipsecvpn + ucloud-sdk-java-label ucloud-sdk-java-nlb ucloud-sdk-java-pathx ucloud-sdk-java-sts diff --git a/ucloud-sdk-java-cloudwatch/pom.xml b/ucloud-sdk-java-cloudwatch/pom.xml index bc24df4e..f79c8ee7 100644 --- a/ucloud-sdk-java-cloudwatch/pom.xml +++ b/ucloud-sdk-java-cloudwatch/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-cloudwatch - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-common/pom.xml b/ucloud-sdk-java-common/pom.xml index 45f7a8a3..65b9a452 100644 --- a/ucloud-sdk-java-common/pom.xml +++ b/ucloud-sdk-java-common/pom.xml @@ -7,12 +7,12 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-cube/pom.xml b/ucloud-sdk-java-cube/pom.xml index 82d630da..ee251045 100644 --- a/ucloud-sdk-java-cube/pom.xml +++ b/ucloud-sdk-java-cube/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-cube - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-ipsecvpn/pom.xml b/ucloud-sdk-java-ipsecvpn/pom.xml index d9652539..4012d4a7 100644 --- a/ucloud-sdk-java-ipsecvpn/pom.xml +++ b/ucloud-sdk-java-ipsecvpn/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-ipsecvpn - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-label/pom.xml b/ucloud-sdk-java-label/pom.xml new file mode 100644 index 00000000..964f6192 --- /dev/null +++ b/ucloud-sdk-java-label/pom.xml @@ -0,0 +1,49 @@ + + + + + ucloud-sdk-java + cn.ucloud + 1.2.39-release + + + 4.0.0 + ucloud-sdk-java-label + 1.2.39-release + + + + cn.ucloud + ucloud-sdk-java-common + 1.2.39-release + + + + com.google.code.gson + gson + + + + commons-codec + commons-codec + + + org.apache.commons + commons-lang3 + + + + junit + junit + test + + + + org.slf4j + slf4j-simple + provided + + + diff --git a/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/client/LabelClient.java b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/client/LabelClient.java new file mode 100644 index 00000000..bfce0ab9 --- /dev/null +++ b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/client/LabelClient.java @@ -0,0 +1,151 @@ +/** + * 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.label.client; + +import cn.ucloud.common.client.DefaultClient; +import cn.ucloud.common.config.Config; +import cn.ucloud.common.credential.Credential; +import cn.ucloud.common.exception.UCloudException; +import cn.ucloud.label.models.BindLabelsRequest; +import cn.ucloud.label.models.BindLabelsResponse; +import cn.ucloud.label.models.CreateLabelsRequest; +import cn.ucloud.label.models.CreateLabelsResponse; +import cn.ucloud.label.models.DeleteLabelsRequest; +import cn.ucloud.label.models.DeleteLabelsResponse; +import cn.ucloud.label.models.ListLabelsByResourceIdsRequest; +import cn.ucloud.label.models.ListLabelsByResourceIdsResponse; +import cn.ucloud.label.models.ListLabelsRequest; +import cn.ucloud.label.models.ListLabelsResponse; +import cn.ucloud.label.models.ListProjectsByLabelsRequest; +import cn.ucloud.label.models.ListProjectsByLabelsResponse; +import cn.ucloud.label.models.ListResourcesByLabelsRequest; +import cn.ucloud.label.models.ListResourcesByLabelsResponse; +import cn.ucloud.label.models.ListResourcesTypesForLabelRequest; +import cn.ucloud.label.models.ListResourcesTypesForLabelResponse; +import cn.ucloud.label.models.UnbindLabelsRequest; +import cn.ucloud.label.models.UnbindLabelsResponse; + +/** This client is used to call actions of **Label** service */ +public class LabelClient extends DefaultClient implements LabelClientInterface { + public LabelClient(Config config, Credential credential) { + super(config, credential); + } + + /** + * BindLabels - 绑定标签 + * + * @param request Request object + * @throws UCloudException Exception + */ + public BindLabelsResponse bindLabels(BindLabelsRequest request) throws UCloudException { + request.setAction("BindLabels"); + return (BindLabelsResponse) this.invoke(request, BindLabelsResponse.class); + } + + /** + * CreateLabels - 创建标签 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateLabelsResponse createLabels(CreateLabelsRequest request) throws UCloudException { + request.setAction("CreateLabels"); + return (CreateLabelsResponse) this.invoke(request, CreateLabelsResponse.class); + } + + /** + * DeleteLabels - 删除标签 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteLabelsResponse deleteLabels(DeleteLabelsRequest request) throws UCloudException { + request.setAction("DeleteLabels"); + return (DeleteLabelsResponse) this.invoke(request, DeleteLabelsResponse.class); + } + + /** + * ListLabels - 标签列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListLabelsResponse listLabels(ListLabelsRequest request) throws UCloudException { + request.setAction("ListLabels"); + return (ListLabelsResponse) this.invoke(request, ListLabelsResponse.class); + } + + /** + * ListLabelsByResourceIds - 根据资源ID获取标签列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListLabelsByResourceIdsResponse listLabelsByResourceIds( + ListLabelsByResourceIdsRequest request) throws UCloudException { + request.setAction("ListLabelsByResourceIds"); + return (ListLabelsByResourceIdsResponse) + this.invoke(request, ListLabelsByResourceIdsResponse.class); + } + + /** + * ListProjectsByLabels - 根据标签获取项目列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListProjectsByLabelsResponse listProjectsByLabels(ListProjectsByLabelsRequest request) + throws UCloudException { + request.setAction("ListProjectsByLabels"); + return (ListProjectsByLabelsResponse) + this.invoke(request, ListProjectsByLabelsResponse.class); + } + + /** + * ListResourcesByLabels - 根据标签获取资源列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListResourcesByLabelsResponse listResourcesByLabels(ListResourcesByLabelsRequest request) + throws UCloudException { + request.setAction("ListResourcesByLabels"); + return (ListResourcesByLabelsResponse) + this.invoke(request, ListResourcesByLabelsResponse.class); + } + + /** + * ListResourcesTypesForLabel - 获取支持标签的资源类型 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListResourcesTypesForLabelResponse listResourcesTypesForLabel( + ListResourcesTypesForLabelRequest request) throws UCloudException { + request.setAction("ListResourcesTypesForLabel"); + return (ListResourcesTypesForLabelResponse) + this.invoke(request, ListResourcesTypesForLabelResponse.class); + } + + /** + * UnbindLabels - 解绑标签 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UnbindLabelsResponse unbindLabels(UnbindLabelsRequest request) throws UCloudException { + request.setAction("UnbindLabels"); + return (UnbindLabelsResponse) this.invoke(request, UnbindLabelsResponse.class); + } +} diff --git a/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/client/LabelClientInterface.java b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/client/LabelClientInterface.java new file mode 100644 index 00000000..c2f54ebf --- /dev/null +++ b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/client/LabelClientInterface.java @@ -0,0 +1,115 @@ +/** + * 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.label.client; + +import cn.ucloud.common.client.Client; +import cn.ucloud.common.exception.UCloudException; +import cn.ucloud.label.models.BindLabelsRequest; +import cn.ucloud.label.models.BindLabelsResponse; +import cn.ucloud.label.models.CreateLabelsRequest; +import cn.ucloud.label.models.CreateLabelsResponse; +import cn.ucloud.label.models.DeleteLabelsRequest; +import cn.ucloud.label.models.DeleteLabelsResponse; +import cn.ucloud.label.models.ListLabelsByResourceIdsRequest; +import cn.ucloud.label.models.ListLabelsByResourceIdsResponse; +import cn.ucloud.label.models.ListLabelsRequest; +import cn.ucloud.label.models.ListLabelsResponse; +import cn.ucloud.label.models.ListProjectsByLabelsRequest; +import cn.ucloud.label.models.ListProjectsByLabelsResponse; +import cn.ucloud.label.models.ListResourcesByLabelsRequest; +import cn.ucloud.label.models.ListResourcesByLabelsResponse; +import cn.ucloud.label.models.ListResourcesTypesForLabelRequest; +import cn.ucloud.label.models.ListResourcesTypesForLabelResponse; +import cn.ucloud.label.models.UnbindLabelsRequest; +import cn.ucloud.label.models.UnbindLabelsResponse; + +/** This client is used to call actions of **Label** service */ +public interface LabelClientInterface extends Client { + + /** + * BindLabels - 绑定标签 + * + * @param request Request object + * @throws UCloudException Exception + */ + public BindLabelsResponse bindLabels(BindLabelsRequest request) throws UCloudException; + + /** + * CreateLabels - 创建标签 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateLabelsResponse createLabels(CreateLabelsRequest request) throws UCloudException; + + /** + * DeleteLabels - 删除标签 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteLabelsResponse deleteLabels(DeleteLabelsRequest request) throws UCloudException; + + /** + * ListLabels - 标签列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListLabelsResponse listLabels(ListLabelsRequest request) throws UCloudException; + + /** + * ListLabelsByResourceIds - 根据资源ID获取标签列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListLabelsByResourceIdsResponse listLabelsByResourceIds( + ListLabelsByResourceIdsRequest request) throws UCloudException; + + /** + * ListProjectsByLabels - 根据标签获取项目列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListProjectsByLabelsResponse listProjectsByLabels(ListProjectsByLabelsRequest request) + throws UCloudException; + + /** + * ListResourcesByLabels - 根据标签获取资源列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListResourcesByLabelsResponse listResourcesByLabels(ListResourcesByLabelsRequest request) + throws UCloudException; + + /** + * ListResourcesTypesForLabel - 获取支持标签的资源类型 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListResourcesTypesForLabelResponse listResourcesTypesForLabel( + ListResourcesTypesForLabelRequest request) throws UCloudException; + + /** + * UnbindLabels - 解绑标签 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UnbindLabelsResponse unbindLabels(UnbindLabelsRequest request) throws UCloudException; +} diff --git a/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/BindLabelsRequest.java b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/BindLabelsRequest.java new file mode 100644 index 00000000..4856dc88 --- /dev/null +++ b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/BindLabelsRequest.java @@ -0,0 +1,77 @@ +/** + * 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.label.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 BindLabelsRequest extends Request { + + /** 资源id数组 */ + @NotEmpty + @UCloudParam("ResourceIds") + private List resourceIds; + + /** */ + @UCloudParam("Labels") + private List labels; + + public List getResourceIds() { + return resourceIds; + } + + public void setResourceIds(List resourceIds) { + this.resourceIds = resourceIds; + } + + public List getLabels() { + return labels; + } + + public void setLabels(List labels) { + this.labels = labels; + } + + public static class Labels extends Request { + + /** 标签键 */ + @NotEmpty + @UCloudParam("Key") + private String key; + + /** 标签值 */ + @NotEmpty + @UCloudParam("Value") + private String value; + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} diff --git a/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/BindLabelsResponse.java b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/BindLabelsResponse.java new file mode 100644 index 00000000..9d22058b --- /dev/null +++ b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/BindLabelsResponse.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.label.models; + + + +import cn.ucloud.common.response.Response; + +public class BindLabelsResponse extends Response {} diff --git a/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/CreateLabelsRequest.java b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/CreateLabelsRequest.java new file mode 100644 index 00000000..b7d6cbaa --- /dev/null +++ b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/CreateLabelsRequest.java @@ -0,0 +1,64 @@ +/** + * 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.label.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 CreateLabelsRequest extends Request { + + /** */ + @UCloudParam("Labels") + private List labels; + + public List getLabels() { + return labels; + } + + public void setLabels(List labels) { + this.labels = labels; + } + + public static class Labels extends Request { + + /** 标签键 */ + @NotEmpty + @UCloudParam("Key") + private String key; + + /** 标签值 */ + @NotEmpty + @UCloudParam("Value") + private String value; + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} diff --git a/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/CreateLabelsResponse.java b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/CreateLabelsResponse.java new file mode 100644 index 00000000..9b31e0fc --- /dev/null +++ b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/CreateLabelsResponse.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.label.models; + + + +import cn.ucloud.common.response.Response; + +public class CreateLabelsResponse extends Response {} diff --git a/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/DeleteLabelsRequest.java b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/DeleteLabelsRequest.java new file mode 100644 index 00000000..69bc9b64 --- /dev/null +++ b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/DeleteLabelsRequest.java @@ -0,0 +1,64 @@ +/** + * 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.label.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 DeleteLabelsRequest extends Request { + + /** */ + @UCloudParam("Labels") + private List labels; + + public List getLabels() { + return labels; + } + + public void setLabels(List labels) { + this.labels = labels; + } + + public static class Labels extends Request { + + /** 标签键 */ + @NotEmpty + @UCloudParam("Key") + private String key; + + /** 标签值 */ + @NotEmpty + @UCloudParam("Value") + private String value; + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} diff --git a/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/DeleteLabelsResponse.java b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/DeleteLabelsResponse.java new file mode 100644 index 00000000..f2d28e48 --- /dev/null +++ b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/DeleteLabelsResponse.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.label.models; + + + +import cn.ucloud.common.response.Response; + +public class DeleteLabelsResponse extends Response {} diff --git a/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/ListLabelsByResourceIdsRequest.java b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/ListLabelsByResourceIdsRequest.java new file mode 100644 index 00000000..e47dd2d3 --- /dev/null +++ b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/ListLabelsByResourceIdsRequest.java @@ -0,0 +1,60 @@ +/** + * 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.label.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 ListLabelsByResourceIdsRequest extends Request { + + /** 资源id数组 */ + @NotEmpty + @UCloudParam("ResourceIds") + private List resourceIds; + + /** 列表起始位置偏移量,默认为0 */ + @UCloudParam("Offset") + private Integer offset; + + /** 返回数据长度,默认为10,最大100 */ + @UCloudParam("Limit") + private Integer limit; + + public List getResourceIds() { + return resourceIds; + } + + public void setResourceIds(List resourceIds) { + this.resourceIds = resourceIds; + } + + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } +} diff --git a/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/ListLabelsByResourceIdsResponse.java b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/ListLabelsByResourceIdsResponse.java new file mode 100644 index 00000000..24798204 --- /dev/null +++ b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/ListLabelsByResourceIdsResponse.java @@ -0,0 +1,98 @@ +/** + * 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.label.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class ListLabelsByResourceIdsResponse extends Response { + + /** 资源标签总数 */ + @SerializedName("TotalCount") + private Integer totalCount; + + /** 资源标签数组 */ + @SerializedName("Labels") + private List labels; + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getLabels() { + return labels; + } + + public void setLabels(List labels) { + this.labels = labels; + } + + public static class ListLabelsByResourceIdsLabel extends Response { + + /** 资源id */ + @SerializedName("ResourceId") + private String resourceId; + + /** 标签键 */ + @SerializedName("Key") + private String key; + + /** 标签值 */ + @SerializedName("Value") + private String value; + + /** 标签类型,system:系统标签;custom:自定义标签 */ + @SerializedName("Category") + private String category; + + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getCategory() { + return category; + } + + public void setCategory(String category) { + this.category = category; + } + } +} diff --git a/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/ListLabelsRequest.java b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/ListLabelsRequest.java new file mode 100644 index 00000000..132beca3 --- /dev/null +++ b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/ListLabelsRequest.java @@ -0,0 +1,59 @@ +/** + * 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.label.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ListLabelsRequest extends Request { + + /** 标签类型,system:系统标签;custom:自定义标签 */ + @NotEmpty + @UCloudParam("Category") + private String category; + + /** 列表起始位置偏移量,默认为0 */ + @UCloudParam("Offset") + private Integer offset; + + /** 返回数据长度,默认为10,最大100 */ + @UCloudParam("Limit") + private Integer limit; + + public String getCategory() { + return category; + } + + public void setCategory(String category) { + this.category = category; + } + + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } +} diff --git a/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/ListLabelsResponse.java b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/ListLabelsResponse.java new file mode 100644 index 00000000..86f32d03 --- /dev/null +++ b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/ListLabelsResponse.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.label.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class ListLabelsResponse extends Response { + + /** 标签总数 */ + @SerializedName("TotalCount") + private Integer totalCount; + + /** 标签数组 */ + @SerializedName("Labels") + private List labels; + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getLabels() { + return labels; + } + + public void setLabels(List labels) { + this.labels = labels; + } + + public static class ListLabelsLabel extends Response { + + /** 标签键 */ + @SerializedName("Key") + private String key; + + /** 标签值 */ + @SerializedName("Value") + private String value; + + /** 资源数量 */ + @SerializedName("ResourceCount") + private Integer resourceCount; + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + public Integer getResourceCount() { + return resourceCount; + } + + public void setResourceCount(Integer resourceCount) { + this.resourceCount = resourceCount; + } + } +} diff --git a/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/ListProjectsByLabelsRequest.java b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/ListProjectsByLabelsRequest.java new file mode 100644 index 00000000..52dae28b --- /dev/null +++ b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/ListProjectsByLabelsRequest.java @@ -0,0 +1,64 @@ +/** + * 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.label.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 ListProjectsByLabelsRequest extends Request { + + /** */ + @UCloudParam("Labels") + private List labels; + + public List getLabels() { + return labels; + } + + public void setLabels(List labels) { + this.labels = labels; + } + + public static class Labels extends Request { + + /** 标签键 */ + @NotEmpty + @UCloudParam("Key") + private String key; + + /** 标签值 */ + @NotEmpty + @UCloudParam("Value") + private String value; + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} diff --git a/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/ListProjectsByLabelsResponse.java b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/ListProjectsByLabelsResponse.java new file mode 100644 index 00000000..f4c1bac8 --- /dev/null +++ b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/ListProjectsByLabelsResponse.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.label.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class ListProjectsByLabelsResponse extends Response { + + /** 项目列表 */ + @SerializedName("Projects") + private List projects; + + public List getProjects() { + return projects; + } + + public void setProjects(List projects) { + this.projects = projects; + } + + public static class ListProjectsByLabelsProject extends Response { + + /** 项目id */ + @SerializedName("ProjectId") + private String projectId; + + /** 项目名称 */ + @SerializedName("ProjectName") + private String projectName; + + /** 资源类型列表 */ + @SerializedName("ResourceTypes") + private List resourceTypes; + + /** 禁用的资源类型列表 */ + @SerializedName("DisabledResourceTypes") + private List disabledResourceTypes; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getProjectName() { + return projectName; + } + + public void setProjectName(String projectName) { + this.projectName = projectName; + } + + public List getResourceTypes() { + return resourceTypes; + } + + public void setResourceTypes(List resourceTypes) { + this.resourceTypes = resourceTypes; + } + + public List getDisabledResourceTypes() { + return disabledResourceTypes; + } + + public void setDisabledResourceTypes(List disabledResourceTypes) { + this.disabledResourceTypes = disabledResourceTypes; + } + } +} diff --git a/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/ListResourcesByLabelsRequest.java b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/ListResourcesByLabelsRequest.java new file mode 100644 index 00000000..0ef3fc89 --- /dev/null +++ b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/ListResourcesByLabelsRequest.java @@ -0,0 +1,114 @@ +/** + * 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.label.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 ListResourcesByLabelsRequest extends Request { + + /** */ + @UCloudParam("Labels") + private List labels; + + /** 资源类型数组 */ + @NotEmpty + @UCloudParam("ResourceTypes") + private List resourceTypes; + + /** 项目id数组 */ + @NotEmpty + @UCloudParam("ProjectIds") + private List projectIds; + + /** 列表起始位置偏移量,默认为0 */ + @UCloudParam("Offset") + private Integer offset; + + /** 返回数据长度,默认为 0,最大100 */ + @UCloudParam("Limit") + private Integer limit; + + public List getLabels() { + return labels; + } + + public void setLabels(List labels) { + this.labels = labels; + } + + public List getResourceTypes() { + return resourceTypes; + } + + public void setResourceTypes(List resourceTypes) { + this.resourceTypes = resourceTypes; + } + + public List getProjectIds() { + return projectIds; + } + + public void setProjectIds(List projectIds) { + this.projectIds = projectIds; + } + + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public static class Labels extends Request { + + /** 标签键 */ + @NotEmpty + @UCloudParam("Key") + private String key; + + /** 标签值 */ + @NotEmpty + @UCloudParam("Value") + private String value; + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} diff --git a/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/ListResourcesByLabelsResponse.java b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/ListResourcesByLabelsResponse.java new file mode 100644 index 00000000..25b93e32 --- /dev/null +++ b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/ListResourcesByLabelsResponse.java @@ -0,0 +1,161 @@ +/** + * 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.label.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class ListResourcesByLabelsResponse extends Response { + + /** 资源总数 */ + @SerializedName("TotalCount") + private Integer totalCount; + + /** 资源列表 */ + @SerializedName("Resources") + private List resources; + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getResources() { + return resources; + } + + public void setResources(List resources) { + this.resources = resources; + } + + public static class ListResourcesByLabelsLabel extends Response { + + /** 标签键 */ + @SerializedName("Key") + private String key; + + /** 标签值 */ + @SerializedName("Value") + private String value; + + /** 标签类型,system:系统标签;custom:自定义标签 */ + @SerializedName("Category") + private String category; + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getCategory() { + return category; + } + + public void setCategory(String category) { + this.category = category; + } + } + + public static class ListResourcesByLabelsResource extends Response { + + /** 项目id */ + @SerializedName("ProjectId") + private String projectId; + + /** 资源id */ + @SerializedName("ResourceId") + private String resourceId; + + /** 资源名称 */ + @SerializedName("ResourceName") + private String resourceName; + + /** 项目名称 */ + @SerializedName("ProjectName") + private String projectName; + + /** 资源类型 */ + @SerializedName("ResourceType") + private String resourceType; + + /** 标签数组 */ + @SerializedName("Labels") + private List labels; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getResourceName() { + return resourceName; + } + + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } + + public String getProjectName() { + return projectName; + } + + public void setProjectName(String projectName) { + this.projectName = projectName; + } + + public String getResourceType() { + return resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public List getLabels() { + return labels; + } + + public void setLabels(List labels) { + this.labels = labels; + } + } +} diff --git a/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/ListResourcesTypesForLabelRequest.java b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/ListResourcesTypesForLabelRequest.java new file mode 100644 index 00000000..65fe39d8 --- /dev/null +++ b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/ListResourcesTypesForLabelRequest.java @@ -0,0 +1,19 @@ +/** + * 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.label.models; + + +import cn.ucloud.common.request.Request; + +public class ListResourcesTypesForLabelRequest extends Request {} diff --git a/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/ListResourcesTypesForLabelResponse.java b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/ListResourcesTypesForLabelResponse.java new file mode 100644 index 00000000..4ddd865a --- /dev/null +++ b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/ListResourcesTypesForLabelResponse.java @@ -0,0 +1,47 @@ +/** + * 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.label.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class ListResourcesTypesForLabelResponse extends Response { + + /** 总数 */ + @SerializedName("TotalCount") + private Integer totalCount; + + /** 资源类型列表 */ + @SerializedName("ResourceTypes") + private List resourceTypes; + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getResourceTypes() { + return resourceTypes; + } + + public void setResourceTypes(List resourceTypes) { + this.resourceTypes = resourceTypes; + } +} diff --git a/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/UnbindLabelsRequest.java b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/UnbindLabelsRequest.java new file mode 100644 index 00000000..b3c95676 --- /dev/null +++ b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/UnbindLabelsRequest.java @@ -0,0 +1,77 @@ +/** + * 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.label.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 UnbindLabelsRequest extends Request { + + /** 资源id数组 */ + @NotEmpty + @UCloudParam("ResourceIds") + private List resourceIds; + + /** */ + @UCloudParam("Labels") + private List labels; + + public List getResourceIds() { + return resourceIds; + } + + public void setResourceIds(List resourceIds) { + this.resourceIds = resourceIds; + } + + public List getLabels() { + return labels; + } + + public void setLabels(List labels) { + this.labels = labels; + } + + public static class Labels extends Request { + + /** 标签键 */ + @NotEmpty + @UCloudParam("Key") + private String key; + + /** 标签值 */ + @NotEmpty + @UCloudParam("Value") + private String value; + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} diff --git a/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/UnbindLabelsResponse.java b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/UnbindLabelsResponse.java new file mode 100644 index 00000000..1f7f5614 --- /dev/null +++ b/ucloud-sdk-java-label/src/main/java/cn/ucloud/label/models/UnbindLabelsResponse.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.label.models; + + + +import cn.ucloud.common.response.Response; + +public class UnbindLabelsResponse extends Response {} diff --git a/ucloud-sdk-java-nlb/pom.xml b/ucloud-sdk-java-nlb/pom.xml index 61ca4f0b..67eaffcc 100644 --- a/ucloud-sdk-java-nlb/pom.xml +++ b/ucloud-sdk-java-nlb/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-nlb - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-pathx/pom.xml b/ucloud-sdk-java-pathx/pom.xml index 003f97c7..a8ab9e55 100644 --- a/ucloud-sdk-java-pathx/pom.xml +++ b/ucloud-sdk-java-pathx/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-pathx - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-sts/pom.xml b/ucloud-sdk-java-sts/pom.xml index ae3247b2..800a1866 100644 --- a/ucloud-sdk-java-sts/pom.xml +++ b/ucloud-sdk-java-sts/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-sts - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-uaccount/pom.xml b/ucloud-sdk-java-uaccount/pom.xml index bfdc9389..9e2aa410 100644 --- a/ucloud-sdk-java-uaccount/pom.xml +++ b/ucloud-sdk-java-uaccount/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-uaccount - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-uai_modelverse/pom.xml b/ucloud-sdk-java-uai_modelverse/pom.xml index a2b6bcd9..77d97e9e 100644 --- a/ucloud-sdk-java-uai_modelverse/pom.xml +++ b/ucloud-sdk-java-uai_modelverse/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-uai_modelverse - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-ubill/pom.xml b/ucloud-sdk-java-ubill/pom.xml index 3272a2b3..620b5076 100644 --- a/ucloud-sdk-java-ubill/pom.xml +++ b/ucloud-sdk-java-ubill/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-ubill - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-ucdn/pom.xml b/ucloud-sdk-java-ucdn/pom.xml index 74193440..fe6fe544 100644 --- a/ucloud-sdk-java-ucdn/pom.xml +++ b/ucloud-sdk-java-ucdn/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-ucdn - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-ucompshare/pom.xml b/ucloud-sdk-java-ucompshare/pom.xml index 4e84293b..11bd9f84 100644 --- a/ucloud-sdk-java-ucompshare/pom.xml +++ b/ucloud-sdk-java-ucompshare/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-ucompshare - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-udb/pom.xml b/ucloud-sdk-java-udb/pom.xml index 92773b8b..ead2d1dd 100644 --- a/ucloud-sdk-java-udb/pom.xml +++ b/ucloud-sdk-java-udb/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-udb - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceRequest.java index 493f4caf..7fb38bd0 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceRequest.java @@ -166,6 +166,29 @@ public class CreateUDBInstanceRequest extends Request { @UCloudParam("MachineType") private String machineType; + /** 告警模版id */ + @UCloudParam("AlarmTemplateId") + private String alarmTemplateId; + + /** 备份文件的US3内网下载地址 */ + @UCloudParam("BackupURL") + private String backupURL; + + /** + * 存储类型 CLOUD_SSD: SSD云盘, CLOUD_RSSD: RSSD 云盘, CLOUD_SSD_ESSENTIAL: SSD Essential云盘 + * ,该字段和SpecificationClass组合优先级比InstanceType字段高 该字段和SpecificationClass组合优先级比InstanceType字段高, + */ + @UCloudParam("StorageClass") + private String storageClass; + + /** 规格类型 O: NVMe型, OM: 共享型,N: 通用型 */ + @UCloudParam("SpecificationClass") + private String specificationClass; + + /** 半同步开启开关 1:表示开启半同步,2:表示关闭半同步,0:表示默认值,默认也是开启半同步 */ + @UCloudParam("SemisyncFlag") + private Integer semisyncFlag; + /** 使用的代金券id */ @UCloudParam("CouponId") private String couponId; @@ -418,6 +441,46 @@ public void setMachineType(String machineType) { this.machineType = machineType; } + public String getAlarmTemplateId() { + return alarmTemplateId; + } + + public void setAlarmTemplateId(String alarmTemplateId) { + this.alarmTemplateId = alarmTemplateId; + } + + public String getBackupURL() { + return backupURL; + } + + public void setBackupURL(String backupURL) { + this.backupURL = backupURL; + } + + public String getStorageClass() { + return storageClass; + } + + public void setStorageClass(String storageClass) { + this.storageClass = storageClass; + } + + public String getSpecificationClass() { + return specificationClass; + } + + public void setSpecificationClass(String specificationClass) { + this.specificationClass = specificationClass; + } + + public Integer getSemisyncFlag() { + return semisyncFlag; + } + + public void setSemisyncFlag(Integer semisyncFlag) { + this.semisyncFlag = semisyncFlag; + } + public String getCouponId() { return couponId; } diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBParamGroupResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBParamGroupResponse.java index 4dc63696..bbfa1c67 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBParamGroupResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBParamGroupResponse.java @@ -47,6 +47,10 @@ public void setTotalCount(Integer totalCount) { public static class UDBParamGroupSet extends Response { + /** 参数组类型:1:稳定版参数组,2:高性能版参数组。默认是稳定版参数组 */ + @SerializedName("GroupType") + private Integer groupType; + /** 参数组id */ @SerializedName("GroupId") private Integer groupId; @@ -75,6 +79,14 @@ public static class UDBParamGroupSet extends Response { @SerializedName("ParamMember") private List paramMember; + public Integer getGroupType() { + return groupType; + } + + public void setGroupType(Integer groupType) { + this.groupType = groupType; + } + public Integer getGroupId() { return groupId; } diff --git a/ucloud-sdk-java-udbproxy/pom.xml b/ucloud-sdk-java-udbproxy/pom.xml index a01e0d07..8b6e8c42 100644 --- a/ucloud-sdk-java-udbproxy/pom.xml +++ b/ucloud-sdk-java-udbproxy/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-udbproxy - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-udi/pom.xml b/ucloud-sdk-java-udi/pom.xml index e8938212..fd7a6f22 100644 --- a/ucloud-sdk-java-udi/pom.xml +++ b/ucloud-sdk-java-udi/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-udi - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-udisk/pom.xml b/ucloud-sdk-java-udisk/pom.xml index 00ce921e..d6e156a1 100644 --- a/ucloud-sdk-java-udisk/pom.xml +++ b/ucloud-sdk-java-udisk/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-udisk - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-udns/pom.xml b/ucloud-sdk-java-udns/pom.xml index f6c29468..f273ac71 100644 --- a/ucloud-sdk-java-udns/pom.xml +++ b/ucloud-sdk-java-udns/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-udns - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-udpn/pom.xml b/ucloud-sdk-java-udpn/pom.xml index 186a30cc..de27a40a 100644 --- a/ucloud-sdk-java-udpn/pom.xml +++ b/ucloud-sdk-java-udpn/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-udpn - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-uec/pom.xml b/ucloud-sdk-java-uec/pom.xml index 6f99008b..43c19416 100644 --- a/ucloud-sdk-java-uec/pom.xml +++ b/ucloud-sdk-java-uec/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-uec - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-uewaf/pom.xml b/ucloud-sdk-java-uewaf/pom.xml index b211b854..03a9621c 100644 --- a/ucloud-sdk-java-uewaf/pom.xml +++ b/ucloud-sdk-java-uewaf/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-uewaf - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-ufile/pom.xml b/ucloud-sdk-java-ufile/pom.xml index 73eb9543..69e07ac6 100644 --- a/ucloud-sdk-java-ufile/pom.xml +++ b/ucloud-sdk-java-ufile/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-ufile - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-ufs/pom.xml b/ucloud-sdk-java-ufs/pom.xml index 64c97c21..2b878707 100644 --- a/ucloud-sdk-java-ufs/pom.xml +++ b/ucloud-sdk-java-ufs/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-ufs - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-uhost/pom.xml b/ucloud-sdk-java-uhost/pom.xml index 1c55ddf7..962b45e0 100644 --- a/ucloud-sdk-java-uhost/pom.xml +++ b/ucloud-sdk-java-uhost/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-uhost - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-uk8s/pom.xml b/ucloud-sdk-java-uk8s/pom.xml index 79cff47e..ba4a8b05 100644 --- a/ucloud-sdk-java-uk8s/pom.xml +++ b/ucloud-sdk-java-uk8s/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-uk8s - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-ulb/pom.xml b/ucloud-sdk-java-ulb/pom.xml index 8ebaea0f..15eb4894 100644 --- a/ucloud-sdk-java-ulb/pom.xml +++ b/ucloud-sdk-java-ulb/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-ulb - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-ulog/pom.xml b/ucloud-sdk-java-ulog/pom.xml index 96e8dfa6..4a59417f 100644 --- a/ucloud-sdk-java-ulog/pom.xml +++ b/ucloud-sdk-java-ulog/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-ulog - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-umem/pom.xml b/ucloud-sdk-java-umem/pom.xml index cfdd719a..ce0d6fde 100644 --- a/ucloud-sdk-java-umem/pom.xml +++ b/ucloud-sdk-java-umem/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-umem - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-umongodb/pom.xml b/ucloud-sdk-java-umongodb/pom.xml index ab41bd1e..9db34f55 100644 --- a/ucloud-sdk-java-umongodb/pom.xml +++ b/ucloud-sdk-java-umongodb/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-umongodb - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-unet/pom.xml b/ucloud-sdk-java-unet/pom.xml index ddaea35a..f183182a 100644 --- a/ucloud-sdk-java-unet/pom.xml +++ b/ucloud-sdk-java-unet/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-unet - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-upgsql/pom.xml b/ucloud-sdk-java-upgsql/pom.xml index 6cd5931d..a96cc7a6 100644 --- a/ucloud-sdk-java-upgsql/pom.xml +++ b/ucloud-sdk-java-upgsql/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-upgsql - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-uphone/pom.xml b/ucloud-sdk-java-uphone/pom.xml index d639ef4c..2be7037e 100644 --- a/ucloud-sdk-java-uphone/pom.xml +++ b/ucloud-sdk-java-uphone/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-uphone - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-uphost/pom.xml b/ucloud-sdk-java-uphost/pom.xml index 0f9ac096..46a88655 100644 --- a/ucloud-sdk-java-uphost/pom.xml +++ b/ucloud-sdk-java-uphost/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-uphost - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-uslk/pom.xml b/ucloud-sdk-java-uslk/pom.xml index f1827835..a4956f38 100644 --- a/ucloud-sdk-java-uslk/pom.xml +++ b/ucloud-sdk-java-uslk/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-uslk - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-usms/pom.xml b/ucloud-sdk-java-usms/pom.xml index 2fcf09da..25fe538b 100644 --- a/ucloud-sdk-java-usms/pom.xml +++ b/ucloud-sdk-java-usms/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-usms - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-usnap/pom.xml b/ucloud-sdk-java-usnap/pom.xml index 793a671f..84c372a3 100644 --- a/ucloud-sdk-java-usnap/pom.xml +++ b/ucloud-sdk-java-usnap/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-usnap - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-uvms/pom.xml b/ucloud-sdk-java-uvms/pom.xml index c88f9a49..7680a46b 100644 --- a/ucloud-sdk-java-uvms/pom.xml +++ b/ucloud-sdk-java-uvms/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-uvms - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release diff --git a/ucloud-sdk-java-vpc/pom.xml b/ucloud-sdk-java-vpc/pom.xml index c25f2517..f24c7182 100644 --- a/ucloud-sdk-java-vpc/pom.xml +++ b/ucloud-sdk-java-vpc/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.38-release + 1.2.39-release 4.0.0 ucloud-sdk-java-vpc - 1.2.38-release + 1.2.39-release cn.ucloud ucloud-sdk-java-common - 1.2.38-release + 1.2.39-release