Skip to content

Commit

Permalink
0.10.6
Browse files Browse the repository at this point in the history
  • Loading branch information
xuchuan committed Jul 15, 2016
1 parent 3cf80f6 commit 5cd266c
Show file tree
Hide file tree
Showing 56 changed files with 3,187 additions and 24 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.baidubce</groupId>
<artifactId>bce-java-sdk</artifactId>
<version>0.10.5</version>
<version>0.10.6</version>
<name>bce-sdk-java</name>
<description>The BCE SDK for Java provides Java APIs for all of BCE services.</description>
<url>http://bce.baidu.com/sdk/index.html</url>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/baidubce/BceConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
* Common constants used by the whole SDK.
*/
public class BceConstants {
public static final String VERSION = "0.10.5";
public static final String VERSION = "0.10.6";
}
710 changes: 710 additions & 0 deletions src/main/java/com/baidubce/services/doc/DocClient.java

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
package com.baidubce.services.doc.model;

import com.baidubce.auth.BceCredentials;
import com.baidubce.model.AbstractBceRequest;

/**
* Created by baidu on 15/12/30.
*/
public class CreateDocumentFromBosRequest extends AbstractBceRequest {
private String bucket = null;
private String object = null;
private String title = null;
private String format = null;
private String notification = null;

public CreateDocumentFromBosRequest withRequestCredentials(BceCredentials credentials) {
this.setRequestCredentials(credentials);
return this;
}

public String getBucket() { return this.bucket; }

public void setBucket(String bucket) {
this.bucket = bucket;
}

public String getObject() { return this.object; }

public void setObject(String object) {
this.object = object;
}

public String getFormat() { return this.format; }

public void setFormat(String format) {
this.format = format;
}

public String getNotification() { return this.notification; }

public void setNotification(String notification) {
this.notification = notification;
}

public String getTitle() { return this.title; }

public void setTitle(String title) {
this.title = title;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.baidubce.services.doc.model;

import com.baidubce.model.AbstractBceResponse;

/**
* Created by baidu on 15/12/31.
*/
public class CreateDocumentFromBosResponse extends AbstractBceResponse {
private String documentId;

public void setDocumentId(String documentId) {
this.documentId = documentId;
}

public String getDocumentId() { return this.documentId; }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
package com.baidubce.services.doc.model;

import com.baidubce.auth.BceCredentials;
import com.baidubce.model.AbstractBceRequest;

import java.io.File;

/**
* Created by baidu on 15/12/30.
*/
public class CreateDocumentRequest extends AbstractBceRequest {
private File file = null;
private String title = null;
private String format = null;
private String notification = null;

public CreateDocumentRequest withRequestCredentials(BceCredentials credentials) {
this.setRequestCredentials(credentials);
return this;
}

public File getFile() { return this.file; }

public void setFile(File file) {
this.file = file;
}

public String getFormat() { return this.format; }

public void setFormat(String format) {
this.format = format;
}

public String getNotification() { return this.notification; }

public void setNotification(String notification) {
this.notification = notification;
}

public String getTitle() { return this.title; }

public void setTitle(String title) {
this.title = title;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.baidubce.services.doc.model;

import com.baidubce.model.AbstractBceResponse;

/**
* Created by baidu on 15/12/31.
*/
public class CreateDocumentResponse extends AbstractBceResponse {
private String documentId;

public void setDocumentId(String documentId) {
this.documentId = documentId;
}

public String getDocumentId() { return this.documentId; }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
/*
* Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved
*
* 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.baidubce.services.doc.model;

import com.baidubce.auth.BceCredentials;
import com.baidubce.model.AbstractBceRequest;

public class CreateNotificationRequest extends AbstractBceRequest {

/**
* 通知名称
**/
private String name = null;

/**
* 通知消息接收地址
**/
private String endpoint = null;

public String getName() {
return name;
}

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

public CreateNotificationRequest withName(String name) {
this.name = name;
return this;
}

public String getEndpoint() {
return endpoint;
}

public void setEndpoint(String endpoint) {
this.endpoint = endpoint;
}

public CreateNotificationRequest withEndpoint(String endpoint) {
this.endpoint = endpoint;
return this;
}


public CreateNotificationRequest withRequestCredentials(BceCredentials credentials) {
this.setRequestCredentials(credentials);
return this;
}

@Override
public String toString() {
final StringBuilder sb = new StringBuilder();
sb.append("class CreateNotificationRequest {\n");
sb.append(" name: ").append(name).append("\n");
sb.append(" endpoint: ").append(endpoint).append("\n");
sb.append("}\n");
return sb.toString();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved
*
* 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.baidubce.services.doc.model;

import com.baidubce.model.AbstractBceResponse;

public class CreateNotificationResponse extends AbstractBceResponse {
@Override
public String toString() {
final StringBuilder sb = new StringBuilder();
sb.append("class CreateNotificationResponse {\n");
sb.append("}\n");
return sb.toString();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package com.baidubce.services.doc.model;

import com.baidubce.auth.BceCredentials;
import com.baidubce.model.AbstractBceRequest;

/**
* Created by baidu on 15/12/30.
*/
public class DeleteDocumentRequest extends AbstractBceRequest {

private String documentId = null;

public DeleteDocumentRequest withRequestCredentials(BceCredentials credentials) {
this.setRequestCredentials(credentials);
return this;
}

public String getDocumentId() { return this.documentId; }

public void setDocumentId(String documentId) {
this.documentId = documentId;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.baidubce.services.doc.model;

import com.baidubce.model.AbstractBceResponse;

/**
* Created by baidu on 15/12/31.
*/
public class DeleteDocumentResponse extends AbstractBceResponse {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/*
* Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved
*
* 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.baidubce.services.doc.model;

import com.baidubce.auth.BceCredentials;
import com.baidubce.model.AbstractBceRequest;

public class DeleteNotificationRequest extends AbstractBceRequest {
/**
* 通知名称
**/
private String name = null;

public String getName() {
return name;
}

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

public DeleteNotificationRequest withName(String name) {
this.name = name;
return this;
}

public DeleteNotificationRequest withRequestCredentials(BceCredentials credentials) {
this.setRequestCredentials(credentials);
return this;
}

@Override
public String toString() {
final StringBuilder sb = new StringBuilder();
sb.append("class DeleteNotificationRequest {\n");
sb.append(" name: ").append(name).append("\n");
sb.append("}\n");
return sb.toString();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved
*
* 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.baidubce.services.doc.model;

import com.baidubce.model.AbstractBceResponse;

public class DeleteNotificationResponse extends AbstractBceResponse {
@Override
public String toString() {
final StringBuilder sb = new StringBuilder();
sb.append("class DeleteNotificationResponse {\n");
sb.append("}\n");
return sb.toString();
}
}
Loading

0 comments on commit 5cd266c

Please sign in to comment.