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.geip.v3.GeipMeta Maven / Gradle / Ivy
package com.huaweicloud.sdk.geip.v3;
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 com.huaweicloud.sdk.geip.v3.model.AddGeipSegmentTagsRequest;
import com.huaweicloud.sdk.geip.v3.model.AddGeipSegmentTagsResponse;
import com.huaweicloud.sdk.geip.v3.model.AddGlobalEipTagsRequest;
import com.huaweicloud.sdk.geip.v3.model.AddGlobalEipTagsResponse;
import com.huaweicloud.sdk.geip.v3.model.AddInternetBandwidthTagsRequest;
import com.huaweicloud.sdk.geip.v3.model.AddInternetBandwidthTagsResponse;
import com.huaweicloud.sdk.geip.v3.model.AssociateGeipSegmentInstanceRequest;
import com.huaweicloud.sdk.geip.v3.model.AssociateGeipSegmentInstanceResponse;
import com.huaweicloud.sdk.geip.v3.model.AssociateInstanceGlobalEipRequestBody;
import com.huaweicloud.sdk.geip.v3.model.AssociateInstanceGlobalEipSegmentRequestBody;
import com.huaweicloud.sdk.geip.v3.model.AssociateInstanceRequest;
import com.huaweicloud.sdk.geip.v3.model.AssociateInstanceResponse;
import com.huaweicloud.sdk.geip.v3.model.AttachInternetBandwidthGlobalEipRequestBody;
import com.huaweicloud.sdk.geip.v3.model.AttachInternetBandwidthRequest;
import com.huaweicloud.sdk.geip.v3.model.AttachInternetBandwidthResponse;
import com.huaweicloud.sdk.geip.v3.model.BatchAttachGeipSegmentInternetBandwidthRequest;
import com.huaweicloud.sdk.geip.v3.model.BatchAttachGeipSegmentInternetBandwidthResponse;
import com.huaweicloud.sdk.geip.v3.model.BatchAttachInternetBandwidthRequest;
import com.huaweicloud.sdk.geip.v3.model.BatchAttachInternetBandwidthResponse;
import com.huaweicloud.sdk.geip.v3.model.BatchAttachInternetBandwidthsGlobalEipRequestBody;
import com.huaweicloud.sdk.geip.v3.model.BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody;
import com.huaweicloud.sdk.geip.v3.model.BatchCreateGeipSegmentTagsRequest;
import com.huaweicloud.sdk.geip.v3.model.BatchCreateGeipSegmentTagsResponse;
import com.huaweicloud.sdk.geip.v3.model.BatchCreateGlobalEipRequest;
import com.huaweicloud.sdk.geip.v3.model.BatchCreateGlobalEipRequestBody;
import com.huaweicloud.sdk.geip.v3.model.BatchCreateGlobalEipResponse;
import com.huaweicloud.sdk.geip.v3.model.BatchCreateGlobalEipTagsRequest;
import com.huaweicloud.sdk.geip.v3.model.BatchCreateGlobalEipTagsResponse;
import com.huaweicloud.sdk.geip.v3.model.BatchCreateInternetBandwidthRequest;
import com.huaweicloud.sdk.geip.v3.model.BatchCreateInternetBandwidthRequestBody;
import com.huaweicloud.sdk.geip.v3.model.BatchCreateInternetBandwidthResponse;
import com.huaweicloud.sdk.geip.v3.model.BatchCreateInternetBandwidthTagsRequest;
import com.huaweicloud.sdk.geip.v3.model.BatchCreateInternetBandwidthTagsResponse;
import com.huaweicloud.sdk.geip.v3.model.BatchCreateV2RequestBody;
import com.huaweicloud.sdk.geip.v3.model.BatchDeleteGeipSegmentTagsRequest;
import com.huaweicloud.sdk.geip.v3.model.BatchDeleteGeipSegmentTagsResponse;
import com.huaweicloud.sdk.geip.v3.model.BatchDeleteGlobalEipTagsRequest;
import com.huaweicloud.sdk.geip.v3.model.BatchDeleteGlobalEipTagsResponse;
import com.huaweicloud.sdk.geip.v3.model.BatchDeleteInternetBandwidthTagsRequest;
import com.huaweicloud.sdk.geip.v3.model.BatchDeleteInternetBandwidthTagsResponse;
import com.huaweicloud.sdk.geip.v3.model.BatchDeleteV2RequestBody;
import com.huaweicloud.sdk.geip.v3.model.BatchDetachGeipSegmentInternetBandwidthRequest;
import com.huaweicloud.sdk.geip.v3.model.BatchDetachGeipSegmentInternetBandwidthResponse;
import com.huaweicloud.sdk.geip.v3.model.BatchDetachInternetBandwidthRequest;
import com.huaweicloud.sdk.geip.v3.model.BatchDetachInternetBandwidthResponse;
import com.huaweicloud.sdk.geip.v3.model.BatchDetachInternetBandwidthsGlobalEipRequestBody;
import com.huaweicloud.sdk.geip.v3.model.BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody;
import com.huaweicloud.sdk.geip.v3.model.CountGlobalEipSegmentRequest;
import com.huaweicloud.sdk.geip.v3.model.CountGlobalEipSegmentResponse;
import com.huaweicloud.sdk.geip.v3.model.CountGlobalEipsRequest;
import com.huaweicloud.sdk.geip.v3.model.CountGlobalEipsResponse;
import com.huaweicloud.sdk.geip.v3.model.CountInternetBandwidthRequest;
import com.huaweicloud.sdk.geip.v3.model.CountInternetBandwidthResponse;
import com.huaweicloud.sdk.geip.v3.model.CreateGlobalEipRequest;
import com.huaweicloud.sdk.geip.v3.model.CreateGlobalEipRequestBody;
import com.huaweicloud.sdk.geip.v3.model.CreateGlobalEipResponse;
import com.huaweicloud.sdk.geip.v3.model.CreateGlobalEipSegmentRequest;
import com.huaweicloud.sdk.geip.v3.model.CreateGlobalEipSegmentRequestBody;
import com.huaweicloud.sdk.geip.v3.model.CreateGlobalEipSegmentResponse;
import com.huaweicloud.sdk.geip.v3.model.CreateInternetBandwidthRequest;
import com.huaweicloud.sdk.geip.v3.model.CreateInternetBandwidthRequestBody;
import com.huaweicloud.sdk.geip.v3.model.CreateInternetBandwidthResponse;
import com.huaweicloud.sdk.geip.v3.model.CreateUserDisclaimerRequest;
import com.huaweicloud.sdk.geip.v3.model.CreateUserDisclaimerResponse;
import com.huaweicloud.sdk.geip.v3.model.CreateV2TagRequestBody;
import com.huaweicloud.sdk.geip.v3.model.DeleteGeipSegmentTagRequest;
import com.huaweicloud.sdk.geip.v3.model.DeleteGeipSegmentTagResponse;
import com.huaweicloud.sdk.geip.v3.model.DeleteGlobalEipRequest;
import com.huaweicloud.sdk.geip.v3.model.DeleteGlobalEipResponse;
import com.huaweicloud.sdk.geip.v3.model.DeleteGlobalEipSegmentRequest;
import com.huaweicloud.sdk.geip.v3.model.DeleteGlobalEipSegmentResponse;
import com.huaweicloud.sdk.geip.v3.model.DeleteGlobalEipTagRequest;
import com.huaweicloud.sdk.geip.v3.model.DeleteGlobalEipTagResponse;
import com.huaweicloud.sdk.geip.v3.model.DeleteInternetBandwidthRequest;
import com.huaweicloud.sdk.geip.v3.model.DeleteInternetBandwidthResponse;
import com.huaweicloud.sdk.geip.v3.model.DeleteInternetBandwidthTagRequest;
import com.huaweicloud.sdk.geip.v3.model.DeleteInternetBandwidthTagResponse;
import com.huaweicloud.sdk.geip.v3.model.DeleteUserDisclaimerRequest;
import com.huaweicloud.sdk.geip.v3.model.DeleteUserDisclaimerResponse;
import com.huaweicloud.sdk.geip.v3.model.DetachInternetBandwidthRequest;
import com.huaweicloud.sdk.geip.v3.model.DetachInternetBandwidthResponse;
import com.huaweicloud.sdk.geip.v3.model.DisassociateGeipSegmentInstanceRequest;
import com.huaweicloud.sdk.geip.v3.model.DisassociateGeipSegmentInstanceResponse;
import com.huaweicloud.sdk.geip.v3.model.DisassociateInstanceRequest;
import com.huaweicloud.sdk.geip.v3.model.DisassociateInstanceResponse;
import com.huaweicloud.sdk.geip.v3.model.ListAccessSitesRequest;
import com.huaweicloud.sdk.geip.v3.model.ListAccessSitesResponse;
import com.huaweicloud.sdk.geip.v3.model.ListGeipPoolsRequest;
import com.huaweicloud.sdk.geip.v3.model.ListGeipPoolsResponse;
import com.huaweicloud.sdk.geip.v3.model.ListGeipResourceQuotasRequest;
import com.huaweicloud.sdk.geip.v3.model.ListGeipResourceQuotasResponse;
import com.huaweicloud.sdk.geip.v3.model.ListGeipSegmentCountFilterTagsRequest;
import com.huaweicloud.sdk.geip.v3.model.ListGeipSegmentCountFilterTagsResponse;
import com.huaweicloud.sdk.geip.v3.model.ListGeipSegmentDomainTagsRequest;
import com.huaweicloud.sdk.geip.v3.model.ListGeipSegmentDomainTagsResponse;
import com.huaweicloud.sdk.geip.v3.model.ListGeipSegmentFilterTagsRequest;
import com.huaweicloud.sdk.geip.v3.model.ListGeipSegmentFilterTagsResponse;
import com.huaweicloud.sdk.geip.v3.model.ListGlobalEipCountFilterTagsRequest;
import com.huaweicloud.sdk.geip.v3.model.ListGlobalEipCountFilterTagsResponse;
import com.huaweicloud.sdk.geip.v3.model.ListGlobalEipDomainTagsRequest;
import com.huaweicloud.sdk.geip.v3.model.ListGlobalEipDomainTagsResponse;
import com.huaweicloud.sdk.geip.v3.model.ListGlobalEipFilterTagsRequest;
import com.huaweicloud.sdk.geip.v3.model.ListGlobalEipFilterTagsResponse;
import com.huaweicloud.sdk.geip.v3.model.ListGlobalEipSegmentsRequest;
import com.huaweicloud.sdk.geip.v3.model.ListGlobalEipSegmentsResponse;
import com.huaweicloud.sdk.geip.v3.model.ListGlobalEipsRequest;
import com.huaweicloud.sdk.geip.v3.model.ListGlobalEipsResponse;
import com.huaweicloud.sdk.geip.v3.model.ListInternetBandwidthCountFilterTagsRequest;
import com.huaweicloud.sdk.geip.v3.model.ListInternetBandwidthCountFilterTagsResponse;
import com.huaweicloud.sdk.geip.v3.model.ListInternetBandwidthDomainTagsRequest;
import com.huaweicloud.sdk.geip.v3.model.ListInternetBandwidthDomainTagsResponse;
import com.huaweicloud.sdk.geip.v3.model.ListInternetBandwidthFilterTagsRequest;
import com.huaweicloud.sdk.geip.v3.model.ListInternetBandwidthFilterTagsResponse;
import com.huaweicloud.sdk.geip.v3.model.ListInternetBandwidthLimitsRequest;
import com.huaweicloud.sdk.geip.v3.model.ListInternetBandwidthLimitsResponse;
import com.huaweicloud.sdk.geip.v3.model.ListInternetBandwidthsRequest;
import com.huaweicloud.sdk.geip.v3.model.ListInternetBandwidthsResponse;
import com.huaweicloud.sdk.geip.v3.model.ListJobsRequest;
import com.huaweicloud.sdk.geip.v3.model.ListJobsResponse;
import com.huaweicloud.sdk.geip.v3.model.ListResourcesByTagsRequestBody;
import com.huaweicloud.sdk.geip.v3.model.ListSupportMasksRequest;
import com.huaweicloud.sdk.geip.v3.model.ListSupportMasksResponse;
import com.huaweicloud.sdk.geip.v3.model.ListSupportRegionsRequest;
import com.huaweicloud.sdk.geip.v3.model.ListSupportRegionsResponse;
import com.huaweicloud.sdk.geip.v3.model.ListTenantGeipSupportInstancesRequest;
import com.huaweicloud.sdk.geip.v3.model.ListTenantGeipSupportInstancesResponse;
import com.huaweicloud.sdk.geip.v3.model.ShowGeipSegmentTagsRequest;
import com.huaweicloud.sdk.geip.v3.model.ShowGeipSegmentTagsResponse;
import com.huaweicloud.sdk.geip.v3.model.ShowGlobalEipRequest;
import com.huaweicloud.sdk.geip.v3.model.ShowGlobalEipResponse;
import com.huaweicloud.sdk.geip.v3.model.ShowGlobalEipSegmentRequest;
import com.huaweicloud.sdk.geip.v3.model.ShowGlobalEipSegmentResponse;
import com.huaweicloud.sdk.geip.v3.model.ShowGlobalEipTagsRequest;
import com.huaweicloud.sdk.geip.v3.model.ShowGlobalEipTagsResponse;
import com.huaweicloud.sdk.geip.v3.model.ShowInternetBandwidthRequest;
import com.huaweicloud.sdk.geip.v3.model.ShowInternetBandwidthResponse;
import com.huaweicloud.sdk.geip.v3.model.ShowInternetBandwidthTagsRequest;
import com.huaweicloud.sdk.geip.v3.model.ShowInternetBandwidthTagsResponse;
import com.huaweicloud.sdk.geip.v3.model.ShowJobsRequest;
import com.huaweicloud.sdk.geip.v3.model.ShowJobsResponse;
import com.huaweicloud.sdk.geip.v3.model.ShowUserDisclaimerRequest;
import com.huaweicloud.sdk.geip.v3.model.ShowUserDisclaimerResponse;
import com.huaweicloud.sdk.geip.v3.model.UpdateGlobalEipRequest;
import com.huaweicloud.sdk.geip.v3.model.UpdateGlobalEipRequestBody;
import com.huaweicloud.sdk.geip.v3.model.UpdateGlobalEipResponse;
import com.huaweicloud.sdk.geip.v3.model.UpdateGlobalEipSegmentRequest;
import com.huaweicloud.sdk.geip.v3.model.UpdateGlobalEipSegmentRequestBody;
import com.huaweicloud.sdk.geip.v3.model.UpdateGlobalEipSegmentResponse;
import com.huaweicloud.sdk.geip.v3.model.UpdateInternetBandwidthRequest;
import com.huaweicloud.sdk.geip.v3.model.UpdateInternetBandwidthRequestBody;
import com.huaweicloud.sdk.geip.v3.model.UpdateInternetBandwidthResponse;
import java.util.List;
@SuppressWarnings("unchecked")
public class GeipMeta {
public static final HttpRequestDef addInternetBandwidthTags =
genForAddInternetBandwidthTags();
private static HttpRequestDef genForAddInternetBandwidthTags() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef
.builder(HttpMethod.POST, AddInternetBandwidthTagsRequest.class, AddInternetBandwidthTagsResponse.class)
.withName("AddInternetBandwidthTags")
.withUri("/v3/internet-bandwidth/{resource_id}/tags")
.withContentType("application/json");
// requests
builder.withRequestField("resource_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(AddInternetBandwidthTagsRequest::getResourceId,
AddInternetBandwidthTagsRequest::setResourceId));
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(CreateV2TagRequestBody.class),
f -> f.withMarshaller(AddInternetBandwidthTagsRequest::getBody, AddInternetBandwidthTagsRequest::setBody));
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(AddInternetBandwidthTagsResponse::getXRequestId,
AddInternetBandwidthTagsResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef batchCreateInternetBandwidth =
genForBatchCreateInternetBandwidth();
private static HttpRequestDef genForBatchCreateInternetBandwidth() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef
.builder(HttpMethod.POST,
BatchCreateInternetBandwidthRequest.class,
BatchCreateInternetBandwidthResponse.class)
.withName("BatchCreateInternetBandwidth")
.withUri("/v3/{domain_id}/geip/internet-bandwidths/batch-create")
.withContentType("application/json");
// requests
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(BatchCreateInternetBandwidthRequestBody.class),
f -> f.withMarshaller(BatchCreateInternetBandwidthRequest::getBody,
BatchCreateInternetBandwidthRequest::setBody));
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(BatchCreateInternetBandwidthResponse::getXRequestId,
BatchCreateInternetBandwidthResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef batchCreateInternetBandwidthTags =
genForBatchCreateInternetBandwidthTags();
private static HttpRequestDef genForBatchCreateInternetBandwidthTags() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef
.builder(HttpMethod.POST,
BatchCreateInternetBandwidthTagsRequest.class,
BatchCreateInternetBandwidthTagsResponse.class)
.withName("BatchCreateInternetBandwidthTags")
.withUri("/v3/internet-bandwidth/{resource_id}/tags/create")
.withContentType("application/json");
// requests
builder.withRequestField("resource_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(BatchCreateInternetBandwidthTagsRequest::getResourceId,
BatchCreateInternetBandwidthTagsRequest::setResourceId));
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(BatchCreateV2RequestBody.class),
f -> f.withMarshaller(BatchCreateInternetBandwidthTagsRequest::getBody,
BatchCreateInternetBandwidthTagsRequest::setBody));
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(BatchCreateInternetBandwidthTagsResponse::getXRequestId,
BatchCreateInternetBandwidthTagsResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef batchDeleteInternetBandwidthTags =
genForBatchDeleteInternetBandwidthTags();
private static HttpRequestDef genForBatchDeleteInternetBandwidthTags() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef
.builder(HttpMethod.POST,
BatchDeleteInternetBandwidthTagsRequest.class,
BatchDeleteInternetBandwidthTagsResponse.class)
.withName("BatchDeleteInternetBandwidthTags")
.withUri("/v3/internet-bandwidth/{resource_id}/tags/delete")
.withContentType("application/json");
// requests
builder.withRequestField("resource_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(BatchDeleteInternetBandwidthTagsRequest::getResourceId,
BatchDeleteInternetBandwidthTagsRequest::setResourceId));
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(BatchDeleteV2RequestBody.class),
f -> f.withMarshaller(BatchDeleteInternetBandwidthTagsRequest::getBody,
BatchDeleteInternetBandwidthTagsRequest::setBody));
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(BatchDeleteInternetBandwidthTagsResponse::getXRequestId,
BatchDeleteInternetBandwidthTagsResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef countInternetBandwidth =
genForCountInternetBandwidth();
private static HttpRequestDef genForCountInternetBandwidth() {
// basic
HttpRequestDef.Builder builder = HttpRequestDef
.builder(HttpMethod.GET, CountInternetBandwidthRequest.class, CountInternetBandwidthResponse.class)
.withName("CountInternetBandwidth")
.withUri("/v3/{domain_id}/geip/internet-bandwidths/count")
.withContentType("application/json");
// requests
builder.>withRequestField("id",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(CountInternetBandwidthRequest::getId, CountInternetBandwidthRequest::setId));
builder.>withRequestField("size",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(CountInternetBandwidthRequest::getSize, CountInternetBandwidthRequest::setSize));
builder.>withRequestField("name",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(CountInternetBandwidthRequest::getName, CountInternetBandwidthRequest::setName));
builder.withRequestField("name_like",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(CountInternetBandwidthRequest::getNameLike,
CountInternetBandwidthRequest::setNameLike));
builder.>withRequestField("access_site",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(CountInternetBandwidthRequest::getAccessSite,
CountInternetBandwidthRequest::setAccessSite));
builder.>withRequestField("status",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(CountInternetBandwidthRequest::getStatus, CountInternetBandwidthRequest::setStatus));
builder.>withRequestField("enterprise_project_id",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(CountInternetBandwidthRequest::getEnterpriseProjectId,
CountInternetBandwidthRequest::setEnterpriseProjectId));
builder.>withRequestField("tags",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(CountInternetBandwidthRequest::getTags, CountInternetBandwidthRequest::setTags));
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(CountInternetBandwidthResponse::getXRequestId,
CountInternetBandwidthResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef createInternetBandwidth =
genForCreateInternetBandwidth();
private static HttpRequestDef genForCreateInternetBandwidth() {
// basic
HttpRequestDef.Builder builder = HttpRequestDef
.builder(HttpMethod.POST, CreateInternetBandwidthRequest.class, CreateInternetBandwidthResponse.class)
.withName("CreateInternetBandwidth")
.withUri("/v3/{domain_id}/geip/internet-bandwidths")
.withContentType("application/json");
// requests
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(CreateInternetBandwidthRequestBody.class),
f -> f.withMarshaller(CreateInternetBandwidthRequest::getBody, CreateInternetBandwidthRequest::setBody));
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(CreateInternetBandwidthResponse::getXRequestId,
CreateInternetBandwidthResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef createUserDisclaimer =
genForCreateUserDisclaimer();
private static HttpRequestDef genForCreateUserDisclaimer() {
// basic
HttpRequestDef.Builder builder = HttpRequestDef
.builder(HttpMethod.POST, CreateUserDisclaimerRequest.class, CreateUserDisclaimerResponse.class)
.withName("CreateUserDisclaimer")
.withUri("/v3/{domain_id}/geip/user-disclaimer-records")
.withContentType("application/json");
// requests
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(CreateUserDisclaimerResponse::getXRequestId,
CreateUserDisclaimerResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef deleteInternetBandwidth =
genForDeleteInternetBandwidth();
private static HttpRequestDef genForDeleteInternetBandwidth() {
// basic
HttpRequestDef.Builder builder = HttpRequestDef
.builder(HttpMethod.DELETE, DeleteInternetBandwidthRequest.class, DeleteInternetBandwidthResponse.class)
.withName("DeleteInternetBandwidth")
.withUri("/v3/{domain_id}/geip/internet-bandwidths/{internet_bandwidth_id}")
.withContentType("application/json");
// requests
builder.withRequestField("internet_bandwidth_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(DeleteInternetBandwidthRequest::getInternetBandwidthId,
DeleteInternetBandwidthRequest::setInternetBandwidthId));
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(DeleteInternetBandwidthResponse::getXRequestId,
DeleteInternetBandwidthResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef deleteInternetBandwidthTag =
genForDeleteInternetBandwidthTag();
private static HttpRequestDef genForDeleteInternetBandwidthTag() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef
.builder(HttpMethod.DELETE,
DeleteInternetBandwidthTagRequest.class,
DeleteInternetBandwidthTagResponse.class)
.withName("DeleteInternetBandwidthTag")
.withUri("/v3/internet-bandwidth/{resource_id}/tags/{tag_key}")
.withContentType("application/json");
// requests
builder.withRequestField("resource_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(DeleteInternetBandwidthTagRequest::getResourceId,
DeleteInternetBandwidthTagRequest::setResourceId));
builder.withRequestField("tag_key",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(DeleteInternetBandwidthTagRequest::getTagKey,
DeleteInternetBandwidthTagRequest::setTagKey));
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(DeleteInternetBandwidthTagResponse::getXRequestId,
DeleteInternetBandwidthTagResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef deleteUserDisclaimer =
genForDeleteUserDisclaimer();
private static HttpRequestDef genForDeleteUserDisclaimer() {
// basic
HttpRequestDef.Builder builder = HttpRequestDef
.builder(HttpMethod.DELETE, DeleteUserDisclaimerRequest.class, DeleteUserDisclaimerResponse.class)
.withName("DeleteUserDisclaimer")
.withUri("/v3/{domain_id}/geip/user-disclaimer-records")
.withContentType("application/json");
// requests
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(DeleteUserDisclaimerResponse::getXRequestId,
DeleteUserDisclaimerResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef listAccessSites =
genForListAccessSites();
private static HttpRequestDef genForListAccessSites() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, ListAccessSitesRequest.class, ListAccessSitesResponse.class)
.withName("ListAccessSites")
.withUri("/v3/{domain_id}/geip/access-sites")
.withContentType("application/json");
// requests
builder.withRequestField("limit",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(Integer.class),
f -> f.withMarshaller(ListAccessSitesRequest::getLimit, ListAccessSitesRequest::setLimit));
builder.withRequestField("offset",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(Integer.class),
f -> f.withMarshaller(ListAccessSitesRequest::getOffset, ListAccessSitesRequest::setOffset));
builder.withRequestField("marker",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(ListAccessSitesRequest::getMarker, ListAccessSitesRequest::setMarker));
builder.withRequestField("page_reverse",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(Boolean.class),
f -> f.withMarshaller(ListAccessSitesRequest::getPageReverse, ListAccessSitesRequest::setPageReverse));
builder.>withRequestField("fields",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListAccessSitesRequest::getFields, ListAccessSitesRequest::setFields));
builder.>withRequestField("sort_key",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListAccessSitesRequest::getSortKey, ListAccessSitesRequest::setSortKey));
builder.>withRequestField("sort_dir",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListAccessSitesRequest::getSortDir, ListAccessSitesRequest::setSortDir));
builder.>withRequestField("id",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListAccessSitesRequest::getId, ListAccessSitesRequest::setId));
builder.>withRequestField("name",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListAccessSitesRequest::getCode, ListAccessSitesRequest::setCode));
builder.>withRequestField("proxy_region",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListAccessSitesRequest::getProxyRegion, ListAccessSitesRequest::setProxyRegion));
builder.>withRequestField("iec_az_code",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListAccessSitesRequest::getIecAzCode, ListAccessSitesRequest::setIecAzCode));
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(ListAccessSitesResponse::getXRequestId, ListAccessSitesResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef listGeipResourceQuotas =
genForListGeipResourceQuotas();
private static HttpRequestDef genForListGeipResourceQuotas() {
// basic
HttpRequestDef.Builder builder = HttpRequestDef
.builder(HttpMethod.GET, ListGeipResourceQuotasRequest.class, ListGeipResourceQuotasResponse.class)
.withName("ListGeipResourceQuotas")
.withUri("/v3/{domain_id}/geip/quotas")
.withContentType("application/json");
// requests
builder.withRequestField("limit",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(Integer.class),
f -> f.withMarshaller(ListGeipResourceQuotasRequest::getLimit, ListGeipResourceQuotasRequest::setLimit));
builder.withRequestField("offset",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(Integer.class),
f -> f.withMarshaller(ListGeipResourceQuotasRequest::getOffset, ListGeipResourceQuotasRequest::setOffset));
builder.withRequestField("marker",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(ListGeipResourceQuotasRequest::getMarker, ListGeipResourceQuotasRequest::setMarker));
builder.withRequestField("page_reverse",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(Boolean.class),
f -> f.withMarshaller(ListGeipResourceQuotasRequest::getPageReverse,
ListGeipResourceQuotasRequest::setPageReverse));
builder.>withRequestField("fields",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListGeipResourceQuotasRequest::getFields, ListGeipResourceQuotasRequest::setFields));
builder.>withRequestField("type",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListGeipResourceQuotasRequest::getType, ListGeipResourceQuotasRequest::setType));
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(ListGeipResourceQuotasResponse::getXRequestId,
ListGeipResourceQuotasResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef listInternetBandwidthCountFilterTags =
genForListInternetBandwidthCountFilterTags();
private static HttpRequestDef genForListInternetBandwidthCountFilterTags() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef
.builder(HttpMethod.POST,
ListInternetBandwidthCountFilterTagsRequest.class,
ListInternetBandwidthCountFilterTagsResponse.class)
.withName("ListInternetBandwidthCountFilterTags")
.withUri("/v3/internet-bandwidth/resource-instances/count")
.withContentType("application/json");
// requests
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(ListResourcesByTagsRequestBody.class),
f -> f.withMarshaller(ListInternetBandwidthCountFilterTagsRequest::getBody,
ListInternetBandwidthCountFilterTagsRequest::setBody));
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(ListInternetBandwidthCountFilterTagsResponse::getXRequestId,
ListInternetBandwidthCountFilterTagsResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef listInternetBandwidthDomainTags =
genForListInternetBandwidthDomainTags();
private static HttpRequestDef genForListInternetBandwidthDomainTags() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef
.builder(HttpMethod.GET,
ListInternetBandwidthDomainTagsRequest.class,
ListInternetBandwidthDomainTagsResponse.class)
.withName("ListInternetBandwidthDomainTags")
.withUri("/v3/internet-bandwidth/tags")
.withContentType("application/json");
// requests
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(ListInternetBandwidthDomainTagsResponse::getXRequestId,
ListInternetBandwidthDomainTagsResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef listInternetBandwidthFilterTags =
genForListInternetBandwidthFilterTags();
private static HttpRequestDef genForListInternetBandwidthFilterTags() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef
.builder(HttpMethod.POST,
ListInternetBandwidthFilterTagsRequest.class,
ListInternetBandwidthFilterTagsResponse.class)
.withName("ListInternetBandwidthFilterTags")
.withUri("/v3/internet-bandwidth/resource-instances/filter")
.withContentType("application/json");
// requests
builder.>withRequestField("limit",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListInternetBandwidthFilterTagsRequest::getLimit,
ListInternetBandwidthFilterTagsRequest::setLimit));
builder.>withRequestField("offset",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListInternetBandwidthFilterTagsRequest::getOffset,
ListInternetBandwidthFilterTagsRequest::setOffset));
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(ListResourcesByTagsRequestBody.class),
f -> f.withMarshaller(ListInternetBandwidthFilterTagsRequest::getBody,
ListInternetBandwidthFilterTagsRequest::setBody));
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(ListInternetBandwidthFilterTagsResponse::getXRequestId,
ListInternetBandwidthFilterTagsResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef listInternetBandwidthLimits =
genForListInternetBandwidthLimits();
private static HttpRequestDef genForListInternetBandwidthLimits() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef
.builder(HttpMethod.GET,
ListInternetBandwidthLimitsRequest.class,
ListInternetBandwidthLimitsResponse.class)
.withName("ListInternetBandwidthLimits")
.withUri("/v3/{domain_id}/geip/internet-bandwidth-limits")
.withContentType("application/json");
// requests
builder.>withRequestField("fields",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListInternetBandwidthLimitsRequest::getFields,
ListInternetBandwidthLimitsRequest::setFields));
builder.>withRequestField("sort_key",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListInternetBandwidthLimitsRequest::getSortKey,
ListInternetBandwidthLimitsRequest::setSortKey));
builder.>withRequestField("sort_dir",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListInternetBandwidthLimitsRequest::getSortDir,
ListInternetBandwidthLimitsRequest::setSortDir));
builder.>withRequestField("charge_mode",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListInternetBandwidthLimitsRequest::getChargeMode,
ListInternetBandwidthLimitsRequest::setChargeMode));
builder.withRequestField("type",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(ListInternetBandwidthLimitsRequest::getType,
ListInternetBandwidthLimitsRequest::setType));
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(ListInternetBandwidthLimitsResponse::getXRequestId,
ListInternetBandwidthLimitsResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef listInternetBandwidths =
genForListInternetBandwidths();
private static HttpRequestDef genForListInternetBandwidths() {
// basic
HttpRequestDef.Builder builder = HttpRequestDef
.builder(HttpMethod.GET, ListInternetBandwidthsRequest.class, ListInternetBandwidthsResponse.class)
.withName("ListInternetBandwidths")
.withUri("/v3/{domain_id}/geip/internet-bandwidths")
.withContentType("application/json");
// requests
builder.withRequestField("limit",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(Integer.class),
f -> f.withMarshaller(ListInternetBandwidthsRequest::getLimit, ListInternetBandwidthsRequest::setLimit));
builder.withRequestField("offset",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(Integer.class),
f -> f.withMarshaller(ListInternetBandwidthsRequest::getOffset, ListInternetBandwidthsRequest::setOffset));
builder.withRequestField("marker",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(ListInternetBandwidthsRequest::getMarker, ListInternetBandwidthsRequest::setMarker));
builder.withRequestField("page_reverse",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(Boolean.class),
f -> f.withMarshaller(ListInternetBandwidthsRequest::getPageReverse,
ListInternetBandwidthsRequest::setPageReverse));
builder.>withRequestField("fields",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListInternetBandwidthsRequest::getFields, ListInternetBandwidthsRequest::setFields));
builder.>withRequestField("ext-fields",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListInternetBandwidthsRequest::getExtFields,
ListInternetBandwidthsRequest::setExtFields));
builder.>withRequestField("sort_key",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListInternetBandwidthsRequest::getSortKey,
ListInternetBandwidthsRequest::setSortKey));
builder.>withRequestField("sort_dir",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListInternetBandwidthsRequest::getSortDir,
ListInternetBandwidthsRequest::setSortDir));
builder.>withRequestField("id",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListInternetBandwidthsRequest::getId, ListInternetBandwidthsRequest::setId));
builder.>withRequestField("size",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListInternetBandwidthsRequest::getSize, ListInternetBandwidthsRequest::setSize));
builder.>withRequestField("name",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListInternetBandwidthsRequest::getName, ListInternetBandwidthsRequest::setName));
builder.withRequestField("name_like",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(ListInternetBandwidthsRequest::getNameLike,
ListInternetBandwidthsRequest::setNameLike));
builder.>withRequestField("access_site",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListInternetBandwidthsRequest::getAccessSite,
ListInternetBandwidthsRequest::setAccessSite));
builder.>withRequestField("status",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListInternetBandwidthsRequest::getStatus, ListInternetBandwidthsRequest::setStatus));
builder.>withRequestField("enterprise_project_id",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListInternetBandwidthsRequest::getEnterpriseProjectId,
ListInternetBandwidthsRequest::setEnterpriseProjectId));
builder.>withRequestField("tags",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListInternetBandwidthsRequest::getTags, ListInternetBandwidthsRequest::setTags));
builder.>withRequestField("type",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListInternetBandwidthsRequest::getType, ListInternetBandwidthsRequest::setType));
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(ListInternetBandwidthsResponse::getXRequestId,
ListInternetBandwidthsResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef listSupportMasks =
genForListSupportMasks();
private static HttpRequestDef genForListSupportMasks() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, ListSupportMasksRequest.class, ListSupportMasksResponse.class)
.withName("ListSupportMasks")
.withUri("/v3/{domain_id}/global-eip-segments/support-masks")
.withContentType("application/json");
// requests
builder.withRequestField("limit",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(Integer.class),
f -> f.withMarshaller(ListSupportMasksRequest::getLimit, ListSupportMasksRequest::setLimit));
builder.withRequestField("offset",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(Integer.class),
f -> f.withMarshaller(ListSupportMasksRequest::getOffset, ListSupportMasksRequest::setOffset));
builder.withRequestField("marker",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(ListSupportMasksRequest::getMarker, ListSupportMasksRequest::setMarker));
builder.withRequestField("page_reverse",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(Boolean.class),
f -> f.withMarshaller(ListSupportMasksRequest::getPageReverse, ListSupportMasksRequest::setPageReverse));
builder.>withRequestField("fields",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListSupportMasksRequest::getFields, ListSupportMasksRequest::setFields));
builder.>withRequestField("sort_key",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListSupportMasksRequest::getSortKey, ListSupportMasksRequest::setSortKey));
builder.>withRequestField("sort_dir",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListSupportMasksRequest::getSortDir, ListSupportMasksRequest::setSortDir));
builder.>withRequestField("id",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListSupportMasksRequest::getId, ListSupportMasksRequest::setId));
builder.>withRequestField("ip_version",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListSupportMasksRequest::getIpVersion, ListSupportMasksRequest::setIpVersion));
builder.>withRequestField("mask",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ListSupportMasksRequest::getMask, ListSupportMasksRequest::setMask));
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(ListSupportMasksResponse::getXRequestId, ListSupportMasksResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef showInternetBandwidth =
genForShowInternetBandwidth();
private static HttpRequestDef genForShowInternetBandwidth() {
// basic
HttpRequestDef.Builder builder = HttpRequestDef
.builder(HttpMethod.GET, ShowInternetBandwidthRequest.class, ShowInternetBandwidthResponse.class)
.withName("ShowInternetBandwidth")
.withUri("/v3/{domain_id}/geip/internet-bandwidths/{internet_bandwidth_id}")
.withContentType("application/json");
// requests
builder.withRequestField("internet_bandwidth_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(ShowInternetBandwidthRequest::getInternetBandwidthId,
ShowInternetBandwidthRequest::setInternetBandwidthId));
builder.>withRequestField("fields",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ShowInternetBandwidthRequest::getFields, ShowInternetBandwidthRequest::setFields));
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(ShowInternetBandwidthResponse::getXRequestId,
ShowInternetBandwidthResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef showInternetBandwidthTags =
genForShowInternetBandwidthTags();
private static HttpRequestDef genForShowInternetBandwidthTags() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef
.builder(HttpMethod.GET,
ShowInternetBandwidthTagsRequest.class,
ShowInternetBandwidthTagsResponse.class)
.withName("ShowInternetBandwidthTags")
.withUri("/v3/internet-bandwidth/{resource_id}/tags")
.withContentType("application/json");
// requests
builder.withRequestField("resource_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(ShowInternetBandwidthTagsRequest::getResourceId,
ShowInternetBandwidthTagsRequest::setResourceId));
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(ShowInternetBandwidthTagsResponse::getXRequestId,
ShowInternetBandwidthTagsResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef showUserDisclaimer =
genForShowUserDisclaimer();
private static HttpRequestDef genForShowUserDisclaimer() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, ShowUserDisclaimerRequest.class, ShowUserDisclaimerResponse.class)
.withName("ShowUserDisclaimer")
.withUri("/v3/{domain_id}/geip/user-disclaimer-records")
.withContentType("application/json");
// requests
builder.>withRequestField("fields",
LocationType.Query,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(List.class),
f -> f.withMarshaller(ShowUserDisclaimerRequest::getFields, ShowUserDisclaimerRequest::setFields));
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(ShowUserDisclaimerResponse::getXRequestId,
ShowUserDisclaimerResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef updateInternetBandwidth =
genForUpdateInternetBandwidth();
private static HttpRequestDef genForUpdateInternetBandwidth() {
// basic
HttpRequestDef.Builder builder = HttpRequestDef
.builder(HttpMethod.PUT, UpdateInternetBandwidthRequest.class, UpdateInternetBandwidthResponse.class)
.withName("UpdateInternetBandwidth")
.withUri("/v3/{domain_id}/geip/internet-bandwidths/{internet_bandwidth_id}")
.withContentType("application/json");
// requests
builder.withRequestField("internet_bandwidth_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(UpdateInternetBandwidthRequest::getInternetBandwidthId,
UpdateInternetBandwidthRequest::setInternetBandwidthId));
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(UpdateInternetBandwidthRequestBody.class),
f -> f.withMarshaller(UpdateInternetBandwidthRequest::getBody, UpdateInternetBandwidthRequest::setBody));
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(UpdateInternetBandwidthResponse::getXRequestId,
UpdateInternetBandwidthResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef addGeipSegmentTags =
genForAddGeipSegmentTags();
private static HttpRequestDef genForAddGeipSegmentTags() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.POST, AddGeipSegmentTagsRequest.class, AddGeipSegmentTagsResponse.class)
.withName("AddGeipSegmentTags")
.withUri("/v3/global-eip-segment/{resource_id}/tags")
.withContentType("application/json");
// requests
builder.withRequestField("resource_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(AddGeipSegmentTagsRequest::getResourceId, AddGeipSegmentTagsRequest::setResourceId));
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(CreateV2TagRequestBody.class),
f -> f.withMarshaller(AddGeipSegmentTagsRequest::getBody, AddGeipSegmentTagsRequest::setBody));
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(AddGeipSegmentTagsResponse::getXRequestId,
AddGeipSegmentTagsResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef addGlobalEipTags =
genForAddGlobalEipTags();
private static HttpRequestDef genForAddGlobalEipTags() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.POST, AddGlobalEipTagsRequest.class, AddGlobalEipTagsResponse.class)
.withName("AddGlobalEipTags")
.withUri("/v3/global-eip/{resource_id}/tags")
.withContentType("application/json");
// requests
builder.withRequestField("resource_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(AddGlobalEipTagsRequest::getResourceId, AddGlobalEipTagsRequest::setResourceId));
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(CreateV2TagRequestBody.class),
f -> f.withMarshaller(AddGlobalEipTagsRequest::getBody, AddGlobalEipTagsRequest::setBody));
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(AddGlobalEipTagsResponse::getXRequestId, AddGlobalEipTagsResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef associateGeipSegmentInstance =
genForAssociateGeipSegmentInstance();
private static HttpRequestDef genForAssociateGeipSegmentInstance() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef
.builder(HttpMethod.POST,
AssociateGeipSegmentInstanceRequest.class,
AssociateGeipSegmentInstanceResponse.class)
.withName("AssociateGeipSegmentInstance")
.withUri("/v3/{domain_id}/global-eip-segments/{global_eip_segment_id}/associate-instance")
.withContentType("application/json");
// requests
builder.withRequestField("global_eip_segment_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(AssociateGeipSegmentInstanceRequest::getGlobalEipSegmentId,
AssociateGeipSegmentInstanceRequest::setGlobalEipSegmentId));
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(AssociateInstanceGlobalEipSegmentRequestBody.class),
f -> f.withMarshaller(AssociateGeipSegmentInstanceRequest::getBody,
AssociateGeipSegmentInstanceRequest::setBody));
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(AssociateGeipSegmentInstanceResponse::getXRequestId,
AssociateGeipSegmentInstanceResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef associateInstance =
genForAssociateInstance();
private static HttpRequestDef genForAssociateInstance() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.POST, AssociateInstanceRequest.class, AssociateInstanceResponse.class)
.withName("AssociateInstance")
.withUri("/v3/{domain_id}/global-eips/{global_eip_id}/associate-instance")
.withContentType("application/json");
// requests
builder.withRequestField("global_eip_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(AssociateInstanceRequest::getGlobalEipId, AssociateInstanceRequest::setGlobalEipId));
builder.withRequestField("binding-instance-service",
LocationType.Header,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(AssociateInstanceRequest::getBindingInstanceService,
AssociateInstanceRequest::setBindingInstanceService));
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(AssociateInstanceGlobalEipRequestBody.class),
f -> f.withMarshaller(AssociateInstanceRequest::getBody, AssociateInstanceRequest::setBody));
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(AssociateInstanceResponse::getXRequestId, AssociateInstanceResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef attachInternetBandwidth =
genForAttachInternetBandwidth();
private static HttpRequestDef genForAttachInternetBandwidth() {
// basic
HttpRequestDef.Builder builder = HttpRequestDef
.builder(HttpMethod.POST, AttachInternetBandwidthRequest.class, AttachInternetBandwidthResponse.class)
.withName("AttachInternetBandwidth")
.withUri("/v3/{domain_id}/global-eips/{global_eip_id}/attach-internet-bandwidth")
.withContentType("application/json");
// requests
builder.withRequestField("global_eip_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(AttachInternetBandwidthRequest::getGlobalEipId,
AttachInternetBandwidthRequest::setGlobalEipId));
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(AttachInternetBandwidthGlobalEipRequestBody.class),
f -> f.withMarshaller(AttachInternetBandwidthRequest::getBody, AttachInternetBandwidthRequest::setBody));
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(AttachInternetBandwidthResponse::getXRequestId,
AttachInternetBandwidthResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef batchAttachGeipSegmentInternetBandwidth =
genForBatchAttachGeipSegmentInternetBandwidth();
private static HttpRequestDef genForBatchAttachGeipSegmentInternetBandwidth() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef
.builder(HttpMethod.POST,
BatchAttachGeipSegmentInternetBandwidthRequest.class,
BatchAttachGeipSegmentInternetBandwidthResponse.class)
.withName("BatchAttachGeipSegmentInternetBandwidth")
.withUri("/v3/{domain_id}/global-eip-segments/batch-attach-internet-bandwidths")
.withContentType("application/json");
// requests
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(BatchAttachInternetBandwidthsGlobalEipSegmentRequestBody.class),
f -> f.withMarshaller(BatchAttachGeipSegmentInternetBandwidthRequest::getBody,
BatchAttachGeipSegmentInternetBandwidthRequest::setBody));
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(BatchAttachGeipSegmentInternetBandwidthResponse::getXRequestId,
BatchAttachGeipSegmentInternetBandwidthResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef batchAttachInternetBandwidth =
genForBatchAttachInternetBandwidth();
private static HttpRequestDef genForBatchAttachInternetBandwidth() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef
.builder(HttpMethod.POST,
BatchAttachInternetBandwidthRequest.class,
BatchAttachInternetBandwidthResponse.class)
.withName("BatchAttachInternetBandwidth")
.withUri("/v3/{domain_id}/global-eips/batch-attach-internet-bandwidths")
.withContentType("application/json");
// requests
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(BatchAttachInternetBandwidthsGlobalEipRequestBody.class),
f -> f.withMarshaller(BatchAttachInternetBandwidthRequest::getBody,
BatchAttachInternetBandwidthRequest::setBody));
// response
builder.withResponseField("body",
LocationType.Body,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(BatchAttachInternetBandwidthResponse::getBody,
BatchAttachInternetBandwidthResponse::setBody));
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(BatchAttachInternetBandwidthResponse::getXRequestId,
BatchAttachInternetBandwidthResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef batchCreateGeipSegmentTags =
genForBatchCreateGeipSegmentTags();
private static HttpRequestDef genForBatchCreateGeipSegmentTags() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef
.builder(HttpMethod.POST,
BatchCreateGeipSegmentTagsRequest.class,
BatchCreateGeipSegmentTagsResponse.class)
.withName("BatchCreateGeipSegmentTags")
.withUri("/v3/global-eip-segment/{resource_id}/tags/create")
.withContentType("application/json");
// requests
builder.withRequestField("resource_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(BatchCreateGeipSegmentTagsRequest::getResourceId,
BatchCreateGeipSegmentTagsRequest::setResourceId));
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(BatchCreateV2RequestBody.class),
f -> f.withMarshaller(BatchCreateGeipSegmentTagsRequest::getBody,
BatchCreateGeipSegmentTagsRequest::setBody));
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(BatchCreateGeipSegmentTagsResponse::getXRequestId,
BatchCreateGeipSegmentTagsResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef batchCreateGlobalEip =
genForBatchCreateGlobalEip();
private static HttpRequestDef genForBatchCreateGlobalEip() {
// basic
HttpRequestDef.Builder builder = HttpRequestDef
.builder(HttpMethod.POST, BatchCreateGlobalEipRequest.class, BatchCreateGlobalEipResponse.class)
.withName("BatchCreateGlobalEip")
.withUri("/v3/{domain_id}/global-eips/batch-create")
.withContentType("application/json");
// requests
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(BatchCreateGlobalEipRequestBody.class),
f -> f.withMarshaller(BatchCreateGlobalEipRequest::getBody, BatchCreateGlobalEipRequest::setBody));
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(BatchCreateGlobalEipResponse::getXRequestId,
BatchCreateGlobalEipResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef batchCreateGlobalEipTags =
genForBatchCreateGlobalEipTags();
private static HttpRequestDef genForBatchCreateGlobalEipTags() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef
.builder(HttpMethod.POST, BatchCreateGlobalEipTagsRequest.class, BatchCreateGlobalEipTagsResponse.class)
.withName("BatchCreateGlobalEipTags")
.withUri("/v3/global-eip/{resource_id}/tags/create")
.withContentType("application/json");
// requests
builder.withRequestField("resource_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(BatchCreateGlobalEipTagsRequest::getResourceId,
BatchCreateGlobalEipTagsRequest::setResourceId));
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(BatchCreateV2RequestBody.class),
f -> f.withMarshaller(BatchCreateGlobalEipTagsRequest::getBody, BatchCreateGlobalEipTagsRequest::setBody));
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(BatchCreateGlobalEipTagsResponse::getXRequestId,
BatchCreateGlobalEipTagsResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef batchDeleteGeipSegmentTags =
genForBatchDeleteGeipSegmentTags();
private static HttpRequestDef genForBatchDeleteGeipSegmentTags() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef
.builder(HttpMethod.POST,
BatchDeleteGeipSegmentTagsRequest.class,
BatchDeleteGeipSegmentTagsResponse.class)
.withName("BatchDeleteGeipSegmentTags")
.withUri("/v3/global-eip-segment/{resource_id}/tags/delete")
.withContentType("application/json");
// requests
builder.withRequestField("resource_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(BatchDeleteGeipSegmentTagsRequest::getResourceId,
BatchDeleteGeipSegmentTagsRequest::setResourceId));
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(BatchDeleteV2RequestBody.class),
f -> f.withMarshaller(BatchDeleteGeipSegmentTagsRequest::getBody,
BatchDeleteGeipSegmentTagsRequest::setBody));
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(BatchDeleteGeipSegmentTagsResponse::getXRequestId,
BatchDeleteGeipSegmentTagsResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef batchDeleteGlobalEipTags =
genForBatchDeleteGlobalEipTags();
private static HttpRequestDef genForBatchDeleteGlobalEipTags() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef
.builder(HttpMethod.POST, BatchDeleteGlobalEipTagsRequest.class, BatchDeleteGlobalEipTagsResponse.class)
.withName("BatchDeleteGlobalEipTags")
.withUri("/v3/global-eip/{resource_id}/tags/delete")
.withContentType("application/json");
// requests
builder.withRequestField("resource_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(String.class),
f -> f.withMarshaller(BatchDeleteGlobalEipTagsRequest::getResourceId,
BatchDeleteGlobalEipTagsRequest::setResourceId));
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
TypeCasts.uncheckedConversion(BatchDeleteV2RequestBody.class),
f -> f.withMarshaller(BatchDeleteGlobalEipTagsRequest::getBody, BatchDeleteGlobalEipTagsRequest::setBody));
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(BatchDeleteGlobalEipTagsResponse::getXRequestId,
BatchDeleteGlobalEipTagsResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef batchDetachGeipSegmentInternetBandwidth =
genForBatchDetachGeipSegmentInternetBandwidth();
private static HttpRequestDef genForBatchDetachGeipSegmentInternetBandwidth() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef
.builder(HttpMethod.POST,
BatchDetachGeipSegmentInternetBandwidthRequest.class,
BatchDetachGeipSegmentInternetBandwidthResponse.class)
.withName("BatchDetachGeipSegmentInternetBandwidth")
.withUri("/v3/{domain_id}/global-eip-segments/batch-detach-internet-bandwidths")
.withContentType("application/json");
// requests
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(BatchDetachInternetBandwidthsGlobalEipSegmentRequestBody.class),
f -> f.withMarshaller(BatchDetachGeipSegmentInternetBandwidthRequest::getBody,
BatchDetachGeipSegmentInternetBandwidthRequest::setBody));
// response
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(BatchDetachGeipSegmentInternetBandwidthResponse::getXRequestId,
BatchDetachGeipSegmentInternetBandwidthResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef batchDetachInternetBandwidth =
genForBatchDetachInternetBandwidth();
private static HttpRequestDef genForBatchDetachInternetBandwidth() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef
.builder(HttpMethod.POST,
BatchDetachInternetBandwidthRequest.class,
BatchDetachInternetBandwidthResponse.class)
.withName("BatchDetachInternetBandwidth")
.withUri("/v3/{domain_id}/global-eips/batch-detach-internet-bandwidths")
.withContentType("application/json");
// requests
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NULL_IGNORE,
TypeCasts.uncheckedConversion(BatchDetachInternetBandwidthsGlobalEipRequestBody.class),
f -> f.withMarshaller(BatchDetachInternetBandwidthRequest::getBody,
BatchDetachInternetBandwidthRequest::setBody));
// response
builder.withResponseField("body",
LocationType.Body,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(BatchDetachInternetBandwidthResponse::getBody,
BatchDetachInternetBandwidthResponse::setBody));
builder.withResponseField("X-Request-Id",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(BatchDetachInternetBandwidthResponse::getXRequestId,
BatchDetachInternetBandwidthResponse::setXRequestId));
return builder.build();
}
public static final HttpRequestDef countGlobalEipSegment =
genForCountGlobalEipSegment();
private static HttpRequestDef genForCountGlobalEipSegment() {
// basic
HttpRequestDef.Builder builder = HttpRequestDef
.builder(HttpMethod.GET, CountGlobalEipSegmentRequest.class, CountGlobalEipSegmentResponse.class)
.withName("CountGlobalEipSegment")
.withUri("/v3/{domain_id}/global-eip-segments/count")
.withContentType("application/json");
// requests
builder.