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.iam.v3.IamMeta Maven / Gradle / Ivy
package com.huaweicloud.sdk.iam.v3;
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.iam.v3.model.*;
import java.util.List;
import java.util.Map;
import java.time.OffsetDateTime;
@SuppressWarnings("unchecked")
public class IamMeta {
public static final HttpRequestDef associateAgencyWithAllProjectsPermission = genForassociateAgencyWithAllProjectsPermission();
private static HttpRequestDef genForassociateAgencyWithAllProjectsPermission() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.PUT, AssociateAgencyWithAllProjectsPermissionRequest.class, AssociateAgencyWithAllProjectsPermissionResponse.class)
.withName("AssociateAgencyWithAllProjectsPermission")
.withUri("/v3.0/OS-INHERIT/domains/{domain_id}/agencies/{agency_id}/roles/{role_id}/inherited_to_projects")
.withContentType("application/json");
// requests
builder.withRequestField("agency_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(AssociateAgencyWithAllProjectsPermissionRequest::getAgencyId, (req, v) -> {
req.setAgencyId(v);
})
);
builder.withRequestField("domain_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(AssociateAgencyWithAllProjectsPermissionRequest::getDomainId, (req, v) -> {
req.setDomainId(v);
})
);
builder.withRequestField("role_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(AssociateAgencyWithAllProjectsPermissionRequest::getRoleId, (req, v) -> {
req.setRoleId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef associateAgencyWithDomainPermission = genForassociateAgencyWithDomainPermission();
private static HttpRequestDef genForassociateAgencyWithDomainPermission() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.PUT, AssociateAgencyWithDomainPermissionRequest.class, AssociateAgencyWithDomainPermissionResponse.class)
.withName("AssociateAgencyWithDomainPermission")
.withUri("/v3.0/OS-AGENCY/domains/{domain_id}/agencies/{agency_id}/roles/{role_id}")
.withContentType("application/json");
// requests
builder.withRequestField("domain_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(AssociateAgencyWithDomainPermissionRequest::getDomainId, (req, v) -> {
req.setDomainId(v);
})
);
builder.withRequestField("agency_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(AssociateAgencyWithDomainPermissionRequest::getAgencyId, (req, v) -> {
req.setAgencyId(v);
})
);
builder.withRequestField("role_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(AssociateAgencyWithDomainPermissionRequest::getRoleId, (req, v) -> {
req.setRoleId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef associateAgencyWithProjectPermission = genForassociateAgencyWithProjectPermission();
private static HttpRequestDef genForassociateAgencyWithProjectPermission() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.PUT, AssociateAgencyWithProjectPermissionRequest.class, AssociateAgencyWithProjectPermissionResponse.class)
.withName("AssociateAgencyWithProjectPermission")
.withUri("/v3.0/OS-AGENCY/projects/{project_id}/agencies/{agency_id}/roles/{role_id}")
.withContentType("application/json");
// requests
builder.withRequestField("project_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(AssociateAgencyWithProjectPermissionRequest::getProjectId, (req, v) -> {
req.setProjectId(v);
})
);
builder.withRequestField("agency_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(AssociateAgencyWithProjectPermissionRequest::getAgencyId, (req, v) -> {
req.setAgencyId(v);
})
);
builder.withRequestField("role_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(AssociateAgencyWithProjectPermissionRequest::getRoleId, (req, v) -> {
req.setRoleId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef checkAllProjectsPermissionForAgency = genForcheckAllProjectsPermissionForAgency();
private static HttpRequestDef genForcheckAllProjectsPermissionForAgency() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.HEAD, CheckAllProjectsPermissionForAgencyRequest.class, CheckAllProjectsPermissionForAgencyResponse.class)
.withName("CheckAllProjectsPermissionForAgency")
.withUri("/v3.0/OS-INHERIT/domains/{domain_id}/agencies/{agency_id}/roles/{role_id}/inherited_to_projects")
.withContentType("application/json");
// requests
builder.withRequestField("agency_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(CheckAllProjectsPermissionForAgencyRequest::getAgencyId, (req, v) -> {
req.setAgencyId(v);
})
);
builder.withRequestField("domain_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(CheckAllProjectsPermissionForAgencyRequest::getDomainId, (req, v) -> {
req.setDomainId(v);
})
);
builder.withRequestField("role_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(CheckAllProjectsPermissionForAgencyRequest::getRoleId, (req, v) -> {
req.setRoleId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef checkDomainPermissionForAgency = genForcheckDomainPermissionForAgency();
private static HttpRequestDef genForcheckDomainPermissionForAgency() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.HEAD, CheckDomainPermissionForAgencyRequest.class, CheckDomainPermissionForAgencyResponse.class)
.withName("CheckDomainPermissionForAgency")
.withUri("/v3.0/OS-AGENCY/domains/{domain_id}/agencies/{agency_id}/roles/{role_id}")
.withContentType("application/json");
// requests
builder.withRequestField("domain_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(CheckDomainPermissionForAgencyRequest::getDomainId, (req, v) -> {
req.setDomainId(v);
})
);
builder.withRequestField("agency_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(CheckDomainPermissionForAgencyRequest::getAgencyId, (req, v) -> {
req.setAgencyId(v);
})
);
builder.withRequestField("role_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(CheckDomainPermissionForAgencyRequest::getRoleId, (req, v) -> {
req.setRoleId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef checkProjectPermissionForAgency = genForcheckProjectPermissionForAgency();
private static HttpRequestDef genForcheckProjectPermissionForAgency() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.HEAD, CheckProjectPermissionForAgencyRequest.class, CheckProjectPermissionForAgencyResponse.class)
.withName("CheckProjectPermissionForAgency")
.withUri("/v3.0/OS-AGENCY/projects/{project_id}/agencies/{agency_id}/roles/{role_id}")
.withContentType("application/json");
// requests
builder.withRequestField("project_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(CheckProjectPermissionForAgencyRequest::getProjectId, (req, v) -> {
req.setProjectId(v);
})
);
builder.withRequestField("agency_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(CheckProjectPermissionForAgencyRequest::getAgencyId, (req, v) -> {
req.setAgencyId(v);
})
);
builder.withRequestField("role_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(CheckProjectPermissionForAgencyRequest::getRoleId, (req, v) -> {
req.setRoleId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef createAgency = genForcreateAgency();
private static HttpRequestDef genForcreateAgency() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.POST, CreateAgencyRequest.class, CreateAgencyResponse.class)
.withName("CreateAgency")
.withUri("/v3.0/OS-AGENCY/agencies")
.withContentType("application/json;charset=UTF-8");
// requests
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
CreateAgencyRequestBody.class,
f -> f.withMarshaller(CreateAgencyRequest::getBody, (req, v) -> {
req.setBody(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef createAgencyCustomPolicy = genForcreateAgencyCustomPolicy();
private static HttpRequestDef genForcreateAgencyCustomPolicy() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.POST, CreateAgencyCustomPolicyRequest.class, CreateAgencyCustomPolicyResponse.class)
.withName("CreateAgencyCustomPolicy")
.withUri("/v3.0/OS-ROLE/roles")
.withContentType("application/json;charset=UTF-8");
// requests
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
CreateAgencyCustomPolicyRequestBody.class,
f -> f.withMarshaller(CreateAgencyCustomPolicyRequest::getBody, (req, v) -> {
req.setBody(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef createCloudServiceCustomPolicy = genForcreateCloudServiceCustomPolicy();
private static HttpRequestDef genForcreateCloudServiceCustomPolicy() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.POST, CreateCloudServiceCustomPolicyRequest.class, CreateCloudServiceCustomPolicyResponse.class)
.withName("CreateCloudServiceCustomPolicy")
.withUri("/v3.0/OS-ROLE/roles")
.withContentType("application/json;charset=UTF-8");
// requests
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
CreateCloudServiceCustomPolicyRequestBody.class,
f -> f.withMarshaller(CreateCloudServiceCustomPolicyRequest::getBody, (req, v) -> {
req.setBody(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef createLoginToken = genForcreateLoginToken();
private static HttpRequestDef genForcreateLoginToken() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.POST, CreateLoginTokenRequest.class, CreateLoginTokenResponse.class)
.withName("CreateLoginToken")
.withUri("/v3.0/OS-AUTH/securitytoken/logintokens")
.withContentType("application/json;charset=UTF-8");
// requests
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
CreateLoginTokenRequestBody.class,
f -> f.withMarshaller(CreateLoginTokenRequest::getBody, (req, v) -> {
req.setBody(v);
})
);
// response
builder.withResponseField(
"X-Subject-LoginToken",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(
CreateLoginTokenResponse::getXSubjectLoginToken,
CreateLoginTokenResponse::setXSubjectLoginToken)
);
return builder.build();
}
public static final HttpRequestDef createMetadata = genForcreateMetadata();
private static HttpRequestDef genForcreateMetadata() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.POST, CreateMetadataRequest.class, CreateMetadataResponse.class)
.withName("CreateMetadata")
.withUri("/v3-ext/OS-FEDERATION/identity_providers/{idp_id}/protocols/{protocol_id}/metadata")
.withContentType("application/json;charset=UTF-8");
// requests
builder.withRequestField("idp_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(CreateMetadataRequest::getIdpId, (req, v) -> {
req.setIdpId(v);
})
);
builder.withRequestField("protocol_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(CreateMetadataRequest::getProtocolId, (req, v) -> {
req.setProtocolId(v);
})
);
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
CreateMetadataRequestBody.class,
f -> f.withMarshaller(CreateMetadataRequest::getBody, (req, v) -> {
req.setBody(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef createOpenIdConnectConfig = genForcreateOpenIdConnectConfig();
private static HttpRequestDef genForcreateOpenIdConnectConfig() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.POST, CreateOpenIdConnectConfigRequest.class, CreateOpenIdConnectConfigResponse.class)
.withName("CreateOpenIdConnectConfig")
.withUri("/v3.0/OS-FEDERATION/identity-providers/{idp_id}/openid-connect-config")
.withContentType("application/json;charset=UTF-8");
// requests
builder.withRequestField("idp_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(CreateOpenIdConnectConfigRequest::getIdpId, (req, v) -> {
req.setIdpId(v);
})
);
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
CreateOpenIdConnectConfigRequestBody.class,
f -> f.withMarshaller(CreateOpenIdConnectConfigRequest::getBody, (req, v) -> {
req.setBody(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef createTokenWithIdToken = genForcreateTokenWithIdToken();
private static HttpRequestDef genForcreateTokenWithIdToken() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.POST, CreateTokenWithIdTokenRequest.class, CreateTokenWithIdTokenResponse.class)
.withName("CreateTokenWithIdToken")
.withUri("/v3.0/OS-AUTH/id-token/tokens")
.withContentType("application/json;charset=UTF-8");
// requests
builder.withRequestField("X-Idp-Id",
LocationType.Header,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(CreateTokenWithIdTokenRequest::getXIdpId, (req, v) -> {
req.setXIdpId(v);
})
);
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
GetIdTokenRequestBody.class,
f -> f.withMarshaller(CreateTokenWithIdTokenRequest::getBody, (req, v) -> {
req.setBody(v);
})
);
// response
builder.withResponseField(
"X-Subject-Token",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(
CreateTokenWithIdTokenResponse::getXSubjectToken,
CreateTokenWithIdTokenResponse::setXSubjectToken)
);
return builder.build();
}
public static final HttpRequestDef deleteAgency = genFordeleteAgency();
private static HttpRequestDef genFordeleteAgency() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.DELETE, DeleteAgencyRequest.class, DeleteAgencyResponse.class)
.withName("DeleteAgency")
.withUri("/v3.0/OS-AGENCY/agencies/{agency_id}")
.withContentType("application/json");
// requests
builder.withRequestField("agency_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(DeleteAgencyRequest::getAgencyId, (req, v) -> {
req.setAgencyId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef deleteCustomPolicy = genFordeleteCustomPolicy();
private static HttpRequestDef genFordeleteCustomPolicy() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.DELETE, DeleteCustomPolicyRequest.class, DeleteCustomPolicyResponse.class)
.withName("DeleteCustomPolicy")
.withUri("/v3.0/OS-ROLE/roles/{role_id}")
.withContentType("application/json");
// requests
builder.withRequestField("role_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(DeleteCustomPolicyRequest::getRoleId, (req, v) -> {
req.setRoleId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef deleteDomainGroupInheritedRole = genFordeleteDomainGroupInheritedRole();
private static HttpRequestDef genFordeleteDomainGroupInheritedRole() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.DELETE, DeleteDomainGroupInheritedRoleRequest.class, DeleteDomainGroupInheritedRoleResponse.class)
.withName("DeleteDomainGroupInheritedRole")
.withUri("/v3/OS-INHERIT/domains/{domain_id}/groups/{group_id}/roles/{role_id}/inherited_to_projects")
.withContentType("application/json");
// requests
builder.withRequestField("domain_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(DeleteDomainGroupInheritedRoleRequest::getDomainId, (req, v) -> {
req.setDomainId(v);
})
);
builder.withRequestField("group_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(DeleteDomainGroupInheritedRoleRequest::getGroupId, (req, v) -> {
req.setGroupId(v);
})
);
builder.withRequestField("role_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(DeleteDomainGroupInheritedRoleRequest::getRoleId, (req, v) -> {
req.setRoleId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneAddUserToGroup = genForkeystoneAddUserToGroup();
private static HttpRequestDef genForkeystoneAddUserToGroup() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.PUT, KeystoneAddUserToGroupRequest.class, KeystoneAddUserToGroupResponse.class)
.withName("KeystoneAddUserToGroup")
.withUri("/v3/groups/{group_id}/users/{user_id}")
.withContentType("application/json");
// requests
builder.withRequestField("group_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneAddUserToGroupRequest::getGroupId, (req, v) -> {
req.setGroupId(v);
})
);
builder.withRequestField("user_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneAddUserToGroupRequest::getUserId, (req, v) -> {
req.setUserId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneAssociateGroupWithDomainPermission = genForkeystoneAssociateGroupWithDomainPermission();
private static HttpRequestDef genForkeystoneAssociateGroupWithDomainPermission() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.PUT, KeystoneAssociateGroupWithDomainPermissionRequest.class, KeystoneAssociateGroupWithDomainPermissionResponse.class)
.withName("KeystoneAssociateGroupWithDomainPermission")
.withUri("/v3/domains/{domain_id}/groups/{group_id}/roles/{role_id}")
.withContentType("application/json");
// requests
builder.withRequestField("domain_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneAssociateGroupWithDomainPermissionRequest::getDomainId, (req, v) -> {
req.setDomainId(v);
})
);
builder.withRequestField("group_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneAssociateGroupWithDomainPermissionRequest::getGroupId, (req, v) -> {
req.setGroupId(v);
})
);
builder.withRequestField("role_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneAssociateGroupWithDomainPermissionRequest::getRoleId, (req, v) -> {
req.setRoleId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneAssociateGroupWithProjectPermission = genForkeystoneAssociateGroupWithProjectPermission();
private static HttpRequestDef genForkeystoneAssociateGroupWithProjectPermission() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.PUT, KeystoneAssociateGroupWithProjectPermissionRequest.class, KeystoneAssociateGroupWithProjectPermissionResponse.class)
.withName("KeystoneAssociateGroupWithProjectPermission")
.withUri("/v3/projects/{project_id}/groups/{group_id}/roles/{role_id}")
.withContentType("application/json");
// requests
builder.withRequestField("project_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneAssociateGroupWithProjectPermissionRequest::getProjectId, (req, v) -> {
req.setProjectId(v);
})
);
builder.withRequestField("group_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneAssociateGroupWithProjectPermissionRequest::getGroupId, (req, v) -> {
req.setGroupId(v);
})
);
builder.withRequestField("role_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneAssociateGroupWithProjectPermissionRequest::getRoleId, (req, v) -> {
req.setRoleId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneCheckDomainPermissionForGroup = genForkeystoneCheckDomainPermissionForGroup();
private static HttpRequestDef genForkeystoneCheckDomainPermissionForGroup() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.HEAD, KeystoneCheckDomainPermissionForGroupRequest.class, KeystoneCheckDomainPermissionForGroupResponse.class)
.withName("KeystoneCheckDomainPermissionForGroup")
.withUri("/v3/domains/{domain_id}/groups/{group_id}/roles/{role_id}")
.withContentType("application/json");
// requests
builder.withRequestField("domain_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneCheckDomainPermissionForGroupRequest::getDomainId, (req, v) -> {
req.setDomainId(v);
})
);
builder.withRequestField("group_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneCheckDomainPermissionForGroupRequest::getGroupId, (req, v) -> {
req.setGroupId(v);
})
);
builder.withRequestField("role_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneCheckDomainPermissionForGroupRequest::getRoleId, (req, v) -> {
req.setRoleId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneCheckProjectPermissionForGroup = genForkeystoneCheckProjectPermissionForGroup();
private static HttpRequestDef genForkeystoneCheckProjectPermissionForGroup() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.HEAD, KeystoneCheckProjectPermissionForGroupRequest.class, KeystoneCheckProjectPermissionForGroupResponse.class)
.withName("KeystoneCheckProjectPermissionForGroup")
.withUri("/v3/projects/{project_id}/groups/{group_id}/roles/{role_id}")
.withContentType("application/json");
// requests
builder.withRequestField("project_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneCheckProjectPermissionForGroupRequest::getProjectId, (req, v) -> {
req.setProjectId(v);
})
);
builder.withRequestField("group_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneCheckProjectPermissionForGroupRequest::getGroupId, (req, v) -> {
req.setGroupId(v);
})
);
builder.withRequestField("role_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneCheckProjectPermissionForGroupRequest::getRoleId, (req, v) -> {
req.setRoleId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneCheckUserInGroup = genForkeystoneCheckUserInGroup();
private static HttpRequestDef genForkeystoneCheckUserInGroup() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.HEAD, KeystoneCheckUserInGroupRequest.class, KeystoneCheckUserInGroupResponse.class)
.withName("KeystoneCheckUserInGroup")
.withUri("/v3/groups/{group_id}/users/{user_id}")
.withContentType("application/json");
// requests
builder.withRequestField("group_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneCheckUserInGroupRequest::getGroupId, (req, v) -> {
req.setGroupId(v);
})
);
builder.withRequestField("user_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneCheckUserInGroupRequest::getUserId, (req, v) -> {
req.setUserId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneCheckroleForGroup = genForkeystoneCheckroleForGroup();
private static HttpRequestDef genForkeystoneCheckroleForGroup() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.HEAD, KeystoneCheckroleForGroupRequest.class, KeystoneCheckroleForGroupResponse.class)
.withName("KeystoneCheckroleForGroup")
.withUri("/v3/OS-INHERIT/domains/{domain_id}/groups/{group_id}/roles/{role_id}/inherited_to_projects")
.withContentType("application/json");
// requests
builder.withRequestField("domain_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneCheckroleForGroupRequest::getDomainId, (req, v) -> {
req.setDomainId(v);
})
);
builder.withRequestField("group_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneCheckroleForGroupRequest::getGroupId, (req, v) -> {
req.setGroupId(v);
})
);
builder.withRequestField("role_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneCheckroleForGroupRequest::getRoleId, (req, v) -> {
req.setRoleId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneCreateGroup = genForkeystoneCreateGroup();
private static HttpRequestDef genForkeystoneCreateGroup() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.POST, KeystoneCreateGroupRequest.class, KeystoneCreateGroupResponse.class)
.withName("KeystoneCreateGroup")
.withUri("/v3/groups")
.withContentType("application/json;charset=UTF-8");
// requests
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
KeystoneCreateGroupRequestBody.class,
f -> f.withMarshaller(KeystoneCreateGroupRequest::getBody, (req, v) -> {
req.setBody(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneCreateIdentityProvider = genForkeystoneCreateIdentityProvider();
private static HttpRequestDef genForkeystoneCreateIdentityProvider() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.PUT, KeystoneCreateIdentityProviderRequest.class, KeystoneCreateIdentityProviderResponse.class)
.withName("KeystoneCreateIdentityProvider")
.withUri("/v3/OS-FEDERATION/identity_providers/{id}")
.withContentType("application/json;charset=UTF-8");
// requests
builder.withRequestField("id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneCreateIdentityProviderRequest::getId, (req, v) -> {
req.setId(v);
})
);
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
KeystoneCreateIdentityProviderRequestBody.class,
f -> f.withMarshaller(KeystoneCreateIdentityProviderRequest::getBody, (req, v) -> {
req.setBody(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneCreateMapping = genForkeystoneCreateMapping();
private static HttpRequestDef genForkeystoneCreateMapping() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.PUT, KeystoneCreateMappingRequest.class, KeystoneCreateMappingResponse.class)
.withName("KeystoneCreateMapping")
.withUri("/v3/OS-FEDERATION/mappings/{id}")
.withContentType("application/json;charset=UTF-8");
// requests
builder.withRequestField("id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneCreateMappingRequest::getId, (req, v) -> {
req.setId(v);
})
);
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
KeystoneCreateMappingRequestBody.class,
f -> f.withMarshaller(KeystoneCreateMappingRequest::getBody, (req, v) -> {
req.setBody(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneCreateProject = genForkeystoneCreateProject();
private static HttpRequestDef genForkeystoneCreateProject() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.POST, KeystoneCreateProjectRequest.class, KeystoneCreateProjectResponse.class)
.withName("KeystoneCreateProject")
.withUri("/v3/projects")
.withContentType("application/json;charset=UTF-8");
// requests
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
KeystoneCreateProjectRequestBody.class,
f -> f.withMarshaller(KeystoneCreateProjectRequest::getBody, (req, v) -> {
req.setBody(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneCreateProtocol = genForkeystoneCreateProtocol();
private static HttpRequestDef genForkeystoneCreateProtocol() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.PUT, KeystoneCreateProtocolRequest.class, KeystoneCreateProtocolResponse.class)
.withName("KeystoneCreateProtocol")
.withUri("/v3/OS-FEDERATION/identity_providers/{idp_id}/protocols/{protocol_id}")
.withContentType("application/json;charset=UTF-8");
// requests
builder.withRequestField("idp_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneCreateProtocolRequest::getIdpId, (req, v) -> {
req.setIdpId(v);
})
);
builder.withRequestField("protocol_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneCreateProtocolRequest::getProtocolId, (req, v) -> {
req.setProtocolId(v);
})
);
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
KeystoneCreateProtocolRequestBody.class,
f -> f.withMarshaller(KeystoneCreateProtocolRequest::getBody, (req, v) -> {
req.setBody(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneCreateScopedToken = genForkeystoneCreateScopedToken();
private static HttpRequestDef genForkeystoneCreateScopedToken() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.POST, KeystoneCreateScopedTokenRequest.class, KeystoneCreateScopedTokenResponse.class)
.withName("KeystoneCreateScopedToken")
.withUri("/v3/auth/tokens")
.withContentType("application/json;charset=UTF-8");
// requests
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
KeystoneCreateScopedTokenRequestBody.class,
f -> f.withMarshaller(KeystoneCreateScopedTokenRequest::getBody, (req, v) -> {
req.setBody(v);
})
);
// response
builder.withResponseField(
"X-Subject-Token",
LocationType.Header,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(
KeystoneCreateScopedTokenResponse::getXSubjectToken,
KeystoneCreateScopedTokenResponse::setXSubjectToken)
);
return builder.build();
}
public static final HttpRequestDef keystoneDeleteGroup = genForkeystoneDeleteGroup();
private static HttpRequestDef genForkeystoneDeleteGroup() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.DELETE, KeystoneDeleteGroupRequest.class, KeystoneDeleteGroupResponse.class)
.withName("KeystoneDeleteGroup")
.withUri("/v3/groups/{group_id}")
.withContentType("application/json");
// requests
builder.withRequestField("group_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneDeleteGroupRequest::getGroupId, (req, v) -> {
req.setGroupId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneDeleteIdentityProvider = genForkeystoneDeleteIdentityProvider();
private static HttpRequestDef genForkeystoneDeleteIdentityProvider() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.DELETE, KeystoneDeleteIdentityProviderRequest.class, KeystoneDeleteIdentityProviderResponse.class)
.withName("KeystoneDeleteIdentityProvider")
.withUri("/v3/OS-FEDERATION/identity_providers/{id}")
.withContentType("application/json");
// requests
builder.withRequestField("id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneDeleteIdentityProviderRequest::getId, (req, v) -> {
req.setId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneDeleteMapping = genForkeystoneDeleteMapping();
private static HttpRequestDef genForkeystoneDeleteMapping() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.DELETE, KeystoneDeleteMappingRequest.class, KeystoneDeleteMappingResponse.class)
.withName("KeystoneDeleteMapping")
.withUri("/v3/OS-FEDERATION/mappings/{id}")
.withContentType("application/json");
// requests
builder.withRequestField("id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneDeleteMappingRequest::getId, (req, v) -> {
req.setId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneDeleteProtocol = genForkeystoneDeleteProtocol();
private static HttpRequestDef genForkeystoneDeleteProtocol() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.DELETE, KeystoneDeleteProtocolRequest.class, KeystoneDeleteProtocolResponse.class)
.withName("KeystoneDeleteProtocol")
.withUri("/v3/OS-FEDERATION/identity_providers/{idp_id}/protocols/{protocol_id}")
.withContentType("application/json");
// requests
builder.withRequestField("idp_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneDeleteProtocolRequest::getIdpId, (req, v) -> {
req.setIdpId(v);
})
);
builder.withRequestField("protocol_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneDeleteProtocolRequest::getProtocolId, (req, v) -> {
req.setProtocolId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneListAllProjectPermissionsForGroup = genForkeystoneListAllProjectPermissionsForGroup();
private static HttpRequestDef genForkeystoneListAllProjectPermissionsForGroup() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, KeystoneListAllProjectPermissionsForGroupRequest.class, KeystoneListAllProjectPermissionsForGroupResponse.class)
.withName("KeystoneListAllProjectPermissionsForGroup")
.withUri("/v3/OS-INHERIT/domains/{domain_id}/groups/{group_id}/roles/inherited_to_projects")
.withContentType("application/json");
// requests
builder.withRequestField("domain_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneListAllProjectPermissionsForGroupRequest::getDomainId, (req, v) -> {
req.setDomainId(v);
})
);
builder.withRequestField("group_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneListAllProjectPermissionsForGroupRequest::getGroupId, (req, v) -> {
req.setGroupId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneListAuthDomains = genForkeystoneListAuthDomains();
private static HttpRequestDef genForkeystoneListAuthDomains() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, KeystoneListAuthDomainsRequest.class, KeystoneListAuthDomainsResponse.class)
.withName("KeystoneListAuthDomains")
.withUri("/v3/auth/domains")
.withContentType("application/json");
// requests
// response
return builder.build();
}
public static final HttpRequestDef keystoneListAuthProjects = genForkeystoneListAuthProjects();
private static HttpRequestDef genForkeystoneListAuthProjects() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, KeystoneListAuthProjectsRequest.class, KeystoneListAuthProjectsResponse.class)
.withName("KeystoneListAuthProjects")
.withUri("/v3/auth/projects")
.withContentType("application/json");
// requests
// response
return builder.build();
}
public static final HttpRequestDef keystoneListDomainPermissionsForGroup = genForkeystoneListDomainPermissionsForGroup();
private static HttpRequestDef genForkeystoneListDomainPermissionsForGroup() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, KeystoneListDomainPermissionsForGroupRequest.class, KeystoneListDomainPermissionsForGroupResponse.class)
.withName("KeystoneListDomainPermissionsForGroup")
.withUri("/v3/domains/{domain_id}/groups/{group_id}/roles")
.withContentType("application/json");
// requests
builder.withRequestField("domain_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneListDomainPermissionsForGroupRequest::getDomainId, (req, v) -> {
req.setDomainId(v);
})
);
builder.withRequestField("group_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneListDomainPermissionsForGroupRequest::getGroupId, (req, v) -> {
req.setGroupId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneListEndpoints = genForkeystoneListEndpoints();
private static HttpRequestDef genForkeystoneListEndpoints() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, KeystoneListEndpointsRequest.class, KeystoneListEndpointsResponse.class)
.withName("KeystoneListEndpoints")
.withUri("/v3/endpoints")
.withContentType("application/json");
// requests
builder.withRequestField("interface",
LocationType.Query,
FieldExistence.NULL_IGNORE,
KeystoneListEndpointsRequest.InterfaceEnum.class,
f -> f.withMarshaller(KeystoneListEndpointsRequest::getInterface, (req, v) -> {
req.setInterface(v);
})
);
builder.withRequestField("service_id",
LocationType.Query,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(KeystoneListEndpointsRequest::getServiceId, (req, v) -> {
req.setServiceId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneListGroups = genForkeystoneListGroups();
private static HttpRequestDef genForkeystoneListGroups() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, KeystoneListGroupsRequest.class, KeystoneListGroupsResponse.class)
.withName("KeystoneListGroups")
.withUri("/v3/groups")
.withContentType("application/json");
// requests
builder.withRequestField("domain_id",
LocationType.Query,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(KeystoneListGroupsRequest::getDomainId, (req, v) -> {
req.setDomainId(v);
})
);
builder.withRequestField("name",
LocationType.Query,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(KeystoneListGroupsRequest::getName, (req, v) -> {
req.setName(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneListIdentityProviders = genForkeystoneListIdentityProviders();
private static HttpRequestDef genForkeystoneListIdentityProviders() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, KeystoneListIdentityProvidersRequest.class, KeystoneListIdentityProvidersResponse.class)
.withName("KeystoneListIdentityProviders")
.withUri("/v3/OS-FEDERATION/identity_providers")
.withContentType("application/json");
// requests
// response
return builder.build();
}
public static final HttpRequestDef keystoneListMappings = genForkeystoneListMappings();
private static HttpRequestDef genForkeystoneListMappings() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, KeystoneListMappingsRequest.class, KeystoneListMappingsResponse.class)
.withName("KeystoneListMappings")
.withUri("/v3/OS-FEDERATION/mappings")
.withContentType("application/json");
// requests
// response
return builder.build();
}
public static final HttpRequestDef keystoneListPermissions = genForkeystoneListPermissions();
private static HttpRequestDef genForkeystoneListPermissions() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, KeystoneListPermissionsRequest.class, KeystoneListPermissionsResponse.class)
.withName("KeystoneListPermissions")
.withUri("/v3/roles")
.withContentType("application/json");
// requests
builder.withRequestField("name",
LocationType.Query,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(KeystoneListPermissionsRequest::getName, (req, v) -> {
req.setName(v);
})
);
builder.withRequestField("domain_id",
LocationType.Query,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(KeystoneListPermissionsRequest::getDomainId, (req, v) -> {
req.setDomainId(v);
})
);
builder.withRequestField("page",
LocationType.Query,
FieldExistence.NULL_IGNORE,
Integer.class,
f -> f.withMarshaller(KeystoneListPermissionsRequest::getPage, (req, v) -> {
req.setPage(v);
})
);
builder.withRequestField("per_page",
LocationType.Query,
FieldExistence.NULL_IGNORE,
Integer.class,
f -> f.withMarshaller(KeystoneListPermissionsRequest::getPerPage, (req, v) -> {
req.setPerPage(v);
})
);
builder.withRequestField("permission_type",
LocationType.Query,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(KeystoneListPermissionsRequest::getPermissionType, (req, v) -> {
req.setPermissionType(v);
})
);
builder.withRequestField("display_name",
LocationType.Query,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(KeystoneListPermissionsRequest::getDisplayName, (req, v) -> {
req.setDisplayName(v);
})
);
builder.withRequestField("type",
LocationType.Query,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(KeystoneListPermissionsRequest::getType, (req, v) -> {
req.setType(v);
})
);
builder.withRequestField("catalog",
LocationType.Query,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(KeystoneListPermissionsRequest::getCatalog, (req, v) -> {
req.setCatalog(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneListProjectPermissionsForGroup = genForkeystoneListProjectPermissionsForGroup();
private static HttpRequestDef genForkeystoneListProjectPermissionsForGroup() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, KeystoneListProjectPermissionsForGroupRequest.class, KeystoneListProjectPermissionsForGroupResponse.class)
.withName("KeystoneListProjectPermissionsForGroup")
.withUri("/v3/projects/{project_id}/groups/{group_id}/roles")
.withContentType("application/json");
// requests
builder.withRequestField("project_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneListProjectPermissionsForGroupRequest::getProjectId, (req, v) -> {
req.setProjectId(v);
})
);
builder.withRequestField("group_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneListProjectPermissionsForGroupRequest::getGroupId, (req, v) -> {
req.setGroupId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneListProjects = genForkeystoneListProjects();
private static HttpRequestDef genForkeystoneListProjects() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, KeystoneListProjectsRequest.class, KeystoneListProjectsResponse.class)
.withName("KeystoneListProjects")
.withUri("/v3/projects")
.withContentType("application/json");
// requests
builder.withRequestField("domain_id",
LocationType.Query,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(KeystoneListProjectsRequest::getDomainId, (req, v) -> {
req.setDomainId(v);
})
);
builder.withRequestField("name",
LocationType.Query,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(KeystoneListProjectsRequest::getName, (req, v) -> {
req.setName(v);
})
);
builder.withRequestField("parent_id",
LocationType.Query,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(KeystoneListProjectsRequest::getParentId, (req, v) -> {
req.setParentId(v);
})
);
builder.withRequestField("enabled",
LocationType.Query,
FieldExistence.NULL_IGNORE,
Boolean.class,
f -> f.withMarshaller(KeystoneListProjectsRequest::getEnabled, (req, v) -> {
req.setEnabled(v);
})
);
builder.withRequestField("is_domain",
LocationType.Query,
FieldExistence.NULL_IGNORE,
Boolean.class,
f -> f.withMarshaller(KeystoneListProjectsRequest::getIsDomain, (req, v) -> {
req.setIsDomain(v);
})
);
builder.withRequestField("page",
LocationType.Query,
FieldExistence.NULL_IGNORE,
Integer.class,
f -> f.withMarshaller(KeystoneListProjectsRequest::getPage, (req, v) -> {
req.setPage(v);
})
);
builder.withRequestField("per_page",
LocationType.Query,
FieldExistence.NULL_IGNORE,
Integer.class,
f -> f.withMarshaller(KeystoneListProjectsRequest::getPerPage, (req, v) -> {
req.setPerPage(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneListProjectsForUser = genForkeystoneListProjectsForUser();
private static HttpRequestDef genForkeystoneListProjectsForUser() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, KeystoneListProjectsForUserRequest.class, KeystoneListProjectsForUserResponse.class)
.withName("KeystoneListProjectsForUser")
.withUri("/v3/users/{user_id}/projects")
.withContentType("application/json");
// requests
builder.withRequestField("user_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneListProjectsForUserRequest::getUserId, (req, v) -> {
req.setUserId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneListProtocols = genForkeystoneListProtocols();
private static HttpRequestDef genForkeystoneListProtocols() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, KeystoneListProtocolsRequest.class, KeystoneListProtocolsResponse.class)
.withName("KeystoneListProtocols")
.withUri("/v3/OS-FEDERATION/identity_providers/{idp_id}/protocols")
.withContentType("application/json");
// requests
builder.withRequestField("idp_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneListProtocolsRequest::getIdpId, (req, v) -> {
req.setIdpId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneListRegions = genForkeystoneListRegions();
private static HttpRequestDef genForkeystoneListRegions() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, KeystoneListRegionsRequest.class, KeystoneListRegionsResponse.class)
.withName("KeystoneListRegions")
.withUri("/v3/regions")
.withContentType("application/json");
// requests
// response
return builder.build();
}
public static final HttpRequestDef keystoneListServices = genForkeystoneListServices();
private static HttpRequestDef genForkeystoneListServices() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, KeystoneListServicesRequest.class, KeystoneListServicesResponse.class)
.withName("KeystoneListServices")
.withUri("/v3/services")
.withContentType("application/json");
// requests
builder.withRequestField("type",
LocationType.Query,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(KeystoneListServicesRequest::getType, (req, v) -> {
req.setType(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneListUsersForGroupByAdmin = genForkeystoneListUsersForGroupByAdmin();
private static HttpRequestDef genForkeystoneListUsersForGroupByAdmin() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, KeystoneListUsersForGroupByAdminRequest.class, KeystoneListUsersForGroupByAdminResponse.class)
.withName("KeystoneListUsersForGroupByAdmin")
.withUri("/v3/groups/{group_id}/users")
.withContentType("application/json");
// requests
builder.withRequestField("group_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneListUsersForGroupByAdminRequest::getGroupId, (req, v) -> {
req.setGroupId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneListVersions = genForkeystoneListVersions();
private static HttpRequestDef genForkeystoneListVersions() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, KeystoneListVersionsRequest.class, KeystoneListVersionsResponse.class)
.withName("KeystoneListVersions")
.withUri("/")
.withContentType("application/json");
// requests
// response
return builder.build();
}
public static final HttpRequestDef keystoneRemoveDomainPermissionFromGroup = genForkeystoneRemoveDomainPermissionFromGroup();
private static HttpRequestDef genForkeystoneRemoveDomainPermissionFromGroup() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.DELETE, KeystoneRemoveDomainPermissionFromGroupRequest.class, KeystoneRemoveDomainPermissionFromGroupResponse.class)
.withName("KeystoneRemoveDomainPermissionFromGroup")
.withUri("/v3/domains/{domain_id}/groups/{group_id}/roles/{role_id}")
.withContentType("application/json");
// requests
builder.withRequestField("domain_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneRemoveDomainPermissionFromGroupRequest::getDomainId, (req, v) -> {
req.setDomainId(v);
})
);
builder.withRequestField("group_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneRemoveDomainPermissionFromGroupRequest::getGroupId, (req, v) -> {
req.setGroupId(v);
})
);
builder.withRequestField("role_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneRemoveDomainPermissionFromGroupRequest::getRoleId, (req, v) -> {
req.setRoleId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneRemoveProjectPermissionFromGroup = genForkeystoneRemoveProjectPermissionFromGroup();
private static HttpRequestDef genForkeystoneRemoveProjectPermissionFromGroup() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.DELETE, KeystoneRemoveProjectPermissionFromGroupRequest.class, KeystoneRemoveProjectPermissionFromGroupResponse.class)
.withName("KeystoneRemoveProjectPermissionFromGroup")
.withUri("/v3/projects/{project_id}/groups/{group_id}/roles/{role_id}")
.withContentType("application/json");
// requests
builder.withRequestField("project_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneRemoveProjectPermissionFromGroupRequest::getProjectId, (req, v) -> {
req.setProjectId(v);
})
);
builder.withRequestField("group_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneRemoveProjectPermissionFromGroupRequest::getGroupId, (req, v) -> {
req.setGroupId(v);
})
);
builder.withRequestField("role_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneRemoveProjectPermissionFromGroupRequest::getRoleId, (req, v) -> {
req.setRoleId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneRemoveUserFromGroup = genForkeystoneRemoveUserFromGroup();
private static HttpRequestDef genForkeystoneRemoveUserFromGroup() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.DELETE, KeystoneRemoveUserFromGroupRequest.class, KeystoneRemoveUserFromGroupResponse.class)
.withName("KeystoneRemoveUserFromGroup")
.withUri("/v3/groups/{group_id}/users/{user_id}")
.withContentType("application/json");
// requests
builder.withRequestField("group_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneRemoveUserFromGroupRequest::getGroupId, (req, v) -> {
req.setGroupId(v);
})
);
builder.withRequestField("user_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneRemoveUserFromGroupRequest::getUserId, (req, v) -> {
req.setUserId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneShowCatalog = genForkeystoneShowCatalog();
private static HttpRequestDef genForkeystoneShowCatalog() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, KeystoneShowCatalogRequest.class, KeystoneShowCatalogResponse.class)
.withName("KeystoneShowCatalog")
.withUri("/v3/auth/catalog")
.withContentType("application/json");
// requests
// response
return builder.build();
}
public static final HttpRequestDef keystoneShowEndpoint = genForkeystoneShowEndpoint();
private static HttpRequestDef genForkeystoneShowEndpoint() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, KeystoneShowEndpointRequest.class, KeystoneShowEndpointResponse.class)
.withName("KeystoneShowEndpoint")
.withUri("/v3/endpoints/{endpoint_id}")
.withContentType("application/json");
// requests
builder.withRequestField("endpoint_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneShowEndpointRequest::getEndpointId, (req, v) -> {
req.setEndpointId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneShowGroup = genForkeystoneShowGroup();
private static HttpRequestDef genForkeystoneShowGroup() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, KeystoneShowGroupRequest.class, KeystoneShowGroupResponse.class)
.withName("KeystoneShowGroup")
.withUri("/v3/groups/{group_id}")
.withContentType("application/json");
// requests
builder.withRequestField("group_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneShowGroupRequest::getGroupId, (req, v) -> {
req.setGroupId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneShowIdentityProvider = genForkeystoneShowIdentityProvider();
private static HttpRequestDef genForkeystoneShowIdentityProvider() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, KeystoneShowIdentityProviderRequest.class, KeystoneShowIdentityProviderResponse.class)
.withName("KeystoneShowIdentityProvider")
.withUri("/v3/OS-FEDERATION/identity_providers/{id}")
.withContentType("application/json");
// requests
builder.withRequestField("id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneShowIdentityProviderRequest::getId, (req, v) -> {
req.setId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneShowMapping = genForkeystoneShowMapping();
private static HttpRequestDef genForkeystoneShowMapping() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, KeystoneShowMappingRequest.class, KeystoneShowMappingResponse.class)
.withName("KeystoneShowMapping")
.withUri("/v3/OS-FEDERATION/mappings/{id}")
.withContentType("application/json");
// requests
builder.withRequestField("id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneShowMappingRequest::getId, (req, v) -> {
req.setId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneShowPermission = genForkeystoneShowPermission();
private static HttpRequestDef genForkeystoneShowPermission() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, KeystoneShowPermissionRequest.class, KeystoneShowPermissionResponse.class)
.withName("KeystoneShowPermission")
.withUri("/v3/roles/{role_id}")
.withContentType("application/json");
// requests
builder.withRequestField("role_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneShowPermissionRequest::getRoleId, (req, v) -> {
req.setRoleId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneShowProject = genForkeystoneShowProject();
private static HttpRequestDef genForkeystoneShowProject() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, KeystoneShowProjectRequest.class, KeystoneShowProjectResponse.class)
.withName("KeystoneShowProject")
.withUri("/v3/projects/{project_id}")
.withContentType("application/json");
// requests
builder.withRequestField("project_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneShowProjectRequest::getProjectId, (req, v) -> {
req.setProjectId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneShowProtocol = genForkeystoneShowProtocol();
private static HttpRequestDef genForkeystoneShowProtocol() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, KeystoneShowProtocolRequest.class, KeystoneShowProtocolResponse.class)
.withName("KeystoneShowProtocol")
.withUri("/v3/OS-FEDERATION/identity_providers/{idp_id}/protocols/{protocol_id}")
.withContentType("application/json");
// requests
builder.withRequestField("idp_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneShowProtocolRequest::getIdpId, (req, v) -> {
req.setIdpId(v);
})
);
builder.withRequestField("protocol_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneShowProtocolRequest::getProtocolId, (req, v) -> {
req.setProtocolId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneShowRegion = genForkeystoneShowRegion();
private static HttpRequestDef genForkeystoneShowRegion() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, KeystoneShowRegionRequest.class, KeystoneShowRegionResponse.class)
.withName("KeystoneShowRegion")
.withUri("/v3/regions/{region_id}")
.withContentType("application/json");
// requests
builder.withRequestField("region_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneShowRegionRequest::getRegionId, (req, v) -> {
req.setRegionId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneShowSecurityCompliance = genForkeystoneShowSecurityCompliance();
private static HttpRequestDef genForkeystoneShowSecurityCompliance() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, KeystoneShowSecurityComplianceRequest.class, KeystoneShowSecurityComplianceResponse.class)
.withName("KeystoneShowSecurityCompliance")
.withUri("/v3/domains/{domain_id}/config/security_compliance")
.withContentType("application/json");
// requests
builder.withRequestField("domain_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneShowSecurityComplianceRequest::getDomainId, (req, v) -> {
req.setDomainId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneShowSecurityComplianceByOption = genForkeystoneShowSecurityComplianceByOption();
private static HttpRequestDef genForkeystoneShowSecurityComplianceByOption() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, KeystoneShowSecurityComplianceByOptionRequest.class, KeystoneShowSecurityComplianceByOptionResponse.class)
.withName("KeystoneShowSecurityComplianceByOption")
.withUri("/v3/domains/{domain_id}/config/security_compliance/{option}")
.withContentType("application/json");
// requests
builder.withRequestField("domain_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneShowSecurityComplianceByOptionRequest::getDomainId, (req, v) -> {
req.setDomainId(v);
})
);
builder.withRequestField("option",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
KeystoneShowSecurityComplianceByOptionRequest.OptionEnum.class,
f -> f.withMarshaller(KeystoneShowSecurityComplianceByOptionRequest::getOption, (req, v) -> {
req.setOption(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneShowService = genForkeystoneShowService();
private static HttpRequestDef genForkeystoneShowService() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, KeystoneShowServiceRequest.class, KeystoneShowServiceResponse.class)
.withName("KeystoneShowService")
.withUri("/v3/services/{service_id}")
.withContentType("application/json");
// requests
builder.withRequestField("service_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneShowServiceRequest::getServiceId, (req, v) -> {
req.setServiceId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneShowVersion = genForkeystoneShowVersion();
private static HttpRequestDef genForkeystoneShowVersion() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, KeystoneShowVersionRequest.class, KeystoneShowVersionResponse.class)
.withName("KeystoneShowVersion")
.withUri("/v3")
.withContentType("application/json");
// requests
// response
return builder.build();
}
public static final HttpRequestDef keystoneUpdateGroup = genForkeystoneUpdateGroup();
private static HttpRequestDef genForkeystoneUpdateGroup() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.PATCH, KeystoneUpdateGroupRequest.class, KeystoneUpdateGroupResponse.class)
.withName("KeystoneUpdateGroup")
.withUri("/v3/groups/{group_id}")
.withContentType("application/json;charset=UTF-8");
// requests
builder.withRequestField("group_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneUpdateGroupRequest::getGroupId, (req, v) -> {
req.setGroupId(v);
})
);
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
KeystoneUpdateGroupRequestBody.class,
f -> f.withMarshaller(KeystoneUpdateGroupRequest::getBody, (req, v) -> {
req.setBody(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneUpdateIdentityProvider = genForkeystoneUpdateIdentityProvider();
private static HttpRequestDef genForkeystoneUpdateIdentityProvider() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.PATCH, KeystoneUpdateIdentityProviderRequest.class, KeystoneUpdateIdentityProviderResponse.class)
.withName("KeystoneUpdateIdentityProvider")
.withUri("/v3/OS-FEDERATION/identity_providers/{id}")
.withContentType("application/json;charset=UTF-8");
// requests
builder.withRequestField("id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneUpdateIdentityProviderRequest::getId, (req, v) -> {
req.setId(v);
})
);
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
KeystoneUpdateIdentityProviderRequestBody.class,
f -> f.withMarshaller(KeystoneUpdateIdentityProviderRequest::getBody, (req, v) -> {
req.setBody(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneUpdateMapping = genForkeystoneUpdateMapping();
private static HttpRequestDef genForkeystoneUpdateMapping() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.PATCH, KeystoneUpdateMappingRequest.class, KeystoneUpdateMappingResponse.class)
.withName("KeystoneUpdateMapping")
.withUri("/v3/OS-FEDERATION/mappings/{id}")
.withContentType("application/json;charset=UTF-8");
// requests
builder.withRequestField("id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneUpdateMappingRequest::getId, (req, v) -> {
req.setId(v);
})
);
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
KeystoneUpdateMappingRequestBody.class,
f -> f.withMarshaller(KeystoneUpdateMappingRequest::getBody, (req, v) -> {
req.setBody(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneUpdateProject = genForkeystoneUpdateProject();
private static HttpRequestDef genForkeystoneUpdateProject() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.PATCH, KeystoneUpdateProjectRequest.class, KeystoneUpdateProjectResponse.class)
.withName("KeystoneUpdateProject")
.withUri("/v3/projects/{project_id}")
.withContentType("application/json;charset=UTF-8");
// requests
builder.withRequestField("project_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneUpdateProjectRequest::getProjectId, (req, v) -> {
req.setProjectId(v);
})
);
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
KeystoneUpdateProjectRequestBody.class,
f -> f.withMarshaller(KeystoneUpdateProjectRequest::getBody, (req, v) -> {
req.setBody(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef keystoneUpdateProtocol = genForkeystoneUpdateProtocol();
private static HttpRequestDef genForkeystoneUpdateProtocol() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.PATCH, KeystoneUpdateProtocolRequest.class, KeystoneUpdateProtocolResponse.class)
.withName("KeystoneUpdateProtocol")
.withUri("/v3/OS-FEDERATION/identity_providers/{idp_id}/protocols/{protocol_id}")
.withContentType("application/json;charset=UTF-8");
// requests
builder.withRequestField("idp_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneUpdateProtocolRequest::getIdpId, (req, v) -> {
req.setIdpId(v);
})
);
builder.withRequestField("protocol_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(KeystoneUpdateProtocolRequest::getProtocolId, (req, v) -> {
req.setProtocolId(v);
})
);
builder.withRequestField("body",
LocationType.Body,
FieldExistence.NON_NULL_NON_EMPTY,
KeystoneUpdateProtocolRequestBody.class,
f -> f.withMarshaller(KeystoneUpdateProtocolRequest::getBody, (req, v) -> {
req.setBody(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef listAgencies = genForlistAgencies();
private static HttpRequestDef genForlistAgencies() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, ListAgenciesRequest.class, ListAgenciesResponse.class)
.withName("ListAgencies")
.withUri("/v3.0/OS-AGENCY/agencies")
.withContentType("application/json");
// requests
builder.withRequestField("domain_id",
LocationType.Query,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(ListAgenciesRequest::getDomainId, (req, v) -> {
req.setDomainId(v);
})
);
builder.withRequestField("trust_domain_id",
LocationType.Query,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(ListAgenciesRequest::getTrustDomainId, (req, v) -> {
req.setTrustDomainId(v);
})
);
builder.withRequestField("name",
LocationType.Query,
FieldExistence.NULL_IGNORE,
String.class,
f -> f.withMarshaller(ListAgenciesRequest::getName, (req, v) -> {
req.setName(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef listAllProjectsPermissionsForAgency = genForlistAllProjectsPermissionsForAgency();
private static HttpRequestDef genForlistAllProjectsPermissionsForAgency() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, ListAllProjectsPermissionsForAgencyRequest.class, ListAllProjectsPermissionsForAgencyResponse.class)
.withName("ListAllProjectsPermissionsForAgency")
.withUri("/v3.0/OS-INHERIT/domains/{domain_id}/agencies/{agency_id}/roles/inherited_to_projects")
.withContentType("application/json");
// requests
builder.withRequestField("agency_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(ListAllProjectsPermissionsForAgencyRequest::getAgencyId, (req, v) -> {
req.setAgencyId(v);
})
);
builder.withRequestField("domain_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(ListAllProjectsPermissionsForAgencyRequest::getDomainId, (req, v) -> {
req.setDomainId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef listCustomPolicies = genForlistCustomPolicies();
private static HttpRequestDef genForlistCustomPolicies() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, ListCustomPoliciesRequest.class, ListCustomPoliciesResponse.class)
.withName("ListCustomPolicies")
.withUri("/v3.0/OS-ROLE/roles")
.withContentType("application/json");
// requests
builder.withRequestField("page",
LocationType.Query,
FieldExistence.NULL_IGNORE,
Integer.class,
f -> f.withMarshaller(ListCustomPoliciesRequest::getPage, (req, v) -> {
req.setPage(v);
})
);
builder.withRequestField("per_page",
LocationType.Query,
FieldExistence.NULL_IGNORE,
Integer.class,
f -> f.withMarshaller(ListCustomPoliciesRequest::getPerPage, (req, v) -> {
req.setPerPage(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef listDomainPermissionsForAgency = genForlistDomainPermissionsForAgency();
private static HttpRequestDef genForlistDomainPermissionsForAgency() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, ListDomainPermissionsForAgencyRequest.class, ListDomainPermissionsForAgencyResponse.class)
.withName("ListDomainPermissionsForAgency")
.withUri("/v3.0/OS-AGENCY/domains/{domain_id}/agencies/{agency_id}/roles")
.withContentType("application/json");
// requests
builder.withRequestField("domain_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(ListDomainPermissionsForAgencyRequest::getDomainId, (req, v) -> {
req.setDomainId(v);
})
);
builder.withRequestField("agency_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(ListDomainPermissionsForAgencyRequest::getAgencyId, (req, v) -> {
req.setAgencyId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef listProjectPermissionsForAgency = genForlistProjectPermissionsForAgency();
private static HttpRequestDef genForlistProjectPermissionsForAgency() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, ListProjectPermissionsForAgencyRequest.class, ListProjectPermissionsForAgencyResponse.class)
.withName("ListProjectPermissionsForAgency")
.withUri("/v3.0/OS-AGENCY/projects/{project_id}/agencies/{agency_id}/roles")
.withContentType("application/json");
// requests
builder.withRequestField("project_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(ListProjectPermissionsForAgencyRequest::getProjectId, (req, v) -> {
req.setProjectId(v);
})
);
builder.withRequestField("agency_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(ListProjectPermissionsForAgencyRequest::getAgencyId, (req, v) -> {
req.setAgencyId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef removeAllProjectsPermissionFromAgency = genForremoveAllProjectsPermissionFromAgency();
private static HttpRequestDef genForremoveAllProjectsPermissionFromAgency() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.DELETE, RemoveAllProjectsPermissionFromAgencyRequest.class, RemoveAllProjectsPermissionFromAgencyResponse.class)
.withName("RemoveAllProjectsPermissionFromAgency")
.withUri("/v3.0/OS-INHERIT/domains/{domain_id}/agencies/{agency_id}/roles/{role_id}/inherited_to_projects")
.withContentType("application/json");
// requests
builder.withRequestField("agency_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(RemoveAllProjectsPermissionFromAgencyRequest::getAgencyId, (req, v) -> {
req.setAgencyId(v);
})
);
builder.withRequestField("domain_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(RemoveAllProjectsPermissionFromAgencyRequest::getDomainId, (req, v) -> {
req.setDomainId(v);
})
);
builder.withRequestField("role_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(RemoveAllProjectsPermissionFromAgencyRequest::getRoleId, (req, v) -> {
req.setRoleId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef removeDomainPermissionFromAgency = genForremoveDomainPermissionFromAgency();
private static HttpRequestDef genForremoveDomainPermissionFromAgency() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.DELETE, RemoveDomainPermissionFromAgencyRequest.class, RemoveDomainPermissionFromAgencyResponse.class)
.withName("RemoveDomainPermissionFromAgency")
.withUri("/v3.0/OS-AGENCY/domains/{domain_id}/agencies/{agency_id}/roles/{role_id}")
.withContentType("application/json");
// requests
builder.withRequestField("domain_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(RemoveDomainPermissionFromAgencyRequest::getDomainId, (req, v) -> {
req.setDomainId(v);
})
);
builder.withRequestField("agency_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(RemoveDomainPermissionFromAgencyRequest::getAgencyId, (req, v) -> {
req.setAgencyId(v);
})
);
builder.withRequestField("role_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(RemoveDomainPermissionFromAgencyRequest::getRoleId, (req, v) -> {
req.setRoleId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef removeProjectPermissionFromAgency = genForremoveProjectPermissionFromAgency();
private static HttpRequestDef genForremoveProjectPermissionFromAgency() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.DELETE, RemoveProjectPermissionFromAgencyRequest.class, RemoveProjectPermissionFromAgencyResponse.class)
.withName("RemoveProjectPermissionFromAgency")
.withUri("/v3.0/OS-AGENCY/projects/{project_id}/agencies/{agency_id}/roles/{role_id}")
.withContentType("application/json");
// requests
builder.withRequestField("project_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(RemoveProjectPermissionFromAgencyRequest::getProjectId, (req, v) -> {
req.setProjectId(v);
})
);
builder.withRequestField("agency_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(RemoveProjectPermissionFromAgencyRequest::getAgencyId, (req, v) -> {
req.setAgencyId(v);
})
);
builder.withRequestField("role_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(RemoveProjectPermissionFromAgencyRequest::getRoleId, (req, v) -> {
req.setRoleId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef showAgency = genForshowAgency();
private static HttpRequestDef genForshowAgency() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, ShowAgencyRequest.class, ShowAgencyResponse.class)
.withName("ShowAgency")
.withUri("/v3.0/OS-AGENCY/agencies/{agency_id}")
.withContentType("application/json");
// requests
builder.withRequestField("agency_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(ShowAgencyRequest::getAgencyId, (req, v) -> {
req.setAgencyId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef showCustomPolicy = genForshowCustomPolicy();
private static HttpRequestDef genForshowCustomPolicy() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, ShowCustomPolicyRequest.class, ShowCustomPolicyResponse.class)
.withName("ShowCustomPolicy")
.withUri("/v3.0/OS-ROLE/roles/{role_id}")
.withContentType("application/json");
// requests
builder.withRequestField("role_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(ShowCustomPolicyRequest::getRoleId, (req, v) -> {
req.setRoleId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef showDomainApiAclPolicy = genForshowDomainApiAclPolicy();
private static HttpRequestDef genForshowDomainApiAclPolicy() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, ShowDomainApiAclPolicyRequest.class, ShowDomainApiAclPolicyResponse.class)
.withName("ShowDomainApiAclPolicy")
.withUri("/v3.0/OS-SECURITYPOLICY/domains/{domain_id}/api-acl-policy")
.withContentType("application/json");
// requests
builder.withRequestField("domain_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(ShowDomainApiAclPolicyRequest::getDomainId, (req, v) -> {
req.setDomainId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef showDomainConsoleAclPolicy = genForshowDomainConsoleAclPolicy();
private static HttpRequestDef genForshowDomainConsoleAclPolicy() {
// basic
HttpRequestDef.Builder builder =
HttpRequestDef.builder(HttpMethod.GET, ShowDomainConsoleAclPolicyRequest.class, ShowDomainConsoleAclPolicyResponse.class)
.withName("ShowDomainConsoleAclPolicy")
.withUri("/v3.0/OS-SECURITYPOLICY/domains/{domain_id}/console-acl-policy")
.withContentType("application/json");
// requests
builder.withRequestField("domain_id",
LocationType.Path,
FieldExistence.NON_NULL_NON_EMPTY,
String.class,
f -> f.withMarshaller(ShowDomainConsoleAclPolicyRequest::getDomainId, (req, v) -> {
req.setDomainId(v);
})
);
// response
return builder.build();
}
public static final HttpRequestDef showDomainLoginPolicy = genForshowDomainLoginPolicy();
private static HttpRequestDef genForshowDomainLoginPolicy() {
// basic
HttpRequestDef.Builder