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.sandbox.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.sandbox.models.CheckSandboxCustomDomainRequest; +import cn.ucloud.sandbox.models.CheckSandboxCustomDomainResponse; +import cn.ucloud.sandbox.models.CreateSandboxSiteRequest; +import cn.ucloud.sandbox.models.CreateSandboxSiteResponse; +import cn.ucloud.sandbox.models.DeleteSandboxSiteRequest; +import cn.ucloud.sandbox.models.DeleteSandboxSiteResponse; +import cn.ucloud.sandbox.models.GetSandboxSiteRequest; +import cn.ucloud.sandbox.models.GetSandboxSiteResponse; +import cn.ucloud.sandbox.models.ListSandboxSitesRequest; +import cn.ucloud.sandbox.models.ListSandboxSitesResponse; +import cn.ucloud.sandbox.models.UpdateSandboxSiteCustomDomainRequest; +import cn.ucloud.sandbox.models.UpdateSandboxSiteCustomDomainResponse; +import cn.ucloud.sandbox.models.UpdateSandboxSiteRequest; +import cn.ucloud.sandbox.models.UpdateSandboxSiteResponse; + +/** This client is used to call actions of **Sandbox** service */ +public class SandboxClient extends DefaultClient implements SandboxClientInterface { + public SandboxClient(Config config, Credential credential) { + super(config, credential); + } + + /** + * CheckSandboxCustomDomain - 检查自定义域名 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CheckSandboxCustomDomainResponse checkSandboxCustomDomain( + CheckSandboxCustomDomainRequest request) throws UCloudException { + request.setAction("CheckSandboxCustomDomain"); + return (CheckSandboxCustomDomainResponse) + this.invoke(request, CheckSandboxCustomDomainResponse.class); + } + + /** + * CreateSandboxSite - 创建站点空间 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateSandboxSiteResponse createSandboxSite(CreateSandboxSiteRequest request) + throws UCloudException { + request.setAction("CreateSandboxSite"); + return (CreateSandboxSiteResponse) this.invoke(request, CreateSandboxSiteResponse.class); + } + + /** + * DeleteSandboxSite - 删除站点空间 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteSandboxSiteResponse deleteSandboxSite(DeleteSandboxSiteRequest request) + throws UCloudException { + request.setAction("DeleteSandboxSite"); + return (DeleteSandboxSiteResponse) this.invoke(request, DeleteSandboxSiteResponse.class); + } + + /** + * GetSandboxSite - 获取沙箱站点 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetSandboxSiteResponse getSandboxSite(GetSandboxSiteRequest request) + throws UCloudException { + request.setAction("GetSandboxSite"); + return (GetSandboxSiteResponse) this.invoke(request, GetSandboxSiteResponse.class); + } + + /** + * ListSandboxSites - 列出站点空间 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListSandboxSitesResponse listSandboxSites(ListSandboxSitesRequest request) + throws UCloudException { + request.setAction("ListSandboxSites"); + return (ListSandboxSitesResponse) this.invoke(request, ListSandboxSitesResponse.class); + } + + /** + * UpdateSandboxSite - 更新站点空间 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateSandboxSiteResponse updateSandboxSite(UpdateSandboxSiteRequest request) + throws UCloudException { + request.setAction("UpdateSandboxSite"); + return (UpdateSandboxSiteResponse) this.invoke(request, UpdateSandboxSiteResponse.class); + } + + /** + * UpdateSandboxSiteCustomDomain - 更新沙箱站点自定义域名 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateSandboxSiteCustomDomainResponse updateSandboxSiteCustomDomain( + UpdateSandboxSiteCustomDomainRequest request) throws UCloudException { + request.setAction("UpdateSandboxSiteCustomDomain"); + return (UpdateSandboxSiteCustomDomainResponse) + this.invoke(request, UpdateSandboxSiteCustomDomainResponse.class); + } +} diff --git a/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/client/SandboxClientInterface.java b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/client/SandboxClientInterface.java new file mode 100644 index 00000000..d13575b2 --- /dev/null +++ b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/client/SandboxClientInterface.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.sandbox.client; + +import cn.ucloud.common.client.Client; +import cn.ucloud.common.exception.UCloudException; +import cn.ucloud.sandbox.models.CheckSandboxCustomDomainRequest; +import cn.ucloud.sandbox.models.CheckSandboxCustomDomainResponse; +import cn.ucloud.sandbox.models.CreateSandboxSiteRequest; +import cn.ucloud.sandbox.models.CreateSandboxSiteResponse; +import cn.ucloud.sandbox.models.DeleteSandboxSiteRequest; +import cn.ucloud.sandbox.models.DeleteSandboxSiteResponse; +import cn.ucloud.sandbox.models.GetSandboxSiteRequest; +import cn.ucloud.sandbox.models.GetSandboxSiteResponse; +import cn.ucloud.sandbox.models.ListSandboxSitesRequest; +import cn.ucloud.sandbox.models.ListSandboxSitesResponse; +import cn.ucloud.sandbox.models.UpdateSandboxSiteCustomDomainRequest; +import cn.ucloud.sandbox.models.UpdateSandboxSiteCustomDomainResponse; +import cn.ucloud.sandbox.models.UpdateSandboxSiteRequest; +import cn.ucloud.sandbox.models.UpdateSandboxSiteResponse; + +/** This client is used to call actions of **Sandbox** service */ +public interface SandboxClientInterface extends Client { + + /** + * CheckSandboxCustomDomain - 检查自定义域名 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CheckSandboxCustomDomainResponse checkSandboxCustomDomain( + CheckSandboxCustomDomainRequest request) throws UCloudException; + + /** + * CreateSandboxSite - 创建站点空间 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateSandboxSiteResponse createSandboxSite(CreateSandboxSiteRequest request) + throws UCloudException; + + /** + * DeleteSandboxSite - 删除站点空间 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteSandboxSiteResponse deleteSandboxSite(DeleteSandboxSiteRequest request) + throws UCloudException; + + /** + * GetSandboxSite - 获取沙箱站点 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetSandboxSiteResponse getSandboxSite(GetSandboxSiteRequest request) + throws UCloudException; + + /** + * ListSandboxSites - 列出站点空间 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListSandboxSitesResponse listSandboxSites(ListSandboxSitesRequest request) + throws UCloudException; + + /** + * UpdateSandboxSite - 更新站点空间 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateSandboxSiteResponse updateSandboxSite(UpdateSandboxSiteRequest request) + throws UCloudException; + + /** + * UpdateSandboxSiteCustomDomain - 更新沙箱站点自定义域名 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateSandboxSiteCustomDomainResponse updateSandboxSiteCustomDomain( + UpdateSandboxSiteCustomDomainRequest request) throws UCloudException; +} diff --git a/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/client/sandboxClient.java b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/client/sandboxClient.java deleted file mode 100644 index 51573ccf..00000000 --- a/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/client/sandboxClient.java +++ /dev/null @@ -1,40 +0,0 @@ -/** - * 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.sandbox.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.sandbox.models.GetSandboxSiteRequest; -import cn.ucloud.sandbox.models.GetSandboxSiteResponse; - -/** This client is used to call actions of **sandbox** service */ -public class sandboxClient extends DefaultClient implements sandboxClientInterface { - public sandboxClient(Config config, Credential credential) { - super(config, credential); - } - - /** - * GetSandboxSite - 获取沙箱站点 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetSandboxSiteResponse getSandboxSite(GetSandboxSiteRequest request) - throws UCloudException { - request.setAction("GetSandboxSite"); - return (GetSandboxSiteResponse) this.invoke(request, GetSandboxSiteResponse.class); - } -} diff --git a/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/client/sandboxClientInterface.java b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/client/sandboxClientInterface.java deleted file mode 100644 index 26a8304f..00000000 --- a/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/client/sandboxClientInterface.java +++ /dev/null @@ -1,32 +0,0 @@ -/** - * 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.sandbox.client; - -import cn.ucloud.common.client.Client; -import cn.ucloud.common.exception.UCloudException; -import cn.ucloud.sandbox.models.GetSandboxSiteRequest; -import cn.ucloud.sandbox.models.GetSandboxSiteResponse; - -/** This client is used to call actions of **sandbox** service */ -public interface sandboxClientInterface extends Client { - - /** - * GetSandboxSite - 获取沙箱站点 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetSandboxSiteResponse getSandboxSite(GetSandboxSiteRequest request) - throws UCloudException; -} diff --git a/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/CheckSandboxCustomDomainRequest.java b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/CheckSandboxCustomDomainRequest.java new file mode 100644 index 00000000..16925594 --- /dev/null +++ b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/CheckSandboxCustomDomainRequest.java @@ -0,0 +1,101 @@ +/** + * 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.sandbox.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class CheckSandboxCustomDomainRequest 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; + + /** 自定义域名 */ + @NotEmpty + @UCloudParam("CustomDomain") + private String customDomain; + + /** 目标域名 */ + @NotEmpty + @UCloudParam("TargetDomain") + private String targetDomain; + + /** 如果为true,则表示获取检查结果 */ + @UCloudParam("Get") + private Boolean get; + + 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 getCustomDomain() { + return customDomain; + } + + public void setCustomDomain(String customDomain) { + this.customDomain = customDomain; + } + + public String getTargetDomain() { + return targetDomain; + } + + public void setTargetDomain(String targetDomain) { + this.targetDomain = targetDomain; + } + + public Boolean getGet() { + return get; + } + + public void setGet(Boolean get) { + this.get = get; + } +} diff --git a/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/CheckSandboxCustomDomainResponse.java b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/CheckSandboxCustomDomainResponse.java new file mode 100644 index 00000000..f499d478 --- /dev/null +++ b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/CheckSandboxCustomDomainResponse.java @@ -0,0 +1,34 @@ +/** + * 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.sandbox.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class CheckSandboxCustomDomainResponse extends Response { + + /** 检查结果 Unknown:未知 Checking:检查中 Success:成功 Timeout:超时 Error:检查失败 */ + @SerializedName("Status") + private String status; + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } +} diff --git a/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/CreateSandboxSiteRequest.java b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/CreateSandboxSiteRequest.java new file mode 100644 index 00000000..383a279f --- /dev/null +++ b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/CreateSandboxSiteRequest.java @@ -0,0 +1,127 @@ +/** + * 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.sandbox.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class CreateSandboxSiteRequest 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; + + /** 站点空间名称 */ + @NotEmpty + @UCloudParam("Name") + private String name; + + /** 密钥 */ + @NotEmpty + @UCloudParam("APIKey") + private String apiKey; + + /** 密钥ID */ + @NotEmpty + @UCloudParam("KeyID") + private String keyID; + + /** 访问码 */ + @NotEmpty + @UCloudParam("AccessCode") + private String accessCode; + + /** 环境变量,格式:["key=value"] */ + @UCloudParam("Envs") + private String envs; + + 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 getAPIKey() { + return apiKey; + } + + public void setAPIKey(String apiKey) { + this.apiKey = apiKey; + } + + public String getKeyID() { + return keyID; + } + + public void setKeyID(String keyID) { + this.keyID = keyID; + } + + public String getAccessCode() { + return accessCode; + } + + public void setAccessCode(String accessCode) { + this.accessCode = accessCode; + } + + public String getEnvs() { + return envs; + } + + public void setEnvs(String envs) { + this.envs = envs; + } +} diff --git a/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/CreateSandboxSiteResponse.java b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/CreateSandboxSiteResponse.java new file mode 100644 index 00000000..7ee17ef7 --- /dev/null +++ b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/CreateSandboxSiteResponse.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.sandbox.models; + + + +import cn.ucloud.common.response.Response; + +public class CreateSandboxSiteResponse extends Response {} diff --git a/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/DeleteSandboxSiteRequest.java b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/DeleteSandboxSiteRequest.java new file mode 100644 index 00000000..71d40805 --- /dev/null +++ b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/DeleteSandboxSiteRequest.java @@ -0,0 +1,76 @@ +/** + * 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.sandbox.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DeleteSandboxSiteRequest 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; + + /** 站点沙箱ID */ + @NotEmpty + @UCloudParam("SandboxID") + private String sandboxID; + + 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 getSandboxID() { + return sandboxID; + } + + public void setSandboxID(String sandboxID) { + this.sandboxID = sandboxID; + } +} diff --git a/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/DeleteSandboxSiteResponse.java b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/DeleteSandboxSiteResponse.java new file mode 100644 index 00000000..6c2659ba --- /dev/null +++ b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/DeleteSandboxSiteResponse.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.sandbox.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class DeleteSandboxSiteResponse extends Response {}
diff --git a/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/GetSandboxSiteResponse.java b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/GetSandboxSiteResponse.java
index a75caeb1..7cecd616 100644
--- a/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/GetSandboxSiteResponse.java
+++ b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/GetSandboxSiteResponse.java
@@ -71,7 +71,7 @@ public static class Site extends Response {
@SerializedName("ConnectKey")
private String connectKey;
- /** 站点环境变量。格式:key=value */
+ /** 站点环境变量。格式:["key=value"] */
@SerializedName("Envs")
private List 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.sandbox.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class ListSandboxSitesRequest 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;
+
+ 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;
+ }
+}
diff --git a/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/ListSandboxSitesResponse.java b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/ListSandboxSitesResponse.java
new file mode 100644
index 00000000..9e2c8cd8
--- /dev/null
+++ b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/ListSandboxSitesResponse.java
@@ -0,0 +1,245 @@
+/**
+ * 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.sandbox.models;
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.List;
+
+public class ListSandboxSitesResponse extends Response {
+
+ /** 站点空间列表 */
+ @SerializedName("Sites")
+ private List 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.sandbox.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class UpdateSandboxSiteCustomDomainRequest 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;
+
+ /** 沙箱ID */
+ @NotEmpty
+ @UCloudParam("SandboxID")
+ private String sandboxID;
+
+ /** 自定义域名 */
+ @NotEmpty
+ @UCloudParam("CustomDomain")
+ private String customDomain;
+
+ 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 getSandboxID() {
+ return sandboxID;
+ }
+
+ public void setSandboxID(String sandboxID) {
+ this.sandboxID = sandboxID;
+ }
+
+ public String getCustomDomain() {
+ return customDomain;
+ }
+
+ public void setCustomDomain(String customDomain) {
+ this.customDomain = customDomain;
+ }
+}
diff --git a/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/UpdateSandboxSiteCustomDomainResponse.java b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/UpdateSandboxSiteCustomDomainResponse.java
new file mode 100644
index 00000000..5ae38e53
--- /dev/null
+++ b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/UpdateSandboxSiteCustomDomainResponse.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.sandbox.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class UpdateSandboxSiteCustomDomainResponse extends Response {}
diff --git a/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/UpdateSandboxSiteRequest.java b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/UpdateSandboxSiteRequest.java
new file mode 100644
index 00000000..d8d6b412
--- /dev/null
+++ b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/UpdateSandboxSiteRequest.java
@@ -0,0 +1,175 @@
+/**
+ * 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.sandbox.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class UpdateSandboxSiteRequest 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;
+
+ /** 站点沙箱ID */
+ @NotEmpty
+ @UCloudParam("SandboxID")
+ private String sandboxID;
+
+ /** 更新站点空间名称 */
+ @UCloudParam("Name")
+ private String name;
+
+ /** 更新站点空间API Key */
+ @UCloudParam("APIKey")
+ private String apiKey;
+
+ /** 更新站点空间Key ID(需要和APIKey一起传) */
+ @UCloudParam("KeyID")
+ private String keyID;
+
+ /** 更新站点空间环境变量,格式为["Key=Value"] */
+ @UCloudParam("Envs")
+ private String envs;
+
+ /** 访问码 */
+ @UCloudParam("AccessCode")
+ private String accessCode;
+
+ /** */
+ @UCloudParam("IPAccess")
+ private IPAccess ipAccess;
+
+ 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 getSandboxID() {
+ return sandboxID;
+ }
+
+ public void setSandboxID(String sandboxID) {
+ this.sandboxID = sandboxID;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getAPIKey() {
+ return apiKey;
+ }
+
+ public void setAPIKey(String apiKey) {
+ this.apiKey = apiKey;
+ }
+
+ public String getKeyID() {
+ return keyID;
+ }
+
+ public void setKeyID(String keyID) {
+ this.keyID = keyID;
+ }
+
+ public String getEnvs() {
+ return envs;
+ }
+
+ public void setEnvs(String envs) {
+ this.envs = envs;
+ }
+
+ public String getAccessCode() {
+ return accessCode;
+ }
+
+ public void setAccessCode(String accessCode) {
+ this.accessCode = accessCode;
+ }
+
+ public IPAccess getIPAccess() {
+ return ipAccess;
+ }
+
+ public void setIPAccess(IPAccess ipAccess) {
+ this.ipAccess = ipAccess;
+ }
+
+ public static class IPAccess extends Request {
+
+ /** 访问限制IP,格式 ["192.168.1.2","192.168.1.3"] */
+ @UCloudParam("IPList")
+ private String ipList;
+
+ /** 访问模式, - "":无IP限制 - "allow":白名单模式 - "deny":黑名单 */
+ @UCloudParam("Mode")
+ private String mode;
+
+ public String getIPList() {
+ return ipList;
+ }
+
+ public void setIPList(String ipList) {
+ this.ipList = ipList;
+ }
+
+ public String getMode() {
+ return mode;
+ }
+
+ public void setMode(String mode) {
+ this.mode = mode;
+ }
+ }
+}
diff --git a/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/UpdateSandboxSiteResponse.java b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/UpdateSandboxSiteResponse.java
new file mode 100644
index 00000000..01a312c3
--- /dev/null
+++ b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/UpdateSandboxSiteResponse.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.sandbox.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class UpdateSandboxSiteResponse extends Response {}
diff --git a/ucloud-sdk-java-sts/pom.xml b/ucloud-sdk-java-sts/pom.xml
index e26aaf65..57bcbd41 100644
--- a/ucloud-sdk-java-sts/pom.xml
+++ b/ucloud-sdk-java-sts/pom.xml
@@ -5,19 +5,19 @@