Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.huaweicloud.sdk.aom.v1.AomMeta Maven / Gradle / Ivy
package com.huaweicloud.sdk.aom.v1;
import com.huaweicloud.sdk.aom.v1.model.CreateFastExecuteScriptRequest;
import com.huaweicloud.sdk.aom.v1.model.CreateFastExecuteScriptResponse;
import com.huaweicloud.sdk.aom.v1.model.CreateWorkflowRequest;
import com.huaweicloud.sdk.aom.v1.model.CreateWorkflowResponse;
import com.huaweicloud.sdk.aom.v1.model.ExecuteWorkflowRequest;
import com.huaweicloud.sdk.aom.v1.model.ExecuteWorkflowResponse;
import com.huaweicloud.sdk.aom.v1.model.HISFastScript;
import com.huaweicloud.sdk.aom.v1.model.ListAllJobByNameRequest;
import com.huaweicloud.sdk.aom.v1.model.ListAllJobByNameResponse;
import com.huaweicloud.sdk.aom.v1.model.ListAllScriptByNameRequest;
import com.huaweicloud.sdk.aom.v1.model.ListAllScriptByNameResponse;
import com.huaweicloud.sdk.aom.v1.model.ListAllVersionByVersionIdRequest;
import com.huaweicloud.sdk.aom.v1.model.ListAllVersionByVersionIdResponse;
import com.huaweicloud.sdk.aom.v1.model.ListTemplateByJobIdRequest;
import com.huaweicloud.sdk.aom.v1.model.ListTemplateByJobIdRequestBody;
import com.huaweicloud.sdk.aom.v1.model.ListTemplateByJobIdResponse;
import com.huaweicloud.sdk.aom.v1.model.ListWorkflowExecutionsRequest;
import com.huaweicloud.sdk.aom.v1.model.ListWorkflowExecutionsResponse;
import com.huaweicloud.sdk.aom.v1.model.ListWorkflowRequest;
import com.huaweicloud.sdk.aom.v1.model.ListWorkflowResponse;
import com.huaweicloud.sdk.aom.v1.model.SearchJobsRequestBody;
import com.huaweicloud.sdk.aom.v1.model.SearchScriptsRequestBody;
import com.huaweicloud.sdk.aom.v1.model.SearchTemplateByIdRequest;
import com.huaweicloud.sdk.aom.v1.model.SearchTemplateByIdResponse;
import com.huaweicloud.sdk.aom.v1.model.SearchWorkflowExecutionDetailRequest;
import com.huaweicloud.sdk.aom.v1.model.SearchWorkflowExecutionDetailResponse;
import com.huaweicloud.sdk.aom.v1.model.StartPausingWorkflowExecutionsRequest;
import com.huaweicloud.sdk.aom.v1.model.StartPausingWorkflowExecutionsResponse;
import com.huaweicloud.sdk.aom.v1.model.StopExecutionRequest;
import com.huaweicloud.sdk.aom.v1.model.StopExecutionResponse;
import com.huaweicloud.sdk.aom.v1.model.UpdateWorkflowTriggerStatusRequest;
import com.huaweicloud.sdk.aom.v1.model.UpdateWorkflowTriggerStatusResponse;
import com.huaweicloud.sdk.aom.v1.model.WorkflowExecutionBrief;
import com.huaweicloud.sdk.aom.v1.model.WorkflowQueryParam;
import com.huaweicloud.sdk.aom.v1.model.WorkflowRequestBody;
import com.huaweicloud.sdk.core.TypeCasts;
import com.huaweicloud.sdk.core.http.FieldExistence;
import com.huaweicloud.sdk.core.http.HttpMethod;
import com.huaweicloud.sdk.core.http.HttpRequestDef;
import com.huaweicloud.sdk.core.http.LocationType;
import java.util.List;
@SuppressWarnings("unchecked")
public class AomMeta {
public static final HttpRequestDef createFastExecuteScript =
genForCreateFastExecuteScript();
private static HttpRequestDef genForCreateFastExecuteScript() {
// basic
HttpRequestDef.Builder builder = HttpRequestDef
.builder(HttpMethod.POST, CreateFastExecuteScriptRequest.class, CreateFastExecuteScriptResponse.class)
.withName("CreateFastExecuteScript")
.withUri("/v1/{project_id}/cms/fast-execute-script")
.withContentType("application/json");
// requests
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(HISFastScript.class),
f -> f.withMarshaller(CreateFastExecuteScriptRequest::getBody, CreateFastExecuteScriptRequest::setBody));
// response
return builder.build();
}
public static final HttpRequestDef createWorkflow =
genForCreateWorkflow();
private static HttpRequestDef genForCreateWorkflow() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.POST, CreateWorkflowRequest.class, CreateWorkflowResponse.class)
.withName("CreateWorkflow")
.withUri("/v1/{project_id}/cms/workflow")
.withContentType("application/json");
// requests
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(WorkflowRequestBody.class),
f -> f.withMarshaller(CreateWorkflowRequest::getBody, CreateWorkflowRequest::setBody));
// response
return builder.build();
}
public static final HttpRequestDef executeWorkflow =
genForExecuteWorkflow();
private static HttpRequestDef genForExecuteWorkflow() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.POST, ExecuteWorkflowRequest.class, ExecuteWorkflowResponse.class)
.withName("ExecuteWorkflow")
.withUri("/v1/{project_id}/cms/workflow/{workflow_id}/executions")
.withContentType("application/json");
// requests
builder.withRequestField("workflow_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(ExecuteWorkflowRequest::getWorkflowId, ExecuteWorkflowRequest::setWorkflowId));
// response
return builder.build();
}
public static final HttpRequestDef listAllJobByName =
genForListAllJobByName();
private static HttpRequestDef genForListAllJobByName() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.POST, ListAllJobByNameRequest.class, ListAllJobByNameResponse.class)
.withName("ListAllJobByName")
.withUri("/v1/{project_id}/cms/job/list")
.withContentType("application/json");
// requests
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(SearchJobsRequestBody.class),
f -> f.withMarshaller(ListAllJobByNameRequest::getBody, ListAllJobByNameRequest::setBody));
// response
return builder.build();
}
public static final HttpRequestDef listAllScriptByName =
genForListAllScriptByName();
private static HttpRequestDef genForListAllScriptByName() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.POST, ListAllScriptByNameRequest.class, ListAllScriptByNameResponse.class)
.withName("ListAllScriptByName")
.withUri("/v1/{project_id}/cms/script/list")
.withContentType("application/json");
// requests
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(SearchScriptsRequestBody.class),
f -> f.withMarshaller(ListAllScriptByNameRequest::getBody, ListAllScriptByNameRequest::setBody));
// response
return builder.build();
}
public static final HttpRequestDef listAllVersionByVersionId =
genForListAllVersionByVersionId();
private static HttpRequestDef genForListAllVersionByVersionId() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef
.builder(HttpMethod.POST,
ListAllVersionByVersionIdRequest.class,
ListAllVersionByVersionIdResponse.class)
.withName("ListAllVersionByVersionId")
.withUri("/v1/{project_id}/cms/script-version-list")
.withContentType("application/json");
// requests
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(SearchScriptsRequestBody.class),
f -> f.withMarshaller(ListAllVersionByVersionIdRequest::getBody,
ListAllVersionByVersionIdRequest::setBody));
// response
return builder.build();
}
public static final HttpRequestDef listTemplateByJobId =
genForListTemplateByJobId();
private static HttpRequestDef genForListTemplateByJobId() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.POST, ListTemplateByJobIdRequest.class, ListTemplateByJobIdResponse.class)
.withName("ListTemplateByJobId")
.withUri("/v1/{project_id}/cms/template-list/{job_id}")
.withContentType("application/json");
// requests
builder.withRequestField("job_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(ListTemplateByJobIdRequest::getJobId, ListTemplateByJobIdRequest::setJobId));
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(ListTemplateByJobIdRequestBody.class),
f -> f.withMarshaller(ListTemplateByJobIdRequest::getBody, ListTemplateByJobIdRequest::setBody));
// response
return builder.build();
}
public static final HttpRequestDef listWorkflow = genForListWorkflow();
private static HttpRequestDef genForListWorkflow() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.POST, ListWorkflowRequest.class, ListWorkflowResponse.class)
.withName("ListWorkflow")
.withUri("/v1/{project_id}/cms/workflow-list")
.withContentType("application/json");
// requests
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(WorkflowQueryParam.class),
f -> f.withMarshaller(ListWorkflowRequest::getBody, ListWorkflowRequest::setBody));
// response
return builder.build();
}
public static final HttpRequestDef listWorkflowExecutions =
genForListWorkflowExecutions();
private static HttpRequestDef genForListWorkflowExecutions() {
// basic
HttpRequestDef.Builder builder = HttpRequestDef
.builder(HttpMethod.GET, ListWorkflowExecutionsRequest.class, ListWorkflowExecutionsResponse.class)
.withName("ListWorkflowExecutions")
.withUri("/v1/{project_id}/cms/workflow/{workflow_id}/executions")
.withContentType("application/json");
// requests
builder.withRequestField("workflow_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(ListWorkflowExecutionsRequest::getWorkflowId,
ListWorkflowExecutionsRequest::setWorkflowId));
builder.withRequestField("x_enterprise_project_id",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(ListWorkflowExecutionsRequest::getXEnterpriseProjectId,
ListWorkflowExecutionsRequest::setXEnterpriseProjectId));
// response
builder.>withResponseField("body",
LocationType.Body,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListWorkflowExecutionsResponse::getBody, ListWorkflowExecutionsResponse::setBody)
.withInnerContainerType(WorkflowExecutionBrief.class));
return builder.build();
}
public static final HttpRequestDef searchTemplateById =
genForSearchTemplateById();
private static HttpRequestDef genForSearchTemplateById() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, SearchTemplateByIdRequest.class, SearchTemplateByIdResponse.class)
.withName("SearchTemplateById")
.withUri("/v1/{project_id}/cms/template/{template_id}")
.withContentType("application/json");
// requests
builder.withRequestField("template_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(SearchTemplateByIdRequest::getTemplateId, SearchTemplateByIdRequest::setTemplateId));
builder.withRequestField("share_type",
LocationType.Query,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(SearchTemplateByIdRequest::getShareType, SearchTemplateByIdRequest::setShareType));
// response
return builder.build();
}
public static final HttpRequestDef searchWorkflowExecutionDetail =
genForSearchWorkflowExecutionDetail();
private static HttpRequestDef genForSearchWorkflowExecutionDetail() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef
.builder(HttpMethod.GET,
SearchWorkflowExecutionDetailRequest.class,
SearchWorkflowExecutionDetailResponse.class)
.withName("SearchWorkflowExecutionDetail")
.withUri("/v1/{project_id}/cms/workflow/{workflow_id}/executions/{execution_id}/status")
.withContentType("application/json");
// requests
builder.withRequestField("workflow_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(SearchWorkflowExecutionDetailRequest::getWorkflowId,
SearchWorkflowExecutionDetailRequest::setWorkflowId));
builder.withRequestField("execution_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(SearchWorkflowExecutionDetailRequest::getExecutionId,
SearchWorkflowExecutionDetailRequest::setExecutionId));
// response
return builder.build();
}
public static final HttpRequestDef startPausingWorkflowExecutions =
genForStartPausingWorkflowExecutions();
private static HttpRequestDef genForStartPausingWorkflowExecutions() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef
.builder(HttpMethod.POST,
StartPausingWorkflowExecutionsRequest.class,
StartPausingWorkflowExecutionsResponse.class)
.withName("StartPausingWorkflowExecutions")
.withUri("/v1/{project_id}/cms/workflow/{workflow_id}/executions/{execution_id}/operation")
.withContentType("application/json");
// requests
builder.withRequestField("workflow_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(StartPausingWorkflowExecutionsRequest::getWorkflowId,
StartPausingWorkflowExecutionsRequest::setWorkflowId));
builder.withRequestField("execution_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(StartPausingWorkflowExecutionsRequest::getExecutionId,
StartPausingWorkflowExecutionsRequest::setExecutionId));
builder.withRequestField("action",
LocationType.Query,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(StartPausingWorkflowExecutionsRequest.ActionEnum.class),
f -> f.withMarshaller(StartPausingWorkflowExecutionsRequest::getAction,
StartPausingWorkflowExecutionsRequest::setAction));
builder.withRequestField("node_id",
LocationType.Query,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(StartPausingWorkflowExecutionsRequest::getNodeId,
StartPausingWorkflowExecutionsRequest::setNodeId));
// response
return builder.build();
}
public static final HttpRequestDef stopExecution =
genForStopExecution();
private static HttpRequestDef genForStopExecution() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.POST, StopExecutionRequest.class, StopExecutionResponse.class)
.withName("StopExecution")
.withUri("/v1/{project_id}/cms/workflow/{workflow_id}/executions/{execution_id}/terminate")
.withContentType("application/json");
// requests
builder.withRequestField("workflow_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(StopExecutionRequest::getWorkflowId, StopExecutionRequest::setWorkflowId));
builder.withRequestField("execution_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(StopExecutionRequest::getExecutionId, StopExecutionRequest::setExecutionId));
// response
builder.withResponseField("body",
LocationType.Body,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(StopExecutionResponse::getBody, StopExecutionResponse::setBody));
return builder.build();
}
public static final HttpRequestDef updateWorkflowTriggerStatus =
genForUpdateWorkflowTriggerStatus();
private static HttpRequestDef genForUpdateWorkflowTriggerStatus() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef
.builder(HttpMethod.PUT,
UpdateWorkflowTriggerStatusRequest.class,
UpdateWorkflowTriggerStatusResponse.class)
.withName("UpdateWorkflowTriggerStatus")
.withUri("/v1/{project_id}/cms/workflow/{workflow_id}/trigger/action")
.withContentType("application/json");
// requests
builder.withRequestField("workflow_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(UpdateWorkflowTriggerStatusRequest::getWorkflowId,
UpdateWorkflowTriggerStatusRequest::setWorkflowId));
builder.withRequestField("action",
LocationType.Query,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(UpdateWorkflowTriggerStatusRequest.ActionEnum.class),
f -> f.withMarshaller(UpdateWorkflowTriggerStatusRequest::getAction,
UpdateWorkflowTriggerStatusRequest::setAction));
// response
builder.withResponseField("body",
LocationType.Body,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(UpdateWorkflowTriggerStatusResponse::getBody,
UpdateWorkflowTriggerStatusResponse::setBody));
return builder.build();
}
}