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.v3.AomMeta Maven / Gradle / Ivy
package com.huaweicloud.sdk.aom.v3;
import com.huaweicloud.sdk.aom.v3.model.BizAppParam;
import com.huaweicloud.sdk.aom.v3.model.ComponentParam;
import com.huaweicloud.sdk.aom.v3.model.ComponentUpdateParam;
import com.huaweicloud.sdk.aom.v3.model.CreateAppRequest;
import com.huaweicloud.sdk.aom.v3.model.CreateAppResponse;
import com.huaweicloud.sdk.aom.v3.model.CreateComponentRequest;
import com.huaweicloud.sdk.aom.v3.model.CreateComponentResponse;
import com.huaweicloud.sdk.aom.v3.model.CreateEnvRequest;
import com.huaweicloud.sdk.aom.v3.model.CreateEnvResponse;
import com.huaweicloud.sdk.aom.v3.model.CreateSubAppRequest;
import com.huaweicloud.sdk.aom.v3.model.CreateSubAppResponse;
import com.huaweicloud.sdk.aom.v3.model.DeleteAppRequest;
import com.huaweicloud.sdk.aom.v3.model.DeleteAppResponse;
import com.huaweicloud.sdk.aom.v3.model.DeleteComponentRequest;
import com.huaweicloud.sdk.aom.v3.model.DeleteComponentResponse;
import com.huaweicloud.sdk.aom.v3.model.DeleteEnvRequest;
import com.huaweicloud.sdk.aom.v3.model.DeleteEnvResponse;
import com.huaweicloud.sdk.aom.v3.model.DeleteSubAppRequest;
import com.huaweicloud.sdk.aom.v3.model.DeleteSubAppResponse;
import com.huaweicloud.sdk.aom.v3.model.EnvParam;
import com.huaweicloud.sdk.aom.v3.model.ListResourceUnderNodeRequest;
import com.huaweicloud.sdk.aom.v3.model.ListResourceUnderNodeResponse;
import com.huaweicloud.sdk.aom.v3.model.PageResourceListParam;
import com.huaweicloud.sdk.aom.v3.model.ShowAppByNameRequest;
import com.huaweicloud.sdk.aom.v3.model.ShowAppByNameResponse;
import com.huaweicloud.sdk.aom.v3.model.ShowAppRequest;
import com.huaweicloud.sdk.aom.v3.model.ShowAppResponse;
import com.huaweicloud.sdk.aom.v3.model.ShowComponentByNameRequest;
import com.huaweicloud.sdk.aom.v3.model.ShowComponentByNameResponse;
import com.huaweicloud.sdk.aom.v3.model.ShowComponentRequest;
import com.huaweicloud.sdk.aom.v3.model.ShowComponentResponse;
import com.huaweicloud.sdk.aom.v3.model.ShowEnvByNameRequest;
import com.huaweicloud.sdk.aom.v3.model.ShowEnvByNameResponse;
import com.huaweicloud.sdk.aom.v3.model.ShowEnvRequest;
import com.huaweicloud.sdk.aom.v3.model.ShowEnvResponse;
import com.huaweicloud.sdk.aom.v3.model.SubAppCreateParam;
import com.huaweicloud.sdk.aom.v3.model.SubAppUpdateParam;
import com.huaweicloud.sdk.aom.v3.model.UpdateAppRequest;
import com.huaweicloud.sdk.aom.v3.model.UpdateAppResponse;
import com.huaweicloud.sdk.aom.v3.model.UpdateComponentRequest;
import com.huaweicloud.sdk.aom.v3.model.UpdateComponentResponse;
import com.huaweicloud.sdk.aom.v3.model.UpdateEnvRequest;
import com.huaweicloud.sdk.aom.v3.model.UpdateEnvResponse;
import com.huaweicloud.sdk.aom.v3.model.UpdateSubAppRequest;
import com.huaweicloud.sdk.aom.v3.model.UpdateSubAppResponse;
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 AomMeta {
public static final HttpRequestDef createApp = genForCreateApp();
private static HttpRequestDef genForCreateApp() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.POST, CreateAppRequest.class, CreateAppResponse.class)
.withName("CreateApp")
.withUri("/v1/applications")
.withContentType("application/json");
// requests
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(BizAppParam.class),
f -> f.withMarshaller(CreateAppRequest::getBody, CreateAppRequest::setBody));
// response
builder.withResponseField("body",
LocationType.Body,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(CreateAppResponse::getBody, CreateAppResponse::setBody));
return builder.build();
}
public static final HttpRequestDef createComponent =
genForCreateComponent();
private static HttpRequestDef genForCreateComponent() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.POST, CreateComponentRequest.class, CreateComponentResponse.class)
.withName("CreateComponent")
.withUri("/v1/components")
.withContentType("application/json");
// requests
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(ComponentParam.class),
f -> f.withMarshaller(CreateComponentRequest::getBody, CreateComponentRequest::setBody));
// response
return builder.build();
}
public static final HttpRequestDef createEnv = genForCreateEnv();
private static HttpRequestDef genForCreateEnv() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.POST, CreateEnvRequest.class, CreateEnvResponse.class)
.withName("CreateEnv")
.withUri("/v1/environments")
.withContentType("application/json");
// requests
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(EnvParam.class),
f -> f.withMarshaller(CreateEnvRequest::getBody, CreateEnvRequest::setBody));
// response
return builder.build();
}
public static final HttpRequestDef createSubApp = genForCreateSubApp();
private static HttpRequestDef genForCreateSubApp() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.POST, CreateSubAppRequest.class, CreateSubAppResponse.class)
.withName("CreateSubApp")
.withUri("/v1/sub-applications")
.withContentType("application/json");
// requests
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(SubAppCreateParam.class),
f -> f.withMarshaller(CreateSubAppRequest::getBody, CreateSubAppRequest::setBody));
// response
builder.withResponseField("body",
LocationType.Body,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(CreateSubAppResponse::getBody, CreateSubAppResponse::setBody));
return builder.build();
}
public static final HttpRequestDef deleteApp = genForDeleteApp();
private static HttpRequestDef genForDeleteApp() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.DELETE, DeleteAppRequest.class, DeleteAppResponse.class)
.withName("DeleteApp")
.withUri("/v1/applications/{application_id}")
.withContentType("application/json");
// requests
builder.withRequestField("application_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(DeleteAppRequest::getApplicationId, DeleteAppRequest::setApplicationId));
// response
builder.withResponseField("body",
LocationType.Body,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(DeleteAppResponse::getBody, DeleteAppResponse::setBody));
return builder.build();
}
public static final HttpRequestDef deleteComponent =
genForDeleteComponent();
private static HttpRequestDef genForDeleteComponent() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.DELETE, DeleteComponentRequest.class, DeleteComponentResponse.class)
.withName("DeleteComponent")
.withUri("/v1/components/{component_id}")
.withContentType("application/json");
// requests
builder.withRequestField("component_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(DeleteComponentRequest::getComponentId, DeleteComponentRequest::setComponentId));
// response
builder.withResponseField("body",
LocationType.Body,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(DeleteComponentResponse::getBody, DeleteComponentResponse::setBody));
return builder.build();
}
public static final HttpRequestDef deleteEnv = genForDeleteEnv();
private static HttpRequestDef genForDeleteEnv() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.DELETE, DeleteEnvRequest.class, DeleteEnvResponse.class)
.withName("DeleteEnv")
.withUri("/v1/environments/{environment_id}")
.withContentType("application/json");
// requests
builder.withRequestField("environment_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(DeleteEnvRequest::getEnvironmentId, DeleteEnvRequest::setEnvironmentId));
// response
return builder.build();
}
public static final HttpRequestDef deleteSubApp = genForDeleteSubApp();
private static HttpRequestDef genForDeleteSubApp() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.DELETE, DeleteSubAppRequest.class, DeleteSubAppResponse.class)
.withName("DeleteSubApp")
.withUri("/v1/sub-applications/{sub_app_id}")
.withContentType("application/json");
// requests
builder.withRequestField("sub_app_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(DeleteSubAppRequest::getSubAppId, DeleteSubAppRequest::setSubAppId));
// response
builder.withResponseField("body",
LocationType.Body,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(DeleteSubAppResponse::getBody, DeleteSubAppResponse::setBody));
return builder.build();
}
public static final HttpRequestDef listResourceUnderNode =
genForListResourceUnderNode();
private static HttpRequestDef genForListResourceUnderNode() {
// basic
HttpRequestDef.Builder builder = HttpRequestDef
.builder(HttpMethod.POST, ListResourceUnderNodeRequest.class, ListResourceUnderNodeResponse.class)
.withName("ListResourceUnderNode")
.withUri("/v1/resource/{rf_resource_type}/type/{type}/ci-relationships")
.withContentType("application/json");
// requests
builder.withRequestField("rf_resource_type",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(ListResourceUnderNodeRequest::getRfResourceType,
ListResourceUnderNodeRequest::setRfResourceType));
builder.withRequestField("type",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(ListResourceUnderNodeRequest::getType, ListResourceUnderNodeRequest::setType));
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(PageResourceListParam.class),
f -> f.withMarshaller(ListResourceUnderNodeRequest::getBody, ListResourceUnderNodeRequest::setBody));
// response
return builder.build();
}
public static final HttpRequestDef showApp = genForShowApp();
private static HttpRequestDef genForShowApp() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, ShowAppRequest.class, ShowAppResponse.class)
.withName("ShowApp")
.withUri("/v1/applications/{application_id}")
.withContentType("application/json");
// requests
builder.withRequestField("application_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(ShowAppRequest::getApplicationId, ShowAppRequest::setApplicationId));
// response
return builder.build();
}
public static final HttpRequestDef showAppByName =
genForShowAppByName();
private static HttpRequestDef genForShowAppByName() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, ShowAppByNameRequest.class, ShowAppByNameResponse.class)
.withName("ShowAppByName")
.withUri("/v1/applications")
.withContentType("application/json");
// requests
builder.withRequestField("name",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(ShowAppByNameRequest::getName, ShowAppByNameRequest::setName));
builder.withRequestField("display_name",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(ShowAppByNameRequest::getDisplayName, ShowAppByNameRequest::setDisplayName));
// response
return builder.build();
}
public static final HttpRequestDef showComponent =
genForShowComponent();
private static HttpRequestDef genForShowComponent() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, ShowComponentRequest.class, ShowComponentResponse.class)
.withName("ShowComponent")
.withUri("/v1/components/{component_id}")
.withContentType("application/json");
// requests
builder.withRequestField("component_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(ShowComponentRequest::getComponentId, ShowComponentRequest::setComponentId));
// response
return builder.build();
}
public static final HttpRequestDef showComponentByName =
genForShowComponentByName();
private static HttpRequestDef genForShowComponentByName() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, ShowComponentByNameRequest.class, ShowComponentByNameResponse.class)
.withName("ShowComponentByName")
.withUri("/v1/components/application/{application_id}/name/{component_name}")
.withContentType("application/json");
// requests
builder.withRequestField("application_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(ShowComponentByNameRequest::getApplicationId,
ShowComponentByNameRequest::setApplicationId));
builder.withRequestField("component_name",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(ShowComponentByNameRequest::getComponentName,
ShowComponentByNameRequest::setComponentName));
// response
return builder.build();
}
public static final HttpRequestDef showEnv = genForShowEnv();
private static HttpRequestDef genForShowEnv() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, ShowEnvRequest.class, ShowEnvResponse.class)
.withName("ShowEnv")
.withUri("/v1/environments/{environment_id}")
.withContentType("application/json");
// requests
builder.withRequestField("environment_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(ShowEnvRequest::getEnvironmentId, ShowEnvRequest::setEnvironmentId));
// response
return builder.build();
}
public static final HttpRequestDef showEnvByName =
genForShowEnvByName();
private static HttpRequestDef genForShowEnvByName() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, ShowEnvByNameRequest.class, ShowEnvByNameResponse.class)
.withName("ShowEnvByName")
.withUri("/v1/environments/name/{environment_name}")
.withContentType("application/json");
// requests
builder.withRequestField("environment_name",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(ShowEnvByNameRequest::getEnvironmentName, ShowEnvByNameRequest::setEnvironmentName));
builder.withRequestField("region",
LocationType.Query,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(ShowEnvByNameRequest::getRegion, ShowEnvByNameRequest::setRegion));
builder.withRequestField("component_id",
LocationType.Query,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(ShowEnvByNameRequest::getComponentId, ShowEnvByNameRequest::setComponentId));
// response
return builder.build();
}
public static final HttpRequestDef updateApp = genForUpdateApp();
private static HttpRequestDef genForUpdateApp() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.PUT, UpdateAppRequest.class, UpdateAppResponse.class)
.withName("UpdateApp")
.withUri("/v1/applications/{application_id}")
.withContentType("application/json");
// requests
builder.withRequestField("application_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(UpdateAppRequest::getApplicationId, UpdateAppRequest::setApplicationId));
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(BizAppParam.class),
f -> f.withMarshaller(UpdateAppRequest::getBody, UpdateAppRequest::setBody));
// response
return builder.build();
}
public static final HttpRequestDef updateComponent =
genForUpdateComponent();
private static HttpRequestDef genForUpdateComponent() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.PUT, UpdateComponentRequest.class, UpdateComponentResponse.class)
.withName("UpdateComponent")
.withUri("/v1/components/{component_id}")
.withContentType("application/json");
// requests
builder.withRequestField("component_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(UpdateComponentRequest::getComponentId, UpdateComponentRequest::setComponentId));
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(ComponentUpdateParam.class),
f -> f.withMarshaller(UpdateComponentRequest::getBody, UpdateComponentRequest::setBody));
// response
return builder.build();
}
public static final HttpRequestDef updateEnv = genForUpdateEnv();
private static HttpRequestDef genForUpdateEnv() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.PUT, UpdateEnvRequest.class, UpdateEnvResponse.class)
.withName("UpdateEnv")
.withUri("/v1/environments/{environment_id}")
.withContentType("application/json");
// requests
builder.withRequestField("environment_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(UpdateEnvRequest::getEnvironmentId, UpdateEnvRequest::setEnvironmentId));
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(EnvParam.class),
f -> f.withMarshaller(UpdateEnvRequest::getBody, UpdateEnvRequest::setBody));
// response
return builder.build();
}
public static final HttpRequestDef updateSubApp = genForUpdateSubApp();
private static HttpRequestDef genForUpdateSubApp() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.PUT, UpdateSubAppRequest.class, UpdateSubAppResponse.class)
.withName("UpdateSubApp")
.withUri("/v1/sub-applications/{sub_app_id}")
.withContentType("application/json");
// requests
builder.withRequestField("sub_app_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(UpdateSubAppRequest::getSubAppId, UpdateSubAppRequest::setSubAppId));
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(SubAppUpdateParam.class),
f -> f.withMarshaller(UpdateSubAppRequest::getBody, UpdateSubAppRequest::setBody));
// response
return builder.build();
}
}