Skip to content

Commit

Permalink
Merge pull request #62 from AlibabaCloudLandingZone/solution-ack-sts-…
Browse files Browse the repository at this point in the history
…token/0.0.2

solution-ack-sts-token/0.0.2
  • Loading branch information
wibud authored Jun 26, 2024
2 parents 6a84cc9 + d1c8d63 commit 746180b
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions solution/solution-ack-sts-token/code-example/java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
</dependency>

<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.68.noneautotype</version>
<groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2</artifactId>
<version>2.0.51</version>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.example.oss_sdk;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson2.JSON;
import com.aliyun.credentials.Client;
import com.aliyun.credentials.models.CredentialModel;
import com.aliyun.oss.ClientBuilderConfiguration;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.example.oss_sdk;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson2.JSON;
import com.aliyun.credentials.Client;
import com.aliyun.credentials.models.Config;
import com.aliyun.credentials.models.CredentialModel;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.example.sdk1_0;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson2.JSON;
import com.aliyun.credentials.Client;
import com.aliyun.credentials.models.CredentialModel;
import com.aliyuncs.DefaultAcsClient;
Expand All @@ -26,7 +26,7 @@ public static void main(String[] args) throws ClientException {
DescribeVpcsRequest describeVpcsRequest = new DescribeVpcsRequest();
describeVpcsRequest.setRegionId("cn-hangzhou");
DescribeVpcsResponse describeVpcsResponse = client.getAcsResponse(describeVpcsRequest);
System.out.println(JSON.toJSONString(describeVpcsResponse, true));
System.out.println(JSON.toJSONString(describeVpcsResponse));
}

public static IAcsClient createAcsClientByCredentials(DefaultProfile profile, Client credentialClient) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.example.sdk1_0;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson2.JSON;
import com.aliyun.credentials.Client;
import com.aliyun.credentials.models.Config;
import com.aliyun.credentials.models.CredentialModel;
Expand Down Expand Up @@ -41,7 +41,7 @@ public static void main(String[] args) throws ClientException {
DescribeVpcsRequest describeVpcsRequest = new DescribeVpcsRequest();
describeVpcsRequest.setRegionId("cn-hangzhou");
DescribeVpcsResponse describeVpcsResponse = client.getAcsResponse(describeVpcsRequest);
System.out.println(JSON.toJSONString(describeVpcsResponse, true));
System.out.println(JSON.toJSONString(describeVpcsResponse));
}

public static IAcsClient createAcsClientByCredentials(DefaultProfile profile, Client credentialClient) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.example.sdk2_0;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson2.JSON;
import com.aliyun.credentials.Client;
import com.aliyun.vpc20160428.models.DescribeVpcsRequest;
import com.aliyun.vpc20160428.models.DescribeVpcsResponse;
Expand All @@ -21,6 +21,6 @@ public static void main(String[] args) throws Exception {

DescribeVpcsRequest describeVpcsRequest = new DescribeVpcsRequest().setRegionId("cn-hangzhou");
DescribeVpcsResponse describeVpcsResponse = vpcClient.describeVpcs(describeVpcsRequest);
System.out.println(JSON.toJSONString(describeVpcsResponse, true));
System.out.println(JSON.toJSONString(describeVpcsResponse));
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.example.sdk2_0;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson2.JSON;
import com.aliyun.credentials.Client;
import com.aliyun.credentials.models.Config;
import com.aliyun.vpc20160428.models.DescribeVpcsRequest;
Expand Down Expand Up @@ -36,6 +36,6 @@ public static void main(String[] args) throws Exception {

DescribeVpcsRequest describeVpcsRequest = new DescribeVpcsRequest().setRegionId("cn-hangzhou");
DescribeVpcsResponse describeVpcsResponse = vpcClient.describeVpcs(describeVpcsRequest);
System.out.println(JSON.toJSONString(describeVpcsResponse, true));
System.out.println(JSON.toJSONString(describeVpcsResponse));
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.example.sls_sdk;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson2.JSON;
import com.aliyun.credentials.models.CredentialModel;
import com.aliyun.openservices.log.Client;
import com.aliyun.openservices.log.common.auth.DefaultCredentials;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.example.sls_sdk;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson2.JSON;
import com.aliyun.credentials.Client;
import com.aliyun.credentials.models.Config;
import com.aliyun.credentials.models.CredentialModel;
Expand Down

0 comments on commit 746180b

Please sign in to comment.