Преглед на файлове

IMM SDK Auto Released By kuta.zyb,Version:1.42.2

Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
yixiong.jxy преди 7 години
родител
ревизия
357e2e2840

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2018-11-27 Version: 1.42.2
+1, add doc index api
+
 2018-11-27 Version: 1.42.1
 1, api for custom keyword lib、similartext lib、voice keyword lib
 2, api for custom image lib

+ 117 - 0
services/imm/create_doc_index_task.go

@@ -0,0 +1,117 @@
+package imm
+
+//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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// CreateDocIndexTask invokes the imm.CreateDocIndexTask API synchronously
+// api document: https://help.aliyun.com/api/imm/createdocindextask.html
+func (client *Client) CreateDocIndexTask(request *CreateDocIndexTaskRequest) (response *CreateDocIndexTaskResponse, err error) {
+	response = CreateCreateDocIndexTaskResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// CreateDocIndexTaskWithChan invokes the imm.CreateDocIndexTask API asynchronously
+// api document: https://help.aliyun.com/api/imm/createdocindextask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateDocIndexTaskWithChan(request *CreateDocIndexTaskRequest) (<-chan *CreateDocIndexTaskResponse, <-chan error) {
+	responseChan := make(chan *CreateDocIndexTaskResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.CreateDocIndexTask(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// CreateDocIndexTaskWithCallback invokes the imm.CreateDocIndexTask API asynchronously
+// api document: https://help.aliyun.com/api/imm/createdocindextask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateDocIndexTaskWithCallback(request *CreateDocIndexTaskRequest, callback func(response *CreateDocIndexTaskResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *CreateDocIndexTaskResponse
+		var err error
+		defer close(result)
+		response, err = client.CreateDocIndexTask(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// CreateDocIndexTaskRequest is the request struct for api CreateDocIndexTask
+type CreateDocIndexTaskRequest struct {
+	*requests.RpcRequest
+	CustomKey1  string `position:"Query" name:"CustomKey1"`
+	Set         string `position:"Query" name:"Set"`
+	CustomKey5  string `position:"Query" name:"CustomKey5"`
+	CustomKey4  string `position:"Query" name:"CustomKey4"`
+	CustomKey3  string `position:"Query" name:"CustomKey3"`
+	CustomKey2  string `position:"Query" name:"CustomKey2"`
+	Project     string `position:"Query" name:"Project"`
+	CustomKey6  string `position:"Query" name:"CustomKey6"`
+	ContentType string `position:"Query" name:"ContentType"`
+	Name        string `position:"Query" name:"Name"`
+	SrcUri      string `position:"Query" name:"SrcUri"`
+	UniqueId    string `position:"Query" name:"UniqueId"`
+}
+
+// CreateDocIndexTaskResponse is the response struct for api CreateDocIndexTask
+type CreateDocIndexTaskResponse struct {
+	*responses.BaseResponse
+	RequestId  string `json:"RequestId" xml:"RequestId"`
+	TaskId     string `json:"TaskId" xml:"TaskId"`
+	Status     string `json:"Status" xml:"Status"`
+	CreateTime string `json:"CreateTime" xml:"CreateTime"`
+}
+
+// CreateCreateDocIndexTaskRequest creates a request to invoke CreateDocIndexTask API
+func CreateCreateDocIndexTaskRequest() (request *CreateDocIndexTaskRequest) {
+	request = &CreateDocIndexTaskRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("imm", "2017-09-06", "CreateDocIndexTask", "imm", "openAPI")
+	return
+}
+
+// CreateCreateDocIndexTaskResponse creates a response to parse from CreateDocIndexTask response
+func CreateCreateDocIndexTaskResponse() (response *CreateDocIndexTaskResponse) {
+	response = &CreateDocIndexTaskResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/imm/delete_doc_index.go

@@ -0,0 +1,105 @@
+package imm
+
+//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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DeleteDocIndex invokes the imm.DeleteDocIndex API synchronously
+// api document: https://help.aliyun.com/api/imm/deletedocindex.html
+func (client *Client) DeleteDocIndex(request *DeleteDocIndexRequest) (response *DeleteDocIndexResponse, err error) {
+	response = CreateDeleteDocIndexResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DeleteDocIndexWithChan invokes the imm.DeleteDocIndex API asynchronously
+// api document: https://help.aliyun.com/api/imm/deletedocindex.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteDocIndexWithChan(request *DeleteDocIndexRequest) (<-chan *DeleteDocIndexResponse, <-chan error) {
+	responseChan := make(chan *DeleteDocIndexResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DeleteDocIndex(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DeleteDocIndexWithCallback invokes the imm.DeleteDocIndex API asynchronously
+// api document: https://help.aliyun.com/api/imm/deletedocindex.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteDocIndexWithCallback(request *DeleteDocIndexRequest, callback func(response *DeleteDocIndexResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DeleteDocIndexResponse
+		var err error
+		defer close(result)
+		response, err = client.DeleteDocIndex(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DeleteDocIndexRequest is the request struct for api DeleteDocIndex
+type DeleteDocIndexRequest struct {
+	*requests.RpcRequest
+	Set      string `position:"Query" name:"Set"`
+	Project  string `position:"Query" name:"Project"`
+	UniqueId string `position:"Query" name:"UniqueId"`
+}
+
+// DeleteDocIndexResponse is the response struct for api DeleteDocIndex
+type DeleteDocIndexResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateDeleteDocIndexRequest creates a request to invoke DeleteDocIndex API
+func CreateDeleteDocIndexRequest() (request *DeleteDocIndexRequest) {
+	request = &DeleteDocIndexRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("imm", "2017-09-06", "DeleteDocIndex", "imm", "openAPI")
+	return
+}
+
+// CreateDeleteDocIndexResponse creates a response to parse from DeleteDocIndex response
+func CreateDeleteDocIndexResponse() (response *DeleteDocIndexResponse) {
+	response = &DeleteDocIndexResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 120 - 0
services/imm/get_doc_index.go

@@ -0,0 +1,120 @@
+package imm
+
+//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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// GetDocIndex invokes the imm.GetDocIndex API synchronously
+// api document: https://help.aliyun.com/api/imm/getdocindex.html
+func (client *Client) GetDocIndex(request *GetDocIndexRequest) (response *GetDocIndexResponse, err error) {
+	response = CreateGetDocIndexResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// GetDocIndexWithChan invokes the imm.GetDocIndex API asynchronously
+// api document: https://help.aliyun.com/api/imm/getdocindex.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetDocIndexWithChan(request *GetDocIndexRequest) (<-chan *GetDocIndexResponse, <-chan error) {
+	responseChan := make(chan *GetDocIndexResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetDocIndex(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// GetDocIndexWithCallback invokes the imm.GetDocIndex API asynchronously
+// api document: https://help.aliyun.com/api/imm/getdocindex.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetDocIndexWithCallback(request *GetDocIndexRequest, callback func(response *GetDocIndexResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetDocIndexResponse
+		var err error
+		defer close(result)
+		response, err = client.GetDocIndex(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetDocIndexRequest is the request struct for api GetDocIndex
+type GetDocIndexRequest struct {
+	*requests.RpcRequest
+	Set      string `position:"Query" name:"Set"`
+	Project  string `position:"Query" name:"Project"`
+	UniqueId string `position:"Query" name:"UniqueId"`
+}
+
+// GetDocIndexResponse is the response struct for api GetDocIndex
+type GetDocIndexResponse struct {
+	*responses.BaseResponse
+	RequestId         string `json:"RequestId" xml:"RequestId"`
+	IndexCreatedTime  string `json:"IndexCreatedTime" xml:"IndexCreatedTime"`
+	IndexModifiedTime string `json:"IndexModifiedTime" xml:"IndexModifiedTime"`
+	UniqueId          string `json:"UniqueId" xml:"UniqueId"`
+	SrcUri            string `json:"SrcUri" xml:"SrcUri"`
+	Name              string `json:"Name" xml:"Name"`
+	ContentType       string `json:"ContentType" xml:"ContentType"`
+	LastModified      string `json:"LastModified" xml:"LastModified"`
+	Size              int    `json:"Size" xml:"Size"`
+	PageNum           int    `json:"PageNum" xml:"PageNum"`
+	CustomKey1        string `json:"CustomKey1" xml:"CustomKey1"`
+	CustomKey2        string `json:"CustomKey2" xml:"CustomKey2"`
+	CustomKey3        string `json:"CustomKey3" xml:"CustomKey3"`
+	CustomKey4        string `json:"CustomKey4" xml:"CustomKey4"`
+	CustomKey5        string `json:"CustomKey5" xml:"CustomKey5"`
+	CustomKey6        string `json:"CustomKey6" xml:"CustomKey6"`
+}
+
+// CreateGetDocIndexRequest creates a request to invoke GetDocIndex API
+func CreateGetDocIndexRequest() (request *GetDocIndexRequest) {
+	request = &GetDocIndexRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("imm", "2017-09-06", "GetDocIndex", "imm", "openAPI")
+	return
+}
+
+// CreateGetDocIndexResponse creates a response to parse from GetDocIndex response
+func CreateGetDocIndexResponse() (response *GetDocIndexResponse) {
+	response = &GetDocIndexResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 109 - 0
services/imm/get_doc_index_task.go

@@ -0,0 +1,109 @@
+package imm
+
+//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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// GetDocIndexTask invokes the imm.GetDocIndexTask API synchronously
+// api document: https://help.aliyun.com/api/imm/getdocindextask.html
+func (client *Client) GetDocIndexTask(request *GetDocIndexTaskRequest) (response *GetDocIndexTaskResponse, err error) {
+	response = CreateGetDocIndexTaskResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// GetDocIndexTaskWithChan invokes the imm.GetDocIndexTask API asynchronously
+// api document: https://help.aliyun.com/api/imm/getdocindextask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetDocIndexTaskWithChan(request *GetDocIndexTaskRequest) (<-chan *GetDocIndexTaskResponse, <-chan error) {
+	responseChan := make(chan *GetDocIndexTaskResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetDocIndexTask(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// GetDocIndexTaskWithCallback invokes the imm.GetDocIndexTask API asynchronously
+// api document: https://help.aliyun.com/api/imm/getdocindextask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetDocIndexTaskWithCallback(request *GetDocIndexTaskRequest, callback func(response *GetDocIndexTaskResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetDocIndexTaskResponse
+		var err error
+		defer close(result)
+		response, err = client.GetDocIndexTask(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetDocIndexTaskRequest is the request struct for api GetDocIndexTask
+type GetDocIndexTaskRequest struct {
+	*requests.RpcRequest
+	Project string `position:"Query" name:"Project"`
+	TaskId  string `position:"Query" name:"TaskId"`
+}
+
+// GetDocIndexTaskResponse is the response struct for api GetDocIndexTask
+type GetDocIndexTaskResponse struct {
+	*responses.BaseResponse
+	RequestId  string     `json:"RequestId" xml:"RequestId"`
+	Status     string     `json:"Status" xml:"Status"`
+	TaskId     string     `json:"TaskId" xml:"TaskId"`
+	CreateTime string     `json:"CreateTime" xml:"CreateTime"`
+	FinishTime string     `json:"FinishTime" xml:"FinishTime"`
+	FailDetail FailDetail `json:"FailDetail" xml:"FailDetail"`
+}
+
+// CreateGetDocIndexTaskRequest creates a request to invoke GetDocIndexTask API
+func CreateGetDocIndexTaskRequest() (request *GetDocIndexTaskRequest) {
+	request = &GetDocIndexTaskRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("imm", "2017-09-06", "GetDocIndexTask", "imm", "openAPI")
+	return
+}
+
+// CreateGetDocIndexTaskResponse creates a response to parse from GetDocIndexTask response
+func CreateGetDocIndexTaskResponse() (response *GetDocIndexTaskResponse) {
+	response = &GetDocIndexTaskResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 122 - 0
services/imm/search_doc_index.go

@@ -0,0 +1,122 @@
+package imm
+
+//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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// SearchDocIndex invokes the imm.SearchDocIndex API synchronously
+// api document: https://help.aliyun.com/api/imm/searchdocindex.html
+func (client *Client) SearchDocIndex(request *SearchDocIndexRequest) (response *SearchDocIndexResponse, err error) {
+	response = CreateSearchDocIndexResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// SearchDocIndexWithChan invokes the imm.SearchDocIndex API asynchronously
+// api document: https://help.aliyun.com/api/imm/searchdocindex.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SearchDocIndexWithChan(request *SearchDocIndexRequest) (<-chan *SearchDocIndexResponse, <-chan error) {
+	responseChan := make(chan *SearchDocIndexResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.SearchDocIndex(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// SearchDocIndexWithCallback invokes the imm.SearchDocIndex API asynchronously
+// api document: https://help.aliyun.com/api/imm/searchdocindex.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SearchDocIndexWithCallback(request *SearchDocIndexRequest, callback func(response *SearchDocIndexResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *SearchDocIndexResponse
+		var err error
+		defer close(result)
+		response, err = client.SearchDocIndex(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// SearchDocIndexRequest is the request struct for api SearchDocIndex
+type SearchDocIndexRequest struct {
+	*requests.RpcRequest
+	ModifiedTimeEnd   requests.Integer `position:"Query" name:"ModifiedTimeEnd"`
+	CustomKey1        string           `position:"Query" name:"CustomKey1"`
+	Set               string           `position:"Query" name:"Set"`
+	SizeLimitEnd      requests.Integer `position:"Query" name:"SizeLimitEnd"`
+	CustomKey5        string           `position:"Query" name:"CustomKey5"`
+	Offset            requests.Integer `position:"Query" name:"Offset"`
+	CustomKey4        string           `position:"Query" name:"CustomKey4"`
+	CustomKey3        string           `position:"Query" name:"CustomKey3"`
+	CustomKey2        string           `position:"Query" name:"CustomKey2"`
+	Project           string           `position:"Query" name:"Project"`
+	ModifiedTimeStart requests.Integer `position:"Query" name:"ModifiedTimeStart"`
+	PageNumLimitStart requests.Integer `position:"Query" name:"PageNumLimitStart"`
+	CustomKey6        string           `position:"Query" name:"CustomKey6"`
+	Content           string           `position:"Query" name:"Content"`
+	PageNumLimitEnd   requests.Integer `position:"Query" name:"PageNumLimitEnd"`
+	ContentType       string           `position:"Query" name:"ContentType"`
+	SizeLimitStart    requests.Integer `position:"Query" name:"SizeLimitStart"`
+	Name              string           `position:"Query" name:"Name"`
+	Limit             requests.Integer `position:"Query" name:"Limit"`
+}
+
+// SearchDocIndexResponse is the response struct for api SearchDocIndex
+type SearchDocIndexResponse struct {
+	*responses.BaseResponse
+	RequestId string         `json:"RequestId" xml:"RequestId"`
+	DocInfos  []DocInfosItem `json:"DocInfos" xml:"DocInfos"`
+}
+
+// CreateSearchDocIndexRequest creates a request to invoke SearchDocIndex API
+func CreateSearchDocIndexRequest() (request *SearchDocIndexRequest) {
+	request = &SearchDocIndexRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("imm", "2017-09-06", "SearchDocIndex", "imm", "openAPI")
+	return
+}
+
+// CreateSearchDocIndexResponse creates a response to parse from SearchDocIndex response
+func CreateSearchDocIndexResponse() (response *SearchDocIndexResponse) {
+	response = &SearchDocIndexResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 21 - 0
services/imm/struct_doc_infos.go

@@ -0,0 +1,21 @@
+package imm
+
+//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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// DocInfos is a nested struct in imm response
+type DocInfos struct {
+	DocInfosItem []DocInfosItem `json:"DocInfosItem" xml:"DocInfosItem"`
+}

+ 33 - 0
services/imm/struct_doc_infos_item.go

@@ -0,0 +1,33 @@
+package imm
+
+//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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// DocInfosItem is a nested struct in imm response
+type DocInfosItem struct {
+	UniqueId     string `json:"UniqueId" xml:"UniqueId"`
+	SrcUri       string `json:"SrcUri" xml:"SrcUri"`
+	Name         string `json:"Name" xml:"Name"`
+	ContentType  string `json:"ContentType" xml:"ContentType"`
+	LastModified string `json:"LastModified" xml:"LastModified"`
+	Size         int    `json:"Size" xml:"Size"`
+	PageNum      int    `json:"PageNum" xml:"PageNum"`
+	CustomKey1   string `json:"CustomKey1" xml:"CustomKey1"`
+	CustomKey2   string `json:"CustomKey2" xml:"CustomKey2"`
+	CustomKey3   string `json:"CustomKey3" xml:"CustomKey3"`
+	CustomKey4   string `json:"CustomKey4" xml:"CustomKey4"`
+	CustomKey5   string `json:"CustomKey5" xml:"CustomKey5"`
+	CustomKey6   string `json:"CustomKey6" xml:"CustomKey6"`
+}

+ 114 - 0
services/imm/update_doc_index_meta.go

@@ -0,0 +1,114 @@
+package imm
+
+//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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// UpdateDocIndexMeta invokes the imm.UpdateDocIndexMeta API synchronously
+// api document: https://help.aliyun.com/api/imm/updatedocindexmeta.html
+func (client *Client) UpdateDocIndexMeta(request *UpdateDocIndexMetaRequest) (response *UpdateDocIndexMetaResponse, err error) {
+	response = CreateUpdateDocIndexMetaResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UpdateDocIndexMetaWithChan invokes the imm.UpdateDocIndexMeta API asynchronously
+// api document: https://help.aliyun.com/api/imm/updatedocindexmeta.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateDocIndexMetaWithChan(request *UpdateDocIndexMetaRequest) (<-chan *UpdateDocIndexMetaResponse, <-chan error) {
+	responseChan := make(chan *UpdateDocIndexMetaResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UpdateDocIndexMeta(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UpdateDocIndexMetaWithCallback invokes the imm.UpdateDocIndexMeta API asynchronously
+// api document: https://help.aliyun.com/api/imm/updatedocindexmeta.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateDocIndexMetaWithCallback(request *UpdateDocIndexMetaRequest, callback func(response *UpdateDocIndexMetaResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UpdateDocIndexMetaResponse
+		var err error
+		defer close(result)
+		response, err = client.UpdateDocIndexMeta(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UpdateDocIndexMetaRequest is the request struct for api UpdateDocIndexMeta
+type UpdateDocIndexMetaRequest struct {
+	*requests.RpcRequest
+	CustomKey1 string `position:"Query" name:"CustomKey1"`
+	Set        string `position:"Query" name:"Set"`
+	CustomKey5 string `position:"Query" name:"CustomKey5"`
+	CustomKey4 string `position:"Query" name:"CustomKey4"`
+	CustomKey3 string `position:"Query" name:"CustomKey3"`
+	CustomKey2 string `position:"Query" name:"CustomKey2"`
+	Project    string `position:"Query" name:"Project"`
+	CustomKey6 string `position:"Query" name:"CustomKey6"`
+	Name       string `position:"Query" name:"Name"`
+	UniqueId   string `position:"Query" name:"UniqueId"`
+}
+
+// UpdateDocIndexMetaResponse is the response struct for api UpdateDocIndexMeta
+type UpdateDocIndexMetaResponse struct {
+	*responses.BaseResponse
+	RequestId         string `json:"RequestId" xml:"RequestId"`
+	IndexCreatedTime  string `json:"IndexCreatedTime" xml:"IndexCreatedTime"`
+	IndexModifiedTime string `json:"IndexModifiedTime" xml:"IndexModifiedTime"`
+}
+
+// CreateUpdateDocIndexMetaRequest creates a request to invoke UpdateDocIndexMeta API
+func CreateUpdateDocIndexMetaRequest() (request *UpdateDocIndexMetaRequest) {
+	request = &UpdateDocIndexMetaRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("imm", "2017-09-06", "UpdateDocIndexMeta", "imm", "openAPI")
+	return
+}
+
+// CreateUpdateDocIndexMetaResponse creates a response to parse from UpdateDocIndexMeta response
+func CreateUpdateDocIndexMetaResponse() (response *UpdateDocIndexMetaResponse) {
+	response = &UpdateDocIndexMetaResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}