Skip to content

Commit 8153970

Browse files
author
robert
committed
Update to 3.22.3
1 parent 91b6527 commit 8153970

File tree

7 files changed

+461
-0
lines changed

7 files changed

+461
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/**
2+
* Copyright 2019 Huawei Technologies Co.,Ltd.
3+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4+
* this file except in compliance with the License. You may obtain a copy of the
5+
* License at
6+
*
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* Unless required by applicable law or agreed to in writing, software distributed
10+
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
11+
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
12+
* specific language governing permissions and limitations under the License.
13+
*/
14+
15+
package com.obs.services.model;
16+
17+
public class Callback {
18+
private String callbackUrl;
19+
private String callbackHost;
20+
private String callbackBody;
21+
private String callbackBodyType;
22+
23+
public String getCallbackUrl() {
24+
return callbackUrl;
25+
}
26+
27+
public void setCallbackUrl(String callbackUrl) {
28+
this.callbackUrl = callbackUrl;
29+
}
30+
31+
public String getCallbackHost() {
32+
return callbackHost;
33+
}
34+
35+
public void setCallbackHost(String callbackHost) {
36+
this.callbackHost = callbackHost;
37+
}
38+
39+
public String getCallbackBody() {
40+
return callbackBody;
41+
}
42+
43+
public void setCallbackBody(String callbackBody) {
44+
this.callbackBody = callbackBody;
45+
}
46+
47+
public String getCallbackBodyType() {
48+
return callbackBodyType;
49+
}
50+
51+
public void setCallbackBodyType(String callbackBodyType) {
52+
this.callbackBodyType = callbackBodyType;
53+
}
54+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/**
2+
* Copyright 2019 Huawei Technologies Co.,Ltd.
3+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4+
* this file except in compliance with the License. You may obtain a copy of the
5+
* License at
6+
* <p>
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
* <p>
9+
* Unless required by applicable law or agreed to in writing, software distributed
10+
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
11+
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
12+
* specific language governing permissions and limitations under the License.
13+
*/
14+
15+
package com.obs.services.model.fs;
16+
17+
import com.obs.services.model.GenericRequest;
18+
19+
public class ContentSummaryFsRequest extends GenericRequest {
20+
private String dirName;
21+
22+
public String getDirName() {
23+
return dirName;
24+
}
25+
26+
public void setDirName(String dirName) {
27+
this.dirName = dirName;
28+
}
29+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/**
2+
* Copyright 2019 Huawei Technologies Co.,Ltd.
3+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4+
* this file except in compliance with the License. You may obtain a copy of the
5+
* License at
6+
* <p>
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
* <p>
9+
* Unless required by applicable law or agreed to in writing, software distributed
10+
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
11+
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
12+
* specific language governing permissions and limitations under the License.
13+
*/
14+
15+
package com.obs.services.model.fs;
16+
17+
import com.obs.services.model.HeaderResponse;
18+
19+
public class ContentSummaryFsResult extends HeaderResponse {
20+
private DirSummary contentSummary;
21+
22+
public DirSummary getContentSummary() {
23+
return contentSummary;
24+
}
25+
26+
public void setContentSummary(DirSummary contentSummary) {
27+
this.contentSummary = contentSummary;
28+
}
29+
}
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
/**
2+
* Copyright 2019 Huawei Technologies Co.,Ltd.
3+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4+
* this file except in compliance with the License. You may obtain a copy of the
5+
* License at
6+
* <p>
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
* <p>
9+
* Unless required by applicable law or agreed to in writing, software distributed
10+
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
11+
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
12+
* specific language governing permissions and limitations under the License.
13+
*/
14+
15+
package com.obs.services.model.fs;
16+
17+
import java.util.List;
18+
19+
public class DirContentSummary {
20+
private String key;
21+
private boolean isTruncated;
22+
private String nextMarker;
23+
private long inode;
24+
private List<DirSummary> subDir;
25+
26+
public String getKey() {
27+
return key;
28+
}
29+
30+
public void setKey(String key) {
31+
this.key = key;
32+
}
33+
34+
public long getInode() {
35+
return inode;
36+
}
37+
38+
public void setInode(long inode) {
39+
this.inode = inode;
40+
}
41+
42+
public boolean isTruncated() {
43+
return isTruncated;
44+
}
45+
46+
public void setTruncated(boolean truncated) {
47+
isTruncated = truncated;
48+
}
49+
50+
public String getNextMarker() {
51+
return nextMarker;
52+
}
53+
54+
public void setNextMarker(String nextMarker) {
55+
this.nextMarker = nextMarker;
56+
}
57+
58+
public List<DirSummary> getSubDir() {
59+
return subDir;
60+
}
61+
62+
public void setSubDir(List<DirSummary> subDir) {
63+
this.subDir = subDir;
64+
}
65+
}
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
/**
2+
* Copyright 2019 Huawei Technologies Co.,Ltd.
3+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4+
* this file except in compliance with the License. You may obtain a copy of the
5+
* License at
6+
* <p>
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
* <p>
9+
* Unless required by applicable law or agreed to in writing, software distributed
10+
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
11+
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
12+
* specific language governing permissions and limitations under the License.
13+
*/
14+
15+
package com.obs.services.model.fs;
16+
17+
public class DirSummary {
18+
private String name;
19+
private long dirCount;
20+
private long fileCount;
21+
private long fileSize;
22+
private long inode;
23+
24+
public String getName() {
25+
return name;
26+
}
27+
28+
public void setName(String name) {
29+
this.name = name;
30+
}
31+
32+
public long getDirCount() {
33+
return dirCount;
34+
}
35+
36+
public void setDirCount(long dirCount) {
37+
this.dirCount = dirCount;
38+
}
39+
40+
public long getFileCount() {
41+
return fileCount;
42+
}
43+
44+
public void setFileCount(long fileCount) {
45+
this.fileCount = fileCount;
46+
}
47+
48+
public long getFileSize() {
49+
return fileSize;
50+
}
51+
52+
public void setFileSize(long fileSize) {
53+
this.fileSize = fileSize;
54+
}
55+
56+
public long getInode() {
57+
return inode;
58+
}
59+
60+
public void setInode(long inode) {
61+
this.inode = inode;
62+
}
63+
64+
@Override
65+
public String toString() {
66+
return "DirSummary{" +
67+
"name='" + name + '\'' +
68+
", dirCount=" + dirCount +
69+
", fileCount=" + fileCount +
70+
", fileSize=" + fileSize +
71+
", inode=" + inode +
72+
'}';
73+
}
74+
}
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
/**
2+
* Copyright 2019 Huawei Technologies Co.,Ltd.
3+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4+
* this file except in compliance with the License. You may obtain a copy of the
5+
* License at
6+
* <p>
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
* <p>
9+
* Unless required by applicable law or agreed to in writing, software distributed
10+
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
11+
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
12+
* specific language governing permissions and limitations under the License.
13+
*/
14+
15+
package com.obs.services.model.fs;
16+
17+
import com.obs.services.model.GenericRequest;
18+
19+
import java.util.List;
20+
21+
/**
22+
* Parameters in a request for obtaining fs folder contentSummary
23+
*
24+
*/
25+
public class ListContentSummaryFsRequest extends GenericRequest {
26+
private int maxKeys;
27+
28+
private List<DirLayer> dirLayers;
29+
30+
public int getMaxKeys() {
31+
return maxKeys;
32+
}
33+
34+
public void setMaxKeys(int maxKeys) {
35+
this.maxKeys = maxKeys;
36+
}
37+
38+
public List<DirLayer> getDirLayers() {
39+
return dirLayers;
40+
}
41+
42+
public void setDirLayers(List<DirLayer> dirLayers) {
43+
this.dirLayers = dirLayers;
44+
}
45+
46+
static public class DirLayer {
47+
private String key;
48+
private String marker;
49+
private long inode;
50+
51+
public String getKey() {
52+
return key;
53+
}
54+
55+
public void setKey(String key) {
56+
this.key = key;
57+
}
58+
59+
public String getMarker() {
60+
return marker;
61+
}
62+
63+
public void setMarker(String marker) {
64+
this.marker = marker;
65+
}
66+
67+
public long getInode() {
68+
return inode;
69+
}
70+
71+
public void setInode(long inode) {
72+
this.inode = inode;
73+
}
74+
75+
@Override
76+
public String toString() {
77+
return "DirLayer{" +
78+
"key='" + key + '\'' +
79+
", marker='" + marker + '\'' +
80+
", inode=" + inode +
81+
'}';
82+
}
83+
}
84+
}

0 commit comments

Comments
 (0)