Przeglądaj źródła

Support GetOfficeEditURL.

sdk-team 6 lat temu
rodzic
commit
1a13b03f29

+ 4 - 0
CHANGELOG

@@ -1,3 +1,7 @@
+2020-04-10 Version: 1.36.351
+- Support GetOfficeEditURL.
+- Support RefreshOfficeEditToken.
+
 2020-04-10 Version: 1.36.350
 - Generated 2019-01-01 for `Cassandra`.
 

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.350
+1.36.351

+ 8 - 0
imm/CMakeLists.txt

@@ -107,6 +107,8 @@ set(imm_public_header_model
 	include/alibabacloud/imm/model/GetMediaMetaResult.h
 	include/alibabacloud/imm/model/GetOfficeConversionTaskRequest.h
 	include/alibabacloud/imm/model/GetOfficeConversionTaskResult.h
+	include/alibabacloud/imm/model/GetOfficeEditURLRequest.h
+	include/alibabacloud/imm/model/GetOfficeEditURLResult.h
 	include/alibabacloud/imm/model/GetOfficePreviewURLRequest.h
 	include/alibabacloud/imm/model/GetOfficePreviewURLResult.h
 	include/alibabacloud/imm/model/GetProjectRequest.h
@@ -147,6 +149,8 @@ set(imm_public_header_model
 	include/alibabacloud/imm/model/ListVideosResult.h
 	include/alibabacloud/imm/model/PutProjectRequest.h
 	include/alibabacloud/imm/model/PutProjectResult.h
+	include/alibabacloud/imm/model/RefreshOfficeEditTokenRequest.h
+	include/alibabacloud/imm/model/RefreshOfficeEditTokenResult.h
 	include/alibabacloud/imm/model/RefreshOfficePreviewTokenRequest.h
 	include/alibabacloud/imm/model/RefreshOfficePreviewTokenResult.h
 	include/alibabacloud/imm/model/SearchDocIndexRequest.h
@@ -250,6 +254,8 @@ set(imm_src
 	src/model/GetMediaMetaResult.cc
 	src/model/GetOfficeConversionTaskRequest.cc
 	src/model/GetOfficeConversionTaskResult.cc
+	src/model/GetOfficeEditURLRequest.cc
+	src/model/GetOfficeEditURLResult.cc
 	src/model/GetOfficePreviewURLRequest.cc
 	src/model/GetOfficePreviewURLResult.cc
 	src/model/GetProjectRequest.cc
@@ -290,6 +296,8 @@ set(imm_src
 	src/model/ListVideosResult.cc
 	src/model/PutProjectRequest.cc
 	src/model/PutProjectResult.cc
+	src/model/RefreshOfficeEditTokenRequest.cc
+	src/model/RefreshOfficeEditTokenResult.cc
 	src/model/RefreshOfficePreviewTokenRequest.cc
 	src/model/RefreshOfficePreviewTokenResult.cc
 	src/model/SearchDocIndexRequest.cc

+ 16 - 0
imm/include/alibabacloud/imm/ImmClient.h

@@ -108,6 +108,8 @@
 #include "model/GetMediaMetaResult.h"
 #include "model/GetOfficeConversionTaskRequest.h"
 #include "model/GetOfficeConversionTaskResult.h"
+#include "model/GetOfficeEditURLRequest.h"
+#include "model/GetOfficeEditURLResult.h"
 #include "model/GetOfficePreviewURLRequest.h"
 #include "model/GetOfficePreviewURLResult.h"
 #include "model/GetProjectRequest.h"
@@ -148,6 +150,8 @@
 #include "model/ListVideosResult.h"
 #include "model/PutProjectRequest.h"
 #include "model/PutProjectResult.h"
+#include "model/RefreshOfficeEditTokenRequest.h"
+#include "model/RefreshOfficeEditTokenResult.h"
 #include "model/RefreshOfficePreviewTokenRequest.h"
 #include "model/RefreshOfficePreviewTokenResult.h"
 #include "model/SearchDocIndexRequest.h"
@@ -300,6 +304,9 @@ namespace AlibabaCloud
 			typedef Outcome<Error, Model::GetOfficeConversionTaskResult> GetOfficeConversionTaskOutcome;
 			typedef std::future<GetOfficeConversionTaskOutcome> GetOfficeConversionTaskOutcomeCallable;
 			typedef std::function<void(const ImmClient*, const Model::GetOfficeConversionTaskRequest&, const GetOfficeConversionTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetOfficeConversionTaskAsyncHandler;
+			typedef Outcome<Error, Model::GetOfficeEditURLResult> GetOfficeEditURLOutcome;
+			typedef std::future<GetOfficeEditURLOutcome> GetOfficeEditURLOutcomeCallable;
+			typedef std::function<void(const ImmClient*, const Model::GetOfficeEditURLRequest&, const GetOfficeEditURLOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetOfficeEditURLAsyncHandler;
 			typedef Outcome<Error, Model::GetOfficePreviewURLResult> GetOfficePreviewURLOutcome;
 			typedef std::future<GetOfficePreviewURLOutcome> GetOfficePreviewURLOutcomeCallable;
 			typedef std::function<void(const ImmClient*, const Model::GetOfficePreviewURLRequest&, const GetOfficePreviewURLOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetOfficePreviewURLAsyncHandler;
@@ -360,6 +367,9 @@ namespace AlibabaCloud
 			typedef Outcome<Error, Model::PutProjectResult> PutProjectOutcome;
 			typedef std::future<PutProjectOutcome> PutProjectOutcomeCallable;
 			typedef std::function<void(const ImmClient*, const Model::PutProjectRequest&, const PutProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PutProjectAsyncHandler;
+			typedef Outcome<Error, Model::RefreshOfficeEditTokenResult> RefreshOfficeEditTokenOutcome;
+			typedef std::future<RefreshOfficeEditTokenOutcome> RefreshOfficeEditTokenOutcomeCallable;
+			typedef std::function<void(const ImmClient*, const Model::RefreshOfficeEditTokenRequest&, const RefreshOfficeEditTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RefreshOfficeEditTokenAsyncHandler;
 			typedef Outcome<Error, Model::RefreshOfficePreviewTokenResult> RefreshOfficePreviewTokenOutcome;
 			typedef std::future<RefreshOfficePreviewTokenOutcome> RefreshOfficePreviewTokenOutcomeCallable;
 			typedef std::function<void(const ImmClient*, const Model::RefreshOfficePreviewTokenRequest&, const RefreshOfficePreviewTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RefreshOfficePreviewTokenAsyncHandler;
@@ -515,6 +525,9 @@ namespace AlibabaCloud
 			GetOfficeConversionTaskOutcome getOfficeConversionTask(const Model::GetOfficeConversionTaskRequest &request)const;
 			void getOfficeConversionTaskAsync(const Model::GetOfficeConversionTaskRequest& request, const GetOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			GetOfficeConversionTaskOutcomeCallable getOfficeConversionTaskCallable(const Model::GetOfficeConversionTaskRequest& request) const;
+			GetOfficeEditURLOutcome getOfficeEditURL(const Model::GetOfficeEditURLRequest &request)const;
+			void getOfficeEditURLAsync(const Model::GetOfficeEditURLRequest& request, const GetOfficeEditURLAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			GetOfficeEditURLOutcomeCallable getOfficeEditURLCallable(const Model::GetOfficeEditURLRequest& request) const;
 			GetOfficePreviewURLOutcome getOfficePreviewURL(const Model::GetOfficePreviewURLRequest &request)const;
 			void getOfficePreviewURLAsync(const Model::GetOfficePreviewURLRequest& request, const GetOfficePreviewURLAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			GetOfficePreviewURLOutcomeCallable getOfficePreviewURLCallable(const Model::GetOfficePreviewURLRequest& request) const;
@@ -575,6 +588,9 @@ namespace AlibabaCloud
 			PutProjectOutcome putProject(const Model::PutProjectRequest &request)const;
 			void putProjectAsync(const Model::PutProjectRequest& request, const PutProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			PutProjectOutcomeCallable putProjectCallable(const Model::PutProjectRequest& request) const;
+			RefreshOfficeEditTokenOutcome refreshOfficeEditToken(const Model::RefreshOfficeEditTokenRequest &request)const;
+			void refreshOfficeEditTokenAsync(const Model::RefreshOfficeEditTokenRequest& request, const RefreshOfficeEditTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			RefreshOfficeEditTokenOutcomeCallable refreshOfficeEditTokenCallable(const Model::RefreshOfficeEditTokenRequest& request) const;
 			RefreshOfficePreviewTokenOutcome refreshOfficePreviewToken(const Model::RefreshOfficePreviewTokenRequest &request)const;
 			void refreshOfficePreviewTokenAsync(const Model::RefreshOfficePreviewTokenRequest& request, const RefreshOfficePreviewTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			RefreshOfficePreviewTokenOutcomeCallable refreshOfficePreviewTokenCallable(const Model::RefreshOfficePreviewTokenRequest& request) const;

+ 78 - 0
imm/include/alibabacloud/imm/model/GetOfficeEditURLRequest.h

@@ -0,0 +1,78 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud 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.
+ */
+
+#ifndef ALIBABACLOUD_IMM_MODEL_GETOFFICEEDITURLREQUEST_H_
+#define ALIBABACLOUD_IMM_MODEL_GETOFFICEEDITURLREQUEST_H_
+
+#include <string>
+#include <vector>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <alibabacloud/imm/ImmExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Imm
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_IMM_EXPORT GetOfficeEditURLRequest : public RpcServiceRequest
+			{
+
+			public:
+				GetOfficeEditURLRequest();
+				~GetOfficeEditURLRequest();
+
+				std::string getSrcType()const;
+				void setSrcType(const std::string& srcType);
+				std::string getProject()const;
+				void setProject(const std::string& project);
+				std::string getUserID()const;
+				void setUserID(const std::string& userID);
+				std::string getAccessKeyId()const;
+				void setAccessKeyId(const std::string& accessKeyId);
+				std::string getNotifyEndpoint()const;
+				void setNotifyEndpoint(const std::string& notifyEndpoint);
+				std::string getFileID()const;
+				void setFileID(const std::string& fileID);
+				std::string getNotifyTopicName()const;
+				void setNotifyTopicName(const std::string& notifyTopicName);
+				std::string getFileName()const;
+				void setFileName(const std::string& fileName);
+				std::string getSrcUri()const;
+				void setSrcUri(const std::string& srcUri);
+				std::string getTgtUri()const;
+				void setTgtUri(const std::string& tgtUri);
+				std::string getUserName()const;
+				void setUserName(const std::string& userName);
+
+            private:
+				std::string srcType_;
+				std::string project_;
+				std::string userID_;
+				std::string accessKeyId_;
+				std::string notifyEndpoint_;
+				std::string fileID_;
+				std::string notifyTopicName_;
+				std::string fileName_;
+				std::string srcUri_;
+				std::string tgtUri_;
+				std::string userName_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_IMM_MODEL_GETOFFICEEDITURLREQUEST_H_

+ 59 - 0
imm/include/alibabacloud/imm/model/GetOfficeEditURLResult.h

@@ -0,0 +1,59 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud 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.
+ */
+
+#ifndef ALIBABACLOUD_IMM_MODEL_GETOFFICEEDITURLRESULT_H_
+#define ALIBABACLOUD_IMM_MODEL_GETOFFICEEDITURLRESULT_H_
+
+#include <string>
+#include <vector>
+#include <utility>
+#include <alibabacloud/core/ServiceResult.h>
+#include <alibabacloud/imm/ImmExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Imm
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_IMM_EXPORT GetOfficeEditURLResult : public ServiceResult
+			{
+			public:
+
+
+				GetOfficeEditURLResult();
+				explicit GetOfficeEditURLResult(const std::string &payload);
+				~GetOfficeEditURLResult();
+				std::string getRefreshToken()const;
+				std::string getEditURL()const;
+				std::string getAccessToken()const;
+				std::string getRefreshTokenExpiredTime()const;
+				std::string getAccessTokenExpiredTime()const;
+
+			protected:
+				void parse(const std::string &payload);
+			private:
+				std::string refreshToken_;
+				std::string editURL_;
+				std::string accessToken_;
+				std::string refreshTokenExpiredTime_;
+				std::string accessTokenExpiredTime_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_IMM_MODEL_GETOFFICEEDITURLRESULT_H_

+ 3 - 3
imm/include/alibabacloud/imm/model/GetOfficePreviewURLRequest.h

@@ -41,8 +41,8 @@ namespace AlibabaCloud
 				void setProject(const std::string& project);
 				std::string getAccessKeyId()const;
 				void setAccessKeyId(const std::string& accessKeyId);
-				bool getUseHTTPS()const;
-				void setUseHTTPS(bool useHTTPS);
+				bool getUseOldURL()const;
+				void setUseOldURL(bool useOldURL);
 				std::string getSrcUri()const;
 				void setSrcUri(const std::string& srcUri);
 
@@ -50,7 +50,7 @@ namespace AlibabaCloud
 				std::string srcType_;
 				std::string project_;
 				std::string accessKeyId_;
-				bool useHTTPS_;
+				bool useOldURL_;
 				std::string srcUri_;
 
 			};

+ 57 - 0
imm/include/alibabacloud/imm/model/RefreshOfficeEditTokenRequest.h

@@ -0,0 +1,57 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud 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.
+ */
+
+#ifndef ALIBABACLOUD_IMM_MODEL_REFRESHOFFICEEDITTOKENREQUEST_H_
+#define ALIBABACLOUD_IMM_MODEL_REFRESHOFFICEEDITTOKENREQUEST_H_
+
+#include <string>
+#include <vector>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <alibabacloud/imm/ImmExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Imm
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_IMM_EXPORT RefreshOfficeEditTokenRequest : public RpcServiceRequest
+			{
+
+			public:
+				RefreshOfficeEditTokenRequest();
+				~RefreshOfficeEditTokenRequest();
+
+				std::string getProject()const;
+				void setProject(const std::string& project);
+				std::string getAccessToken()const;
+				void setAccessToken(const std::string& accessToken);
+				std::string getAccessKeyId()const;
+				void setAccessKeyId(const std::string& accessKeyId);
+				std::string getRefreshToken()const;
+				void setRefreshToken(const std::string& refreshToken);
+
+            private:
+				std::string project_;
+				std::string accessToken_;
+				std::string accessKeyId_;
+				std::string refreshToken_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_IMM_MODEL_REFRESHOFFICEEDITTOKENREQUEST_H_

+ 57 - 0
imm/include/alibabacloud/imm/model/RefreshOfficeEditTokenResult.h

@@ -0,0 +1,57 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud 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.
+ */
+
+#ifndef ALIBABACLOUD_IMM_MODEL_REFRESHOFFICEEDITTOKENRESULT_H_
+#define ALIBABACLOUD_IMM_MODEL_REFRESHOFFICEEDITTOKENRESULT_H_
+
+#include <string>
+#include <vector>
+#include <utility>
+#include <alibabacloud/core/ServiceResult.h>
+#include <alibabacloud/imm/ImmExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Imm
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_IMM_EXPORT RefreshOfficeEditTokenResult : public ServiceResult
+			{
+			public:
+
+
+				RefreshOfficeEditTokenResult();
+				explicit RefreshOfficeEditTokenResult(const std::string &payload);
+				~RefreshOfficeEditTokenResult();
+				std::string getRefreshToken()const;
+				std::string getAccessToken()const;
+				std::string getRefreshTokenExpiredTime()const;
+				std::string getAccessTokenExpiredTime()const;
+
+			protected:
+				void parse(const std::string &payload);
+			private:
+				std::string refreshToken_;
+				std::string accessToken_;
+				std::string refreshTokenExpiredTime_;
+				std::string accessTokenExpiredTime_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_IMM_MODEL_REFRESHOFFICEEDITTOKENRESULT_H_

+ 72 - 0
imm/src/ImmClient.cc

@@ -1599,6 +1599,42 @@ ImmClient::GetOfficeConversionTaskOutcomeCallable ImmClient::getOfficeConversion
 	return task->get_future();
 }
 
+ImmClient::GetOfficeEditURLOutcome ImmClient::getOfficeEditURL(const GetOfficeEditURLRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return GetOfficeEditURLOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return GetOfficeEditURLOutcome(GetOfficeEditURLResult(outcome.result()));
+	else
+		return GetOfficeEditURLOutcome(outcome.error());
+}
+
+void ImmClient::getOfficeEditURLAsync(const GetOfficeEditURLRequest& request, const GetOfficeEditURLAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, getOfficeEditURL(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+ImmClient::GetOfficeEditURLOutcomeCallable ImmClient::getOfficeEditURLCallable(const GetOfficeEditURLRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<GetOfficeEditURLOutcome()>>(
+			[this, request]()
+			{
+			return this->getOfficeEditURL(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+
 ImmClient::GetOfficePreviewURLOutcome ImmClient::getOfficePreviewURL(const GetOfficePreviewURLRequest &request) const
 {
 	auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2319,6 +2355,42 @@ ImmClient::PutProjectOutcomeCallable ImmClient::putProjectCallable(const PutProj
 	return task->get_future();
 }
 
+ImmClient::RefreshOfficeEditTokenOutcome ImmClient::refreshOfficeEditToken(const RefreshOfficeEditTokenRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return RefreshOfficeEditTokenOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return RefreshOfficeEditTokenOutcome(RefreshOfficeEditTokenResult(outcome.result()));
+	else
+		return RefreshOfficeEditTokenOutcome(outcome.error());
+}
+
+void ImmClient::refreshOfficeEditTokenAsync(const RefreshOfficeEditTokenRequest& request, const RefreshOfficeEditTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, refreshOfficeEditToken(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+ImmClient::RefreshOfficeEditTokenOutcomeCallable ImmClient::refreshOfficeEditTokenCallable(const RefreshOfficeEditTokenRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<RefreshOfficeEditTokenOutcome()>>(
+			[this, request]()
+			{
+			return this->refreshOfficeEditToken(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+
 ImmClient::RefreshOfficePreviewTokenOutcome ImmClient::refreshOfficePreviewToken(const RefreshOfficePreviewTokenRequest &request) const
 {
 	auto endpointOutcome = endpointProvider_->getEndpoint();

+ 150 - 0
imm/src/model/GetOfficeEditURLRequest.cc

@@ -0,0 +1,150 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud 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.
+ */
+
+#include <alibabacloud/imm/model/GetOfficeEditURLRequest.h>
+
+using AlibabaCloud::Imm::Model::GetOfficeEditURLRequest;
+
+GetOfficeEditURLRequest::GetOfficeEditURLRequest() :
+	RpcServiceRequest("imm", "2017-09-06", "GetOfficeEditURL")
+{
+	setMethod(HttpRequest::Method::Post);
+}
+
+GetOfficeEditURLRequest::~GetOfficeEditURLRequest()
+{}
+
+std::string GetOfficeEditURLRequest::getSrcType()const
+{
+	return srcType_;
+}
+
+void GetOfficeEditURLRequest::setSrcType(const std::string& srcType)
+{
+	srcType_ = srcType;
+	setParameter("SrcType", srcType);
+}
+
+std::string GetOfficeEditURLRequest::getProject()const
+{
+	return project_;
+}
+
+void GetOfficeEditURLRequest::setProject(const std::string& project)
+{
+	project_ = project;
+	setParameter("Project", project);
+}
+
+std::string GetOfficeEditURLRequest::getUserID()const
+{
+	return userID_;
+}
+
+void GetOfficeEditURLRequest::setUserID(const std::string& userID)
+{
+	userID_ = userID;
+	setParameter("UserID", userID);
+}
+
+std::string GetOfficeEditURLRequest::getAccessKeyId()const
+{
+	return accessKeyId_;
+}
+
+void GetOfficeEditURLRequest::setAccessKeyId(const std::string& accessKeyId)
+{
+	accessKeyId_ = accessKeyId;
+	setParameter("AccessKeyId", accessKeyId);
+}
+
+std::string GetOfficeEditURLRequest::getNotifyEndpoint()const
+{
+	return notifyEndpoint_;
+}
+
+void GetOfficeEditURLRequest::setNotifyEndpoint(const std::string& notifyEndpoint)
+{
+	notifyEndpoint_ = notifyEndpoint;
+	setParameter("NotifyEndpoint", notifyEndpoint);
+}
+
+std::string GetOfficeEditURLRequest::getFileID()const
+{
+	return fileID_;
+}
+
+void GetOfficeEditURLRequest::setFileID(const std::string& fileID)
+{
+	fileID_ = fileID;
+	setParameter("FileID", fileID);
+}
+
+std::string GetOfficeEditURLRequest::getNotifyTopicName()const
+{
+	return notifyTopicName_;
+}
+
+void GetOfficeEditURLRequest::setNotifyTopicName(const std::string& notifyTopicName)
+{
+	notifyTopicName_ = notifyTopicName;
+	setParameter("NotifyTopicName", notifyTopicName);
+}
+
+std::string GetOfficeEditURLRequest::getFileName()const
+{
+	return fileName_;
+}
+
+void GetOfficeEditURLRequest::setFileName(const std::string& fileName)
+{
+	fileName_ = fileName;
+	setParameter("FileName", fileName);
+}
+
+std::string GetOfficeEditURLRequest::getSrcUri()const
+{
+	return srcUri_;
+}
+
+void GetOfficeEditURLRequest::setSrcUri(const std::string& srcUri)
+{
+	srcUri_ = srcUri;
+	setParameter("SrcUri", srcUri);
+}
+
+std::string GetOfficeEditURLRequest::getTgtUri()const
+{
+	return tgtUri_;
+}
+
+void GetOfficeEditURLRequest::setTgtUri(const std::string& tgtUri)
+{
+	tgtUri_ = tgtUri;
+	setParameter("TgtUri", tgtUri);
+}
+
+std::string GetOfficeEditURLRequest::getUserName()const
+{
+	return userName_;
+}
+
+void GetOfficeEditURLRequest::setUserName(const std::string& userName)
+{
+	userName_ = userName;
+	setParameter("UserName", userName);
+}
+

+ 79 - 0
imm/src/model/GetOfficeEditURLResult.cc

@@ -0,0 +1,79 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud 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.
+ */
+
+#include <alibabacloud/imm/model/GetOfficeEditURLResult.h>
+#include <json/json.h>
+
+using namespace AlibabaCloud::Imm;
+using namespace AlibabaCloud::Imm::Model;
+
+GetOfficeEditURLResult::GetOfficeEditURLResult() :
+	ServiceResult()
+{}
+
+GetOfficeEditURLResult::GetOfficeEditURLResult(const std::string &payload) :
+	ServiceResult()
+{
+	parse(payload);
+}
+
+GetOfficeEditURLResult::~GetOfficeEditURLResult()
+{}
+
+void GetOfficeEditURLResult::parse(const std::string &payload)
+{
+	Json::Reader reader;
+	Json::Value value;
+	reader.parse(payload, value);
+	setRequestId(value["RequestId"].asString());
+	if(!value["EditURL"].isNull())
+		editURL_ = value["EditURL"].asString();
+	if(!value["AccessToken"].isNull())
+		accessToken_ = value["AccessToken"].asString();
+	if(!value["RefreshToken"].isNull())
+		refreshToken_ = value["RefreshToken"].asString();
+	if(!value["AccessTokenExpiredTime"].isNull())
+		accessTokenExpiredTime_ = value["AccessTokenExpiredTime"].asString();
+	if(!value["RefreshTokenExpiredTime"].isNull())
+		refreshTokenExpiredTime_ = value["RefreshTokenExpiredTime"].asString();
+
+}
+
+std::string GetOfficeEditURLResult::getRefreshToken()const
+{
+	return refreshToken_;
+}
+
+std::string GetOfficeEditURLResult::getEditURL()const
+{
+	return editURL_;
+}
+
+std::string GetOfficeEditURLResult::getAccessToken()const
+{
+	return accessToken_;
+}
+
+std::string GetOfficeEditURLResult::getRefreshTokenExpiredTime()const
+{
+	return refreshTokenExpiredTime_;
+}
+
+std::string GetOfficeEditURLResult::getAccessTokenExpiredTime()const
+{
+	return accessTokenExpiredTime_;
+}
+

+ 5 - 5
imm/src/model/GetOfficePreviewURLRequest.cc

@@ -60,15 +60,15 @@ void GetOfficePreviewURLRequest::setAccessKeyId(const std::string& accessKeyId)
 	setParameter("AccessKeyId", accessKeyId);
 }
 
-bool GetOfficePreviewURLRequest::getUseHTTPS()const
+bool GetOfficePreviewURLRequest::getUseOldURL()const
 {
-	return useHTTPS_;
+	return useOldURL_;
 }
 
-void GetOfficePreviewURLRequest::setUseHTTPS(bool useHTTPS)
+void GetOfficePreviewURLRequest::setUseOldURL(bool useOldURL)
 {
-	useHTTPS_ = useHTTPS;
-	setParameter("UseHTTPS", useHTTPS ? "true" : "false");
+	useOldURL_ = useOldURL;
+	setParameter("UseOldURL", useOldURL ? "true" : "false");
 }
 
 std::string GetOfficePreviewURLRequest::getSrcUri()const

+ 73 - 0
imm/src/model/RefreshOfficeEditTokenRequest.cc

@@ -0,0 +1,73 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud 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.
+ */
+
+#include <alibabacloud/imm/model/RefreshOfficeEditTokenRequest.h>
+
+using AlibabaCloud::Imm::Model::RefreshOfficeEditTokenRequest;
+
+RefreshOfficeEditTokenRequest::RefreshOfficeEditTokenRequest() :
+	RpcServiceRequest("imm", "2017-09-06", "RefreshOfficeEditToken")
+{
+	setMethod(HttpRequest::Method::Post);
+}
+
+RefreshOfficeEditTokenRequest::~RefreshOfficeEditTokenRequest()
+{}
+
+std::string RefreshOfficeEditTokenRequest::getProject()const
+{
+	return project_;
+}
+
+void RefreshOfficeEditTokenRequest::setProject(const std::string& project)
+{
+	project_ = project;
+	setParameter("Project", project);
+}
+
+std::string RefreshOfficeEditTokenRequest::getAccessToken()const
+{
+	return accessToken_;
+}
+
+void RefreshOfficeEditTokenRequest::setAccessToken(const std::string& accessToken)
+{
+	accessToken_ = accessToken;
+	setParameter("AccessToken", accessToken);
+}
+
+std::string RefreshOfficeEditTokenRequest::getAccessKeyId()const
+{
+	return accessKeyId_;
+}
+
+void RefreshOfficeEditTokenRequest::setAccessKeyId(const std::string& accessKeyId)
+{
+	accessKeyId_ = accessKeyId;
+	setParameter("AccessKeyId", accessKeyId);
+}
+
+std::string RefreshOfficeEditTokenRequest::getRefreshToken()const
+{
+	return refreshToken_;
+}
+
+void RefreshOfficeEditTokenRequest::setRefreshToken(const std::string& refreshToken)
+{
+	refreshToken_ = refreshToken;
+	setParameter("RefreshToken", refreshToken);
+}
+

+ 72 - 0
imm/src/model/RefreshOfficeEditTokenResult.cc

@@ -0,0 +1,72 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud 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.
+ */
+
+#include <alibabacloud/imm/model/RefreshOfficeEditTokenResult.h>
+#include <json/json.h>
+
+using namespace AlibabaCloud::Imm;
+using namespace AlibabaCloud::Imm::Model;
+
+RefreshOfficeEditTokenResult::RefreshOfficeEditTokenResult() :
+	ServiceResult()
+{}
+
+RefreshOfficeEditTokenResult::RefreshOfficeEditTokenResult(const std::string &payload) :
+	ServiceResult()
+{
+	parse(payload);
+}
+
+RefreshOfficeEditTokenResult::~RefreshOfficeEditTokenResult()
+{}
+
+void RefreshOfficeEditTokenResult::parse(const std::string &payload)
+{
+	Json::Reader reader;
+	Json::Value value;
+	reader.parse(payload, value);
+	setRequestId(value["RequestId"].asString());
+	if(!value["AccessToken"].isNull())
+		accessToken_ = value["AccessToken"].asString();
+	if(!value["AccessTokenExpiredTime"].isNull())
+		accessTokenExpiredTime_ = value["AccessTokenExpiredTime"].asString();
+	if(!value["RefreshToken"].isNull())
+		refreshToken_ = value["RefreshToken"].asString();
+	if(!value["RefreshTokenExpiredTime"].isNull())
+		refreshTokenExpiredTime_ = value["RefreshTokenExpiredTime"].asString();
+
+}
+
+std::string RefreshOfficeEditTokenResult::getRefreshToken()const
+{
+	return refreshToken_;
+}
+
+std::string RefreshOfficeEditTokenResult::getAccessToken()const
+{
+	return accessToken_;
+}
+
+std::string RefreshOfficeEditTokenResult::getRefreshTokenExpiredTime()const
+{
+	return refreshTokenExpiredTime_;
+}
+
+std::string RefreshOfficeEditTokenResult::getAccessTokenExpiredTime()const
+{
+	return accessTokenExpiredTime_;
+}
+