Skip to content

Commit

Permalink
Update to 3.22.3
Browse files Browse the repository at this point in the history
  • Loading branch information
robert committed Mar 25, 2022
1 parent 91b6527 commit 8153970
Show file tree
Hide file tree
Showing 7 changed files with 461 additions and 0 deletions.
54 changes: 54 additions & 0 deletions app/src/main/java/com/obs/services/model/Callback.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/**
* Copyright 2019 Huawei Technologies Co.,Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of the
* License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/

package com.obs.services.model;

public class Callback {
private String callbackUrl;
private String callbackHost;
private String callbackBody;
private String callbackBodyType;

public String getCallbackUrl() {
return callbackUrl;
}

public void setCallbackUrl(String callbackUrl) {
this.callbackUrl = callbackUrl;
}

public String getCallbackHost() {
return callbackHost;
}

public void setCallbackHost(String callbackHost) {
this.callbackHost = callbackHost;
}

public String getCallbackBody() {
return callbackBody;
}

public void setCallbackBody(String callbackBody) {
this.callbackBody = callbackBody;
}

public String getCallbackBodyType() {
return callbackBodyType;
}

public void setCallbackBodyType(String callbackBodyType) {
this.callbackBodyType = callbackBodyType;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* Copyright 2019 Huawei Technologies Co.,Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of the
* License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software distributed
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/

package com.obs.services.model.fs;

import com.obs.services.model.GenericRequest;

public class ContentSummaryFsRequest extends GenericRequest {
private String dirName;

public String getDirName() {
return dirName;
}

public void setDirName(String dirName) {
this.dirName = dirName;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* Copyright 2019 Huawei Technologies Co.,Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of the
* License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software distributed
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/

package com.obs.services.model.fs;

import com.obs.services.model.HeaderResponse;

public class ContentSummaryFsResult extends HeaderResponse {
private DirSummary contentSummary;

public DirSummary getContentSummary() {
return contentSummary;
}

public void setContentSummary(DirSummary contentSummary) {
this.contentSummary = contentSummary;
}
}
65 changes: 65 additions & 0 deletions app/src/main/java/com/obs/services/model/fs/DirContentSummary.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
/**
* Copyright 2019 Huawei Technologies Co.,Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of the
* License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software distributed
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/

package com.obs.services.model.fs;

import java.util.List;

public class DirContentSummary {
private String key;
private boolean isTruncated;
private String nextMarker;
private long inode;
private List<DirSummary> subDir;

public String getKey() {
return key;
}

public void setKey(String key) {
this.key = key;
}

public long getInode() {
return inode;
}

public void setInode(long inode) {
this.inode = inode;
}

public boolean isTruncated() {
return isTruncated;
}

public void setTruncated(boolean truncated) {
isTruncated = truncated;
}

public String getNextMarker() {
return nextMarker;
}

public void setNextMarker(String nextMarker) {
this.nextMarker = nextMarker;
}

public List<DirSummary> getSubDir() {
return subDir;
}

public void setSubDir(List<DirSummary> subDir) {
this.subDir = subDir;
}
}
74 changes: 74 additions & 0 deletions app/src/main/java/com/obs/services/model/fs/DirSummary.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
/**
* Copyright 2019 Huawei Technologies Co.,Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of the
* License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software distributed
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/

package com.obs.services.model.fs;

public class DirSummary {
private String name;
private long dirCount;
private long fileCount;
private long fileSize;
private long inode;

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public long getDirCount() {
return dirCount;
}

public void setDirCount(long dirCount) {
this.dirCount = dirCount;
}

public long getFileCount() {
return fileCount;
}

public void setFileCount(long fileCount) {
this.fileCount = fileCount;
}

public long getFileSize() {
return fileSize;
}

public void setFileSize(long fileSize) {
this.fileSize = fileSize;
}

public long getInode() {
return inode;
}

public void setInode(long inode) {
this.inode = inode;
}

@Override
public String toString() {
return "DirSummary{" +
"name='" + name + '\'' +
", dirCount=" + dirCount +
", fileCount=" + fileCount +
", fileSize=" + fileSize +
", inode=" + inode +
'}';
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
/**
* Copyright 2019 Huawei Technologies Co.,Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of the
* License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software distributed
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/

package com.obs.services.model.fs;

import com.obs.services.model.GenericRequest;

import java.util.List;

/**
* Parameters in a request for obtaining fs folder contentSummary
*
*/
public class ListContentSummaryFsRequest extends GenericRequest {
private int maxKeys;

private List<DirLayer> dirLayers;

public int getMaxKeys() {
return maxKeys;
}

public void setMaxKeys(int maxKeys) {
this.maxKeys = maxKeys;
}

public List<DirLayer> getDirLayers() {
return dirLayers;
}

public void setDirLayers(List<DirLayer> dirLayers) {
this.dirLayers = dirLayers;
}

static public class DirLayer {
private String key;
private String marker;
private long inode;

public String getKey() {
return key;
}

public void setKey(String key) {
this.key = key;
}

public String getMarker() {
return marker;
}

public void setMarker(String marker) {
this.marker = marker;
}

public long getInode() {
return inode;
}

public void setInode(long inode) {
this.inode = inode;
}

@Override
public String toString() {
return "DirLayer{" +
"key='" + key + '\'' +
", marker='" + marker + '\'' +
", inode=" + inode +
'}';
}
}
}
Loading

0 comments on commit 8153970

Please sign in to comment.