Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update layer param #146

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Add Maven dependencies into pom.xml
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-fc</artifactId>
<version>1.8.19</version>
<version>1.8.22</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-fc</artifactId>
<packaging>jar</packaging>
<version>1.8.21</version>
<version>1.8.22</version>
<name>aliyun-java-sdk-fc</name>
<url>https://www.aliyun.com/product/fc</url>
<description>Aliyun Java SDK for FunctionCompute</description>
Expand Down
9 changes: 8 additions & 1 deletion src/main/java/com/aliyuncs/fc/model/Layer.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.aliyuncs.fc.model;

import org.apache.commons.lang.StringUtils;

import java.util.Arrays;

public class Layer {
Expand All @@ -12,6 +14,7 @@ public class Layer {
private String createTime;
private String[] compatibleRuntime;
private Integer acl;
private String arn;
private String Arn;

public String getLayerName() {
Expand Down Expand Up @@ -87,11 +90,15 @@ public void setAcl(Integer acl) {
}

public String getArn() {
if (StringUtils.isNotBlank(arn)) {
return arn;
}
return Arn;
}

public void setArn(String arn) {
this.Arn = arn;
this.arn = arn;
}

@Override
Expand All @@ -106,7 +113,7 @@ public String toString() {
", createTime='" + createTime + '\'' +
", compatibleRuntime=" + Arrays.toString(compatibleRuntime) +
", acl=" + acl +
", Arn='" + Arn + '\'' +
", arn='" + arn + '\'' +
'}';
}
}