index
int64
repo_id
string
file_path
string
content
string
0
java-sources/com/aliyun/aliyun-java-sdk-baas/2.2.3/com/aliyuncs/baas/transform
java-sources/com/aliyun/aliyun-java-sdk-baas/2.2.3/com/aliyuncs/baas/transform/v20181221/UpdateAntChainContractProjectResponseUnmarshaller.java
/* * 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 com.aliyuncs.baas.transform.v20181221; import com.aliyuncs.baas.model.v20181221.UpdateAntChainContractProjectResponse; import com.aliyuncs.transform.UnmarshallerContext; public class UpdateAntChainContractProjectResponseUnmarshaller { public static UpdateAntChainContractProjectResponse unmarshall(UpdateAntChainContractProjectResponse updateAntChainContractProjectResponse, UnmarshallerContext _ctx) { updateAntChainContractProjectResponse.setRequestId(_ctx.stringValue("UpdateAntChainContractProjectResponse.RequestId")); updateAntChainContractProjectResponse.setResult(_ctx.stringValue("UpdateAntChainContractProjectResponse.Result")); return updateAntChainContractProjectResponse; } }
0
java-sources/com/aliyun/aliyun-java-sdk-baas/2.2.3/com/aliyuncs/baas/transform
java-sources/com/aliyun/aliyun-java-sdk-baas/2.2.3/com/aliyuncs/baas/transform/v20181221/UpdateAntChainMemberResponseUnmarshaller.java
/* * 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 com.aliyuncs.baas.transform.v20181221; import com.aliyuncs.baas.model.v20181221.UpdateAntChainMemberResponse; import com.aliyuncs.transform.UnmarshallerContext; public class UpdateAntChainMemberResponseUnmarshaller { public static UpdateAntChainMemberResponse unmarshall(UpdateAntChainMemberResponse updateAntChainMemberResponse, UnmarshallerContext _ctx) { updateAntChainMemberResponse.setRequestId(_ctx.stringValue("UpdateAntChainMemberResponse.RequestId")); updateAntChainMemberResponse.setResult(_ctx.stringValue("UpdateAntChainMemberResponse.Result")); return updateAntChainMemberResponse; } }
0
java-sources/com/aliyun/aliyun-java-sdk-baas/2.2.3/com/aliyuncs/baas/transform
java-sources/com/aliyun/aliyun-java-sdk-baas/2.2.3/com/aliyuncs/baas/transform/v20181221/UpdateAntChainQRCodeAuthorizationResponseUnmarshaller.java
/* * 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 com.aliyuncs.baas.transform.v20181221; import com.aliyuncs.baas.model.v20181221.UpdateAntChainQRCodeAuthorizationResponse; import com.aliyuncs.transform.UnmarshallerContext; public class UpdateAntChainQRCodeAuthorizationResponseUnmarshaller { public static UpdateAntChainQRCodeAuthorizationResponse unmarshall(UpdateAntChainQRCodeAuthorizationResponse updateAntChainQRCodeAuthorizationResponse, UnmarshallerContext _ctx) { updateAntChainQRCodeAuthorizationResponse.setRequestId(_ctx.stringValue("UpdateAntChainQRCodeAuthorizationResponse.RequestId")); updateAntChainQRCodeAuthorizationResponse.setResult(_ctx.stringValue("UpdateAntChainQRCodeAuthorizationResponse.Result")); return updateAntChainQRCodeAuthorizationResponse; } }
0
java-sources/com/aliyun/aliyun-java-sdk-baas/2.2.3/com/aliyuncs/baas/transform
java-sources/com/aliyun/aliyun-java-sdk-baas/2.2.3/com/aliyuncs/baas/transform/v20181221/UpdateAntChainResponseUnmarshaller.java
/* * 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 com.aliyuncs.baas.transform.v20181221; import com.aliyuncs.baas.model.v20181221.UpdateAntChainResponse; import com.aliyuncs.transform.UnmarshallerContext; public class UpdateAntChainResponseUnmarshaller { public static UpdateAntChainResponse unmarshall(UpdateAntChainResponse updateAntChainResponse, UnmarshallerContext _ctx) { updateAntChainResponse.setRequestId(_ctx.stringValue("UpdateAntChainResponse.RequestId")); updateAntChainResponse.setResult(_ctx.stringValue("UpdateAntChainResponse.Result")); return updateAntChainResponse; } }
0
java-sources/com/aliyun/aliyun-java-sdk-baas/2.2.3/com/aliyuncs/baas/transform
java-sources/com/aliyun/aliyun-java-sdk-baas/2.2.3/com/aliyuncs/baas/transform/v20181221/UpgradeFabricChaincodeDefinitionResponseUnmarshaller.java
/* * 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 com.aliyuncs.baas.transform.v20181221; import com.aliyuncs.baas.model.v20181221.UpgradeFabricChaincodeDefinitionResponse; import com.aliyuncs.baas.model.v20181221.UpgradeFabricChaincodeDefinitionResponse.Result; import com.aliyuncs.transform.UnmarshallerContext; public class UpgradeFabricChaincodeDefinitionResponseUnmarshaller { public static UpgradeFabricChaincodeDefinitionResponse unmarshall(UpgradeFabricChaincodeDefinitionResponse upgradeFabricChaincodeDefinitionResponse, UnmarshallerContext _ctx) { upgradeFabricChaincodeDefinitionResponse.setRequestId(_ctx.stringValue("UpgradeFabricChaincodeDefinitionResponse.RequestId")); upgradeFabricChaincodeDefinitionResponse.setMessage(_ctx.stringValue("UpgradeFabricChaincodeDefinitionResponse.Message")); upgradeFabricChaincodeDefinitionResponse.setSuccess(_ctx.booleanValue("UpgradeFabricChaincodeDefinitionResponse.Success")); upgradeFabricChaincodeDefinitionResponse.setErrorCode(_ctx.integerValue("UpgradeFabricChaincodeDefinitionResponse.ErrorCode")); Result result = new Result(); result.setName(_ctx.stringValue("UpgradeFabricChaincodeDefinitionResponse.Result.Name")); result.setVersion(_ctx.stringValue("UpgradeFabricChaincodeDefinitionResponse.Result.Version")); result.setInput(_ctx.stringValue("UpgradeFabricChaincodeDefinitionResponse.Result.Input")); result.setType(_ctx.integerValue("UpgradeFabricChaincodeDefinitionResponse.Result.Type")); result.setState(_ctx.stringValue("UpgradeFabricChaincodeDefinitionResponse.Result.State")); result.setPath(_ctx.stringValue("UpgradeFabricChaincodeDefinitionResponse.Result.Path")); result.setChaincodeId(_ctx.stringValue("UpgradeFabricChaincodeDefinitionResponse.Result.ChaincodeId")); result.setInstall(_ctx.booleanValue("UpgradeFabricChaincodeDefinitionResponse.Result.Install")); result.setMessage(_ctx.stringValue("UpgradeFabricChaincodeDefinitionResponse.Result.Message")); result.setCreateTime(_ctx.stringValue("UpgradeFabricChaincodeDefinitionResponse.Result.CreateTime")); result.setDeployTime(_ctx.stringValue("UpgradeFabricChaincodeDefinitionResponse.Result.DeployTime")); result.setChannelName(_ctx.stringValue("UpgradeFabricChaincodeDefinitionResponse.Result.ChannelName")); result.setEndorsePolicy(_ctx.stringValue("UpgradeFabricChaincodeDefinitionResponse.Result.EndorsePolicy")); result.setConsortiumId(_ctx.stringValue("UpgradeFabricChaincodeDefinitionResponse.Result.ConsortiumId")); result.setProviderId(_ctx.stringValue("UpgradeFabricChaincodeDefinitionResponse.Result.ProviderId")); result.setProviderName(_ctx.stringValue("UpgradeFabricChaincodeDefinitionResponse.Result.ProviderName")); result.setChannelId(_ctx.stringValue("UpgradeFabricChaincodeDefinitionResponse.Result.ChannelId")); result.setManagement(_ctx.booleanValue("UpgradeFabricChaincodeDefinitionResponse.Result.Management")); result.setChaincodePackageId(_ctx.stringValue("UpgradeFabricChaincodeDefinitionResponse.Result.ChaincodePackageId")); result.setInitRequired(_ctx.booleanValue("UpgradeFabricChaincodeDefinitionResponse.Result.InitRequired")); result.setChaincodeDefinitionId(_ctx.stringValue("UpgradeFabricChaincodeDefinitionResponse.Result.ChaincodeDefinitionId")); upgradeFabricChaincodeDefinitionResponse.setResult(result); return upgradeFabricChaincodeDefinitionResponse; } }
0
java-sources/com/aliyun/aliyun-java-sdk-baas/2.2.3/com/aliyuncs/baas/transform
java-sources/com/aliyun/aliyun-java-sdk-baas/2.2.3/com/aliyuncs/baas/transform/v20181221/UpgradeFabricChaincodeResponseUnmarshaller.java
/* * 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 com.aliyuncs.baas.transform.v20181221; import com.aliyuncs.baas.model.v20181221.UpgradeFabricChaincodeResponse; import com.aliyuncs.baas.model.v20181221.UpgradeFabricChaincodeResponse.Result; import com.aliyuncs.transform.UnmarshallerContext; public class UpgradeFabricChaincodeResponseUnmarshaller { public static UpgradeFabricChaincodeResponse unmarshall(UpgradeFabricChaincodeResponse upgradeFabricChaincodeResponse, UnmarshallerContext _ctx) { upgradeFabricChaincodeResponse.setRequestId(_ctx.stringValue("UpgradeFabricChaincodeResponse.RequestId")); upgradeFabricChaincodeResponse.setSuccess(_ctx.booleanValue("UpgradeFabricChaincodeResponse.Success")); upgradeFabricChaincodeResponse.setErrorCode(_ctx.integerValue("UpgradeFabricChaincodeResponse.ErrorCode")); Result result = new Result(); result.setType(_ctx.integerValue("UpgradeFabricChaincodeResponse.Result.Type")); result.setEndorsePolicy(_ctx.stringValue("UpgradeFabricChaincodeResponse.Result.EndorsePolicy")); result.setState(_ctx.stringValue("UpgradeFabricChaincodeResponse.Result.State")); result.setCreateTime(_ctx.stringValue("UpgradeFabricChaincodeResponse.Result.CreateTime")); result.setChaincodeId(_ctx.stringValue("UpgradeFabricChaincodeResponse.Result.ChaincodeId")); result.setProviderName(_ctx.stringValue("UpgradeFabricChaincodeResponse.Result.ProviderName")); result.setMessage(_ctx.stringValue("UpgradeFabricChaincodeResponse.Result.Message")); result.setChaincodeName(_ctx.stringValue("UpgradeFabricChaincodeResponse.Result.ChaincodeName")); result.setInput(_ctx.stringValue("UpgradeFabricChaincodeResponse.Result.Input")); result.setInstall(_ctx.booleanValue("UpgradeFabricChaincodeResponse.Result.Install")); result.setProviderId(_ctx.stringValue("UpgradeFabricChaincodeResponse.Result.ProviderId")); result.setDeployTime(_ctx.stringValue("UpgradeFabricChaincodeResponse.Result.DeployTime")); result.setChaincodeVersion(_ctx.stringValue("UpgradeFabricChaincodeResponse.Result.ChaincodeVersion")); result.setConsortiumId(_ctx.stringValue("UpgradeFabricChaincodeResponse.Result.ConsortiumId")); result.setChannelName(_ctx.stringValue("UpgradeFabricChaincodeResponse.Result.ChannelName")); result.setPath(_ctx.stringValue("UpgradeFabricChaincodeResponse.Result.Path")); upgradeFabricChaincodeResponse.setResult(result); return upgradeFabricChaincodeResponse; } }
0
java-sources/com/aliyun/aliyun-java-sdk-bailianchatbot/1.0.1/com/aliyuncs/bailianchatbot/model
java-sources/com/aliyun/aliyun-java-sdk-bailianchatbot/1.0.1/com/aliyuncs/bailianchatbot/model/v20241105/SseChatRequest.java
/* * 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 com.aliyuncs.bailianchatbot.model.v20241105; import com.aliyuncs.RpcAcsRequest; import com.aliyuncs.http.MethodType; /** * @author auto create * @version */ public class SseChatRequest extends RpcAcsRequest<SseChatResponse> { private String sessionId; private String command; private String vendorParam; private String senderId; private String appId; private String senderNick; private String utterance; private String workspaceId; public SseChatRequest() { super("BailianChatBot", "2024-11-05", "SseChat"); setMethod(MethodType.POST); } public String getSessionId() { return this.sessionId; } public void setSessionId(String sessionId) { this.sessionId = sessionId; if(sessionId != null){ putQueryParameter("SessionId", sessionId); } } public String getCommand() { return this.command; } public void setCommand(String command) { this.command = command; if(command != null){ putQueryParameter("Command", command); } } public String getVendorParam() { return this.vendorParam; } public void setVendorParam(String vendorParam) { this.vendorParam = vendorParam; if(vendorParam != null){ putQueryParameter("VendorParam", vendorParam); } } public String getSenderId() { return this.senderId; } public void setSenderId(String senderId) { this.senderId = senderId; if(senderId != null){ putQueryParameter("SenderId", senderId); } } public String getAppId() { return this.appId; } public void setAppId(String appId) { this.appId = appId; if(appId != null){ putQueryParameter("AppId", appId); } } public String getSenderNick() { return this.senderNick; } public void setSenderNick(String senderNick) { this.senderNick = senderNick; if(senderNick != null){ putQueryParameter("SenderNick", senderNick); } } public String getUtterance() { return this.utterance; } public void setUtterance(String utterance) { this.utterance = utterance; if(utterance != null){ putQueryParameter("Utterance", utterance); } } public String getWorkspaceId() { return this.workspaceId; } public void setWorkspaceId(String workspaceId) { this.workspaceId = workspaceId; if(workspaceId != null){ putQueryParameter("WorkspaceId", workspaceId); } } @Override public Class<SseChatResponse> getResponseClass() { return SseChatResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-bailianchatbot/1.0.1/com/aliyuncs/bailianchatbot/model
java-sources/com/aliyun/aliyun-java-sdk-bailianchatbot/1.0.1/com/aliyuncs/bailianchatbot/model/v20241105/SseChatResponse.java
/* * 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 com.aliyuncs.bailianchatbot.model.v20241105; import com.aliyuncs.AcsResponse; import com.aliyuncs.bailianchatbot.transform.v20241105.SseChatResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class SseChatResponse extends AcsResponse { @Override public SseChatResponse getInstance(UnmarshallerContext context) { return SseChatResponseUnmarshaller.unmarshall(this, context); } @Override public boolean checkShowJsonItemName() { return false; } }
0
java-sources/com/aliyun/aliyun-java-sdk-bailianchatbot/1.0.1/com/aliyuncs/bailianchatbot/transform
java-sources/com/aliyun/aliyun-java-sdk-bailianchatbot/1.0.1/com/aliyuncs/bailianchatbot/transform/v20241105/SseChatResponseUnmarshaller.java
/* * 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 com.aliyuncs.bailianchatbot.transform.v20241105; import com.aliyuncs.bailianchatbot.model.v20241105.SseChatResponse; import com.aliyuncs.transform.UnmarshallerContext; public class SseChatResponseUnmarshaller { public static SseChatResponse unmarshall(SseChatResponse sseChatResponse, UnmarshallerContext _ctx) { return sseChatResponse; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/main
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/main/v20151111/BatchCompute.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.main.v20151111; import com.aliyuncs.batchcompute.model.v20151111.*; import com.aliyuncs.batchcompute.pojo.v20151111.AppDescription; import com.aliyuncs.batchcompute.pojo.v20151111.ClusterDescription; import com.aliyuncs.batchcompute.pojo.v20151111.ImageDescription; import com.aliyuncs.batchcompute.pojo.v20151111.JobDescription; import com.aliyuncs.exceptions.ClientException; /** * Created by guangchun.luo on 15/12/5 */ public interface BatchCompute { /** job 相关 */ CreateJobResponse createJob(CreateJobRequest request) throws ClientException; CreateJobResponse createJob(JobDescription jobDescription) throws ClientException; CreateJobResponse createJob(JobDescription jobDescription, String idempotentToken) throws ClientException; ChangeJobPriorityResponse changeJobPriority(ChangeJobPriorityRequest req) throws ClientException; ChangeJobPriorityResponse changeJobPriority(String jobId, int priority) throws ClientException; DeleteJobResponse deleteJob(DeleteJobRequest request) throws ClientException; DeleteJobResponse deleteJob(String jobId) throws ClientException; GetJobResponse getJob(GetJobRequest request) throws ClientException; GetJobResponse getJob(String jobId) throws ClientException; ListJobsResponse listJobs(ListJobsRequest request) throws ClientException; ListJobsResponse listJobs() throws ClientException; ListJobsResponse listJobs( String marker, int maxItemCount) throws ClientException; ListJobsResponse listJobs(String state) throws ClientException; ListJobsResponse listJobs(String state, String marker, int maxItemCount) throws ClientException; StartJobResponse startJob(StartJobRequest request) throws ClientException; StartJobResponse startJob(String jobId) throws ClientException; StopJobResponse stopJob(StopJobRequest request) throws ClientException; StopJobResponse stopJob(String jobId) throws ClientException; GetJobDescriptionResponse getJobDescription(GetJobDescriptionRequest request) throws ClientException; GetJobDescriptionResponse getJobDescription(String jobId) throws ClientException; /** Task 相关 */ ListTasksResponse listTasks(ListTasksRequest request) throws ClientException; ListTasksResponse listTasks(String jobId) throws ClientException; ListTasksResponse listTasks(String jobId, String marker, int maxItemCount) throws ClientException; GetTaskResponse getTask(GetTaskRequest request) throws ClientException; GetTaskResponse getTask(String jobId, String taskName) throws ClientException; /** Instance 相关 */ ListInstancesResponse listInstances(ListInstancesRequest request) throws ClientException; ListInstancesResponse listInstances(String jobId, String taskName) throws ClientException; ListInstancesResponse listInstances(String jobId, String taskName, String marker, int maxItemCount) throws ClientException; GetInstanceResponse getInstance(GetInstanceRequest request) throws ClientException; GetInstanceResponse getInstance(String jobId, String taskName, int instanceId) throws ClientException; /** Cluster 相关*/ CreateClusterResponse createCluster(CreateClusterRequest request) throws ClientException; CreateClusterResponse createCluster(ClusterDescription clusterDescription) throws ClientException; CreateClusterResponse createCluster(ClusterDescription clusterDescription, String idempotentToken) throws ClientException; ListClustersResponse listClusters(ListClustersRequest request) throws ClientException; ListClustersResponse listClusters() throws ClientException; ListClustersResponse listClusters(String marker, int maxItemCount) throws ClientException; GetClusterResponse getCluster(GetClusterRequest request) throws ClientException; GetClusterResponse getCluster(String clusterId) throws ClientException; DeleteClusterResponse deleteCluster(DeleteClusterRequest request) throws ClientException; DeleteClusterResponse deleteCluster(String clusterId) throws ClientException; ChangeClusterDesiredVMCountResponse changeClusterDesiredVMCount(ChangeClusterDesiredVMCountRequest req) throws ClientException; ChangeClusterDesiredVMCountResponse changeClusterDesiredVMCount(String clusterId, ClusterDescription clusterDesc) throws ClientException; ChangeClusterDesiredVMCountResponse changeClusterDesiredVMCount(String clusterId, String groupName, int count) throws ClientException; UpdateClusterResponse updateCluster(UpdateClusterRequest req) throws ClientException; UpdateClusterResponse updateCluster(String clusterId, ClusterDescription desc) throws ClientException; /** cluster instance **/ GetClusterInstanceResponse getClusterInstance(String clusterId, String groupName, String instanceId) throws ClientException; GetClusterInstanceResponse getClusterInstance(GetClusterInstanceRequest req) throws ClientException; ListClusterInstancesResponse listClusterInstances(String clusterId, String groupName) throws ClientException; ListClusterInstancesResponse listClusterInstances(String clusterId, String groupName, String marker, int maxItemCount) throws ClientException; ListClusterInstancesResponse listClusterInstances(ListClusterInstancesRequest req) throws ClientException; RecreateClusterInstanceResponse recreateClusterInstance(String clusterId, String groupName, String instanceId) throws ClientException; RecreateClusterInstanceResponse recreateClusterInstance(RecreateClusterInstanceRequest req) throws ClientException; DeleteClusterInstanceResponse deleteClusterInstance(String clusterId, String groupName, String instanceId) throws ClientException; DeleteClusterInstanceResponse deleteClusterInstance(DeleteClusterInstanceRequest req) throws ClientException; /** image **/ GetImageResponse getImage(String imageId) throws ClientException; GetImageResponse getImage(GetImageRequest req) throws ClientException; CreateImageResponse createImage(ImageDescription imageDescription) throws ClientException; CreateImageResponse createImage(CreateImageRequest req) throws ClientException; CreateImageResponse createImage(ImageDescription imageDescription, String idempotentToken) throws ClientException; DeleteImageResponse deleteImage(String imageId) throws ClientException; DeleteImageResponse deleteImage(DeleteImageRequest req) throws ClientException; ListImagesResponse listImages() throws ClientException; ListImagesResponse listImages(String type) throws ClientException; ListImagesResponse listImages(String type, String marker, int maxItemCount) throws ClientException; ListImagesResponse listImages(String marker, int maxItemCount) throws ClientException; ListImagesResponse listImages(ListImagesRequest req) throws ClientException; //app GetAppResponse getApp(String appName) throws ClientException; GetAppResponse getApp(String appName, String scope) throws ClientException; GetAppResponse getApp(GetAppRequest req) throws ClientException; GetAppRevisionsResponse getAppRevisions(String appName) throws ClientException; GetAppRevisionsResponse getAppRevisions(GetAppRevisionsRequest req) throws ClientException; GetAppDetailResponse getAppDetail(String appName, String qualifier) throws ClientException; GetAppDetailResponse getAppDetail(GetAppDetailRequest req) throws ClientException; CreateAppResponse createApp(AppDescription appDescription) throws ClientException; CreateAppResponse createApp(CreateAppRequest req) throws ClientException; CreateAppResponse createApp(AppDescription appDescription, String idempotentToken) throws ClientException; UpdateAppResponse updateApp(AppDescription appDescription) throws ClientException; UpdateAppResponse updateApp(UpdateAppRequest req) throws ClientException; DeleteAppResponse deleteApp(String appName) throws ClientException; DeleteAppResponse deleteApp(String appName, String qualifier) throws ClientException; DeleteAppResponse deleteApp(DeleteAppRequest req) throws ClientException; ListAppsResponse listApps(String scope) throws ClientException; ListAppsResponse listApps(String scope, String marker, int maxItemCount) throws ClientException; ListAppsResponse listApps(ListAppsRequest req) throws ClientException; /** Quotas **/ GetQuotasResponse getQuotas() throws ClientException; GetQuotasResponse getQuotas(GetQuotasRequest req) throws ClientException; GetAvailableResourceResponse getAvailableResource() throws ClientException; GetAvailableResourceResponse getAvailableResource(GetAvailableResourceRequest req) throws ClientException; }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/main
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/main/v20151111/BatchComputeClient.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.main.v20151111; import com.aliyuncs.AcsRequest; import com.aliyuncs.AcsResponse; import com.aliyuncs.DefaultAcsClient; import com.aliyuncs.IAcsClient; import com.aliyuncs.batchcompute.model.v20151111.*; import com.aliyuncs.batchcompute.pojo.v20151111.AppDescription; import com.aliyuncs.batchcompute.pojo.v20151111.ClusterDescription; import com.aliyuncs.batchcompute.pojo.v20151111.ImageDescription; import com.aliyuncs.batchcompute.pojo.v20151111.JobDescription; import com.aliyuncs.endpoint.DefaultEndpointResolver; import com.aliyuncs.endpoint.ResolveEndpointRequest; import com.aliyuncs.exceptions.ClientException; import com.aliyuncs.exceptions.ServerException; import com.aliyuncs.http.HttpResponse; import com.aliyuncs.profile.DefaultProfile; import java.util.HashMap; import java.util.Map; import java.util.Set; /** * Created by guangchun.luo on 15/6/5. */ public class BatchComputeClient implements BatchCompute { private IAcsClient client; private String accessKeyId; private final static String PRODUCT_CODE = "BatchCompute"; static Map<String,String> regionMap = new HashMap<String,String>(); static{ BatchComputeClient.addEndpoint("cn-qingdao", "batchcompute.cn-qingdao.aliyuncs.com"); BatchComputeClient.addEndpoint("cn-shenzhen", "batchcompute.cn-shenzhen.aliyuncs.com"); BatchComputeClient.addEndpoint("cn-hangzhou", "batchcompute.cn-hangzhou.aliyuncs.com"); BatchComputeClient.addEndpoint("cn-beijing", "batchcompute.cn-beijing.aliyuncs.com"); BatchComputeClient.addEndpoint("cn-shanghai", "batchcompute.cn-shanghai.aliyuncs.com"); } public BatchComputeClient(String regionId, String accessKeyId, String accessKeySecret) { if(regionMap.get(regionId)==null){ BatchComputeClient.addEndpoint(regionId, "batchcompute."+regionId+".aliyuncs.com"); } this.accessKeyId = accessKeyId; this.client = new DefaultAcsClient(DefaultProfile.getProfile(regionId, accessKeyId, accessKeySecret)); } public BatchComputeClient(String regionId, String accessKeyId, String accessKeySecret, String stsToken) { if(regionMap.get(regionId)==null){ BatchComputeClient.addEndpoint(regionId, "batchcompute."+regionId+".aliyuncs.com"); } this.accessKeyId = accessKeyId; this.client = new DefaultAcsClient(DefaultProfile.getProfile(regionId, accessKeyId, accessKeySecret, stsToken)); } /** * add region domain mapping * * @param region "cn-shenzhen" * @param domain "batchcompute.cn-shenzhen.aliyuncs.com" */ public static void addEndpoint(String region, String domain) { regionMap.put(region, domain); DefaultProfile.addEndpoint( region, PRODUCT_CODE, domain); } public static Map<String, String> listEndpoints() throws ClientException { Map<String, String> m = new HashMap<String,String>(); for(Map.Entry<String, String> ent : regionMap.entrySet()){ String region = ent.getKey(); ResolveEndpointRequest req = new ResolveEndpointRequest(region, PRODUCT_CODE, "", ResolveEndpointRequest.ENDPOINT_TYPE_OPEN); String endpoint = DefaultEndpointResolver.predefinedEndpointResolver.fetchEndpointEntry(req); m.put(region, endpoint); } return m; } /** * add header k-v pairs for every request * @param key * @param value */ public static void addRequestHeader(String key, String value) { BatchComputeRequest.setCommonHeader(key,value); } public static boolean verbose = false; private <T extends AcsResponse> T getAcsResponse2(AcsRequest<T> request) throws ServerException, ClientException { return client.getAcsResponse(request); } //hack一下,处理 ErrorCode 的兼容 private <T extends AcsResponse> T getAcsResponse(AcsRequest<T> request) throws ClientException { //兼容服务端获取不到x-acs-accesskey-id的bug request.putHeaderParameter("x-acs-access-key-id", this.accessKeyId); request.putHeaderParameter("x-acs-accesskey-id", this.accessKeyId); if (verbose) { Map<String, String> reqHeaders = request.getHeaders(); Set<String> keys = reqHeaders.keySet(); System.out.println("--->Request.Headers:"); for (String key : keys) { System.out.println("\t" + key + ":" + reqHeaders.get(key)); } byte[] bs = request.getHttpContent(); if (bs == null) bs = new byte[]{}; System.out.println("--->Request.Action:"+request.getActionName()); System.out.println("--->Request.Body:->" + new String(bs)+"<-"); } HttpResponse baseResponse = this.client.doAction(request); if (verbose) { System.out.println("--->Request.method:" + request.getMethod()); System.out.println("--->Request.URL:" + request.getUrl()); System.out.println("--->Response.Status:" + baseResponse.getStatus()); Map<String, String> headers = baseResponse.getHeaders(); Set<String> keys = headers.keySet(); System.out.println("--->Response.Headers:"); for (String key : keys) { System.out.println("\t" + key + ":" + headers.get(key)); } System.out.println("--->Response.body:" + new String(baseResponse.getHttpContent())); } return HackAcsClient.parseAcsResponse(request.getResponseClass(), baseResponse); } public CreateJobResponse createJob(CreateJobRequest request) throws ClientException { return getAcsResponse(request); } public CreateJobResponse createJob(JobDescription jobDescription) throws ClientException { CreateJobRequest request = new CreateJobRequest(); request.setJobDescription(jobDescription); return createJob(request); } @Override public CreateJobResponse createJob(JobDescription jobDescription, String idempotentToken) throws ClientException { CreateJobRequest request = new CreateJobRequest(); request.setJobDescription(jobDescription); request.setIdempotentToken(idempotentToken); return createJob(request); } @Override public UpdateClusterResponse updateCluster(UpdateClusterRequest request) throws ClientException { return getAcsResponse(request); } @Override public UpdateClusterResponse updateCluster(String clusterId, ClusterDescription desc) throws ClientException { UpdateClusterRequest request = new UpdateClusterRequest(); request.setClusterDescription(desc); request.setClusterId(clusterId); return getAcsResponse(request); } @Override public ChangeJobPriorityResponse changeJobPriority(ChangeJobPriorityRequest req) throws ClientException { req._useInteger = true; try{ return getAcsResponse(req); }catch(ClientException e){ //{"Code":"InvalidJsonFormat","Message":"The request body has an invalid json format"} if(e.getErrCode().equals("InvalidJsonFormat")){ req._useInteger = false; req.setPriority(req.getPriority()); return getAcsResponse(req); } else{ throw e; } } } @Override public ChangeJobPriorityResponse changeJobPriority(String jobId, int priority) throws ClientException { ChangeJobPriorityRequest req = new ChangeJobPriorityRequest(); req.setJobId(jobId); req.setPriority(priority); return changeJobPriority(req); } public DeleteJobResponse deleteJob(DeleteJobRequest request) throws ClientException { DeleteJobResponse response = getAcsResponse(request); return response; } public DeleteJobResponse deleteJob(String jobId) throws ClientException { DeleteJobRequest request = new DeleteJobRequest(); request.setJobId(jobId); return deleteJob(request); } public GetJobResponse getJob(GetJobRequest request) throws ClientException { return getAcsResponse(request); } public GetJobResponse getJob(String jobId) throws ClientException { GetJobRequest request = new GetJobRequest(); request.setJobId(jobId); return getJob(request); } @Override public ListJobsResponse listJobs(ListJobsRequest request) throws ClientException { return getAcsResponse(request); } @Override public ListJobsResponse listJobs() throws ClientException { ListJobsRequest req = new ListJobsRequest(); return listJobs(req); } @Override public ListJobsResponse listJobs(String marker, int maxItemCount) throws ClientException { ListJobsRequest req = new ListJobsRequest(); req.setMarker(marker); req.setMaxItemCount(maxItemCount); return listJobs(req); } @Override public ListJobsResponse listJobs(String state) throws ClientException { ListJobsRequest req = new ListJobsRequest(); req.setState(state); return listJobs(req); } @Override public ListJobsResponse listJobs(String state, String marker, int maxItemCount) throws ClientException { ListJobsRequest req = new ListJobsRequest(); req.setMarker(marker); req.setMaxItemCount(maxItemCount); req.setState(state); return listJobs(req); } public StartJobResponse startJob(StartJobRequest request) throws ClientException { return getAcsResponse(request); } public StartJobResponse startJob(String jobId) throws ClientException { StartJobRequest request = new StartJobRequest(); request.setJobId(jobId); return startJob(request); } public StopJobResponse stopJob(StopJobRequest request) throws ClientException { return getAcsResponse(request); } public StopJobResponse stopJob(String jobId) throws ClientException { StopJobRequest request = new StopJobRequest(); request.setJobId(jobId); return stopJob(request); } public GetJobDescriptionResponse getJobDescription(GetJobDescriptionRequest request) throws ClientException { return getAcsResponse(request); } public GetJobDescriptionResponse getJobDescription(String jobId) throws ClientException { GetJobDescriptionRequest request = new GetJobDescriptionRequest(); request.setJobId(jobId); return getJobDescription(request); } public ListTasksResponse listTasks(ListTasksRequest request) throws ClientException { return getAcsResponse(request); } @Override public ListTasksResponse listTasks(String jobId) throws ClientException { ListTasksRequest req = new ListTasksRequest(); req.setJobId(jobId); return listTasks(req); } @Override public ListTasksResponse listTasks(String jobId, String marker, int maxItemCount) throws ClientException { ListTasksRequest req = new ListTasksRequest(); req.setJobId(jobId); req.setMarker(marker); req.setMaxItemCount(maxItemCount); return listTasks(req); } @Override public GetTaskResponse getTask(GetTaskRequest request) throws ClientException { return getAcsResponse(request); } @Override public GetTaskResponse getTask(String jobId, String taskName) throws ClientException { GetTaskRequest req = new GetTaskRequest(); req.setJobId(jobId); req.setTaskName(taskName); return getTask(req); } @Override public ListInstancesResponse listInstances(ListInstancesRequest request) throws ClientException { return getAcsResponse(request); } @Override public ListInstancesResponse listInstances(String jobId, String taskName) throws ClientException { ListInstancesRequest req = new ListInstancesRequest(); req.setJobId(jobId); req.setTaskName(taskName); return listInstances(req); } @Override public ListInstancesResponse listInstances(String jobId, String taskName, String marker, int maxItemCount) throws ClientException { ListInstancesRequest req = new ListInstancesRequest(); req.setJobId(jobId); req.setTaskName(taskName); req.setMaxItemCount(maxItemCount); req.setMarker(marker); return listInstances(req); } @Override public GetInstanceResponse getInstance(GetInstanceRequest request) throws ClientException { return getAcsResponse(request); } @Override public GetInstanceResponse getInstance(String jobId, String taskName, int instanceId) throws ClientException { GetInstanceRequest req = new GetInstanceRequest(); req.setJobId(jobId); req.setTaskName(taskName); req.setInstanceId(instanceId); return getInstance(req); } @Override public CreateClusterResponse createCluster(CreateClusterRequest request) throws ClientException { return getAcsResponse(request); } @Override public CreateClusterResponse createCluster(ClusterDescription clusterDescription) throws ClientException { CreateClusterRequest req = new CreateClusterRequest(); req.setClusterDescription(clusterDescription); return createCluster(req); } @Override public CreateClusterResponse createCluster(ClusterDescription clusterDescription, String idempotentToken) throws ClientException { CreateClusterRequest req = new CreateClusterRequest(); req.setClusterDescription(clusterDescription); req.setIdempotentToken(idempotentToken); return createCluster(req); } @Override public ListClustersResponse listClusters(ListClustersRequest request) throws ClientException { return getAcsResponse(request); } @Override public ListClustersResponse listClusters() throws ClientException { ListClustersRequest req = new ListClustersRequest(); return getAcsResponse(req); } @Override public ListClustersResponse listClusters(String marker, int maxItemCount) throws ClientException { ListClustersRequest req = new ListClustersRequest(); req.setMarker(marker); req.setMaxItemCount(maxItemCount); return listClusters(req); } @Override public GetClusterResponse getCluster(GetClusterRequest request) throws ClientException { return getAcsResponse(request); } @Override public GetClusterResponse getCluster(String clusterId) throws ClientException { GetClusterRequest req = new GetClusterRequest(); req.setClusterId(clusterId); return getCluster(req); } @Override public DeleteClusterResponse deleteCluster(DeleteClusterRequest request) throws ClientException { return getAcsResponse(request); } @Override public DeleteClusterResponse deleteCluster(String clusterId) throws ClientException { DeleteClusterRequest req = new DeleteClusterRequest(); req.setClusterId(clusterId); return deleteCluster(req); } @Override public ChangeClusterDesiredVMCountResponse changeClusterDesiredVMCount(ChangeClusterDesiredVMCountRequest req) throws ClientException { return getAcsResponse(req); } @Override public ChangeClusterDesiredVMCountResponse changeClusterDesiredVMCount(String clusterId, ClusterDescription clusterDesc) throws ClientException { ChangeClusterDesiredVMCountRequest req = new ChangeClusterDesiredVMCountRequest(); req.setClusterId(clusterId); req.setClusterDescription(clusterDesc); return changeClusterDesiredVMCount(req); } @Override public ChangeClusterDesiredVMCountResponse changeClusterDesiredVMCount(String clusterId, String groupName, int count) throws ClientException { ChangeClusterDesiredVMCountRequest req = new ChangeClusterDesiredVMCountRequest(); req.setClusterId(clusterId); req.setDesiredVmCount(groupName, count); return changeClusterDesiredVMCount(req); } @Override public GetClusterInstanceResponse getClusterInstance(String clusterId, String groupName, String instanceId) throws ClientException{ GetClusterInstanceRequest req = new GetClusterInstanceRequest(clusterId, groupName, instanceId); return getClusterInstance(req); } @Override public GetClusterInstanceResponse getClusterInstance(GetClusterInstanceRequest req) throws ClientException { return getAcsResponse(req); } @Override public ListClusterInstancesResponse listClusterInstances(String clusterId, String groupName) throws ClientException { ListClusterInstancesRequest req = new ListClusterInstancesRequest(clusterId, groupName); return listClusterInstances(req); } @Override public ListClusterInstancesResponse listClusterInstances(String clusterId, String groupName, String marker, int maxItemCount) throws ClientException { ListClusterInstancesRequest req = new ListClusterInstancesRequest(clusterId, groupName); req.setMarker(marker); req.setMaxItemCount(maxItemCount); return listClusterInstances(req); } @Override public ListClusterInstancesResponse listClusterInstances(ListClusterInstancesRequest req) throws ClientException { return getAcsResponse(req); } @Override public RecreateClusterInstanceResponse recreateClusterInstance(String clusterId, String groupName, String instanceId) throws ClientException { RecreateClusterInstanceRequest req = new RecreateClusterInstanceRequest(clusterId, groupName, instanceId); return recreateClusterInstance(req); } @Override public RecreateClusterInstanceResponse recreateClusterInstance(RecreateClusterInstanceRequest req) throws ClientException { return getAcsResponse(req); } @Override public DeleteClusterInstanceResponse deleteClusterInstance(String clusterId, String groupName, String instanceId) throws ClientException { DeleteClusterInstanceRequest req = new DeleteClusterInstanceRequest(clusterId, groupName, instanceId); return deleteClusterInstance(req); } @Override public DeleteClusterInstanceResponse deleteClusterInstance(DeleteClusterInstanceRequest req) throws ClientException { return getAcsResponse(req); } @Override public GetImageResponse getImage(String imageId) throws ClientException { GetImageRequest req = new GetImageRequest(); req.setImageId(imageId); return getImage(req); } @Override public GetImageResponse getImage(GetImageRequest req) throws ClientException { return getAcsResponse(req); } @Override public CreateImageResponse createImage(ImageDescription imageDescription) throws ClientException { CreateImageRequest req = new CreateImageRequest(); req.setImageDescription(imageDescription); return createImage(req); } @Override public CreateImageResponse createImage(CreateImageRequest req) throws ClientException { return getAcsResponse(req); } @Override public CreateImageResponse createImage(ImageDescription imageDescription,String idempotentToken) throws ClientException { CreateImageRequest req = new CreateImageRequest(); req.setImageDescription(imageDescription); req.setIdempotentToken(idempotentToken); return createImage(req); } @Override public DeleteImageResponse deleteImage(String imageId) throws ClientException { DeleteImageRequest req = new DeleteImageRequest(); req.setImageId(imageId); return deleteImage(req); } @Override public DeleteImageResponse deleteImage(DeleteImageRequest req) throws ClientException { return getAcsResponse(req); } @Override public ListImagesResponse listImages() throws ClientException { ListImagesRequest req = new ListImagesRequest(); return listImages(req); } @Override public ListImagesResponse listImages(String type) throws ClientException { ListImagesRequest req = new ListImagesRequest(); req.setType(type); return listImages(req); } @Override public ListImagesResponse listImages(String type, String marker, int maxItemCount) throws ClientException { ListImagesRequest req = new ListImagesRequest(); req.setType(type); req.setMarker(marker); req.setMaxItemCount(maxItemCount); return listImages(req); } @Override public ListImagesResponse listImages(String marker, int maxItemCount) throws ClientException { ListImagesRequest req = new ListImagesRequest(); req.setMarker(marker); req.setMaxItemCount(maxItemCount); return listImages(req); } @Override public ListImagesResponse listImages(ListImagesRequest req) throws ClientException { return getAcsResponse(req); } @Override public GetAppResponse getApp(String appName) throws ClientException { GetAppRequest req = new GetAppRequest(); req.setAppName(appName); req.setScope("Private"); return getApp(req); } @Override public GetAppResponse getApp(String appName, String scope) throws ClientException { GetAppRequest req = new GetAppRequest(); req.setAppName(appName); req.setScope(scope); return getApp(req); } @Override public GetAppResponse getApp(GetAppRequest req) throws ClientException { return getAcsResponse(req); } @Override public GetAppRevisionsResponse getAppRevisions(String appName) throws ClientException { GetAppRevisionsRequest req = new GetAppRevisionsRequest(); req.setAppName(appName); return getAppRevisions(req); } @Override public GetAppRevisionsResponse getAppRevisions(GetAppRevisionsRequest req) throws ClientException { return getAcsResponse(req); } @Override public GetAppDetailResponse getAppDetail(String appName, String qualifier) throws ClientException { GetAppDetailRequest req = new GetAppDetailRequest(); req.setAppName(appName); req.setQualifier(qualifier); return getAppDetail(req); } @Override public GetAppDetailResponse getAppDetail(GetAppDetailRequest req) throws ClientException { return getAcsResponse(req); } @Override public CreateAppResponse createApp(AppDescription appDescription) throws ClientException { CreateAppRequest req = new CreateAppRequest(); req.setAppDescription(appDescription); return createApp(req); } @Override public CreateAppResponse createApp(CreateAppRequest req) throws ClientException { return getAcsResponse(req); } @Override public CreateAppResponse createApp(AppDescription appDescription, String idempotentToken) throws ClientException { CreateAppRequest req = new CreateAppRequest(); req.setAppDescription(appDescription); req.setIdempotentToken(idempotentToken); return createApp(req); } @Override public UpdateAppResponse updateApp(AppDescription appDescription) throws ClientException { UpdateAppRequest req = new UpdateAppRequest(); req.setAppDescription(appDescription); return updateApp(req); } @Override public UpdateAppResponse updateApp(UpdateAppRequest req) throws ClientException { return getAcsResponse(req); } @Override public DeleteAppResponse deleteApp(String appName) throws ClientException { DeleteAppRequest req = new DeleteAppRequest(); req.setAppName(appName); return deleteApp(req); } @Override public DeleteAppResponse deleteApp(String appName, String qualifier) throws ClientException { DeleteAppRequest req = new DeleteAppRequest(); req.setAppName(appName); req.setQualifier(qualifier); return deleteApp(req); } @Override public DeleteAppResponse deleteApp(DeleteAppRequest req) throws ClientException { return getAcsResponse(req); } @Override public ListAppsResponse listApps(String scope) throws ClientException { ListAppsRequest req = new ListAppsRequest(); req.setScope(scope); return listApps(req); } @Override public ListAppsResponse listApps(String scope, String marker, int maxItemCount) throws ClientException { ListAppsRequest req = new ListAppsRequest(); req.setMaxItemCount(maxItemCount); req.setMarker(marker); req.setScope(scope); return listApps(req); } @Override public ListAppsResponse listApps(ListAppsRequest req) throws ClientException { return getAcsResponse(req); } @Override public GetQuotasResponse getQuotas() throws ClientException { GetQuotasRequest req = new GetQuotasRequest(); return getQuotas(req); } @Override public GetQuotasResponse getQuotas(GetQuotasRequest req) throws ClientException { return getAcsResponse(req); } @Override public GetAvailableResourceResponse getAvailableResource() throws ClientException { GetAvailableResourceRequest req = new GetAvailableResourceRequest(); return getAvailableResource(req); } @Override public GetAvailableResourceResponse getAvailableResource(GetAvailableResourceRequest req) throws ClientException { return getAcsResponse(req); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/main
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/main/v20151111/BatchComputeRequest.java
package com.aliyuncs.batchcompute.main.v20151111; import com.aliyuncs.AcsResponse; import com.aliyuncs.RoaAcsRequest; import java.util.HashMap; import java.util.Map; import java.util.Set; /** * Created by guangchun.luo on 15/12/7. */ public abstract class BatchComputeRequest<T extends AcsResponse> extends RoaAcsRequest<T> { public BatchComputeRequest(String product) { super(product); attachCommonHeaders(); } public BatchComputeRequest(String product, String version) { super(product, version); attachCommonHeaders(); } public BatchComputeRequest(String product, String version, String action) { super(product, version, action); attachCommonHeaders(); } private void attachCommonHeaders(){ Set<String> keys = commonHeaders.keySet(); for(String key: keys){ this.putHeaderParameter(key, commonHeaders.get(key)); } } protected static Map<String,String> commonHeaders = new HashMap<String, String>(); protected static void setCommonHeader(String key, String value){ commonHeaders.put(key,value); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/main
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/main/v20151111/BatchComputeResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.main.v20151111; import com.aliyuncs.AcsResponse; import com.aliyuncs.http.HttpResponse; /** * Created by guangchun.luo on 15/6/5. */ public abstract class BatchComputeResponse extends AcsResponse{ protected HttpResponse httpResponse; public int getStatusCode() { return statusCode; } public void setStatusCode(int statusCode) { this.statusCode = statusCode; } String requestId; int statusCode; public void setRequestId(String requestId){ this.requestId = requestId; } public String getRequestId(){ return requestId; } public HttpResponse getHttpResponse(){ return httpResponse; } public void setHttpResponse(HttpResponse httpResponse){ this.httpResponse = httpResponse; //parse common fields parseCommonFields(); } private void parseCommonFields(){ String requestId = httpResponse.getHeaderValue("Request-Id"); int status = httpResponse.getStatus(); this.setRequestId(requestId); this.setStatusCode(status); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/main
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/main/v20151111/CustomJsonDateDeserializer.java
package com.aliyuncs.batchcompute.main.v20151111; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonDeserializer; import java.io.IOException; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.TimeZone; /** * Created by guangchun on 16/1/26. */ public class CustomJsonDateDeserializer extends JsonDeserializer<Date> { @Override public Date deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { String date = jsonParser.getText(); return parseDate(date); } public Date parseDate(String d){ if(d!=null && d.length() >0){ if(d.contains("T") && d.contains("Z")) { if(d.length()==27) d = d.substring(0,23)+'Z'; String format = "yyyy-MM-dd'T'HH:mm:ss.SSS"; SimpleDateFormat sdf = new SimpleDateFormat(format); sdf.setTimeZone(TimeZone.getTimeZone("GMT")); try { return sdf.parse(d); } catch (ParseException e) { e.printStackTrace(); } } else if(d.matches("^\\d+$")) { if(d.length()==10) try { if(d.length()==10) { // d = "1453776664" seconds return new Date(Long.parseLong(d) * 1000); } else if(d.length()==13){ return new Date(Long.parseLong(d)); } } catch (Exception e) { e.printStackTrace(); } } } return null; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/main
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/main/v20151111/HackAcsClient.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.main.v20151111; import com.aliyuncs.AcsError; import com.aliyuncs.AcsResponse; import com.aliyuncs.exceptions.ClientException; import com.aliyuncs.exceptions.ServerException; import com.aliyuncs.http.FormatType; import com.aliyuncs.http.HttpResponse; import com.aliyuncs.reader.Reader; import com.aliyuncs.reader.ReaderFactory; import com.aliyuncs.transform.UnmarshallerContext; import java.io.UnsupportedEncodingException; import java.util.HashMap; import java.util.Map; /** * Created by guangchun.luo on 15/5/7. */ public class HackAcsClient { protected static <T extends AcsResponse> T parseAcsResponse(Class<T> clasz, HttpResponse baseResponse) throws ServerException, ClientException { FormatType format = baseResponse.getHttpContentType(); if (baseResponse.isSuccess()) { return readResponse(clasz, baseResponse, format); } else { AcsError error = readError(baseResponse, format); if (500 <= baseResponse.getStatus()) { throw new ServerException(error.getErrorCode(), error.getErrorMessage(),error.getRequestId()); } else { throw new ClientException(error.getErrorCode(), error.getErrorMessage(),error.getRequestId()); } } } private static <T extends AcsResponse> T readResponse(Class<T> clasz, HttpResponse httpResponse, FormatType format) throws ClientException { UnmarshallerContext context = new UnmarshallerContext(); T response = null; String stringContent = httpResponse.getHttpContentString(); try { response = clasz.newInstance(); } catch (Exception e) { throw new ClientException("SDK.InvalidResponseClass", "Unable to allocate " + clasz.getName() + " class"); } if(format==null || format==FormatType.RAW ){ context.setResponseMap(new HashMap<String, String>()); } else{ String responseEndpoint = clasz.getName().substring(clasz.getName().lastIndexOf(".") + 1); if (response.checkShowJsonItemName()) { Reader reader = ReaderFactory.createInstance(format); context.setResponseMap(reader.read(stringContent, responseEndpoint)); } else { Reader reader = ReaderFactory.createInstance(format); context.setResponseMap(reader.readForHideArrayItem(stringContent, responseEndpoint)); } } context.setHttpResponse(httpResponse); response.getInstance(context); return response; } private static AcsError readError(HttpResponse httpResponse, FormatType format) throws ClientException { AcsError error = new AcsError(); String responseEndpoint = "Error"; if(FormatType.RAW == format){ throw new ServerException("BadGateway", "Server unreachable", ""); } Reader reader = ReaderFactory.createInstance(format); UnmarshallerContext context = new UnmarshallerContext(); String stringContent = getResponseContent(httpResponse); context.setResponseMap(reader.read(stringContent, responseEndpoint)); return unmarshall(error, context); } private static String getResponseContent(HttpResponse httpResponse) throws ClientException { String stringContent = null; try { String encoding= httpResponse.getEncoding(); if(encoding==null)encoding="UTF-8"; stringContent = new String(httpResponse.getHttpContent(), encoding); return stringContent; } catch (UnsupportedEncodingException var4) { throw new ClientException("SDK.UnsupportedEncoding", "Can not parse response due to un supported encoding.", httpResponse.getHeaderValue("Request-Id")); } } //兼容 private static AcsError unmarshall(AcsError error, UnmarshallerContext context) { Map map = context.getResponseMap(); error.setStatusCode(context.getHttpStatus()); error.setRequestId((String) map.get("Error.RequestId")); String code = (String) map.get("Error.Code"); code = code != null ? code : (String) map.get("Error.ErrorCode"); error.setErrorCode(code); error.setErrorMessage((String) map.get("Error.Message")); return error; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/ChangeClusterDesiredVMCountRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.batchcompute.pojo.v20151111.ClusterDescription; import com.aliyuncs.batchcompute.pojo.v20151111.GroupDescription; import com.aliyuncs.batchcompute.transform.v20151111.ChangeClusterDesiredVMCountRequestMarshaller; import com.aliyuncs.exceptions.ClientException; import com.aliyuncs.http.MethodType; /** * @author auto create */ public class ChangeClusterDesiredVMCountRequest extends BatchComputeRequest<ChangeClusterDesiredVMCountResponse> { public ChangeClusterDesiredVMCountRequest() { super("BatchCompute", "2015-11-11", "ModifyCluster"); setUriPattern("/clusters/[ResourceName]"); setMethod(MethodType.PUT); } private String resourceName; ClusterDescription clusterDesc = new ClusterDescription(); private int priority; public boolean _useInteger = true; public String getClusterId() { return this.resourceName; } public void setClusterId(String clusterId) { this.resourceName = clusterId; putPathParameter("ResourceName", resourceName); } public void setClusterDescription(ClusterDescription d){ clusterDesc = d; // for(Map.Entry<String, GroupDescription> set: clusterDesc.getGroups().entrySet()){ // set.getValue().setResourceType(null); // } ChangeClusterDesiredVMCountRequestMarshaller.marshall(this); } public void setDesiredVmCount(String groupName, int count) throws ClientException { GroupDescription groupDesc = new GroupDescription(); groupDesc.setDesiredVMCount(count); //groupDesc.setResourceType(null); clusterDesc.addGroup(groupName, groupDesc); ChangeClusterDesiredVMCountRequestMarshaller.marshall(this); } public ClusterDescription getClusterDescription() { return clusterDesc; } @Override public Class< ChangeClusterDesiredVMCountResponse> getResponseClass() { return ChangeClusterDesiredVMCountResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/ChangeClusterDesiredVMCountResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.transform.v20151111.ChangeClusterDesiredVMCountResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class ChangeClusterDesiredVMCountResponse extends BatchComputeResponse { private String clusterId; public String getClusterId() { return clusterId; } public void setClusterId(String clusterId) { this.clusterId = clusterId; } @Override public ChangeClusterDesiredVMCountResponse getInstance(UnmarshallerContext context) { return ChangeClusterDesiredVMCountResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/ChangeJobPriorityRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.batchcompute.transform.v20151111.ChangeJobPriorityRequestMarshaller; import com.aliyuncs.exceptions.ClientException; import com.aliyuncs.http.MethodType; /** * @author auto create */ public class ChangeJobPriorityRequest extends BatchComputeRequest<ChangeJobPriorityResponse> { public ChangeJobPriorityRequest() { super("BatchCompute", "2015-11-11", "ChangeJobPriority"); setUriPattern("/jobs/[ResourceName]"); setMethod(MethodType.PUT); } private String resourceName; private int priority; public boolean _useInteger = true; public String getJobId() { return this.resourceName; } public void setJobId(String jobId) { this.resourceName = jobId; putPathParameter("ResourceName", resourceName); } public void setPriority(int priority) throws ClientException { this.priority = priority; ChangeJobPriorityRequestMarshaller.marshall(this); } public int getPriority() { return priority; } @Override public Class<ChangeJobPriorityResponse> getResponseClass() { return ChangeJobPriorityResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/ChangeJobPriorityResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.transform.v20151111.ChangeJobPriorityResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class ChangeJobPriorityResponse extends BatchComputeResponse { @Override public ChangeJobPriorityResponse getInstance(UnmarshallerContext context) { return ChangeJobPriorityResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/CreateAppRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.batchcompute.pojo.v20151111.AppDescription; import com.aliyuncs.batchcompute.transform.v20151111.CreateAppRequestMarshaller; import com.aliyuncs.exceptions.ClientException; import com.aliyuncs.http.MethodType; /** * @author auto create * @version */ public class CreateAppRequest extends BatchComputeRequest<CreateAppResponse> { public CreateAppRequest() { super("BatchCompute", "2015-11-11", "CreateApp"); setUriPattern("/apps"); setMethod(MethodType.POST); } private String IdempotentToken; public String getIdempotentToken() { return IdempotentToken; } public void setIdempotentToken(String idempotentToken) { IdempotentToken = idempotentToken; this.putQueryParameter("IdempotentToken",idempotentToken); } private AppDescription appDescription; public AppDescription getAppDescription() { return appDescription; } public void setAppDescription(AppDescription appDescription) throws ClientException { this.appDescription = appDescription; CreateAppRequestMarshaller.marshall(this); } @Override public Class<CreateAppResponse> getResponseClass() { return CreateAppResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/CreateAppResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.transform.v20151111.CreateAppResponseUnmarshaller; import com.aliyuncs.exceptions.ServerException; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class CreateAppResponse extends BatchComputeResponse { private String appName; public String getAppName() { return appName; } public void setAppName(String appName) { this.appName = appName; } @Override public CreateAppResponse getInstance(UnmarshallerContext context) throws ServerException { return CreateAppResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/CreateClusterRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.batchcompute.pojo.v20151111.ClusterDescription; import com.aliyuncs.batchcompute.transform.v20151111.CreateClusterRequestMarshaller; import com.aliyuncs.exceptions.ClientException; import com.aliyuncs.http.MethodType; /** * @author auto create * @version */ public class CreateClusterRequest extends BatchComputeRequest<CreateClusterResponse> { public CreateClusterRequest() { super("BatchCompute", "2015-11-11", "CreateCluster"); setUriPattern("/clusters"); setMethod(MethodType.POST); } private ClusterDescription clusterDescription; public ClusterDescription getClusterDescription() { return clusterDescription; } public void setClusterDescription(ClusterDescription clusterDescription) throws ClientException { this.clusterDescription = clusterDescription; CreateClusterRequestMarshaller.marshall(this); } private String IdempotentToken; public String getIdempotentToken() { return IdempotentToken; } public void setIdempotentToken(String idempotentToken) { IdempotentToken = idempotentToken; this.putQueryParameter("IdempotentToken",idempotentToken); } @Override public Class<CreateClusterResponse> getResponseClass() { return CreateClusterResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/CreateClusterResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.transform.v20151111.CreateClusterResponseUnmarshaller; import com.aliyuncs.exceptions.ServerException; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class CreateClusterResponse extends BatchComputeResponse { private String clusterId; public String getClusterId() { return clusterId; } public void setClusterId(String clusterId) { this.clusterId = clusterId; } @Override public CreateClusterResponse getInstance(UnmarshallerContext context) throws ServerException { return CreateClusterResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/CreateImageRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.batchcompute.pojo.v20151111.ImageDescription; import com.aliyuncs.batchcompute.transform.v20151111.CreateImageRequestMarshaller; import com.aliyuncs.exceptions.ClientException; import com.aliyuncs.http.MethodType; /** * @author auto create * @version */ public class CreateImageRequest extends BatchComputeRequest<CreateImageResponse> { public CreateImageRequest() { super("BatchCompute", "2015-11-11", "CreateImage"); setUriPattern("/images"); setMethod(MethodType.POST); } private String IdempotentToken; public String getIdempotentToken() { return IdempotentToken; } public void setIdempotentToken(String idempotentToken) { IdempotentToken = idempotentToken; this.putQueryParameter("IdempotentToken",idempotentToken); } private ImageDescription imageDescription; public ImageDescription getImageDescription() { return imageDescription; } public void setImageDescription(ImageDescription imageDescription) throws ClientException { this.imageDescription = imageDescription; CreateImageRequestMarshaller.marshall(this); } @Override public Class<CreateImageResponse> getResponseClass() { return CreateImageResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/CreateImageResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.transform.v20151111.CreateImageResponseUnmarshaller; import com.aliyuncs.exceptions.ServerException; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class CreateImageResponse extends BatchComputeResponse { private String imageId; public String getImageId() { return imageId; } public void setImageId(String imageId) { this.imageId = imageId; } @Override public CreateImageResponse getInstance(UnmarshallerContext context) throws ServerException { return CreateImageResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/CreateJobRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.batchcompute.pojo.v20151111.JobDescription; import com.aliyuncs.batchcompute.transform.v20151111.CreateJobRequestMarshaller; import com.aliyuncs.exceptions.ClientException; import com.aliyuncs.http.MethodType; /** * @author auto create * @version */ public class CreateJobRequest extends BatchComputeRequest<CreateJobResponse> { public CreateJobRequest() { super("BatchCompute", "2015-11-11", "CreateJob"); setUriPattern("/jobs"); setMethod(MethodType.POST); } private String IdempotentToken; public String getIdempotentToken() { return IdempotentToken; } public void setIdempotentToken(String idempotentToken) { IdempotentToken = idempotentToken; this.putQueryParameter("IdempotentToken",idempotentToken); } private JobDescription jobDescription; public JobDescription getJobDescription() { return jobDescription; } public void setJobDescription(JobDescription jobDescription) throws ClientException { this.jobDescription = jobDescription; CreateJobRequestMarshaller.marshall(this); } @Override public Class<CreateJobResponse> getResponseClass() { return CreateJobResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/CreateJobResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.transform.v20151111.CreateJobResponseUnmarshaller; import com.aliyuncs.exceptions.ServerException; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class CreateJobResponse extends BatchComputeResponse { private String jobId; public String getJobId() { return jobId; } public void setJobId(String jobId) { this.jobId = jobId; } @Override public CreateJobResponse getInstance(UnmarshallerContext context) throws ServerException { return CreateJobResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/DeleteAppRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.http.MethodType; /** * @author auto create * @version */ public class DeleteAppRequest extends BatchComputeRequest<DeleteAppResponse> { public DeleteAppRequest() { super("BatchCompute", "2015-11-11", "DeleteApp"); setUriPattern("/apps/[ResourceName]"); setMethod(MethodType.DELETE); } private String appName; public String getAppName() { return this.appName; } public void setAppName(String appName) { this.appName = appName; putPathParameter("ResourceName", appName); } private String qualifier; public String getQualifier() { return this.qualifier; } public void setQualifier(String qualifier) { this.qualifier = qualifier; putPathParameter("Qualifier", qualifier); } @Override public Class<DeleteAppResponse> getResponseClass() { return DeleteAppResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/DeleteAppResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.transform.v20151111.DeleteAppResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class DeleteAppResponse extends BatchComputeResponse { @Override public DeleteAppResponse getInstance(UnmarshallerContext context) { return DeleteAppResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/DeleteClusterInstanceRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.http.MethodType; /** * @author auto create * @version */ public class DeleteClusterInstanceRequest extends BatchComputeRequest<DeleteClusterInstanceResponse> { public DeleteClusterInstanceRequest() { super("BatchCompute", "2015-11-11", "DeleteClusterInstance"); setUriPattern("/clusters/[ClusterId]/groups/[GroupName]/instances/[InstanceId]"); setMethod(MethodType.DELETE); } public DeleteClusterInstanceRequest(String clusterId, String groupName, String instanceId) { super("BatchCompute", "2015-11-11", "DeleteClusterInstance"); setUriPattern("/clusters/[ClusterId]/groups/[GroupName]/instances/[InstanceId]"); setMethod(MethodType.DELETE); setClusterId(clusterId); setGroupName(groupName); setInstanceId(instanceId); } private String instanceId; private String groupName; private String clusterId; public String getGroupName() { return groupName; } public void setGroupName(String groupName) { this.groupName = groupName; putPathParameter("GroupName", groupName); } public String getClusterId() { return clusterId; } public void setClusterId(String clusterId) { this.clusterId = clusterId; putPathParameter("ClusterId", clusterId); } public String getInstanceId() { return this.instanceId; } public void setInstanceId(String instanceId) { this.instanceId = instanceId; putPathParameter("InstanceId", instanceId); } @Override public Class<DeleteClusterInstanceResponse> getResponseClass() { return DeleteClusterInstanceResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/DeleteClusterInstanceResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.transform.v20151111.DeleteClusterInstanceResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class DeleteClusterInstanceResponse extends BatchComputeResponse { @Override public DeleteClusterInstanceResponse getInstance(UnmarshallerContext context) { return DeleteClusterInstanceResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/DeleteClusterRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.http.MethodType; /** * @author auto create * @version */ public class DeleteClusterRequest extends BatchComputeRequest<DeleteClusterResponse> { public DeleteClusterRequest() { super("BatchCompute", "2015-11-11", "DeleteCluster"); setUriPattern("/clusters/[ResourceName]"); setMethod(MethodType.DELETE); } private String resourceName; public String getClusterId() { return this.resourceName; } public void setClusterId(String clusterId) { this.resourceName = clusterId; putPathParameter("ResourceName", resourceName); } @Override public Class<DeleteClusterResponse> getResponseClass() { return DeleteClusterResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/DeleteClusterResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.transform.v20151111.DeleteClusterResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class DeleteClusterResponse extends BatchComputeResponse { @Override public DeleteClusterResponse getInstance(UnmarshallerContext context) { return DeleteClusterResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/DeleteImageRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.http.MethodType; /** * @author auto create * @version */ public class DeleteImageRequest extends BatchComputeRequest<DeleteImageResponse> { public DeleteImageRequest() { super("BatchCompute", "2015-11-11", "DeleteImage"); setUriPattern("/images/[ResourceName]"); setMethod(MethodType.DELETE); } private String resourceName; public String getImageId() { return this.resourceName; } public void setImageId(String imageId) { this.resourceName = imageId; putPathParameter("ResourceName", resourceName); } @Override public Class<DeleteImageResponse> getResponseClass() { return DeleteImageResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/DeleteImageResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.transform.v20151111.DeleteImageResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class DeleteImageResponse extends BatchComputeResponse { @Override public DeleteImageResponse getInstance(UnmarshallerContext context) { return DeleteImageResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/DeleteJobRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.http.MethodType; /** * @author auto create * @version */ public class DeleteJobRequest extends BatchComputeRequest<DeleteJobResponse> { public DeleteJobRequest() { super("BatchCompute", "2015-11-11", "DeleteJob"); setUriPattern("/jobs/[ResourceName]"); setMethod(MethodType.DELETE); } private String resourceName; public String getJobId() { return this.resourceName; } public void setJobId(String jobId) { this.resourceName = jobId; putPathParameter("ResourceName", jobId); } @Override public Class<DeleteJobResponse> getResponseClass() { return DeleteJobResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/DeleteJobResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.transform.v20151111.DeleteJobResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class DeleteJobResponse extends BatchComputeResponse { @Override public DeleteJobResponse getInstance(UnmarshallerContext context) { return DeleteJobResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/GetAppDetailRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.http.MethodType; /** * @author auto create * @version */ public class GetAppDetailRequest extends BatchComputeRequest<GetAppDetailResponse> { public GetAppDetailRequest() { super("BatchCompute", "2015-11-11", "GetAppDetail"); setUriPattern("/apps/[ResourceName]?Detail=True"); setMethod(MethodType.GET); } private String appName; public String getAppName() { return this.appName; } public void setAppName(String appName) { this.appName = appName; putPathParameter("ResourceName", appName); } public String getQualifier() { return qualifier; } public void setQualifier(String qualifier) { this.qualifier = qualifier; putQueryParameter("Qualifier", qualifier); } private String qualifier; @Override public Class<GetAppDetailResponse> getResponseClass() { return GetAppDetailResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/GetAppDetailResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.pojo.v20151111.AppDescription; import com.aliyuncs.batchcompute.transform.v20151111.GetAppDetailResponseUnmarshaller; import com.aliyuncs.exceptions.ServerException; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class GetAppDetailResponse extends BatchComputeResponse { private AppDescription appDetail; public AppDescription getAppDetail() { return appDetail; } public void setAppDetail(AppDescription appDetail) { this.appDetail = appDetail; } @Override public GetAppDetailResponse getInstance(UnmarshallerContext context) throws ServerException { return GetAppDetailResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/GetAppRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.http.MethodType; /** * @author auto create * @version */ public class GetAppRequest extends BatchComputeRequest<GetAppResponse> { public GetAppRequest() { super("BatchCompute", "2015-11-11", "GetApp"); setUriPattern("/apps/[ResourceName]"); setMethod(MethodType.GET); } private String appName; public String getAppName() { return this.appName; } public void setAppName(String appName) { this.appName = appName; putPathParameter("ResourceName", appName); } public String getScope() { return scope; } public void setScope(String scope) { this.scope = scope; putQueryParameter("Scope", scope); } private String scope; @Override public Class<GetAppResponse> getResponseClass() { return GetAppResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/GetAppResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.pojo.v20151111.App; import com.aliyuncs.batchcompute.transform.v20151111.GetAppResponseUnmarshaller; import com.aliyuncs.exceptions.ServerException; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class GetAppResponse extends BatchComputeResponse { private App app; public App getApp() { return app; } public void setApp(App app) { this.app = app; } @Override public GetAppResponse getInstance(UnmarshallerContext context) throws ServerException { return GetAppResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/GetAppRevisionsRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.http.MethodType; /** * @author auto create * @version */ public class GetAppRevisionsRequest extends BatchComputeRequest<GetAppRevisionsResponse> { public GetAppRevisionsRequest() { super("BatchCompute", "2015-11-11", "GetAppRevisions"); setUriPattern("/apps/[ResourceName]?Revisions=True"); setMethod(MethodType.GET); } private String appName; public String getAppName() { return this.appName; } public void setAppName(String appName) { this.appName = appName; putPathParameter("ResourceName", appName); } @Override public Class<GetAppRevisionsResponse> getResponseClass() { return GetAppRevisionsResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/GetAppRevisionsResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.pojo.v20151111.AppRevision; import com.aliyuncs.batchcompute.transform.v20151111.GetAppRevisionsResponseUnmarshaller; import com.aliyuncs.exceptions.ServerException; import com.aliyuncs.transform.UnmarshallerContext; import java.util.List; /** * @author auto create * @version */ public class GetAppRevisionsResponse extends BatchComputeResponse { private List<AppRevision> list; public List<AppRevision> getAppRevisions() { return list; } public void setAppRevisions(List<AppRevision> list) { this.list = list; } public boolean checkShowJsonItemName(){ return false; } @Override public GetAppRevisionsResponse getInstance(UnmarshallerContext context) throws ServerException { return GetAppRevisionsResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/GetAvailableResourceRequest.java
package com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.http.MethodType; public class GetAvailableResourceRequest extends BatchComputeRequest<GetAvailableResourceResponse> { public GetAvailableResourceRequest() { super("BatchCompute", "2015-11-11", "GetAvailableResource"); setUriPattern("/available"); setMethod(MethodType.GET); } @Override public Class<GetAvailableResourceResponse> getResponseClass() { return GetAvailableResourceResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/GetAvailableResourceResponse.java
package com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.pojo.v20151111.AvailableResource; import com.aliyuncs.batchcompute.transform.v20151111.GetAvailableResourceResponseUnmarshaller; import com.aliyuncs.exceptions.ServerException; import com.aliyuncs.transform.UnmarshallerContext; public class GetAvailableResourceResponse extends BatchComputeResponse { private AvailableResource availableResource; public AvailableResource getAvailableResource() { return availableResource; } public void setAvailableResource(AvailableResource availableResource) { this.availableResource = availableResource; } @Override public GetAvailableResourceResponse getInstance(UnmarshallerContext context) throws ServerException { return GetAvailableResourceResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/GetClusterInstanceRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.http.MethodType; /** * @author auto create * @version */ public class GetClusterInstanceRequest extends BatchComputeRequest<GetClusterInstanceResponse> { public GetClusterInstanceRequest() { super("BatchCompute", "2015-11-11", "GetCluster"); setUriPattern("/clusters/[ClusterId]/groups/[GroupName]/instances/[InstanceId]"); setMethod(MethodType.GET); } public GetClusterInstanceRequest(String clusterId, String groupName, String instanceId) { super("BatchCompute", "2015-11-11", "GetCluster"); setUriPattern("/clusters/[ClusterId]/groups/[GroupName]/instances/[InstanceId]"); setMethod(MethodType.GET); setClusterId(clusterId); setGroupName(groupName); setInstanceId(instanceId); } private String instanceId; private String groupName; private String clusterId; public String getGroupName() { return groupName; } public void setGroupName(String groupName) { this.groupName = groupName; putPathParameter("GroupName", groupName); } public String getClusterId() { return clusterId; } public void setClusterId(String clusterId) { this.clusterId = clusterId; putPathParameter("ClusterId", clusterId); } public String getInstanceId() { return this.instanceId; } public void setInstanceId(String instanceId) { this.instanceId = instanceId; putPathParameter("InstanceId", instanceId); } @Override public Class<GetClusterInstanceResponse> getResponseClass() { return GetClusterInstanceResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/GetClusterInstanceResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.pojo.v20151111.ClusterInstance; import com.aliyuncs.batchcompute.transform.v20151111.GetClusterInstanceResponseUnmarshaller; import com.aliyuncs.exceptions.ServerException; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class GetClusterInstanceResponse extends BatchComputeResponse { private ClusterInstance clusterInstance; public ClusterInstance getClusterInstance() { return clusterInstance; } public void setClusterInstance(ClusterInstance clusterIns) { this.clusterInstance = clusterIns; } @Override public GetClusterInstanceResponse getInstance(UnmarshallerContext context) throws ServerException { return GetClusterInstanceResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/GetClusterRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.http.MethodType; /** * @author auto create * @version */ public class GetClusterRequest extends BatchComputeRequest<GetClusterResponse> { public GetClusterRequest() { super("BatchCompute", "2015-11-11", "GetCluster"); setUriPattern("/clusters/[ResourceName]"); setMethod(MethodType.GET); } private String resourceName; public String getClusterId() { return this.resourceName; } public void setClusterId(String clusterId) { this.resourceName = clusterId; putPathParameter("ResourceName", resourceName); } @Override public Class<GetClusterResponse> getResponseClass() { return GetClusterResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/GetClusterResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.pojo.v20151111.Cluster; import com.aliyuncs.batchcompute.transform.v20151111.GetClusterResponseUnmarshaller; import com.aliyuncs.exceptions.ServerException; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class GetClusterResponse extends BatchComputeResponse { private Cluster cluster; public Cluster getCluster() { return cluster; } public void setCluster(Cluster cluster) { this.cluster = cluster; } @Override public GetClusterResponse getInstance(UnmarshallerContext context) throws ServerException { return GetClusterResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/GetImageRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.http.MethodType; /** * @author auto create * @version */ public class GetImageRequest extends BatchComputeRequest<GetImageResponse> { public GetImageRequest() { super("BatchCompute", "2015-11-11", "GetImage"); setUriPattern("/images/[imageId]"); setMethod(MethodType.GET); } private String imageId; public String getImageId() { return this.imageId; } public void setImageId(String imageId) { this.imageId = imageId; putPathParameter("imageId", imageId); } @Override public Class<GetImageResponse> getResponseClass() { return GetImageResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/GetImageResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.pojo.v20151111.Image; import com.aliyuncs.batchcompute.transform.v20151111.GetImageResponseUnmarshaller; import com.aliyuncs.exceptions.ServerException; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class GetImageResponse extends BatchComputeResponse { private Image image; public Image getImage() { return image; } public void setImage(Image image) { this.image = image; } @Override public GetImageResponse getInstance(UnmarshallerContext context) throws ServerException { return GetImageResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/GetInstanceRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.http.MethodType; /** * @author auto create * @version */ public class GetInstanceRequest extends BatchComputeRequest<GetInstanceResponse> { public GetInstanceRequest() { super("BatchCompute", "2015-11-11", "GetInstance"); setUriPattern("/jobs/[ResourceName]/tasks/[TaskName]/instances/[InstanceId]"); setMethod(MethodType.GET); } private String resourceName; private String taskName; private int instanceId; public String getJobId() { return this.resourceName; } public void setJobId(String jobId) { this.resourceName = jobId; putPathParameter("ResourceName", resourceName); } public String getTaskName() { return this.taskName; } public void setTaskName(String taskName) { this.taskName = taskName; putPathParameter("TaskName", taskName); } public int getInstanceId() { return this.instanceId; } public void setInstanceId(int instanceId) { this.instanceId = instanceId; putPathParameter("InstanceId", instanceId); } @Override public Class<GetInstanceResponse> getResponseClass() { return GetInstanceResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/GetInstanceResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.pojo.v20151111.Instance; import com.aliyuncs.batchcompute.transform.v20151111.GetInstanceResponseUnmarshaller; import com.aliyuncs.exceptions.ServerException; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class GetInstanceResponse extends BatchComputeResponse { private Instance instance; public Instance getInstance() { return instance; } public void setInstance(Instance instance) { this.instance = instance; } @Override public GetInstanceResponse getInstance(UnmarshallerContext context) throws ServerException { return GetInstanceResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/GetJobDescriptionRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.http.MethodType; /** * @author auto create */ public class GetJobDescriptionRequest extends BatchComputeRequest<GetJobDescriptionResponse> { public GetJobDescriptionRequest() { super("BatchCompute", "2015-11-11", "GetJobDescription"); setUriPattern("/jobs/[ResourceName]?description"); setMethod(MethodType.GET); } private String resourceName; public String getJobId() { return this.resourceName; } public void setJobId(String jobId) { this.resourceName = jobId; putPathParameter("ResourceName", resourceName); } @Override public Class<GetJobDescriptionResponse> getResponseClass() { return GetJobDescriptionResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/GetJobDescriptionResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.pojo.v20151111.JobDescription; import com.aliyuncs.batchcompute.transform.v20151111.GetJobDescriptionResponseUnmarshaller; import com.aliyuncs.exceptions.ServerException; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class GetJobDescriptionResponse extends BatchComputeResponse { private JobDescription jobDescription; public JobDescription getJobDescription() { return jobDescription; } public void setJobDescription(JobDescription jobDescription) { this.jobDescription = jobDescription; } @Override public GetJobDescriptionResponse getInstance(UnmarshallerContext context) throws ServerException { return GetJobDescriptionResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/GetJobRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.http.MethodType; /** * @author auto create * @version */ public class GetJobRequest extends BatchComputeRequest<GetJobResponse> { public GetJobRequest() { super("BatchCompute", "2015-11-11", "GetJob"); setUriPattern("/jobs/[ResourceName]"); setMethod(MethodType.GET); } private String resourceName; public String getJobId() { return this.resourceName; } public void setJobId(String jobId) { this.resourceName = jobId; putPathParameter("ResourceName", resourceName); } @Override public Class<GetJobResponse> getResponseClass() { return GetJobResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/GetJobResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.pojo.v20151111.Job; import com.aliyuncs.batchcompute.transform.v20151111.GetJobResponseUnmarshaller; import com.aliyuncs.exceptions.ServerException; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class GetJobResponse extends BatchComputeResponse { private Job job; public Job getJob() { return job; } public void setJob(Job job) { this.job = job; } @Override public GetJobResponse getInstance(UnmarshallerContext context) throws ServerException { return GetJobResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/GetQuotasRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.http.MethodType; /** * @author auto create * @version */ public class GetQuotasRequest extends BatchComputeRequest<GetQuotasResponse> { public GetQuotasRequest() { super("BatchCompute", "2015-11-11", "GetQuotas"); setUriPattern("/quotas"); setMethod(MethodType.GET); } @Override public Class<GetQuotasResponse> getResponseClass() { return GetQuotasResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/GetQuotasResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.pojo.v20151111.Quotas; import com.aliyuncs.batchcompute.transform.v20151111.GetQuotasResponseUnmarshaller; import com.aliyuncs.exceptions.ServerException; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class GetQuotasResponse extends BatchComputeResponse { private Quotas quotas; public Quotas getQuotas() { return quotas; } public void setQuotas(Quotas quotas) { this.quotas = quotas; } @Override public GetQuotasResponse getInstance(UnmarshallerContext context) throws ServerException { return GetQuotasResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/GetTaskRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.http.MethodType; /** * @author auto create * @version */ public class GetTaskRequest extends BatchComputeRequest<GetTaskResponse> { public GetTaskRequest() { super("BatchCompute", "2015-11-11", "GetTask"); setUriPattern("/jobs/[ResourceName]/tasks/[TaskName]"); setMethod(MethodType.GET); } private String resourceName; private String taskName; public String getJobId() { return this.resourceName; } public void setJobId(String jobId) { this.resourceName = jobId; putPathParameter("ResourceName", resourceName); } public String getTaskName() { return this.taskName; } public void setTaskName(String taskName) { this.taskName = taskName; putPathParameter("TaskName", taskName); } @Override public Class<GetTaskResponse> getResponseClass() { return GetTaskResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/GetTaskResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.pojo.v20151111.Task; import com.aliyuncs.batchcompute.transform.v20151111.GetTaskResponseUnmarshaller; import com.aliyuncs.exceptions.ServerException; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class GetTaskResponse extends BatchComputeResponse { private Task task; public Task getTask() { return task; } public void setTask(Task task) { this.task = task; } @Override public GetTaskResponse getInstance(UnmarshallerContext context) throws ServerException { return GetTaskResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/ListAppsRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.http.MethodType; /** * @author auto create * @version */ public class ListAppsRequest extends BatchComputeRequest<ListAppsResponse> { public ListAppsRequest() { super("BatchCompute", "2015-11-11", "ListApps"); setUriPattern("/apps"); setMethod(MethodType.GET); } private String marker; private int maxItemCount= 50; public String getScope() { return scope; } public void setScope(String scope) { this.scope = scope; if(scope!=null && !scope.equals("")) { this.putQueryParameter("Scope", scope); } } private String scope; public String getMarker() { return marker; } public void setMarker(String marker) { this.marker = marker; if(marker!=null && !marker.equals("")) { this.putQueryParameter("Marker", marker); } } public int getMaxItemCount() { return maxItemCount; } public void setMaxItemCount(int maxItemCount) { this.maxItemCount = maxItemCount; this.putQueryParameter("MaxItemCount",maxItemCount); } @Override public Class<ListAppsResponse> getResponseClass() { return ListAppsResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/ListAppsResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.pojo.v20151111.App; import com.aliyuncs.batchcompute.transform.v20151111.ListAppsResponseUnmarshaller; import com.aliyuncs.exceptions.ServerException; import com.aliyuncs.transform.UnmarshallerContext; import java.util.List; /** * @author auto create * @version */ public class ListAppsResponse extends BatchComputeResponse { public String getNextMarker() { return nextMarker; } public void setNextMarker(String nextMarker) { this.nextMarker = nextMarker; } public List<App> getItems() { return items; } public void setItems(List<App> items) { this.items = items; } private String nextMarker; private List<App> items; @Override public ListAppsResponse getInstance(UnmarshallerContext context) throws ServerException { return ListAppsResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/ListClusterInstancesRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.http.MethodType; /** * @author auto create * @version */ public class ListClusterInstancesRequest extends BatchComputeRequest<ListClusterInstancesResponse> { public ListClusterInstancesRequest() { super("BatchCompute", "2015-11-11", "ListClusterInstances"); setUriPattern("/clusters/[ClusterId]/groups/[GroupName]/instances"); setMethod(MethodType.GET); } public ListClusterInstancesRequest(String clusterId, String groupName) { super("BatchCompute", "2015-11-11", "ListClusterInstances"); setUriPattern("/clusters/[ClusterId]/groups/[GroupName]/instances"); setMethod(MethodType.GET); setClusterId(clusterId); setGroupName(groupName); } private String marker; private int maxItemCount= 50; private String groupName; private String clusterId; public String getGroupName() { return groupName; } public void setGroupName(String groupName) { this.groupName = groupName; putPathParameter("GroupName", groupName); } public String getClusterId() { return clusterId; } public void setClusterId(String clusterId) { this.clusterId = clusterId; putPathParameter("ClusterId", clusterId); } public String getMarker() { return marker; } public void setMarker(String marker) { this.marker = marker; if(marker!=null && !marker.equals("")) { this.putQueryParameter("Marker", marker); } } public int getMaxItemCount() { return maxItemCount; } public void setMaxItemCount(int maxItemCount) { this.maxItemCount = maxItemCount; this.putQueryParameter("MaxItemCount",maxItemCount); } @Override public Class<ListClusterInstancesResponse> getResponseClass() { return ListClusterInstancesResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/ListClusterInstancesResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.pojo.v20151111.ClusterInstance; import com.aliyuncs.batchcompute.transform.v20151111.ListClusterInstancesResponseUnmarshaller; import com.aliyuncs.exceptions.ServerException; import com.aliyuncs.transform.UnmarshallerContext; import java.util.List; /** * @author auto create * @version */ public class ListClusterInstancesResponse extends BatchComputeResponse { public String getNextMarker() { return nextMarker; } public void setNextMarker(String nextMarker) { this.nextMarker = nextMarker; } public List<ClusterInstance> getItems() { return items; } public void setItems(List<ClusterInstance> items) { this.items = items; } private String nextMarker; private List<ClusterInstance> items; @Override public ListClusterInstancesResponse getInstance(UnmarshallerContext context) throws ServerException { return ListClusterInstancesResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/ListClustersRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.http.MethodType; /** * @author auto create * @version */ public class ListClustersRequest extends BatchComputeRequest<ListClustersResponse> { public ListClustersRequest() { super("BatchCompute", "2015-11-11", "ListClusters"); setUriPattern("/clusters"); setMethod(MethodType.GET); } private String marker; private int maxItemCount= 50; public String getMarker() { return marker; } public void setMarker(String marker) { this.marker = marker; if(marker!=null && !marker.equals("")) { this.putQueryParameter("Marker", marker); } } public int getMaxItemCount() { return maxItemCount; } public void setMaxItemCount(int maxItemCount) { this.maxItemCount = maxItemCount; this.putQueryParameter("MaxItemCount",maxItemCount); } @Override public Class<ListClustersResponse> getResponseClass() { return ListClustersResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/ListClustersResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.pojo.v20151111.Cluster; import com.aliyuncs.batchcompute.transform.v20151111.ListClustersResponseUnmarshaller; import com.aliyuncs.exceptions.ServerException; import com.aliyuncs.transform.UnmarshallerContext; import java.util.List; /** * @author auto create * @version */ public class ListClustersResponse extends BatchComputeResponse { public String getNextMarker() { return nextMarker; } public void setNextMarker(String nextMarker) { this.nextMarker = nextMarker; } public List<Cluster> getItems() { return items; } public void setItems(List<Cluster> items) { this.items = items; } private String nextMarker; private List<Cluster> items; @Override public ListClustersResponse getInstance(UnmarshallerContext context) throws ServerException { return ListClustersResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/ListImagesRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.http.MethodType; /** * @author auto create * @version */ public class ListImagesRequest extends BatchComputeRequest<ListImagesResponse> { public static final String SYSTEM = "System"; public static final String SELF = "Self"; public ListImagesRequest() { super("BatchCompute", "2015-11-11", "ListImages"); setUriPattern("/images"); setMethod(MethodType.GET); } private String marker; private int maxItemCount= 50; private String type; public String getType() { return type; } public void setType(String type) { this.type = type; if(type!=null && !type.equals("")) { this.putQueryParameter("Type", type); } } public String getMarker() { return marker; } public void setMarker(String marker) { this.marker = marker; if(marker!=null && !marker.equals("")) { this.putQueryParameter("Marker", marker); } } public int getMaxItemCount() { return maxItemCount; } public void setMaxItemCount(int maxItemCount) { this.maxItemCount = maxItemCount; this.putQueryParameter("MaxItemCount",maxItemCount); } @Override public Class<ListImagesResponse> getResponseClass() { return ListImagesResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/ListImagesResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.pojo.v20151111.Image; import com.aliyuncs.batchcompute.transform.v20151111.ListImagesResponseUnmarshaller; import com.aliyuncs.exceptions.ServerException; import com.aliyuncs.transform.UnmarshallerContext; import java.util.List; /** * @author auto create * @version */ public class ListImagesResponse extends BatchComputeResponse { public String getNextMarker() { return nextMarker; } public void setNextMarker(String nextMarker) { this.nextMarker = nextMarker; } public List<Image> getItems() { return items; } public void setItems(List<Image> items) { this.items = items; } private String nextMarker; private List<Image> items; @Override public ListImagesResponse getInstance(UnmarshallerContext context) throws ServerException { return ListImagesResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/ListInstancesRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.http.MethodType; /** * @author auto create * @version */ public class ListInstancesRequest extends BatchComputeRequest<ListInstancesResponse> { public ListInstancesRequest() { super("BatchCompute", "2015-11-11", "ListInstances"); setUriPattern("/jobs/[ResourceName]/tasks/[TaskName]/instances"); setMethod(MethodType.GET); } private String resourceName; private String taskName; public String getJobId() { return this.resourceName; } public void setJobId(String jobId) { this.resourceName = jobId; putPathParameter("ResourceName", resourceName); } public String getTaskName() { return this.taskName; } public void setTaskName(String taskName) { this.taskName = taskName; putPathParameter("TaskName", taskName); } private String marker; private int maxItemCount= 50; public String getMarker() { return marker; } public void setMarker(String marker) { this.marker = marker; if(marker!=null && !marker.equals("")) { this.putQueryParameter("Marker", marker); } } public int getMaxItemCount() { return maxItemCount; } public void setMaxItemCount(int maxItemCount) { this.maxItemCount = maxItemCount; this.putQueryParameter("MaxItemCount",maxItemCount); } @Override public Class<ListInstancesResponse> getResponseClass() { return ListInstancesResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/ListInstancesResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.pojo.v20151111.Instance; import com.aliyuncs.batchcompute.transform.v20151111.ListInstancesResponseUnmarshaller; import com.aliyuncs.exceptions.ServerException; import com.aliyuncs.transform.UnmarshallerContext; import java.util.List; /** * @author auto create * @version */ public class ListInstancesResponse extends BatchComputeResponse { public String getNextMarker() { return nextMarker; } public void setNextMarker(String nextMarker) { this.nextMarker = nextMarker; } public List<Instance> getItems() { return items; } public void setItems(List<Instance> items) { this.items = items; } private String nextMarker; private List<Instance> items; @Override public ListInstancesResponse getInstance(UnmarshallerContext context) throws ServerException { return ListInstancesResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/ListJobsRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.http.MethodType; /** * @author auto create * @version */ public class ListJobsRequest extends BatchComputeRequest<ListJobsResponse> { public ListJobsRequest() { super("BatchCompute", "2015-11-11", "ListJobs"); setUriPattern("/jobs"); setMethod(MethodType.GET); } private String marker; private int maxItemCount= 50; private String state; private boolean IsReverse; private String ClusterId; private String OrderBy; public String getMarker() { return marker; } public void setMarker(String marker) { this.marker = marker; if(marker!=null && !marker.equals("")) { this.putQueryParameter("Marker", marker); } } public int getMaxItemCount() { return maxItemCount; } public void setMaxItemCount(int maxItemCount) { this.maxItemCount = maxItemCount; this.putQueryParameter("MaxItemCount",maxItemCount); } public String getState() { return state; } public void setState(String state) { this.state = state; if(state!=null && !state.equals("")) { this.putQueryParameter("State", state); } } public String getClusterId() { return ClusterId; } public void setClusterId(String clusterId) { this.ClusterId = clusterId; this.putQueryParameter("ClusterId", clusterId); } public String getOrderBy() { return OrderBy; } public void setOrderBy(String orderBy) { this.OrderBy = orderBy; this.putQueryParameter("OrderBy", orderBy); } public boolean isReverse() { return this.IsReverse; } public void setReverse(boolean reverse) { this.IsReverse = reverse; this.putQueryParameter("IsReverse", reverse+""); } @Override public Class<ListJobsResponse> getResponseClass() { return ListJobsResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/ListJobsResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.pojo.v20151111.Job; import com.aliyuncs.batchcompute.transform.v20151111.ListJobsResponseUnmarshaller; import com.aliyuncs.exceptions.ServerException; import com.aliyuncs.transform.UnmarshallerContext; import java.util.List; /** * @author auto create * @version */ public class ListJobsResponse extends BatchComputeResponse { public String getNextMarker() { return nextMarker; } public void setNextMarker(String nextMarker) { this.nextMarker = nextMarker; } public List<Job> getItems() { return items; } public void setItems(List<Job> items) { this.items = items; } private String nextMarker; private List<Job> items; @Override public ListJobsResponse getInstance(UnmarshallerContext context) throws ServerException { return ListJobsResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/ListTasksRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.http.MethodType; /** * @author auto create * @version */ public class ListTasksRequest extends BatchComputeRequest<ListTasksResponse> { public ListTasksRequest() { super("BatchCompute", "2015-11-11", "ListTasks"); setUriPattern("/jobs/[ResourceName]/tasks"); setMethod(MethodType.GET); } private String resourceName; public String getJobId() { return this.resourceName; } public void setJobId(String jobId) { this.resourceName = jobId; putPathParameter("ResourceName", resourceName); } private String marker; private int maxItemCount= 50; public String getMarker() { return marker; } public void setMarker(String marker) { this.marker = marker; if(marker!=null && !marker.equals("")) { this.putQueryParameter("Marker", marker); } } public int getMaxItemCount() { return maxItemCount; } public void setMaxItemCount(int maxItemCount) { this.maxItemCount = maxItemCount; this.putQueryParameter("MaxItemCount",maxItemCount); } @Override public Class<ListTasksResponse> getResponseClass() { return ListTasksResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/ListTasksResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.pojo.v20151111.Task; import com.aliyuncs.batchcompute.transform.v20151111.ListTasksResponseUnmarshaller; import com.aliyuncs.exceptions.ServerException; import com.aliyuncs.transform.UnmarshallerContext; import java.util.List; /** * @author auto create * @version */ public class ListTasksResponse extends BatchComputeResponse { public String getNextMarker() { return nextMarker; } public void setNextMarker(String nextMarker) { this.nextMarker = nextMarker; } public List<Task> getItems() { return items; } public void setItems(List<Task> items) { this.items = items; } private String nextMarker; private List<Task> items; @Override public ListTasksResponse getInstance(UnmarshallerContext context) throws ServerException { return ListTasksResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/RecreateClusterInstanceRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.batchcompute.transform.v20151111.RecreateClusterInstanceRequestMarshaller; import com.aliyuncs.http.MethodType; /** * @author auto create * @version */ public class RecreateClusterInstanceRequest extends BatchComputeRequest<RecreateClusterInstanceResponse> { public RecreateClusterInstanceRequest() { super("BatchCompute", "2015-11-11", "RecreateClusterInstance"); setUriPattern("/clusters/[ClusterId]/groups/[GroupName]/instances/[InstanceId]/recreate"); setMethod(MethodType.POST); } public RecreateClusterInstanceRequest(String clusterId, String groupName, String instanceId) { super("BatchCompute", "2015-11-11", "RecreateClusterInstance"); setUriPattern("/clusters/[ClusterId]/groups/[GroupName]/instances/[InstanceId]/recreate"); setMethod(MethodType.POST); setClusterId(clusterId); setGroupName(groupName); setInstanceId(instanceId); } private String instanceId; private String groupName; private String clusterId; public String getGroupName() { return groupName; } public void setGroupName(String groupName) { this.groupName = groupName; putPathParameter("GroupName", groupName); RecreateClusterInstanceRequestMarshaller.marshall(this); } public String getClusterId() { return clusterId; } public void setClusterId(String clusterId) { this.clusterId = clusterId; putPathParameter("ClusterId", clusterId); RecreateClusterInstanceRequestMarshaller.marshall(this); } public String getInstanceId() { return this.instanceId; } public void setInstanceId(String instanceId) { this.instanceId = instanceId; putPathParameter("InstanceId", instanceId); RecreateClusterInstanceRequestMarshaller.marshall(this); } @Override public Class<RecreateClusterInstanceResponse> getResponseClass() { return RecreateClusterInstanceResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/RecreateClusterInstanceResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.transform.v20151111.RecreateClusterInstanceResponseUnmarshaller; import com.aliyuncs.exceptions.ServerException; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class RecreateClusterInstanceResponse extends BatchComputeResponse { @Override public RecreateClusterInstanceResponse getInstance(UnmarshallerContext context) throws ServerException { return RecreateClusterInstanceResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/StartJobRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.batchcompute.transform.v20151111.StartJobRequestMarshaller; import com.aliyuncs.http.MethodType; /** * @author auto create * @version */ public class StartJobRequest extends BatchComputeRequest<StartJobResponse> { public StartJobRequest() { super("BatchCompute", "2015-11-11", "StartJob"); setUriPattern("/jobs/[ResourceName]/start"); setMethod(MethodType.POST); } private String resourceName; public String getJobId() { return this.resourceName; } public void setJobId(String jobId) { this.resourceName = jobId; putPathParameter("ResourceName", resourceName); StartJobRequestMarshaller.marshall(this); } @Override public Class<StartJobResponse> getResponseClass() { return StartJobResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/StartJobResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.transform.v20151111.StartJobResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class StartJobResponse extends BatchComputeResponse { @Override public StartJobResponse getInstance(UnmarshallerContext context) { return StartJobResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/StopJobRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.batchcompute.transform.v20151111.StopJobRequestMarshaller; import com.aliyuncs.http.MethodType; /** * @author auto create * @version */ public class StopJobRequest extends BatchComputeRequest<StopJobResponse> { public StopJobRequest() { super("BatchCompute", "2015-11-11", "StopJob"); setUriPattern("/jobs/[ResourceName]/stop"); setMethod(MethodType.POST); } private String resourceName; public String getJobId() { return this.resourceName; } public void setJobId(String jobId) { this.resourceName = jobId; putPathParameter("ResourceName", resourceName); StopJobRequestMarshaller.marshall(this); } @Override public Class<StopJobResponse> getResponseClass() { return StopJobResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/StopJobResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.transform.v20151111.StopJobResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class StopJobResponse extends BatchComputeResponse { @Override public StopJobResponse getInstance(UnmarshallerContext context) { return StopJobResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/UpdateAppRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.batchcompute.pojo.v20151111.AppDescription; import com.aliyuncs.batchcompute.transform.v20151111.UpdateAppRequestMarshaller; import com.aliyuncs.http.MethodType; /** * @author auto create */ public class UpdateAppRequest extends BatchComputeRequest<UpdateAppResponse> { public UpdateAppRequest() { super("BatchCompute", "2015-11-11", "ModifyApp"); setUriPattern("/apps/[ResourceName]"); setMethod(MethodType.PUT); } AppDescription appDesc = new AppDescription(); public String getAppName() { return appName; } public void setAppName(String appName) { this.appName = appName; putPathParameter("ResourceName", appName); } private String appName; public void setAppDescription(AppDescription d){ appDesc = d; putPathParameter("ResourceName", d.getName()); UpdateAppRequestMarshaller.marshall(this); } public AppDescription getAppDescription() { return appDesc; } @Override public Class<UpdateAppResponse> getResponseClass() { return UpdateAppResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/UpdateAppResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.transform.v20151111.UpdateAppResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class UpdateAppResponse extends BatchComputeResponse { @Override public UpdateAppResponse getInstance(UnmarshallerContext context) { return UpdateAppResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/UpdateClusterRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest; import com.aliyuncs.batchcompute.pojo.v20151111.ClusterDescription; import com.aliyuncs.batchcompute.transform.v20151111.UpdateClusterRequestMarshaller; import com.aliyuncs.http.MethodType; /** * @author auto create */ public class UpdateClusterRequest extends BatchComputeRequest<UpdateClusterResponse> { public UpdateClusterRequest() { super("BatchCompute", "2015-11-11", "ModifyCluster"); setUriPattern("/clusters/[ResourceName]"); setMethod(MethodType.PUT); } private String resourceName; ClusterDescription clusterDesc = new ClusterDescription(); public String getClusterId() { return this.resourceName; } public void setClusterId(String clusterId) { this.resourceName = clusterId; putPathParameter("ResourceName", resourceName); } public void setClusterDescription(ClusterDescription d){ clusterDesc = d; UpdateClusterRequestMarshaller.marshall(this); } public ClusterDescription getClusterDescription() { return clusterDesc; } @Override public Class<UpdateClusterResponse> getResponseClass() { return UpdateClusterResponse.class; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/model/v20151111/UpdateClusterResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.model.v20151111; import com.aliyuncs.batchcompute.main.v20151111.BatchComputeResponse; import com.aliyuncs.batchcompute.transform.v20151111.UpdateClusterResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class UpdateClusterResponse extends BatchComputeResponse { @Override public UpdateClusterResponse getInstance(UnmarshallerContext context) { return UpdateClusterResponseUnmarshaller.unmarshall(this, context); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/pojo
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/pojo/v20151111/App.java
package com.aliyuncs.batchcompute.pojo.v20151111; import com.aliyuncs.batchcompute.main.v20151111.CustomJsonDateDeserializer; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import java.util.Date; import java.util.HashMap; import java.util.Map; /** * Created by guangchun.luo on 17/10/13. */ @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public class App { @JsonIgnore public String getName() { return name; } @JsonIgnore public void setName(String name) { this.name = name; } @JsonIgnore public String getDescription() { return description; } @JsonIgnore public void setDescription(String description) { this.description = description; } @JsonIgnore public Map<String, InputParameterValue> getInputParameters() { return inputParameters; } @JsonIgnore public void setInputParameters(Map<String, InputParameterValue> inputParameters) { this.inputParameters = inputParameters; } public void addInputParameters(String key, InputParameterValue inputParameterValue) { if(null==this.inputParameters){ this.inputParameters = new HashMap<String, InputParameterValue>(); } this.inputParameters.put(key, inputParameterValue); } @JsonIgnore public Map<String, OutputParameterValue> getOutputParameters() { return outputParameters; } @JsonIgnore public void setOutputParameters(Map<String, OutputParameterValue> outputParameters) { this.outputParameters = outputParameters; } public void addOutputParameters(String key, OutputParameterValue outputParameterValue) { if(null==this.outputParameters){ this.outputParameters = new HashMap<String, OutputParameterValue>(); } this.outputParameters.put(key, outputParameterValue); } @JsonIgnore public Date getCreationTime() { return creationTime; } @JsonIgnore public void setCreationTime(Date creationTime) { this.creationTime = creationTime; } @JsonIgnore public Config getConfig() { return config; } @JsonIgnore public void setConfig(Config config) { this.config = config; } @JsonProperty("Name") private String name; @JsonProperty("Description") private String description; @JsonProperty("CreationTime") @JsonDeserialize(using = CustomJsonDateDeserializer.class) private Date creationTime; @JsonProperty("InputParameters") private Map<String, InputParameterValue> inputParameters; @JsonProperty("OutputParameters") private Map<String, OutputParameterValue> outputParameters; @JsonProperty("Config") private Config config; @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public static class Config{ @JsonProperty("ResourceType") private ConfigValue resourceType; @JsonProperty("InstanceType") private ConfigValue instanceType; @JsonProperty("InstanceCount") private ConfigValueInteger instanceCount; @JsonProperty("MinDiskSize") private ConfigValueInteger minDiskSize; @JsonProperty("DiskType") private ConfigValue diskType; @JsonProperty("MaxRetryCount") private ConfigValueInteger maxRetryCount; @JsonProperty("Timeout") private ConfigValueLong timeout; @JsonProperty("MinDataDiskSize") private ConfigValueInteger minDataDiskSize; @JsonProperty("DataDiskType") private ConfigValue dataDiskType; @JsonProperty("DataDiskMountPoint") private ConfigValue dataDiskMountPoint; @JsonIgnore public ConfigValueInteger getMinDatDiskSize() { return minDataDiskSize; } @JsonIgnore public void setMinDataDiskSize(ConfigValueInteger minDataDiskSize) { this.minDataDiskSize = minDataDiskSize; } @JsonIgnore public ConfigValue getDataDiskType() { return dataDiskType; } @JsonIgnore public void setDataDiskType(ConfigValue dataDiskType) { this.dataDiskType = dataDiskType; } @JsonIgnore public ConfigValue getDataDiskMountPoint() { return dataDiskMountPoint; } @JsonIgnore public void setDataDiskMountPointDiskType(ConfigValue dataDiskMountPoint) { this.dataDiskMountPoint = dataDiskMountPoint; } @JsonIgnore public ConfigValue getResourceType() { return resourceType; } @JsonIgnore public void setResourceType(ConfigValue resourceType) { this.resourceType = resourceType; } @JsonIgnore public ConfigValue getInstanceType() { return instanceType; } @JsonIgnore public void setInstanceType(ConfigValue instanceType) { this.instanceType = instanceType; } @JsonIgnore public ConfigValueInteger getInstanceCount() { return instanceCount; } @JsonIgnore public void setInstanceCount(ConfigValueInteger instanceCount) { this.instanceCount = instanceCount; } @JsonIgnore public ConfigValueInteger getMinDiskSize() { return minDiskSize; } @JsonIgnore public void setMinDiskSize(ConfigValueInteger minDiskSize) { this.minDiskSize = minDiskSize; } @JsonIgnore public ConfigValue getDiskType() { return diskType; } @JsonIgnore public void setDiskType(ConfigValue diskType) { this.diskType = diskType; } @JsonIgnore public ConfigValueInteger getMaxRetryCount() { return maxRetryCount; } @JsonIgnore public void setMaxRetryCount(ConfigValueInteger maxRetryCount) { this.maxRetryCount = maxRetryCount; } @JsonIgnore public ConfigValueLong getTimeout() { return timeout; } @JsonIgnore public void setTimeout(ConfigValueLong timeout) { this.timeout = timeout; } } @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public static class ConfigValue{ @JsonProperty("Description") private String description; @JsonProperty("Default") private String defaultValue; @JsonProperty("Overwritable") private boolean overwritable=true; @JsonIgnore public String getDescription() { return description; } @JsonIgnore public void setDescription(String description) { this.description = description; } @JsonIgnore public String getDefaultValue() { return defaultValue; } @JsonIgnore public void setDefaultValue(String defaultValue) { this.defaultValue = defaultValue; } @JsonIgnore public boolean isOverwritable() { return overwritable; } @JsonIgnore public void setOverwritable(boolean overwritable) { this.overwritable = overwritable; } } @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public static class ConfigValueInteger{ @JsonProperty("Description") private String description; @JsonProperty("Default") private int defaultValue; @JsonProperty("Overwritable") private boolean overwritable=true; @JsonIgnore public String getDescription() { return description; } @JsonIgnore public void setDescription(String description) { this.description = description; } @JsonIgnore public int getDefaultValue() { return defaultValue; } @JsonIgnore public void setDefaultValue(int defaultValue) { this.defaultValue = defaultValue; } @JsonIgnore public boolean isOverwritable() { return overwritable; } @JsonIgnore public void setOverwritable(boolean overwritable) { this.overwritable = overwritable; } } @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public static class ConfigValueLong{ @JsonProperty("Description") private String description; @JsonProperty("Default") private long defaultValue; @JsonProperty("Overwritable") private boolean overwritable=true; @JsonIgnore public String getDescription() { return description; } @JsonIgnore public void setDescription(String description) { this.description = description; } @JsonIgnore public long getDefaultValue() { return defaultValue; } @JsonIgnore public void setDefaultValue(long defaultValue) { this.defaultValue = defaultValue; } @JsonIgnore public boolean isOverwritable() { return overwritable; } @JsonIgnore public void setOverwritable(boolean overwritable) { this.overwritable = overwritable; } } @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public static class ConfigValueBoolean{ @JsonProperty("Description") private String description; @JsonProperty("Default") private boolean defaultValue; @JsonProperty("Overwritable") private boolean overwritable=true; @JsonIgnore public String getDescription() { return description; } @JsonIgnore public void setDescription(String description) { this.description = description; } @JsonIgnore public boolean isDefaultValue() { return defaultValue; } @JsonIgnore public void setDefaultValue(boolean defaultValue) { this.defaultValue = defaultValue; } @JsonIgnore public boolean isOverwritable() { return overwritable; } @JsonIgnore public void setOverwritable(boolean overwritable) { this.overwritable = overwritable; } } @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public static class InputParameterValue{ @JsonProperty("Description") private String description; @JsonProperty("Type") private String type; @JsonProperty("Default") private String defaultValue; @JsonIgnore public String getDescription() { return description; } @JsonIgnore public void setDescription(String description) { this.description = description; } @JsonIgnore public String getType() { return type; } @JsonIgnore public void setType(String type) { this.type = type; } @JsonIgnore public String getDefaultValue() { return defaultValue; } @JsonIgnore public void setDefaultValue(String defaultValue) { this.defaultValue = defaultValue; } } @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public static class OutputParameterValue{ @JsonProperty("Description") private String description; @JsonProperty("Type") private String type; @JsonIgnore public String getDescription() { return description; } @JsonIgnore public void setDescription(String description) { this.description = description; } @JsonIgnore public String getType() { return type; } @JsonIgnore public void setType(String type) { this.type = type; } } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/pojo
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/pojo/v20151111/AppDescription.java
package com.aliyuncs.batchcompute.pojo.v20151111; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.HashMap; import java.util.Map; /** * Created by guangchun.luo on 17/10/13. */ @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public class AppDescription { @JsonIgnore public String getName() { return name; } @JsonIgnore public void setName(String name) { this.name = name; } @JsonIgnore public String getDescription() { return description; } @JsonIgnore public void setDescription(String description) { this.description = description; } @JsonIgnore public Map<String, InputParameterValue> getInputParameters() { return inputParameters; } @JsonIgnore public void setInputParameters(Map<String, InputParameterValue> inputParameters) { this.inputParameters = inputParameters; } public void addInputParameters(String key, InputParameterValue inputParameterValue) { if(null==this.inputParameters){ this.inputParameters = new HashMap<String, InputParameterValue>(); } this.inputParameters.put(key, inputParameterValue); } @JsonIgnore public Map<String, OutputParameterValue> getOutputParameters() { return outputParameters; } @JsonIgnore public void setOutputParameters(Map<String, OutputParameterValue> outputParameters) { this.outputParameters = outputParameters; } public void addOutputParameters(String key, OutputParameterValue outputParameterValue) { if(null==this.outputParameters){ this.outputParameters = new HashMap<String, OutputParameterValue>(); } this.outputParameters.put(key, outputParameterValue); } @JsonIgnore public Docker getDocker() { return docker; } @JsonIgnore public void setDocker(Docker docker) { this.docker = docker; } @JsonIgnore public VM getVm() { return vm; } @JsonIgnore public void setVm(VM vm) { this.vm = vm; } @JsonIgnore public Map<String, String> getEnvVars() { return envVars; } @JsonIgnore public void setEnvVars(Map<String, String> envVars) { this.envVars = envVars; } public void addEnvVars(String key, String value) { if(null==this.envVars){ this.envVars = new HashMap<String, String>(); } this.envVars.put(key, value); } @JsonIgnore public String getCommandLine() { return commandLine; } @JsonIgnore public void setCommandLine(String commandLine) { this.commandLine = commandLine; } @JsonIgnore public boolean isDaemonize() { return daemonize; } @JsonIgnore public void setDaemonize(boolean daemonize) { this.daemonize = daemonize; } @JsonIgnore public Config getConfig() { return config; } @JsonIgnore public void setConfig(Config config) { this.config = config; } @JsonProperty("Name") private String name; @JsonProperty("Description") private String description; @JsonProperty("InputParameters") private Map<String, InputParameterValue> inputParameters; @JsonProperty("OutputParameters") private Map<String, OutputParameterValue> outputParameters; @JsonProperty("Docker") private Docker docker; @JsonProperty("VM") private VM vm; @JsonProperty("EnvVars") private Map<String,String> envVars; @JsonProperty("CommandLine") private String commandLine; @JsonProperty("Daemonize") private boolean daemonize; @JsonProperty("Config") private Config config; @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public static class Config{ @JsonProperty("ResourceType") private ConfigValue resourceType; @JsonProperty("InstanceType") private ConfigValue instanceType; @JsonProperty("InstanceCount") private ConfigValueInteger instanceCount; @JsonProperty("MinDiskSize") private ConfigValueInteger minDiskSize; @JsonProperty("DiskType") private ConfigValue diskType; @JsonProperty("MaxRetryCount") private ConfigValueInteger maxRetryCount; @JsonProperty("Timeout") private ConfigValueLong timeout; @JsonProperty("MinDataDiskSize") private ConfigValueInteger minDataDiskSize; @JsonProperty("DataDiskType") private ConfigValue dataDiskType; @JsonProperty("DataDiskMountPoint") private ConfigValue dataDiskMountPoint; @JsonIgnore public ConfigValueInteger getMinDatDiskSize() { return minDataDiskSize; } @JsonIgnore public void setMinDataDiskSize(ConfigValueInteger minDataDiskSize) { this.minDataDiskSize = minDataDiskSize; } @JsonIgnore public ConfigValue getDataDiskType() { return dataDiskType; } @JsonIgnore public void setDataDiskType(ConfigValue dataDiskType) { this.dataDiskType = dataDiskType; } @JsonIgnore public ConfigValue getDataDiskMountPoint() { return dataDiskMountPoint; } @JsonIgnore public void setDataDiskMountPoint(ConfigValue dataDiskMountPoint) { this.dataDiskMountPoint = dataDiskMountPoint; } @JsonIgnore public ConfigValue getResourceType() { return resourceType; } @JsonIgnore public void setResourceType(ConfigValue resourceType) { this.resourceType = resourceType; } @JsonIgnore public ConfigValue getInstanceType() { return instanceType; } @JsonIgnore public void setInstanceType(ConfigValue instanceType) { this.instanceType = instanceType; } @JsonIgnore public ConfigValueInteger getInstanceCount() { return instanceCount; } @JsonIgnore public void setInstanceCount(ConfigValueInteger instanceCount) { this.instanceCount = instanceCount; } @JsonIgnore public ConfigValueInteger getMinDiskSize() { return minDiskSize; } @JsonIgnore public void setMinDiskSize(ConfigValueInteger minDiskSize) { this.minDiskSize = minDiskSize; } @JsonIgnore public ConfigValue getDiskType() { return diskType; } @JsonIgnore public void setDiskType(ConfigValue diskType) { this.diskType = diskType; } @JsonIgnore public ConfigValueInteger getMaxRetryCount() { return maxRetryCount; } @JsonIgnore public void setMaxRetryCount(ConfigValueInteger maxRetryCount) { this.maxRetryCount = maxRetryCount; } @JsonIgnore public ConfigValueLong getTimeout() { return timeout; } @JsonIgnore public void setTimeout(ConfigValueLong timeout) { this.timeout = timeout; } } @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public static class ConfigValue{ @JsonProperty("Description") private String description; @JsonProperty("Default") private String defaultValue; @JsonProperty("Overwritable") private boolean overwritable = true; @JsonIgnore public String getDescription() { return description; } @JsonIgnore public void setDescription(String description) { this.description = description; } @JsonIgnore public String getDefaultValue() { return defaultValue; } @JsonIgnore public void setDefaultValue(String defaultValue) { this.defaultValue = defaultValue; } @JsonIgnore public boolean isOverwritable() { return overwritable; } @JsonIgnore public void setOverwritable(boolean overwritable) { this.overwritable = overwritable; } } @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public static class ConfigValueInteger{ @JsonProperty("Description") private String description; @JsonProperty("Default") private int defaultValue; @JsonProperty("Overwritable") private boolean overwritable = true; @JsonIgnore public String getDescription() { return description; } @JsonIgnore public void setDescription(String description) { this.description = description; } @JsonIgnore public int getDefaultValue() { return defaultValue; } @JsonIgnore public void setDefaultValue(int defaultValue) { this.defaultValue = defaultValue; } @JsonIgnore public boolean isOverwritable() { return overwritable; } @JsonIgnore public void setOverwritable(boolean overwritable) { this.overwritable = overwritable; } } @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public static class ConfigValueLong{ @JsonProperty("Description") private String description; @JsonProperty("Default") private long defaultValue; @JsonProperty("Overwritable") private boolean overwritable = true; @JsonIgnore public String getDescription() { return description; } @JsonIgnore public void setDescription(String description) { this.description = description; } @JsonIgnore public long getDefaultValue() { return defaultValue; } @JsonIgnore public void setDefaultValue(long defaultValue) { this.defaultValue = defaultValue; } @JsonIgnore public boolean isOverwritable() { return overwritable; } @JsonIgnore public void setOverwritable(boolean overwritable) { this.overwritable = overwritable; } } @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public static class ConfigValueBoolean{ @JsonProperty("Description") private String description; @JsonProperty("Default") private boolean defaultValue = true; @JsonProperty("Overwritable") private boolean overwritable; @JsonIgnore public String getDescription() { return description; } @JsonIgnore public void setDescription(String description) { this.description = description; } @JsonIgnore public boolean isDefaultValue() { return defaultValue; } @JsonIgnore public void setDefaultValue(boolean defaultValue) { this.defaultValue = defaultValue; } @JsonIgnore public boolean isOverwritable() { return overwritable; } @JsonIgnore public void setOverwritable(boolean overwritable) { this.overwritable = overwritable; } } @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public static class Docker{ @JsonProperty("Image") private String image; @JsonProperty("RunMode") private String runMode; @JsonProperty("RegistryOSSPath") private String registryOSSPath; @JsonIgnore public String getImage() { return image; } @JsonIgnore public void setImage(String image) { this.image = image; } @JsonIgnore public String getRegistryOSSPath() { return registryOSSPath; } @JsonIgnore public void setRegistryOSSPath(String registryOSSPath) { this.registryOSSPath = registryOSSPath; } @JsonIgnore public String getRunMode() { return runMode; } @JsonIgnore public void setRunMode(String runMode) { this.runMode = runMode; } } @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public static class VM{ public VM(){} public VM(String ecsImageId){ this.setECSImageId(ecsImageId); } @JsonIgnore public String getECSImageId() { return ECSImageId; } @JsonIgnore public void setECSImageId(String ECSImageId) { this.ECSImageId = ECSImageId; } @JsonProperty("ECSImageId") private String ECSImageId; } @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public static class InputParameterValue{ @JsonProperty("Description") private String description; @JsonProperty("Type") private String type; @JsonProperty("Default") private String defaultValue; @JsonIgnore public String getDescription() { return description; } @JsonIgnore public void setDescription(String description) { this.description = description; } @JsonIgnore public String getType() { return type; } @JsonIgnore public void setType(String type) { this.type = type; } @JsonIgnore public String getDefaultValue() { return defaultValue; } @JsonIgnore public void setDefaultValue(String defaultValue) { this.defaultValue = defaultValue; } @JsonIgnore public String getLocalPath() { return localPath; } @JsonIgnore public void setLocalPath(String localPath) { this.localPath = localPath; } @JsonProperty("LocalPath") private String localPath; } @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public static class OutputParameterValue{ @JsonProperty("Description") private String description; @JsonProperty("Type") private String type; @JsonIgnore public String getDescription() { return description; } @JsonIgnore public void setDescription(String description) { this.description = description; } @JsonIgnore public String getType() { return type; } @JsonIgnore public void setType(String type) { this.type = type; } @JsonIgnore public String getLocalPath() { return localPath; } @JsonIgnore public void setLocalPath(String localPath) { this.localPath = localPath; } @JsonProperty("LocalPath") private String localPath; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/pojo
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/pojo/v20151111/AppJobDescription.java
package com.aliyuncs.batchcompute.pojo.v20151111; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.HashMap; import java.util.Map; /** * Created by guangchun.luo on 17/10/13. */ @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public class AppJobDescription { @JsonIgnore public String getAppName() { return appName; } @JsonIgnore public void setAppName(String appName) { this.appName = appName; } @JsonIgnore public Logging getLogging() { return logging; } @JsonIgnore public void setLogging(Logging logging) { this.logging = logging; } @JsonIgnore public Map<String, Object> getInputs() { return inputs; } @JsonIgnore public void setInputs(Map<String, Object> inputs) { this.inputs = inputs; } @JsonIgnore public Map<String, Object> getOutputs() { return outputs; } @JsonIgnore public void setOutputs(Map<String, Object> outputs) { this.outputs = outputs; } public void addOutputs(String key ,Object value) { if(null==this.outputs) this.outputs = new HashMap<String, Object>(); this.outputs.put(key,value); } public void addInputs(String key ,Object value) { if(null==this.inputs) this.inputs = new HashMap<String, Object>(); this.inputs.put(key,value); } public void addConfig(String key ,Object value) { if(null==this.config) this.config = new HashMap<String, Object>(); this.config.put(key,value); } @JsonIgnore public Map<String, Object> getConfig() { return config; } @JsonIgnore public void setConfig(Map<String, Object> config) { this.config = config; } @JsonProperty("AppName") private String appName; @JsonProperty("Logging") private Logging logging; @JsonProperty("Inputs") private Map<String, Object> inputs; @JsonProperty("Outputs") private Map<String, Object> outputs; @JsonProperty("Config") private Map<String,Object> config; @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public static class Logging { @JsonProperty("StdoutPath") private String stdoutPath; @JsonProperty("StderrPath") private String stderrPath; public String getStdoutPath() { return stdoutPath; } public void setStdoutPath(String stdoutPath) { this.stdoutPath = stdoutPath; } public String getStderrPath() { return stderrPath; } public void setStderrPath(String stderrPath) { this.stderrPath = stderrPath; } } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/pojo
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/pojo/v20151111/AppRevision.java
package com.aliyuncs.batchcompute.pojo.v20151111; import com.aliyuncs.batchcompute.main.v20151111.CustomJsonDateDeserializer; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import java.util.Date; /** * Created by guangchun.luo on 17/10/13. */ @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public class AppRevision { @JsonIgnore public int getRevision() { return revision; } @JsonIgnore public void setRevision(int revision) { this.revision = revision; } @JsonIgnore public Date getUpdateTime() { return updateTime; } @JsonIgnore public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } @JsonProperty("Revision") private int revision; @JsonProperty("UpdateTime") @JsonDeserialize(using = CustomJsonDateDeserializer.class) private Date updateTime; }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/pojo
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/pojo/v20151111/AutoCluster.java
package com.aliyuncs.batchcompute.pojo.v20151111; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.HashMap; import java.util.Map; /** * Created by guangchun.luo on 16/1/15. */ @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public class AutoCluster{ @JsonProperty("ImageId") private String imageId; @JsonProperty("ECSImageId") private String ECSImageId; @JsonProperty("InstanceType") private String instanceType; @JsonProperty("ResourceType") private String resourceType = "OnDemand"; @JsonProperty("ClusterId") private String clusterId; @JsonProperty("Configs") private Configs configs; @JsonProperty("ReserveOnFail") private boolean reserveOnFail = false; @JsonProperty("DependencyIsvService") private String dependencyIsvService; @JsonIgnore public boolean isReserveOnFail() { return reserveOnFail; } @JsonIgnore public void setReserveOnFail(boolean reserveOnFail) { this.reserveOnFail = reserveOnFail; } @JsonProperty("UserData") private Map<String, String> userData; @JsonProperty("SpotStrategy") private String spotStrategy; @JsonProperty("SpotPriceLimit") private float spotPriceLimit; @JsonIgnore public String getSpotStrategy() { return spotStrategy; } @JsonIgnore public void setSpotStrategy(String spotStrategy) { this.spotStrategy = spotStrategy; } @JsonIgnore public float getSpotPriceLimit() { return spotPriceLimit; } @JsonIgnore public void setSpotPriceLimit(float spotPriceLimit) { this.spotPriceLimit = spotPriceLimit; } @JsonIgnore public Configs getConfigs() { return configs; } @JsonIgnore public void setConfigs(Configs configs) { this.configs = configs; } @JsonIgnore public Map<String, String> getUserData() { return userData; } @JsonIgnore public void setUserData(Map<String, String> userData) { this.userData = userData; } public void addUserData(String key, String value) { if(this.userData==null){ this.userData = new HashMap<String,String>(); } this.userData.put(key, value); } @JsonIgnore public String getImageId() { return imageId; } @JsonIgnore public void setImageId(String imageId) { this.imageId = imageId; } @JsonIgnore public String getECSImageId() { return ECSImageId; } @JsonIgnore public void setECSImageId(String eCSImageId) { this.ECSImageId = eCSImageId; } @JsonIgnore public String getInstanceType() { return instanceType; } @JsonIgnore public void setInstanceType(String instanceType) { this.instanceType = instanceType; } @JsonIgnore public String getResourceType() { return resourceType; } @JsonIgnore public void setResourceType(String resourceType) { this.resourceType = resourceType; } @JsonIgnore public void setClusterId(String clusterId) { this.clusterId = clusterId; } @JsonIgnore public String getClusterId() { return clusterId; } @JsonIgnore public void setDependencyIsvService(String dependencyIsvService) { this.dependencyIsvService = dependencyIsvService; } @JsonIgnore public String getDependencyIsvService() { return dependencyIsvService; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/pojo
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/pojo/v20151111/AvailableResource.java
package com.aliyuncs.batchcompute.pojo.v20151111; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.ArrayList; import java.util.List; @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public class AvailableResource { @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public static class NetWorkDesc { @JsonProperty("Classic") private boolean classic; @JsonProperty("Vpc") private boolean vpc; @JsonIgnore public boolean getVpc() { return vpc; } @JsonIgnore public void setVpc(boolean vpc) { this.vpc = vpc; } @JsonIgnore public boolean getClassic() { return classic; } @JsonIgnore public void setClassic(boolean classic) { this.classic = classic; } } @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public static class InstanceDesc{ @JsonProperty("CpuCore") private int cpuCore; @JsonProperty("InstanceType") private String instanceType; @JsonProperty("MemorySize") private int memorySize; @JsonProperty("Network") private NetWorkDesc netWork; @JsonIgnore public int getCpuCore() { return cpuCore; } @JsonIgnore public void setCpuCore(int cpuCore) { this.cpuCore = cpuCore; } @JsonIgnore public String getInstanceType() { return instanceType; } @JsonIgnore public void setInstanceType(String instanceType) { this.instanceType = instanceType; } @JsonIgnore public int getMemorySize() { return memorySize; } @JsonIgnore public void setMemorySize(int memorySize) { this.memorySize = memorySize; } @JsonIgnore public NetWorkDesc getNetWork() { return netWork; } @JsonIgnore public void setNetWork(NetWorkDesc netWork) { this.netWork = netWork; } } @JsonProperty("AvailableClusterInstanceType") private List<InstanceDesc> availableClusterInstanceType; @JsonIgnore public List<InstanceDesc> getAvailableClusterInstanceType() { return availableClusterInstanceType; } @JsonIgnore public void setAvailableClusterInstanceType(List<InstanceDesc> availableClusterInstanceType) { this.availableClusterInstanceType = availableClusterInstanceType; } @JsonIgnore public void addAvailableClusterInstanceType(InstanceDesc availableClusterInstanceType) { if(this.availableClusterInstanceType == null){ this.availableClusterInstanceType = new ArrayList<InstanceDesc>(); } this.availableClusterInstanceType.add(availableClusterInstanceType); } @JsonProperty("AvailableSpotInstanceType") private List<InstanceDesc> availableSpotInstanceType; @JsonIgnore public List<InstanceDesc> getAvailableSpotInstanceType() { return availableSpotInstanceType; } @JsonIgnore public void setAvailableSpotInstanceType(List<InstanceDesc> availableSpotInstanceType) { this.availableSpotInstanceType = availableSpotInstanceType; } @JsonIgnore public void addAvailableSpotInstanceType(InstanceDesc availableSpotInstanceType) { if(this.availableSpotInstanceType == null){ this.availableSpotInstanceType = new ArrayList<InstanceDesc>(); } this.availableSpotInstanceType.add(availableSpotInstanceType); } @JsonProperty("AvailablePrepaidInstanceType") private List<InstanceDesc> availablePrepaidInstanceType; @JsonIgnore public List<InstanceDesc> getAvailablePrepaidInstanceType() { return availablePrepaidInstanceType; } @JsonIgnore public void setAvailablePrepaidInstanceType(List<InstanceDesc> availablePrepaidInstanceType) { this.availablePrepaidInstanceType = availablePrepaidInstanceType; } @JsonIgnore public void addAvailablePrepaidInstanceType(InstanceDesc availablePrepaidInstanceType) { if(this.availablePrepaidInstanceType == null){ this.availablePrepaidInstanceType = new ArrayList<InstanceDesc>(); } this.availablePrepaidInstanceType.add(availablePrepaidInstanceType); } @JsonProperty("AvailableResourceType") private List<String> availableResourceType; @JsonIgnore public List<String> getAvailableResourceType() { return availableResourceType; } @JsonIgnore public void setAvailableResourceType(List<String> availableResourceType) { this.availableResourceType = availableResourceType; } @JsonIgnore public void addAvailableResourceType(String availableResourceType) { if(this.availableResourceType == null){ this.availableResourceType = new ArrayList<String>(); } this.availableResourceType.add(availableResourceType); } @JsonProperty("AvailableSystemDiskType") private List<String> availableSystemDiskType; @JsonIgnore public List<String> getAvailableSystemDiskType() { return availableSystemDiskType; } @JsonIgnore public void setAvailableSystemDiskType(List<String> availableSystemDiskType) { this.availableSystemDiskType = availableSystemDiskType; } @JsonIgnore public void addAvailableSystemDiskType(String availableSystemDiskType) { if(this.availableSystemDiskType == null){ this.availableSystemDiskType = new ArrayList<String>(); } this.availableSystemDiskType.add(availableSystemDiskType); } @JsonProperty("AvailableDataDiskType") private List<String> availableDataDiskType; @JsonIgnore public List<String> getAvailableDataDiskType() { return availableDataDiskType; } @JsonIgnore public void setAvailableDataDiskType(List<String> availableDataDiskType) { this.availableDataDiskType = availableDataDiskType; } @JsonIgnore public void addAvailableDataDiskType(String availableDataDiskType) { if(this.availableDataDiskType == null){ this.availableDataDiskType = new ArrayList<String>(); } this.availableDataDiskType.add(availableDataDiskType); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/pojo
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/pojo/v20151111/ClassicNetWork.java
package com.aliyuncs.batchcompute.pojo.v20151111; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.ArrayList; import java.util.List; /** * Created by guangchun.luo on 16/3/2. */ @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public class ClassicNetWork { @JsonProperty("AllowIpAddress") private List<String> allowIpAddress; @JsonProperty("AllowSecurityGroup") private List<String> allowSecurityGroup; @JsonIgnore public List<String> getAllowIpAddress() { return allowIpAddress; } @JsonIgnore public void setAllowIpAddress(List<String> allowIpAddress) { this.allowIpAddress = allowIpAddress; } @JsonIgnore public List<String> getAllowSecurityGroup() { return allowSecurityGroup; } @JsonIgnore public void setAllowSecurityGroup(List<String> allowSecurityGroup) { this.allowSecurityGroup = allowSecurityGroup; } public void addAllowIpAddress(String item) { if(allowIpAddress==null){ allowIpAddress = new ArrayList<String>(); } allowIpAddress.add(item); } public void addAllowSecurityGroup(String item) { if(allowSecurityGroup==null){ allowSecurityGroup = new ArrayList<String>(); } allowSecurityGroup.add(item); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/pojo
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/pojo/v20151111/Cluster.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.pojo.v20151111; import com.aliyuncs.batchcompute.main.v20151111.CustomJsonDateDeserializer; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; /** * Created by guangchun.luo on 15/12/05. */ @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public class Cluster { @JsonProperty("Id") private String id; @JsonProperty("Name") private String name; @JsonProperty("OwnerId") private long ownerId; @JsonProperty("InstanceType") private String instanceType; @JsonProperty("Configs") private Configs configs; @JsonIgnore public Notification getNotification() { return notification; } @JsonIgnore public void setNotification(Notification notification) { this.notification = notification; } @JsonProperty("Notification") private Notification notification; @JsonProperty("CreationTime") @JsonDeserialize(using = CustomJsonDateDeserializer.class) private Date creationTime; @JsonProperty("State") private String state; @JsonIgnore public String getErrorCode() { return this.errorCode; } @JsonIgnore public void setErrorCode(String errorCode) { this.errorCode = errorCode; } @JsonProperty("ErrorCode") private String errorCode; @JsonIgnore public String getInstanceType() { return instanceType; } @JsonIgnore public void setInstanceType(String instanceType) { this.instanceType = instanceType; } @JsonIgnore public Configs getConfigs() { return configs; } @JsonIgnore public void setConfigs(Configs configs) { this.configs = configs; } @JsonProperty("Description") private String description; @JsonProperty("ImageId") private String imageId; @JsonProperty("OperationLogs") private List<String> operationLogs; @JsonProperty("Metrics") private ClusterMatrics metrics; @JsonProperty("Metric") private ClusterMatrics metric; @JsonProperty("Groups") private Map<String, Group> groups; @JsonProperty("UserData") private Map<String, String> userData; @JsonProperty("Bootstrap") private String bootstrap; @JsonIgnore public List<String> getSecurityGroups() { return securityGroups; } @JsonIgnore public void setSecurityGroups(List<String> securityGroups) { this.securityGroups = securityGroups; } @JsonProperty("SecurityGroups") private List<String> securityGroups; @JsonProperty("EnvVars") private Map<String, String> envVars; @JsonIgnore public String getBootstrap() { return bootstrap; } @JsonIgnore public void setBootstrap(String bootstrap) { this.bootstrap = bootstrap; } @JsonIgnore public Map<String, String> getEnvVars() { return envVars; } @JsonIgnore public void setEnvVars(Map<String, String> envVars) { this.envVars = envVars; } public void addEnvVar(String key, String value) { if(this.envVars==null){ this.envVars = new HashMap<String,String>(); } this.envVars.put(key, value); } @JsonIgnore public Map<String, String> getUserData() { return userData; } @JsonIgnore public void setUserData(Map<String, String> userData) { this.userData = userData; } @JsonIgnore public void addUserData(String key, String value) { if(this.userData==null){ this.userData = new HashMap<String,String>(); } this.userData.put(key, value); } @JsonIgnore public String getId() { return id; } @JsonIgnore public void setId(String id) { this.id = id; } @JsonIgnore public String getName() { return name; } @JsonIgnore public void setName(String name) { this.name = name; } @JsonIgnore public long getOwnerId() { return ownerId; } @JsonIgnore public void setOwnerId(long ownerId) { this.ownerId = ownerId; } @JsonIgnore public Date getCreationTime() { return creationTime; } @JsonIgnore public void setCreationTime(Date creationTime) { this.creationTime = creationTime; } @JsonIgnore public String getState() { return state; } @JsonIgnore public void setState(String state) { this.state = state; } @JsonIgnore public String getDescription() { return description; } @JsonIgnore public void setDescription(String description) { this.description = description; } @JsonIgnore public String getImageId() { return imageId; } @JsonIgnore public void setImageId(String imageId) { this.imageId = imageId; } @JsonIgnore public List<String> getOperationLogs() { return operationLogs; } @JsonIgnore public void setOperationLogs(List<String> operationLogs) { this.operationLogs = operationLogs; } @JsonIgnore public ClusterMatrics getMetrics() { return metrics==null ? metric :metrics; } @JsonIgnore public void setMetrics(ClusterMatrics metrics) { this.metrics = metrics; } @JsonIgnore public Map<String, Group> getGroups() { return groups; } @JsonIgnore public void setGroups(Map<String, Group> groups) { this.groups = groups; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/pojo
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/pojo/v20151111/ClusterDescription.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.pojo.v20151111; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.HashMap; import java.util.Map; /** * Created by guangchun.luo on 15/12/05. */ @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public class ClusterDescription { @JsonProperty("Name") private String name; @JsonProperty("Description") private String description; @JsonProperty("ImageId") private String imageId; @JsonProperty("InstanceType") private String instanceType; @JsonProperty("DependencyIsvService") private String dependencyIsvService; @JsonIgnore public String getScheduleType() { return scheduleType; } @JsonIgnore public void setScheduleType(String scheduleType) { this.scheduleType = scheduleType; } @JsonProperty("ScheduleType") private String scheduleType; @JsonProperty("Groups") private Map<String, GroupDescription> groups; @JsonProperty("UserData") private Map<String, String> userData; @JsonProperty("Bootstrap") private String bootstrap; @JsonIgnore public Boolean getPasswordInherit() { return passwordInherit; } @JsonIgnore public void setPasswordInherit(Boolean passwordInherit) { this.passwordInherit = passwordInherit; } @JsonProperty("PasswordInherit") private Boolean passwordInherit; @JsonProperty("EnvVars") private Map<String, String> envVars; @JsonIgnore public String getBootstrap() { return bootstrap; } @JsonIgnore public void setBootstrap(String bootstrap) { this.bootstrap = bootstrap; } @JsonIgnore public Map<String, String> getEnvVars() { return envVars; } @JsonIgnore public void setEnvVars(Map<String, String> envVars) { this.envVars = envVars; } public void addEnvVar(String key, String value) { if(this.envVars==null){ this.envVars = new HashMap<String,String>(); } this.envVars.put(key, value); } @JsonIgnore public Notification getNotification() { return notification; } @JsonIgnore public void setNotification(Notification notification) { this.notification = notification; } @JsonProperty("Notification") private Notification notification; @JsonIgnore public Configs getConfigs() { return configs; } @JsonIgnore public void setConfigs(Configs configs) { this.configs = configs; } @JsonProperty("Configs") private Configs configs; @JsonIgnore public String getInstanceType() { return instanceType; } @JsonIgnore public void setInstanceType(String instanceType) { this.instanceType = instanceType; } @JsonIgnore public Map<String, String> getUserData() { return userData; } @JsonIgnore public void setUserData(Map<String, String> userData) { this.userData = userData; } public void addUserData(String key, String value) { if(this.userData==null){ this.userData = new HashMap<String,String>(); } this.userData.put(key, value); } @JsonIgnore public String getName() { return name; } @JsonIgnore public void setName(String name) { this.name = name; } @JsonIgnore public String getDescription() { return description; } @JsonIgnore public void setDescription(String description) { this.description = description; } @JsonIgnore public String getImageId() { return imageId; } @JsonIgnore public void setImageId(String imageId) { this.imageId = imageId; } @JsonIgnore public Map<String, GroupDescription> getGroups() { return groups; } @JsonIgnore public void setGroups(Map<String, GroupDescription> groups) { this.groups = groups; } @JsonIgnore public void setDependencyIsvService(String dependencyIsvService) { this.dependencyIsvService = dependencyIsvService; } @JsonIgnore public String getDependencyIsvService() { return dependencyIsvService; } public void addGroup(String groupName, GroupDescription group) { if(null == this.groups){ this.groups = new HashMap<String, GroupDescription>(); } this.groups.put(groupName, group); } public void mountDataDisk(DataDisk dataDisk){ Configs configs = getConfigs(); if(configs==null){ configs = new Configs(); setConfigs(configs); } Disks disks = configs.getDisks(); if(disks==null){ disks = new Disks(); configs.setDisks(disks); } disks.setDataDisk(dataDisk); } public void mountSystemDisk(SystemDisk systemDisk){ Configs configs = getConfigs(); if(configs==null){ configs = new Configs(); setConfigs(configs); } Disks disks = configs.getDisks(); if(disks==null){ disks = new Disks(); configs.setDisks(disks); } disks.setSystemDisk(systemDisk); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/pojo
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/pojo/v20151111/ClusterInstance.java
package com.aliyuncs.batchcompute.pojo.v20151111; import com.aliyuncs.batchcompute.main.v20151111.CustomJsonDateDeserializer; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import java.util.Date; /** * Created by guangchun.luo on 15/12/7. */ @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public class ClusterInstance { @JsonProperty("Id") private String id; @JsonProperty("Hint") private String hint; @JsonProperty("State") private String state; @JsonProperty("IpAddress") private String ipAddress; @JsonProperty("EcsInstanceId") private String ecsInstanceId; @JsonProperty("HostName") private String hostName; @JsonProperty("ErrorCode") private int errorCode; @JsonProperty("ErrorMessage") private String errorMessage; @JsonProperty("CreationTime") @JsonDeserialize(using = CustomJsonDateDeserializer.class) private Date creationTime; @JsonIgnore public String getEcsInstanceId() { return ecsInstanceId; } @JsonIgnore public void setEcsInstanceId(String ecsInstanceId) { this.ecsInstanceId = ecsInstanceId; } @JsonIgnore public String getHostName() { return hostName; } @JsonIgnore public void setHostName(String hostName) { this.hostName = hostName; } @JsonIgnore public int getErrorCode() { return errorCode; } @JsonIgnore public void setErrorCode(int errorCode) { this.errorCode = errorCode; } @JsonIgnore public String getErrorMessage() { return errorMessage; } @JsonIgnore public void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; } @JsonIgnore public String getIpAddress() { return ipAddress; } @JsonIgnore public void setIpAddress(String ipAddress) { this.ipAddress = ipAddress; } @JsonIgnore public String getId() { return id; } @JsonIgnore public void setId(String id) { this.id = id; } @JsonIgnore public String getHint() { return hint; } @JsonIgnore public void setHint(String hint) { this.hint = hint; } @JsonIgnore public String getState() { return state; } @JsonIgnore public void setState(String state) { this.state = state; } @JsonIgnore public Date getCreationTime() { return this.creationTime; } @JsonIgnore public void setCreationTime(Date creationTime) { this.creationTime = creationTime; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/pojo
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/pojo/v20151111/ClusterMatrics.java
package com.aliyuncs.batchcompute.pojo.v20151111; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; /** * Created by guangchun.luo on 15/12/7. */ @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public class ClusterMatrics { @JsonProperty("StartingCount") private long startingCount; @JsonProperty("RunningCount") private long runningCount; @JsonProperty("StoppingCount") private long stoppingCount; @JsonProperty("StoppedCount") private long stoppedCount; @JsonIgnore public long getStartingCount() { return startingCount; } @JsonIgnore public void setStartingCount(long startingCount) { this.startingCount = startingCount; } @JsonIgnore public long getRunningCount() { return runningCount; } @JsonIgnore public void setRunningCount(long runningCount) { this.runningCount = runningCount; } @JsonIgnore public long getStoppingCount() { return stoppingCount; } @JsonIgnore public void setStoppingCount(long stoppingCount) { this.stoppingCount = stoppingCount; } @JsonIgnore public long getStoppedCount() { return stoppedCount; } @JsonIgnore public void setStoppedCount(long stoppedCount) { this.stoppedCount = stoppedCount; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/pojo
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/pojo/v20151111/Command.java
package com.aliyuncs.batchcompute.pojo.v20151111; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.HashMap; import java.util.Map; /** * Created by guangchun.luo on 15/12/5. */ @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public class Command { @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public static class Docker { @JsonProperty("Image") private String image; @JsonProperty("RunMode") private String runMode; @JsonIgnore public void setImage(String image) { this.image = image; } @JsonIgnore public String getImage() { return image; } @JsonIgnore public void setRunMode(String runMode) { this.runMode = runMode; } @JsonIgnore public String getRunMode() { return runMode; } } @JsonProperty("CommandLine") private String commandLine; @JsonProperty("PackagePath") private String packagePath; @JsonProperty("EnvVars") private Map<String,String> envVars; @JsonProperty("Docker") private Docker docker; @JsonIgnore public String getCommandLine() { return commandLine; } @JsonIgnore public void setCommandLine(String commandLine) { this.commandLine = commandLine; } @JsonIgnore public String getPackagePath() { return packagePath; } @JsonIgnore public void setPackagePath(String packagePath) { this.packagePath = packagePath; } @JsonIgnore public Map<String, String> getEnvVars() { return envVars; } @JsonIgnore public void addEnvVars(String key,String value) { if (null == envVars) { envVars = new HashMap(); } this.envVars.put(key,value); } @JsonIgnore public void setEnvVars(Map<String, String> envVars) { this.envVars = envVars; } @JsonIgnore public Command.Docker getDocker() { return docker; } @JsonIgnore public void setDocker(Command.Docker docker) { this.docker = docker; } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/pojo
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/pojo/v20151111/Configs.java
package com.aliyuncs.batchcompute.pojo.v20151111; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; /** * Created by guangchun.luo on 16/3/2. */ @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public class Configs { @JsonIgnore public Disks getDisks() { return disks; } @JsonIgnore public void setDisks(Disks disks) { this.disks = disks; } @JsonProperty("Disks") private Disks disks; @JsonProperty("Mounts") private Mounts mounts; @JsonIgnore public Mounts getMounts() { return mounts; } @JsonIgnore public void setMounts(Mounts mounts) { this.mounts = mounts; } @JsonIgnore public Networks getNetworks() { return networks; } @JsonIgnore public void setNetworks(Networks networks) { this.networks = networks; } @JsonProperty("Networks") private Networks networks; }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/pojo
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/pojo/v20151111/DAG.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 com.aliyuncs.batchcompute.pojo.v20151111; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.HashMap; import java.util.List; import java.util.Map; /** * Created by guangchun.luo on 15/12/05. */ @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public class DAG { @JsonProperty("Tasks") private Map<String, TaskDescription> tasks; @JsonProperty("Dependencies") private Map<String, List<String>> dependencies; @JsonIgnore public Map<String, TaskDescription> getTasks() { return tasks; } @JsonIgnore public void setTasks(Map<String, TaskDescription> tasks) { this.tasks = tasks; } @JsonIgnore public void addTask(String taskName, TaskDescription taskDescription) { if (null == tasks) { tasks = new HashMap(); } tasks.put(taskName, taskDescription); } @JsonIgnore public void addTask(TaskDescription taskDescription) { addTask(taskDescription.getTaskName(), taskDescription); } @JsonIgnore public Map<String, List<String>> getDependencies() { return dependencies; } @JsonIgnore public void setDependencies(Map<String, List<String>> dependencies) { this.dependencies = dependencies; } @JsonIgnore public void addDependencies(String taskNameSrc, List<String> taskNameTargets) { if (null == dependencies) { dependencies = new HashMap(); } dependencies.put(taskNameSrc, taskNameTargets); } }
0
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/pojo
java-sources/com/aliyun/aliyun-java-sdk-batchcompute/6.2.4/com/aliyuncs/batchcompute/pojo/v20151111/DataDisk.java
package com.aliyuncs.batchcompute.pojo.v20151111; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; /** * Created by guangchun.luo on 16/3/2. */ @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public class DataDisk { @JsonProperty("Type") private String type; @JsonProperty("Size") private int size; //GB @JsonProperty("MountPoint") private String mountPoint; @JsonIgnore public String getType() { return type; } @JsonIgnore public void setType(String type) { this.type = type; } @JsonIgnore public int getSize() { return size; } @JsonIgnore public void setSize(int size) { this.size = size; } @JsonIgnore public String getMountPoint() { return mountPoint; } @JsonIgnore public void setMountPoint(String mountPoint) { this.mountPoint = mountPoint; } }