Skip to content

Commit

Permalink
CreateApplication api, add configuration of required scopes.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Dec 13, 2023
1 parent 675fb78 commit 495035c
Show file tree
Hide file tree
Showing 84 changed files with 201 additions and 78 deletions.
6 changes: 6 additions & 0 deletions aliyun-java-sdk-ims/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2023-12-13 Version: 3.3.7
- CreateApplication api, add configuration of required scopes.
- UpdateApplication api, add configuration of required scopes.
- GetApplication api, add configuration of required scopes.
- ListApplications api, add configuration of required scopes.

2023-08-11 Version: 3.3.6
- GetOIDCProvider api, add configuration of issuance limit time.
- ListOIDCProviders api, add configuration of issuance limit time.
Expand Down
7 changes: 3 additions & 4 deletions aliyun-java-sdk-ims/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-ims</artifactId>
<packaging>jar</packaging>
<version>3.3.6</version>
<version>3.3.7</version>
<name>aliyun-java-sdk-ims</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Expand All @@ -27,7 +27,7 @@ http://www.aliyun.com</description>
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-core</artifactId>
<optional>true</optional>
<version>[4.4.9,5.0.0)</version>
<version>[4.3.2,5.0.0)</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
Expand Down Expand Up @@ -83,10 +83,9 @@ http://www.aliyun.com</description>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.1.0</version>
<version>2.8</version>
<configuration>
<encoding>UTF-8</encoding>
<doclint>none</doclint>
</configuration>
</plugin>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class AddClientIdToOIDCProviderRequest extends RpcAcsRequest<AddClientIdT

private String oIDCProviderName;
public AddClientIdToOIDCProviderRequest() {
super("Ims", "2019-08-15", "AddClientIdToOIDCProvider");
super("Ims", "2019-08-15", "AddClientIdToOIDCProvider", "ims");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class AddFingerprintToOIDCProviderRequest extends RpcAcsRequest<AddFinger

private String fingerprint;
public AddFingerprintToOIDCProviderRequest() {
super("Ims", "2019-08-15", "AddFingerprintToOIDCProvider");
super("Ims", "2019-08-15", "AddFingerprintToOIDCProvider", "ims");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class AddUserToGroupRequest extends RpcAcsRequest<AddUserToGroupResponse>

private String userPrincipalName;
public AddUserToGroupRequest() {
super("Ims", "2019-08-15", "AddUserToGroup");
super("Ims", "2019-08-15", "AddUserToGroup", "ims");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class BindMFADeviceRequest extends RpcAcsRequest<BindMFADeviceResponse> {

private String userPrincipalName;
public BindMFADeviceRequest() {
super("Ims", "2019-08-15", "BindMFADevice");
super("Ims", "2019-08-15", "BindMFADevice", "ims");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class ChangePasswordRequest extends RpcAcsRequest<ChangePasswordResponse>

private String newPassword;
public ChangePasswordRequest() {
super("Ims", "2019-08-15", "ChangePassword");
super("Ims", "2019-08-15", "ChangePassword", "ims");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class CreateAccessKeyRequest extends RpcAcsRequest<CreateAccessKeyRespons

private String userPrincipalName;
public CreateAccessKeyRequest() {
super("Ims", "2019-08-15", "CreateAccessKey");
super("Ims", "2019-08-15", "CreateAccessKey", "ims");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class CreateAppSecretRequest extends RpcAcsRequest<CreateAppSecretRespons

private String appId;
public CreateAppSecretRequest() {
super("Ims", "2019-08-15", "CreateAppSecret");
super("Ims", "2019-08-15", "CreateAppSecret", "ims");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public class CreateApplicationRequest extends RpcAcsRequest<CreateApplicationRes

private String appName;

private String requiredScopes;

private Integer accessTokenValidity;

private Integer refreshTokenValidity;
Expand All @@ -43,7 +45,7 @@ public class CreateApplicationRequest extends RpcAcsRequest<CreateApplicationRes

private Boolean isMultiTenant;
public CreateApplicationRequest() {
super("Ims", "2019-08-15", "CreateApplication");
super("Ims", "2019-08-15", "CreateApplication", "ims");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand All @@ -62,6 +64,17 @@ public void setAppName(String appName) {
}
}

public String getRequiredScopes() {
return this.requiredScopes;
}

public void setRequiredScopes(String requiredScopes) {
this.requiredScopes = requiredScopes;
if(requiredScopes != null){
putQueryParameter("RequiredScopes", requiredScopes);
}
}

public Integer getAccessTokenValidity() {
return this.accessTokenValidity;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ public static class PredefinedScope {

private String description;

private Boolean required;

private String name;

public String getDescription() {
Expand All @@ -223,6 +225,14 @@ public void setDescription(String description) {
this.description = description;
}

public Boolean getRequired() {
return this.required;
}

public void setRequired(Boolean required) {
this.required = required;
}

public String getName() {
return this.name;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class CreateGroupRequest extends RpcAcsRequest<CreateGroupResponse> {

private String displayName;
public CreateGroupRequest() {
super("Ims", "2019-08-15", "CreateGroup");
super("Ims", "2019-08-15", "CreateGroup", "ims");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class CreateLoginProfileRequest extends RpcAcsRequest<CreateLoginProfileR

private String status;
public CreateLoginProfileRequest() {
super("Ims", "2019-08-15", "CreateLoginProfile");
super("Ims", "2019-08-15", "CreateLoginProfile", "ims");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class CreateOIDCProviderRequest extends RpcAcsRequest<CreateOIDCProviderR

private String fingerprints;
public CreateOIDCProviderRequest() {
super("Ims", "2019-08-15", "CreateOIDCProvider");
super("Ims", "2019-08-15", "CreateOIDCProvider", "ims");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class CreateSAMLProviderRequest extends RpcAcsRequest<CreateSAMLProviderR

private String sAMLProviderName;
public CreateSAMLProviderRequest() {
super("Ims", "2019-08-15", "CreateSAMLProvider");
super("Ims", "2019-08-15", "CreateSAMLProvider", "ims");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class CreateUserRequest extends RpcAcsRequest<CreateUserResponse> {

private String displayName;
public CreateUserRequest() {
super("Ims", "2019-08-15", "CreateUser");
super("Ims", "2019-08-15", "CreateUser", "ims");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class CreateVirtualMFADeviceRequest extends RpcAcsRequest<CreateVirtualMF

private String virtualMFADeviceName;
public CreateVirtualMFADeviceRequest() {
super("Ims", "2019-08-15", "CreateVirtualMFADevice");
super("Ims", "2019-08-15", "CreateVirtualMFADevice", "ims");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class DeleteAccessKeyRequest extends RpcAcsRequest<DeleteAccessKeyRespons

private String userPrincipalName;
public DeleteAccessKeyRequest() {
super("Ims", "2019-08-15", "DeleteAccessKey");
super("Ims", "2019-08-15", "DeleteAccessKey", "ims");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class DeleteAppSecretRequest extends RpcAcsRequest<DeleteAppSecretRespons

private String appId;
public DeleteAppSecretRequest() {
super("Ims", "2019-08-15", "DeleteAppSecret");
super("Ims", "2019-08-15", "DeleteAppSecret", "ims");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class DeleteApplicationRequest extends RpcAcsRequest<DeleteApplicationRes

private String appId;
public DeleteApplicationRequest() {
super("Ims", "2019-08-15", "DeleteApplication");
super("Ims", "2019-08-15", "DeleteApplication", "ims");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class DeleteGroupRequest extends RpcAcsRequest<DeleteGroupResponse> {

private String groupName;
public DeleteGroupRequest() {
super("Ims", "2019-08-15", "DeleteGroup");
super("Ims", "2019-08-15", "DeleteGroup", "ims");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class DeleteLoginProfileRequest extends RpcAcsRequest<DeleteLoginProfileR

private String userPrincipalName;
public DeleteLoginProfileRequest() {
super("Ims", "2019-08-15", "DeleteLoginProfile");
super("Ims", "2019-08-15", "DeleteLoginProfile", "ims");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class DeleteOIDCProviderRequest extends RpcAcsRequest<DeleteOIDCProviderR

private String oIDCProviderName;
public DeleteOIDCProviderRequest() {
super("Ims", "2019-08-15", "DeleteOIDCProvider");
super("Ims", "2019-08-15", "DeleteOIDCProvider", "ims");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class DeleteSAMLProviderRequest extends RpcAcsRequest<DeleteSAMLProviderR

private String sAMLProviderName;
public DeleteSAMLProviderRequest() {
super("Ims", "2019-08-15", "DeleteSAMLProvider");
super("Ims", "2019-08-15", "DeleteSAMLProvider", "ims");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class DeleteUserRequest extends RpcAcsRequest<DeleteUserResponse> {

private String userPrincipalName;
public DeleteUserRequest() {
super("Ims", "2019-08-15", "DeleteUser");
super("Ims", "2019-08-15", "DeleteUser", "ims");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class DeleteVirtualMFADeviceRequest extends RpcAcsRequest<DeleteVirtualMF

private String serialNumber;
public DeleteVirtualMFADeviceRequest() {
super("Ims", "2019-08-15", "DeleteVirtualMFADevice");
super("Ims", "2019-08-15", "DeleteVirtualMFADevice", "ims");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class DisableVirtualMFARequest extends RpcAcsRequest<DisableVirtualMFARes

private String userPrincipalName;
public DisableVirtualMFARequest() {
super("Ims", "2019-08-15", "DisableVirtualMFA");
super("Ims", "2019-08-15", "DisableVirtualMFA", "ims");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
public class GenerateCredentialReportRequest extends RpcAcsRequest<GenerateCredentialReportResponse> {

public GenerateCredentialReportRequest() {
super("Ims", "2019-08-15", "GenerateCredentialReport");
super("Ims", "2019-08-15", "GenerateCredentialReport", "ims");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class GetAccessKeyLastUsedRequest extends RpcAcsRequest<GetAccessKeyLastU

private String userPrincipalName;
public GetAccessKeyLastUsedRequest() {
super("Ims", "2019-08-15", "GetAccessKeyLastUsed");
super("Ims", "2019-08-15", "GetAccessKeyLastUsed", "ims");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
public class GetAccountMFAInfoRequest extends RpcAcsRequest<GetAccountMFAInfoResponse> {

public GetAccountMFAInfoRequest() {
super("Ims", "2019-08-15", "GetAccountMFAInfo");
super("Ims", "2019-08-15", "GetAccountMFAInfo", "ims");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
public class GetAccountSecurityPracticeReportRequest extends RpcAcsRequest<GetAccountSecurityPracticeReportResponse> {

public GetAccountSecurityPracticeReportRequest() {
super("Ims", "2019-08-15", "GetAccountSecurityPracticeReport");
super("Ims", "2019-08-15", "GetAccountSecurityPracticeReport", "ims");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
public class GetAccountSummaryRequest extends RpcAcsRequest<GetAccountSummaryResponse> {

public GetAccountSummaryRequest() {
super("Ims", "2019-08-15", "GetAccountSummary");
super("Ims", "2019-08-15", "GetAccountSummary", "ims");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class GetAppSecretRequest extends RpcAcsRequest<GetAppSecretResponse> {

private String appId;
public GetAppSecretRequest() {
super("Ims", "2019-08-15", "GetAppSecret");
super("Ims", "2019-08-15", "GetAppSecret", "ims");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class GetApplicationRequest extends RpcAcsRequest<GetApplicationResponse>

private String appId;
public GetApplicationRequest() {
super("Ims", "2019-08-15", "GetApplication");
super("Ims", "2019-08-15", "GetApplication", "ims");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ public static class PredefinedScope {

private String name;

private Boolean required;

public String getDescription() {
return this.description;
}
Expand All @@ -230,6 +232,14 @@ public String getName() {
public void setName(String name) {
this.name = name;
}

public Boolean getRequired() {
return this.required;
}

public void setRequired(Boolean required) {
this.required = required;
}
}
}
}
Expand Down
Loading

0 comments on commit 495035c

Please sign in to comment.