All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.huaweicloud.sdk.cloudide.v2.CloudIDEMeta Maven / Gradle / Ivy

There is a newer version: 3.1.114
Show newest version
package com.huaweicloud.sdk.cloudide.v2;

import com.huaweicloud.sdk.cloudide.v2.model.AcceptanceSchema;
import com.huaweicloud.sdk.cloudide.v2.model.AddExtensionEvaluationReplyRequest;
import com.huaweicloud.sdk.cloudide.v2.model.AddExtensionEvaluationReplyResponse;
import com.huaweicloud.sdk.cloudide.v2.model.AddExtensionEvaluationRequest;
import com.huaweicloud.sdk.cloudide.v2.model.AddExtensionEvaluationResponse;
import com.huaweicloud.sdk.cloudide.v2.model.AddExtensionStarRequest;
import com.huaweicloud.sdk.cloudide.v2.model.AddExtensionStarResponse;
import com.huaweicloud.sdk.cloudide.v2.model.ChatRequestMessage;
import com.huaweicloud.sdk.cloudide.v2.model.ChatResultRequestMessage;
import com.huaweicloud.sdk.cloudide.v2.model.CheckInstanceAccessRequest;
import com.huaweicloud.sdk.cloudide.v2.model.CheckInstanceAccessResponse;
import com.huaweicloud.sdk.cloudide.v2.model.CheckMaliciousExtensionEvaluationRequest;
import com.huaweicloud.sdk.cloudide.v2.model.CheckMaliciousExtensionEvaluationResponse;
import com.huaweicloud.sdk.cloudide.v2.model.CheckNameRequest;
import com.huaweicloud.sdk.cloudide.v2.model.CheckNameResponse;
import com.huaweicloud.sdk.cloudide.v2.model.CreateAcceptanceRequest;
import com.huaweicloud.sdk.cloudide.v2.model.CreateAcceptanceResponse;
import com.huaweicloud.sdk.cloudide.v2.model.CreateApplyRequest;
import com.huaweicloud.sdk.cloudide.v2.model.CreateApplyResponse;
import com.huaweicloud.sdk.cloudide.v2.model.CreateEventRequest;
import com.huaweicloud.sdk.cloudide.v2.model.CreateEventResponse;
import com.huaweicloud.sdk.cloudide.v2.model.CreateExtensionAuthorizationRequest;
import com.huaweicloud.sdk.cloudide.v2.model.CreateExtensionAuthorizationResponse;
import com.huaweicloud.sdk.cloudide.v2.model.CreateInstanceBy3rdRequest;
import com.huaweicloud.sdk.cloudide.v2.model.CreateInstanceBy3rdResponse;
import com.huaweicloud.sdk.cloudide.v2.model.CreateInstanceRequest;
import com.huaweicloud.sdk.cloudide.v2.model.CreateInstanceResponse;
import com.huaweicloud.sdk.cloudide.v2.model.CreateLoginRequest;
import com.huaweicloud.sdk.cloudide.v2.model.CreateLoginResponse;
import com.huaweicloud.sdk.cloudide.v2.model.CreateRequestRequest;
import com.huaweicloud.sdk.cloudide.v2.model.CreateRequestResponse;
import com.huaweicloud.sdk.cloudide.v2.model.DeleteEvaluationReplyRequest;
import com.huaweicloud.sdk.cloudide.v2.model.DeleteEvaluationReplyResponse;
import com.huaweicloud.sdk.cloudide.v2.model.DeleteEvaluationRequest;
import com.huaweicloud.sdk.cloudide.v2.model.DeleteEvaluationResponse;
import com.huaweicloud.sdk.cloudide.v2.model.DeleteInstanceRequest;
import com.huaweicloud.sdk.cloudide.v2.model.DeleteInstanceResponse;
import com.huaweicloud.sdk.cloudide.v2.model.Evaluation;
import com.huaweicloud.sdk.cloudide.v2.model.EvaluationAccusation;
import com.huaweicloud.sdk.cloudide.v2.model.EvaluationReply;
import com.huaweicloud.sdk.cloudide.v2.model.EventSchema;
import com.huaweicloud.sdk.cloudide.v2.model.ExtensionAuthorization;
import com.huaweicloud.sdk.cloudide.v2.model.ExtensionQueryParamSnake;
import com.huaweicloud.sdk.cloudide.v2.model.ExtensionSearchUserInputParamCustomizeForDetail;
import com.huaweicloud.sdk.cloudide.v2.model.ExtensionStar;
import com.huaweicloud.sdk.cloudide.v2.model.InstanceEdgeParam;
import com.huaweicloud.sdk.cloudide.v2.model.InstanceParam;
import com.huaweicloud.sdk.cloudide.v2.model.InstanceUpdateParam;
import com.huaweicloud.sdk.cloudide.v2.model.JoinRequestSchema;
import com.huaweicloud.sdk.cloudide.v2.model.ListExtensionsRequest;
import com.huaweicloud.sdk.cloudide.v2.model.ListExtensionsResponse;
import com.huaweicloud.sdk.cloudide.v2.model.ListInstancesRequest;
import com.huaweicloud.sdk.cloudide.v2.model.ListInstancesResponse;
import com.huaweicloud.sdk.cloudide.v2.model.ListOrgInstancesRequest;
import com.huaweicloud.sdk.cloudide.v2.model.ListOrgInstancesResponse;
import com.huaweicloud.sdk.cloudide.v2.model.ListProjectTemplatesRequest;
import com.huaweicloud.sdk.cloudide.v2.model.ListProjectTemplatesResponse;
import com.huaweicloud.sdk.cloudide.v2.model.ListPublisherRequest;
import com.huaweicloud.sdk.cloudide.v2.model.ListPublisherResponse;
import com.huaweicloud.sdk.cloudide.v2.model.ListStacksRequest;
import com.huaweicloud.sdk.cloudide.v2.model.ListStacksResponse;
import com.huaweicloud.sdk.cloudide.v2.model.LoginSchema;
import com.huaweicloud.sdk.cloudide.v2.model.PropertiesSchema;
import com.huaweicloud.sdk.cloudide.v2.model.PublishExtensionRequest;
import com.huaweicloud.sdk.cloudide.v2.model.PublishExtensionResponse;
import com.huaweicloud.sdk.cloudide.v2.model.ShowAccountStatusRequest;
import com.huaweicloud.sdk.cloudide.v2.model.ShowAccountStatusResponse;
import com.huaweicloud.sdk.cloudide.v2.model.ShowCategoryListRequest;
import com.huaweicloud.sdk.cloudide.v2.model.ShowCategoryListResponse;
import com.huaweicloud.sdk.cloudide.v2.model.ShowExtensionAuthorizationRequest;
import com.huaweicloud.sdk.cloudide.v2.model.ShowExtensionAuthorizationResponse;
import com.huaweicloud.sdk.cloudide.v2.model.ShowExtensionDetailRequest;
import com.huaweicloud.sdk.cloudide.v2.model.ShowExtensionDetailResponse;
import com.huaweicloud.sdk.cloudide.v2.model.ShowExtensionEvaluationRequest;
import com.huaweicloud.sdk.cloudide.v2.model.ShowExtensionEvaluationResponse;
import com.huaweicloud.sdk.cloudide.v2.model.ShowExtensionEvaluationStarRequest;
import com.huaweicloud.sdk.cloudide.v2.model.ShowExtensionEvaluationStarResponse;
import com.huaweicloud.sdk.cloudide.v2.model.ShowExtensionTestingResultRequest;
import com.huaweicloud.sdk.cloudide.v2.model.ShowExtensionTestingResultResponse;
import com.huaweicloud.sdk.cloudide.v2.model.ShowInstanceRequest;
import com.huaweicloud.sdk.cloudide.v2.model.ShowInstanceResponse;
import com.huaweicloud.sdk.cloudide.v2.model.ShowInstanceStatusInfoRequest;
import com.huaweicloud.sdk.cloudide.v2.model.ShowInstanceStatusInfoResponse;
import com.huaweicloud.sdk.cloudide.v2.model.ShowPriceRequest;
import com.huaweicloud.sdk.cloudide.v2.model.ShowPriceResponse;
import com.huaweicloud.sdk.cloudide.v2.model.ShowResultRequest;
import com.huaweicloud.sdk.cloudide.v2.model.ShowResultResponse;
import com.huaweicloud.sdk.cloudide.v2.model.StartChatRequest;
import com.huaweicloud.sdk.cloudide.v2.model.StartChatRequestMessage;
import com.huaweicloud.sdk.cloudide.v2.model.StartChatResponse;
import com.huaweicloud.sdk.cloudide.v2.model.StartInstanceParam;
import com.huaweicloud.sdk.cloudide.v2.model.StartInstanceRequest;
import com.huaweicloud.sdk.cloudide.v2.model.StartInstanceResponse;
import com.huaweicloud.sdk.cloudide.v2.model.StopInstanceRequest;
import com.huaweicloud.sdk.cloudide.v2.model.StopInstanceResponse;
import com.huaweicloud.sdk.cloudide.v2.model.SyncChatRequest;
import com.huaweicloud.sdk.cloudide.v2.model.SyncChatResponse;
import com.huaweicloud.sdk.cloudide.v2.model.SyncGetChatResultRequest;
import com.huaweicloud.sdk.cloudide.v2.model.SyncGetChatResultResponse;
import com.huaweicloud.sdk.cloudide.v2.model.TaskModelMarketPlace;
import com.huaweicloud.sdk.cloudide.v2.model.UpdateInstanceActivityRequest;
import com.huaweicloud.sdk.cloudide.v2.model.UpdateInstanceActivityResponse;
import com.huaweicloud.sdk.cloudide.v2.model.UpdateInstanceRequest;
import com.huaweicloud.sdk.cloudide.v2.model.UpdateInstanceResponse;
import com.huaweicloud.sdk.cloudide.v2.model.UploadExtensionFileRequest;
import com.huaweicloud.sdk.cloudide.v2.model.UploadExtensionFileRequestBody;
import com.huaweicloud.sdk.cloudide.v2.model.UploadExtensionFileResponse;
import com.huaweicloud.sdk.cloudide.v2.model.UploadFilePublisherRequest;
import com.huaweicloud.sdk.cloudide.v2.model.UploadFilePublisherRequestBody;
import com.huaweicloud.sdk.cloudide.v2.model.UploadFilePublisherResponse;
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;

@SuppressWarnings("unchecked")
public class CloudIDEMeta {

    public static final HttpRequestDef addExtensionEvaluation =
        genForAddExtensionEvaluation();

    private static HttpRequestDef genForAddExtensionEvaluation() {
        // basic
        HttpRequestDef.Builder builder = HttpRequestDef
            .builder(HttpMethod.POST, AddExtensionEvaluationRequest.class, AddExtensionEvaluationResponse.class)
            .withName("AddExtensionEvaluation")
            .withUri("/v1/marketplace/extension/evaluation")
            .withContentType("application/json");

        // requests
        builder.withRequestField("body",
            LocationType.Body,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(Evaluation.class),
            f -> f.withMarshaller(AddExtensionEvaluationRequest::getBody, AddExtensionEvaluationRequest::setBody));

        // response

        return builder.build();
    }

    public static final HttpRequestDef addExtensionEvaluationReply =
        genForAddExtensionEvaluationReply();

    private static HttpRequestDef genForAddExtensionEvaluationReply() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef
                .builder(HttpMethod.POST,
                    AddExtensionEvaluationReplyRequest.class,
                    AddExtensionEvaluationReplyResponse.class)
                .withName("AddExtensionEvaluationReply")
                .withUri("/v1/marketplace/extension/evaluation/reply")
                .withContentType("application/json");

        // requests
        builder.withRequestField("body",
            LocationType.Body,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(EvaluationReply.class),
            f -> f.withMarshaller(AddExtensionEvaluationReplyRequest::getBody,
                AddExtensionEvaluationReplyRequest::setBody));

        // response

        return builder.build();
    }

    public static final HttpRequestDef addExtensionStar =
        genForAddExtensionStar();

    private static HttpRequestDef genForAddExtensionStar() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.POST, AddExtensionStarRequest.class, AddExtensionStarResponse.class)
                .withName("AddExtensionStar")
                .withUri("/v1/marketplace/star")
                .withContentType("application/json");

        // requests
        builder.withRequestField("body",
            LocationType.Body,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(ExtensionStar.class),
            f -> f.withMarshaller(AddExtensionStarRequest::getBody, AddExtensionStarRequest::setBody));

        // response

        return builder.build();
    }

    public static final HttpRequestDef checkMaliciousExtensionEvaluation =
        genForCheckMaliciousExtensionEvaluation();

    private static HttpRequestDef genForCheckMaliciousExtensionEvaluation() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef
                .builder(HttpMethod.POST,
                    CheckMaliciousExtensionEvaluationRequest.class,
                    CheckMaliciousExtensionEvaluationResponse.class)
                .withName("CheckMaliciousExtensionEvaluation")
                .withUri("/v1/marketplace/extension/evaluation/accusation")
                .withContentType("application/json");

        // requests
        builder.withRequestField("body",
            LocationType.Body,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(EvaluationAccusation.class),
            f -> f.withMarshaller(CheckMaliciousExtensionEvaluationRequest::getBody,
                CheckMaliciousExtensionEvaluationRequest::setBody));

        // response

        return builder.build();
    }

    public static final HttpRequestDef createExtensionAuthorization =
        genForCreateExtensionAuthorization();

    private static HttpRequestDef genForCreateExtensionAuthorization() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef
                .builder(HttpMethod.POST,
                    CreateExtensionAuthorizationRequest.class,
                    CreateExtensionAuthorizationResponse.class)
                .withName("CreateExtensionAuthorization")
                .withUri("/v2/extension/authorization/{instance_id}")
                .withContentType("application/json");

        // requests
        builder.withRequestField("instance_id",
            LocationType.Path,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(CreateExtensionAuthorizationRequest::getInstanceId,
                CreateExtensionAuthorizationRequest::setInstanceId));
        builder.withRequestField("body",
            LocationType.Body,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(ExtensionAuthorization.class),
            f -> f.withMarshaller(CreateExtensionAuthorizationRequest::getBody,
                CreateExtensionAuthorizationRequest::setBody));

        // response

        return builder.build();
    }

    public static final HttpRequestDef deleteEvaluation =
        genForDeleteEvaluation();

    private static HttpRequestDef genForDeleteEvaluation() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.DELETE, DeleteEvaluationRequest.class, DeleteEvaluationResponse.class)
                .withName("DeleteEvaluation")
                .withUri("/v1/marketplace/evaluation/{evaluation_id}")
                .withContentType("application/json");

        // requests
        builder.withRequestField("evaluation_id",
            LocationType.Path,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(Long.class),
            f -> f.withMarshaller(DeleteEvaluationRequest::getEvaluationId, DeleteEvaluationRequest::setEvaluationId));

        // response

        return builder.build();
    }

    public static final HttpRequestDef deleteEvaluationReply =
        genForDeleteEvaluationReply();

    private static HttpRequestDef genForDeleteEvaluationReply() {
        // basic
        HttpRequestDef.Builder builder = HttpRequestDef
            .builder(HttpMethod.DELETE, DeleteEvaluationReplyRequest.class, DeleteEvaluationReplyResponse.class)
            .withName("DeleteEvaluationReply")
            .withUri("/v1/marketplace/evaluation/reply/{reply_id}")
            .withContentType("application/json");

        // requests
        builder.withRequestField("reply_id",
            LocationType.Path,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(Long.class),
            f -> f.withMarshaller(DeleteEvaluationReplyRequest::getReplyId, DeleteEvaluationReplyRequest::setReplyId));

        // response

        return builder.build();
    }

    public static final HttpRequestDef listExtensions =
        genForListExtensions();

    private static HttpRequestDef genForListExtensions() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.POST, ListExtensionsRequest.class, ListExtensionsResponse.class)
                .withName("ListExtensions")
                .withUri("/v1/marketplace/extension/extensionquery")
                .withContentType("application/json");

        // requests
        builder.withRequestField("body",
            LocationType.Body,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(ExtensionQueryParamSnake.class),
            f -> f.withMarshaller(ListExtensionsRequest::getBody, ListExtensionsRequest::setBody));

        // response

        return builder.build();
    }

    public static final HttpRequestDef listProjectTemplates =
        genForListProjectTemplates();

    private static HttpRequestDef genForListProjectTemplates() {
        // basic
        HttpRequestDef.Builder builder = HttpRequestDef
            .builder(HttpMethod.GET, ListProjectTemplatesRequest.class, ListProjectTemplatesResponse.class)
            .withName("ListProjectTemplates")
            .withUri("/v2/templates")
            .withContentType("application/json");

        // requests
        builder.withRequestField("arch",
            LocationType.Query,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(ListProjectTemplatesRequest::getArch, ListProjectTemplatesRequest::setArch));
        builder.withRequestField("stack_id",
            LocationType.Query,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(ListProjectTemplatesRequest::getStackId, ListProjectTemplatesRequest::setStackId));

        // response

        return builder.build();
    }

    public static final HttpRequestDef listPublisher =
        genForListPublisher();

    private static HttpRequestDef genForListPublisher() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.GET, ListPublisherRequest.class, ListPublisherResponse.class)
                .withName("ListPublisher")
                .withUri("/v1/marketplace/publishers/mine")
                .withContentType("application/json");

        // requests
        builder.withRequestField("name",
            LocationType.Query,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(ListPublisherRequest::getName, ListPublisherRequest::setName));

        // response

        return builder.build();
    }

    public static final HttpRequestDef listStacks = genForListStacks();

    private static HttpRequestDef genForListStacks() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.GET, ListStacksRequest.class, ListStacksResponse.class)
                .withName("ListStacks")
                .withUri("/v2/stacks/tag")
                .withContentType("application/json");

        // requests
        builder.withRequestField("tags",
            LocationType.Query,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(ListStacksRequest::getTags, ListStacksRequest::setTags));

        // response

        return builder.build();
    }

    public static final HttpRequestDef publishExtension =
        genForPublishExtension();

    private static HttpRequestDef genForPublishExtension() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.POST, PublishExtensionRequest.class, PublishExtensionResponse.class)
                .withName("PublishExtension")
                .withUri("/v1/marketplace/extension/{task_id}/archiving")
                .withContentType("application/json");

        // requests
        builder.withRequestField("task_id",
            LocationType.Path,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(PublishExtensionRequest::getTaskId, PublishExtensionRequest::setTaskId));
        builder.withRequestField("x-publisher-token",
            LocationType.Header,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(PublishExtensionRequest::getXPublisherToken,
                PublishExtensionRequest::setXPublisherToken));
        builder.withRequestField("body",
            LocationType.Body,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(TaskModelMarketPlace.class),
            f -> f.withMarshaller(PublishExtensionRequest::getBody, PublishExtensionRequest::setBody));

        // response

        return builder.build();
    }

    public static final HttpRequestDef showAccountStatus =
        genForShowAccountStatus();

    private static HttpRequestDef genForShowAccountStatus() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.GET, ShowAccountStatusRequest.class, ShowAccountStatusResponse.class)
                .withName("ShowAccountStatus")
                .withUri("/v2/permission/account/status")
                .withContentType("application/json");

        // requests

        // response

        return builder.build();
    }

    public static final HttpRequestDef showCategoryList =
        genForShowCategoryList();

    private static HttpRequestDef genForShowCategoryList() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.GET, ShowCategoryListRequest.class, ShowCategoryListResponse.class)
                .withName("ShowCategoryList")
                .withUri("/v1/marketplace/extension/category")
                .withContentType("application/json");

        // requests
        builder.withRequestField("page_num",
            LocationType.Query,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(Long.class),
            f -> f.withMarshaller(ShowCategoryListRequest::getPageNum, ShowCategoryListRequest::setPageNum));
        builder.withRequestField("page_size",
            LocationType.Query,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(Long.class),
            f -> f.withMarshaller(ShowCategoryListRequest::getPageSize, ShowCategoryListRequest::setPageSize));
        builder.withRequestField("scene_name",
            LocationType.Query,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(ShowCategoryListRequest::getSceneName, ShowCategoryListRequest::setSceneName));
        builder.withRequestField("support_ide",
            LocationType.Query,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(Integer.class),
            f -> f.withMarshaller(ShowCategoryListRequest::getSupportIde, ShowCategoryListRequest::setSupportIde));
        builder.withRequestField("type",
            LocationType.Query,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(Integer.class),
            f -> f.withMarshaller(ShowCategoryListRequest::getType, ShowCategoryListRequest::setType));

        // response

        return builder.build();
    }

    public static final HttpRequestDef showExtensionAuthorization =
        genForShowExtensionAuthorization();

    private static HttpRequestDef genForShowExtensionAuthorization() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef
                .builder(HttpMethod.GET,
                    ShowExtensionAuthorizationRequest.class,
                    ShowExtensionAuthorizationResponse.class)
                .withName("ShowExtensionAuthorization")
                .withUri("/v2/extension/authorization")
                .withContentType("application/json");

        // requests
        builder.withRequestField("extension_version",
            LocationType.Query,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(ShowExtensionAuthorizationRequest::getExtensionVersion,
                ShowExtensionAuthorizationRequest::setExtensionVersion));
        builder.withRequestField("identifier",
            LocationType.Query,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(ShowExtensionAuthorizationRequest::getIdentifier,
                ShowExtensionAuthorizationRequest::setIdentifier));
        builder.withRequestField("instance_id",
            LocationType.Query,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(ShowExtensionAuthorizationRequest::getInstanceId,
                ShowExtensionAuthorizationRequest::setInstanceId));

        // response

        return builder.build();
    }

    public static final HttpRequestDef showExtensionDetail =
        genForShowExtensionDetail();

    private static HttpRequestDef genForShowExtensionDetail() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.POST, ShowExtensionDetailRequest.class, ShowExtensionDetailResponse.class)
                .withName("ShowExtensionDetail")
                .withUri("/v1/marketplace/extension/public/detail")
                .withContentType("application/json");

        // requests
        builder.withRequestField("body",
            LocationType.Body,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(ExtensionSearchUserInputParamCustomizeForDetail.class),
            f -> f.withMarshaller(ShowExtensionDetailRequest::getBody, ShowExtensionDetailRequest::setBody));

        // response

        return builder.build();
    }

    public static final HttpRequestDef showExtensionEvaluation =
        genForShowExtensionEvaluation();

    private static HttpRequestDef genForShowExtensionEvaluation() {
        // basic
        HttpRequestDef.Builder builder = HttpRequestDef
            .builder(HttpMethod.GET, ShowExtensionEvaluationRequest.class, ShowExtensionEvaluationResponse.class)
            .withName("ShowExtensionEvaluation")
            .withUri("/v1/marketplace/feedback/evaluation")
            .withContentType("application/json");

        // requests
        builder.withRequestField("extension_id",
            LocationType.Query,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(ShowExtensionEvaluationRequest::getExtensionId,
                ShowExtensionEvaluationRequest::setExtensionId));
        builder.withRequestField("limit",
            LocationType.Query,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(Long.class),
            f -> f.withMarshaller(ShowExtensionEvaluationRequest::getLimit, ShowExtensionEvaluationRequest::setLimit));
        builder.withRequestField("offset",
            LocationType.Query,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(Long.class),
            f -> f.withMarshaller(ShowExtensionEvaluationRequest::getOffset,
                ShowExtensionEvaluationRequest::setOffset));

        // response

        return builder.build();
    }

    public static final HttpRequestDef showExtensionEvaluationStar =
        genForShowExtensionEvaluationStar();

    private static HttpRequestDef genForShowExtensionEvaluationStar() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef
                .builder(HttpMethod.GET,
                    ShowExtensionEvaluationStarRequest.class,
                    ShowExtensionEvaluationStarResponse.class)
                .withName("ShowExtensionEvaluationStar")
                .withUri("/v1/marketplace/feedback/star")
                .withContentType("application/json");

        // requests
        builder.withRequestField("extension_id",
            LocationType.Query,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(ShowExtensionEvaluationStarRequest::getExtensionId,
                ShowExtensionEvaluationStarRequest::setExtensionId));
        builder.withRequestField("limit",
            LocationType.Query,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(Long.class),
            f -> f.withMarshaller(ShowExtensionEvaluationStarRequest::getLimit,
                ShowExtensionEvaluationStarRequest::setLimit));
        builder.withRequestField("offset",
            LocationType.Query,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(Long.class),
            f -> f.withMarshaller(ShowExtensionEvaluationStarRequest::getOffset,
                ShowExtensionEvaluationStarRequest::setOffset));

        // response

        return builder.build();
    }

    public static final HttpRequestDef showExtensionTestingResult =
        genForShowExtensionTestingResult();

    private static HttpRequestDef genForShowExtensionTestingResult() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef
                .builder(HttpMethod.GET,
                    ShowExtensionTestingResultRequest.class,
                    ShowExtensionTestingResultResponse.class)
                .withName("ShowExtensionTestingResult")
                .withUri("/v1/marketplace/extension/{task_id}/status")
                .withContentType("application/json");

        // requests
        builder.withRequestField("task_id",
            LocationType.Path,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(ShowExtensionTestingResultRequest::getTaskId,
                ShowExtensionTestingResultRequest::setTaskId));
        builder.withRequestField("x-publisher-token",
            LocationType.Header,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(ShowExtensionTestingResultRequest::getXPublisherToken,
                ShowExtensionTestingResultRequest::setXPublisherToken));

        // response

        return builder.build();
    }

    public static final HttpRequestDef showPrice = genForShowPrice();

    private static HttpRequestDef genForShowPrice() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.GET, ShowPriceRequest.class, ShowPriceResponse.class)
                .withName("ShowPrice")
                .withUri("/v2/stacks/price")
                .withContentType("application/json");

        // requests

        // response

        return builder.build();
    }

    public static final HttpRequestDef uploadExtensionFile =
        genForUploadExtensionFile();

    private static HttpRequestDef genForUploadExtensionFile() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.POST, UploadExtensionFileRequest.class, UploadExtensionFileResponse.class)
                .withName("UploadExtensionFile")
                .withUri("/v1/marketplace/file/plugin")
                .withContentType("multipart/form-data");

        // requests
        builder.withRequestField("official",
            LocationType.Query,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(UploadExtensionFileRequest::getOfficial, UploadExtensionFileRequest::setOfficial));
        builder.withRequestField("body",
            LocationType.Body,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(UploadExtensionFileRequestBody.class),
            f -> f.withMarshaller(UploadExtensionFileRequest::getBody, UploadExtensionFileRequest::setBody));

        // response

        return builder.build();
    }

    public static final HttpRequestDef uploadFilePublisher =
        genForUploadFilePublisher();

    private static HttpRequestDef genForUploadFilePublisher() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.POST, UploadFilePublisherRequest.class, UploadFilePublisherResponse.class)
                .withName("UploadFilePublisher")
                .withUri("/v2/fileservice/file/upload")
                .withContentType("multipart/form-data");

        // requests
        builder.withRequestField("x-publisher-token",
            LocationType.Header,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(UploadFilePublisherRequest::getXPublisherToken,
                UploadFilePublisherRequest::setXPublisherToken));
        builder.withRequestField("body",
            LocationType.Body,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(UploadFilePublisherRequestBody.class),
            f -> f.withMarshaller(UploadFilePublisherRequest::getBody, UploadFilePublisherRequest::setBody));

        // response

        return builder.build();
    }

    public static final HttpRequestDef createAcceptance =
        genForCreateAcceptance();

    private static HttpRequestDef genForCreateAcceptance() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.POST, CreateAcceptanceRequest.class, CreateAcceptanceResponse.class)
                .withName("CreateAcceptance")
                .withUri("/v2/aims/codemodelserver/code-generation/acceptance")
                .withContentType("application/json");

        // requests
        builder.withRequestField("body",
            LocationType.Body,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(AcceptanceSchema.class),
            f -> f.withMarshaller(CreateAcceptanceRequest::getBody, CreateAcceptanceRequest::setBody));

        // response

        return builder.build();
    }

    public static final HttpRequestDef createApply = genForCreateApply();

    private static HttpRequestDef genForCreateApply() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.POST, CreateApplyRequest.class, CreateApplyResponse.class)
                .withName("CreateApply")
                .withUri("/v2/aims/codemodelserver/join-request")
                .withContentType("application/json");

        // requests
        builder.withRequestField("body",
            LocationType.Body,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(JoinRequestSchema.class),
            f -> f.withMarshaller(CreateApplyRequest::getBody, CreateApplyRequest::setBody));

        // response

        return builder.build();
    }

    public static final HttpRequestDef createEvent = genForCreateEvent();

    private static HttpRequestDef genForCreateEvent() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.POST, CreateEventRequest.class, CreateEventResponse.class)
                .withName("CreateEvent")
                .withUri("/v2/aims/codemodelserver/management/event")
                .withContentType("application/json");

        // requests
        builder.withRequestField("body",
            LocationType.Body,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(EventSchema.class),
            f -> f.withMarshaller(CreateEventRequest::getBody, CreateEventRequest::setBody));

        // response

        return builder.build();
    }

    public static final HttpRequestDef createLogin = genForCreateLogin();

    private static HttpRequestDef genForCreateLogin() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.POST, CreateLoginRequest.class, CreateLoginResponse.class)
                .withName("CreateLogin")
                .withUri("/v2/aims/codemodelserver/code-generation/login")
                .withContentType("application/json");

        // requests
        builder.withRequestField("body",
            LocationType.Body,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(LoginSchema.class),
            f -> f.withMarshaller(CreateLoginRequest::getBody, CreateLoginRequest::setBody));

        // response

        return builder.build();
    }

    public static final HttpRequestDef createRequest =
        genForCreateRequest();

    private static HttpRequestDef genForCreateRequest() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.POST, CreateRequestRequest.class, CreateRequestResponse.class)
                .withName("CreateRequest")
                .withUri("/v2/aims/codemodelserver/code-generation/request")
                .withContentType("application/json");

        // requests
        builder.withRequestField("topn",
            LocationType.Query,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(Integer.class),
            f -> f.withMarshaller(CreateRequestRequest::getTopn, CreateRequestRequest::setTopn));
        builder.withRequestField("scenario",
            LocationType.Query,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(CreateRequestRequest::getScenario, CreateRequestRequest::setScenario));
        builder.withRequestField("resubmit",
            LocationType.Query,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(Boolean.class),
            f -> f.withMarshaller(CreateRequestRequest::getResubmit, CreateRequestRequest::setResubmit));
        builder.withRequestField("model_id",
            LocationType.Query,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(CreateRequestRequest::getModelId, CreateRequestRequest::setModelId));
        builder.withRequestField("request_type",
            LocationType.Query,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(CreateRequestRequest.RequestTypeEnum.class),
            f -> f.withMarshaller(CreateRequestRequest::getRequestType, CreateRequestRequest::setRequestType));
        builder.withRequestField("body",
            LocationType.Body,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(PropertiesSchema.class),
            f -> f.withMarshaller(CreateRequestRequest::getBody, CreateRequestRequest::setBody));

        // response

        return builder.build();
    }

    public static final HttpRequestDef showResult = genForShowResult();

    private static HttpRequestDef genForShowResult() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.GET, ShowResultRequest.class, ShowResultResponse.class)
                .withName("ShowResult")
                .withUri("/v2/aims/codemodelserver/code-generation/results")
                .withContentType("application/json");

        // requests
        builder.withRequestField("request_id",
            LocationType.Query,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(ShowResultRequest::getRequestId, ShowResultRequest::setRequestId));

        // response

        return builder.build();
    }

    public static final HttpRequestDef startChat = genForStartChat();

    private static HttpRequestDef genForStartChat() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.POST, StartChatRequest.class, StartChatResponse.class)
                .withName("StartChat")
                .withUri("/v1/codebreezetsbot/devmind/tsbot/start-chat")
                .withContentType("application/json");

        // requests
        builder.withRequestField("body",
            LocationType.Body,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(StartChatRequestMessage.class),
            f -> f.withMarshaller(StartChatRequest::getBody, StartChatRequest::setBody));

        // response

        return builder.build();
    }

    public static final HttpRequestDef syncChat = genForSyncChat();

    private static HttpRequestDef genForSyncChat() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.POST, SyncChatRequest.class, SyncChatResponse.class)
                .withName("SyncChat")
                .withUri("/v1/codebreezetsbot/devmind/tsbot/async-chat")
                .withContentType("application/json");

        // requests
        builder.withRequestField("body",
            LocationType.Body,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(ChatRequestMessage.class),
            f -> f.withMarshaller(SyncChatRequest::getBody, SyncChatRequest::setBody));

        // response

        return builder.build();
    }

    public static final HttpRequestDef syncGetChatResult =
        genForSyncGetChatResult();

    private static HttpRequestDef genForSyncGetChatResult() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.POST, SyncGetChatResultRequest.class, SyncGetChatResultResponse.class)
                .withName("SyncGetChatResult")
                .withUri("/v1/codebreezetsbot/devmind/tsbot/async-get-chat-result")
                .withContentType("application/json");

        // requests
        builder.withRequestField("body",
            LocationType.Body,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(ChatResultRequestMessage.class),
            f -> f.withMarshaller(SyncGetChatResultRequest::getBody, SyncGetChatResultRequest::setBody));

        // response

        return builder.build();
    }

    public static final HttpRequestDef checkInstanceAccess =
        genForCheckInstanceAccess();

    private static HttpRequestDef genForCheckInstanceAccess() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.GET, CheckInstanceAccessRequest.class, CheckInstanceAccessResponse.class)
                .withName("CheckInstanceAccess")
                .withUri("/v2/instances/{instance_id}/access")
                .withContentType("application/json");

        // requests
        builder.withRequestField("instance_id",
            LocationType.Path,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(CheckInstanceAccessRequest::getInstanceId,
                CheckInstanceAccessRequest::setInstanceId));

        // response

        return builder.build();
    }

    public static final HttpRequestDef checkName = genForCheckName();

    private static HttpRequestDef genForCheckName() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.GET, CheckNameRequest.class, CheckNameResponse.class)
                .withName("CheckName")
                .withUri("/v2/instances/duplicate")
                .withContentType("application/json");

        // requests
        builder.withRequestField("display_name",
            LocationType.Query,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(CheckNameRequest::getDisplayName, CheckNameRequest::setDisplayName));

        // response

        return builder.build();
    }

    public static final HttpRequestDef createInstance =
        genForCreateInstance();

    private static HttpRequestDef genForCreateInstance() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.POST, CreateInstanceRequest.class, CreateInstanceResponse.class)
                .withName("CreateInstance")
                .withUri("/v2/{org_id}/instances")
                .withContentType("application/json");

        // requests
        builder.withRequestField("org_id",
            LocationType.Path,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(CreateInstanceRequest::getOrgId, CreateInstanceRequest::setOrgId));
        builder.withRequestField("body",
            LocationType.Body,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(InstanceParam.class),
            f -> f.withMarshaller(CreateInstanceRequest::getBody, CreateInstanceRequest::setBody));

        // response

        return builder.build();
    }

    public static final HttpRequestDef createInstanceBy3rd =
        genForCreateInstanceBy3rd();

    private static HttpRequestDef genForCreateInstanceBy3rd() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.POST, CreateInstanceBy3rdRequest.class, CreateInstanceBy3rdResponse.class)
                .withName("CreateInstanceBy3rd")
                .withUri("/v2/instances")
                .withContentType("application/json");

        // requests
        builder.withRequestField("instance_label",
            LocationType.Query,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(CreateInstanceBy3rdRequest::getInstanceLabel,
                CreateInstanceBy3rdRequest::setInstanceLabel));
        builder.withRequestField("body",
            LocationType.Body,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(InstanceEdgeParam.class),
            f -> f.withMarshaller(CreateInstanceBy3rdRequest::getBody, CreateInstanceBy3rdRequest::setBody));

        // response

        return builder.build();
    }

    public static final HttpRequestDef deleteInstance =
        genForDeleteInstance();

    private static HttpRequestDef genForDeleteInstance() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.DELETE, DeleteInstanceRequest.class, DeleteInstanceResponse.class)
                .withName("DeleteInstance")
                .withUri("/v2/instances/{instance_id}")
                .withContentType("application/json");

        // requests
        builder.withRequestField("instance_id",
            LocationType.Path,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(DeleteInstanceRequest::getInstanceId, DeleteInstanceRequest::setInstanceId));

        // response

        return builder.build();
    }

    public static final HttpRequestDef listInstances =
        genForListInstances();

    private static HttpRequestDef genForListInstances() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.GET, ListInstancesRequest.class, ListInstancesResponse.class)
                .withName("ListInstances")
                .withUri("/v2/instances")
                .withContentType("application/json");

        // requests
        builder.withRequestField("limit",
            LocationType.Query,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(Long.class),
            f -> f.withMarshaller(ListInstancesRequest::getLimit, ListInstancesRequest::setLimit));
        builder.withRequestField("offset",
            LocationType.Query,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(Long.class),
            f -> f.withMarshaller(ListInstancesRequest::getOffset, ListInstancesRequest::setOffset));
        builder.withRequestField("is_temporary",
            LocationType.Query,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(Boolean.class),
            f -> f.withMarshaller(ListInstancesRequest::getIsTemporary, ListInstancesRequest::setIsTemporary));
        builder.withRequestField("label",
            LocationType.Query,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(ListInstancesRequest::getLabel, ListInstancesRequest::setLabel));
        builder.withRequestField("search",
            LocationType.Query,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(ListInstancesRequest::getSearch, ListInstancesRequest::setSearch));
        builder.withRequestField("sort_dir",
            LocationType.Query,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(ListInstancesRequest::getSortDir, ListInstancesRequest::setSortDir));
        builder.withRequestField("sort_key",
            LocationType.Query,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(ListInstancesRequest::getSortKey, ListInstancesRequest::setSortKey));

        // response

        return builder.build();
    }

    public static final HttpRequestDef listOrgInstances =
        genForListOrgInstances();

    private static HttpRequestDef genForListOrgInstances() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.GET, ListOrgInstancesRequest.class, ListOrgInstancesResponse.class)
                .withName("ListOrgInstances")
                .withUri("/v2/{org_id}/instances")
                .withContentType("application/json");

        // requests
        builder.withRequestField("org_id",
            LocationType.Path,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(ListOrgInstancesRequest::getOrgId, ListOrgInstancesRequest::setOrgId));
        builder.withRequestField("is_temporary",
            LocationType.Query,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(Boolean.class),
            f -> f.withMarshaller(ListOrgInstancesRequest::getIsTemporary, ListOrgInstancesRequest::setIsTemporary));
        builder.withRequestField("limit",
            LocationType.Query,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(Long.class),
            f -> f.withMarshaller(ListOrgInstancesRequest::getLimit, ListOrgInstancesRequest::setLimit));
        builder.withRequestField("offset",
            LocationType.Query,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(Long.class),
            f -> f.withMarshaller(ListOrgInstancesRequest::getOffset, ListOrgInstancesRequest::setOffset));
        builder.withRequestField("search",
            LocationType.Query,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(ListOrgInstancesRequest::getSearch, ListOrgInstancesRequest::setSearch));

        // response

        return builder.build();
    }

    public static final HttpRequestDef showInstance = genForShowInstance();

    private static HttpRequestDef genForShowInstance() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.GET, ShowInstanceRequest.class, ShowInstanceResponse.class)
                .withName("ShowInstance")
                .withUri("/v2/instances/{instance_id}")
                .withContentType("application/json");

        // requests
        builder.withRequestField("instance_id",
            LocationType.Path,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(ShowInstanceRequest::getInstanceId, ShowInstanceRequest::setInstanceId));

        // response

        return builder.build();
    }

    public static final HttpRequestDef showInstanceStatusInfo =
        genForShowInstanceStatusInfo();

    private static HttpRequestDef genForShowInstanceStatusInfo() {
        // basic
        HttpRequestDef.Builder builder = HttpRequestDef
            .builder(HttpMethod.GET, ShowInstanceStatusInfoRequest.class, ShowInstanceStatusInfoResponse.class)
            .withName("ShowInstanceStatusInfo")
            .withUri("/v2/instances/{instance_id}/status")
            .withContentType("application/json");

        // requests
        builder.withRequestField("instance_id",
            LocationType.Path,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(ShowInstanceStatusInfoRequest::getInstanceId,
                ShowInstanceStatusInfoRequest::setInstanceId));

        // response

        return builder.build();
    }

    public static final HttpRequestDef startInstance =
        genForStartInstance();

    private static HttpRequestDef genForStartInstance() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.PUT, StartInstanceRequest.class, StartInstanceResponse.class)
                .withName("StartInstance")
                .withUri("/v2/instances/{instance_id}/runtime")
                .withContentType("application/json");

        // requests
        builder.withRequestField("instance_id",
            LocationType.Path,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(StartInstanceRequest::getInstanceId, StartInstanceRequest::setInstanceId));
        builder.withRequestField("body",
            LocationType.Body,
            FieldExistence.NULL_IGNORE,
            TypeCasts.uncheckedConversion(StartInstanceParam.class),
            f -> f.withMarshaller(StartInstanceRequest::getBody, StartInstanceRequest::setBody));

        // response

        return builder.build();
    }

    public static final HttpRequestDef stopInstance = genForStopInstance();

    private static HttpRequestDef genForStopInstance() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.DELETE, StopInstanceRequest.class, StopInstanceResponse.class)
                .withName("StopInstance")
                .withUri("/v2/instances/{instance_id}/runtime")
                .withContentType("application/json");

        // requests
        builder.withRequestField("instance_id",
            LocationType.Path,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(StopInstanceRequest::getInstanceId, StopInstanceRequest::setInstanceId));

        // response

        return builder.build();
    }

    public static final HttpRequestDef updateInstance =
        genForUpdateInstance();

    private static HttpRequestDef genForUpdateInstance() {
        // basic
        HttpRequestDef.Builder builder =
            HttpRequestDef.builder(HttpMethod.PUT, UpdateInstanceRequest.class, UpdateInstanceResponse.class)
                .withName("UpdateInstance")
                .withUri("/v2/instances/{instance_id}")
                .withContentType("application/json");

        // requests
        builder.withRequestField("instance_id",
            LocationType.Path,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(UpdateInstanceRequest::getInstanceId, UpdateInstanceRequest::setInstanceId));
        builder.withRequestField("body",
            LocationType.Body,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(InstanceUpdateParam.class),
            f -> f.withMarshaller(UpdateInstanceRequest::getBody, UpdateInstanceRequest::setBody));

        // response

        return builder.build();
    }

    public static final HttpRequestDef updateInstanceActivity =
        genForUpdateInstanceActivity();

    private static HttpRequestDef genForUpdateInstanceActivity() {
        // basic
        HttpRequestDef.Builder builder = HttpRequestDef
            .builder(HttpMethod.PUT, UpdateInstanceActivityRequest.class, UpdateInstanceActivityResponse.class)
            .withName("UpdateInstanceActivity")
            .withUri("/v2/instances/{instance_id}/activity")
            .withContentType("application/json");

        // requests
        builder.withRequestField("instance_id",
            LocationType.Path,
            FieldExistence.NON_NULL_NON_EMPTY,
            TypeCasts.uncheckedConversion(String.class),
            f -> f.withMarshaller(UpdateInstanceActivityRequest::getInstanceId,
                UpdateInstanceActivityRequest::setInstanceId));

        // response

        return builder.build();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy