Kaynağa Gözat

Generated 2018-08-21, 2018-08-16 for Rdc.

sdk-team 6 yıl önce
ebeveyn
işleme
3a82901e8a

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2019-11-12 Version: 1.60.231
+- Generated 2018-08-21, 2018-08-16 for `Rdc`.
+
 2019-11-12 Version: 1.60.230
 - Generated 2018-08-21 for `Rdc`.
 

+ 111 - 0
services/rdc/add_project_members.go

@@ -0,0 +1,111 @@
+package rdc
+
+//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"
+)
+
+// AddProjectMembers invokes the rdc.AddProjectMembers API synchronously
+// api document: https://help.aliyun.com/api/rdc/addprojectmembers.html
+func (client *Client) AddProjectMembers(request *AddProjectMembersRequest) (response *AddProjectMembersResponse, err error) {
+	response = CreateAddProjectMembersResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// AddProjectMembersWithChan invokes the rdc.AddProjectMembers API asynchronously
+// api document: https://help.aliyun.com/api/rdc/addprojectmembers.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) AddProjectMembersWithChan(request *AddProjectMembersRequest) (<-chan *AddProjectMembersResponse, <-chan error) {
+	responseChan := make(chan *AddProjectMembersResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.AddProjectMembers(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// AddProjectMembersWithCallback invokes the rdc.AddProjectMembers API asynchronously
+// api document: https://help.aliyun.com/api/rdc/addprojectmembers.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) AddProjectMembersWithCallback(request *AddProjectMembersRequest, callback func(response *AddProjectMembersResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *AddProjectMembersResponse
+		var err error
+		defer close(result)
+		response, err = client.AddProjectMembers(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// AddProjectMembersRequest is the request struct for api AddProjectMembers
+type AddProjectMembersRequest struct {
+	*requests.RpcRequest
+	MemberStaffIds string           `position:"Body" name:"MemberStaffIds"`
+	Role           string           `position:"Body" name:"Role"`
+	CorpIdentifier string           `position:"Query" name:"CorpIdentifier"`
+	ProjectId      requests.Integer `position:"Body" name:"ProjectId"`
+	StaffId        string           `position:"Body" name:"StaffId"`
+}
+
+// AddProjectMembersResponse is the response struct for api AddProjectMembers
+type AddProjectMembersResponse struct {
+	*responses.BaseResponse
+	Code      int    `json:"Code" xml:"Code"`
+	Data      bool   `json:"Data" xml:"Data"`
+	Success   bool   `json:"Success" xml:"Success"`
+	Message   string `json:"Message" xml:"Message"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateAddProjectMembersRequest creates a request to invoke AddProjectMembers API
+func CreateAddProjectMembersRequest() (request *AddProjectMembersRequest) {
+	request = &AddProjectMembersRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Rdc", "2018-08-16", "AddProjectMembers", "rdc", "openAPI")
+	return
+}
+
+// CreateAddProjectMembersResponse creates a response to parse from AddProjectMembers response
+func CreateAddProjectMembersResponse() (response *AddProjectMembersResponse) {
+	response = &AddProjectMembersResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 110 - 0
services/rdc/create_project.go

@@ -0,0 +1,110 @@
+package rdc
+
+//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"
+)
+
+// CreateProject invokes the rdc.CreateProject API synchronously
+// api document: https://help.aliyun.com/api/rdc/createproject.html
+func (client *Client) CreateProject(request *CreateProjectRequest) (response *CreateProjectResponse, err error) {
+	response = CreateCreateProjectResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// CreateProjectWithChan invokes the rdc.CreateProject API asynchronously
+// api document: https://help.aliyun.com/api/rdc/createproject.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateProjectWithChan(request *CreateProjectRequest) (<-chan *CreateProjectResponse, <-chan error) {
+	responseChan := make(chan *CreateProjectResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.CreateProject(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// CreateProjectWithCallback invokes the rdc.CreateProject API asynchronously
+// api document: https://help.aliyun.com/api/rdc/createproject.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateProjectWithCallback(request *CreateProjectRequest, callback func(response *CreateProjectResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *CreateProjectResponse
+		var err error
+		defer close(result)
+		response, err = client.CreateProject(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// CreateProjectRequest is the request struct for api CreateProject
+type CreateProjectRequest struct {
+	*requests.RpcRequest
+	CorpIdentifier string `position:"Query" name:"CorpIdentifier"`
+	ParamJson      string `position:"Body" name:"ParamJson"`
+	Region         string `position:"Body" name:"Region"`
+	StaffId        string `position:"Body" name:"StaffId"`
+}
+
+// CreateProjectResponse is the response struct for api CreateProject
+type CreateProjectResponse struct {
+	*responses.BaseResponse
+	Code      int    `json:"Code" xml:"Code"`
+	Data      int    `json:"Data" xml:"Data"`
+	Success   bool   `json:"Success" xml:"Success"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Message   string `json:"Message" xml:"Message"`
+}
+
+// CreateCreateProjectRequest creates a request to invoke CreateProject API
+func CreateCreateProjectRequest() (request *CreateProjectRequest) {
+	request = &CreateProjectRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Rdc", "2018-08-16", "CreateProject", "rdc", "openAPI")
+	return
+}
+
+// CreateCreateProjectResponse creates a response to parse from CreateProject response
+func CreateCreateProjectResponse() (response *CreateProjectResponse) {
+	response = &CreateProjectResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 111 - 0
services/rdc/delete_project_members.go

@@ -0,0 +1,111 @@
+package rdc
+
+//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"
+)
+
+// DeleteProjectMembers invokes the rdc.DeleteProjectMembers API synchronously
+// api document: https://help.aliyun.com/api/rdc/deleteprojectmembers.html
+func (client *Client) DeleteProjectMembers(request *DeleteProjectMembersRequest) (response *DeleteProjectMembersResponse, err error) {
+	response = CreateDeleteProjectMembersResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DeleteProjectMembersWithChan invokes the rdc.DeleteProjectMembers API asynchronously
+// api document: https://help.aliyun.com/api/rdc/deleteprojectmembers.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteProjectMembersWithChan(request *DeleteProjectMembersRequest) (<-chan *DeleteProjectMembersResponse, <-chan error) {
+	responseChan := make(chan *DeleteProjectMembersResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DeleteProjectMembers(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DeleteProjectMembersWithCallback invokes the rdc.DeleteProjectMembers API asynchronously
+// api document: https://help.aliyun.com/api/rdc/deleteprojectmembers.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteProjectMembersWithCallback(request *DeleteProjectMembersRequest, callback func(response *DeleteProjectMembersResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DeleteProjectMembersResponse
+		var err error
+		defer close(result)
+		response, err = client.DeleteProjectMembers(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DeleteProjectMembersRequest is the request struct for api DeleteProjectMembers
+type DeleteProjectMembersRequest struct {
+	*requests.RpcRequest
+	MemberStaffIds string `position:"Body" name:"MemberStaffIds"`
+	Role           string `position:"Body" name:"Role"`
+	CorpIdentifier string `position:"Query" name:"CorpIdentifier"`
+	ProjectId      string `position:"Body" name:"ProjectId"`
+	StaffId        string `position:"Body" name:"StaffId"`
+}
+
+// DeleteProjectMembersResponse is the response struct for api DeleteProjectMembers
+type DeleteProjectMembersResponse struct {
+	*responses.BaseResponse
+	Code      int    `json:"Code" xml:"Code"`
+	Data      bool   `json:"Data" xml:"Data"`
+	Success   bool   `json:"Success" xml:"Success"`
+	Message   string `json:"Message" xml:"Message"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateDeleteProjectMembersRequest creates a request to invoke DeleteProjectMembers API
+func CreateDeleteProjectMembersRequest() (request *DeleteProjectMembersRequest) {
+	request = &DeleteProjectMembersRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Rdc", "2018-08-16", "DeleteProjectMembers", "rdc", "openAPI")
+	return
+}
+
+// CreateDeleteProjectMembersResponse creates a response to parse from DeleteProjectMembers response
+func CreateDeleteProjectMembersResponse() (response *DeleteProjectMembersResponse) {
+	response = &DeleteProjectMembersResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 108 - 0
services/rdc/get_project_info.go

@@ -0,0 +1,108 @@
+package rdc
+
+//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"
+)
+
+// GetProjectInfo invokes the rdc.GetProjectInfo API synchronously
+// api document: https://help.aliyun.com/api/rdc/getprojectinfo.html
+func (client *Client) GetProjectInfo(request *GetProjectInfoRequest) (response *GetProjectInfoResponse, err error) {
+	response = CreateGetProjectInfoResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// GetProjectInfoWithChan invokes the rdc.GetProjectInfo API asynchronously
+// api document: https://help.aliyun.com/api/rdc/getprojectinfo.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetProjectInfoWithChan(request *GetProjectInfoRequest) (<-chan *GetProjectInfoResponse, <-chan error) {
+	responseChan := make(chan *GetProjectInfoResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetProjectInfo(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// GetProjectInfoWithCallback invokes the rdc.GetProjectInfo API asynchronously
+// api document: https://help.aliyun.com/api/rdc/getprojectinfo.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetProjectInfoWithCallback(request *GetProjectInfoRequest, callback func(response *GetProjectInfoResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetProjectInfoResponse
+		var err error
+		defer close(result)
+		response, err = client.GetProjectInfo(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetProjectInfoRequest is the request struct for api GetProjectInfo
+type GetProjectInfoRequest struct {
+	*requests.RpcRequest
+	CorpIdentifier string           `position:"Query" name:"CorpIdentifier"`
+	ProjectId      requests.Integer `position:"Query" name:"ProjectId"`
+}
+
+// GetProjectInfoResponse is the response struct for api GetProjectInfo
+type GetProjectInfoResponse struct {
+	*responses.BaseResponse
+	Code      int    `json:"Code" xml:"Code"`
+	Success   bool   `json:"Success" xml:"Success"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Message   string `json:"Message" xml:"Message"`
+	Data      Data   `json:"Data" xml:"Data"`
+}
+
+// CreateGetProjectInfoRequest creates a request to invoke GetProjectInfo API
+func CreateGetProjectInfoRequest() (request *GetProjectInfoRequest) {
+	request = &GetProjectInfoRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Rdc", "2018-08-16", "GetProjectInfo", "rdc", "openAPI")
+	return
+}
+
+// CreateGetProjectInfoResponse creates a response to parse from GetProjectInfo response
+func CreateGetProjectInfoResponse() (response *GetProjectInfoResponse) {
+	response = &GetProjectInfoResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 26 - 0
services/rdc/struct_creator.go

@@ -0,0 +1,26 @@
+package rdc
+
+//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.
+
+// Creator is a nested struct in rdc response
+type Creator struct {
+	RealName string `json:"RealName" xml:"RealName"`
+	NickName string `json:"NickName" xml:"NickName"`
+	Avatar   string `json:"Avatar" xml:"Avatar"`
+	Id       int    `json:"Id" xml:"Id"`
+	Email    string `json:"Email" xml:"Email"`
+	StaffId  string `json:"StaffId" xml:"StaffId"`
+}

+ 16 - 14
services/rdc/struct_data.go

@@ -17,18 +17,20 @@ package rdc
 
 // Data is a nested struct in rdc response
 type Data struct {
-	Name          string `json:"Name" xml:"Name"`
-	Status        int    `json:"Status" xml:"Status"`
-	ApplicationId string `json:"ApplicationId" xml:"ApplicationId"`
-	Code          string `json:"Code" xml:"Code"`
-	TotalCount    string `json:"TotalCount" xml:"TotalCount"`
-	Cases         string `json:"Cases" xml:"Cases"`
-	PageTotal     string `json:"PageTotal" xml:"PageTotal"`
-	Id            int64  `json:"Id" xml:"Id"`
-	PageSize      string `json:"PageSize" xml:"PageSize"`
-	PageNum       string `json:"PageNum" xml:"PageNum"`
-	Identifier    string `json:"Identifier" xml:"Identifier"`
-	ProhibitCode  int    `json:"ProhibitCode" xml:"ProhibitCode"`
-	Type          int    `json:"Type" xml:"Type"`
-	IsValid       bool   `json:"IsValid" xml:"IsValid"`
+	GmtModified    string          `json:"GmtModified" xml:"GmtModified"`
+	Description    string          `json:"Description" xml:"Description"`
+	Stamp          string          `json:"Stamp" xml:"Stamp"`
+	GmtCreate      string          `json:"GmtCreate" xml:"GmtCreate"`
+	Type           string          `json:"Type" xml:"Type"`
+	ParentId       int             `json:"ParentId" xml:"ParentId"`
+	Mode           string          `json:"Mode" xml:"Mode"`
+	IdPath         string          `json:"IdPath" xml:"IdPath"`
+	Name           string          `json:"Name" xml:"Name"`
+	Id             int             `json:"Id" xml:"Id"`
+	Region         string          `json:"Region" xml:"Region"`
+	CustomValues   string          `json:"CustomValues" xml:"CustomValues"`
+	Status         string          `json:"Status" xml:"Status"`
+	Creator        Creator         `json:"Creator" xml:"Creator"`
+	Modifier       Modifier        `json:"Modifier" xml:"Modifier"`
+	ProjectMembers []ProjectMember `json:"ProjectMembers" xml:"ProjectMembers"`
 }

+ 26 - 0
services/rdc/struct_modifier.go

@@ -0,0 +1,26 @@
+package rdc
+
+//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.
+
+// Modifier is a nested struct in rdc response
+type Modifier struct {
+	RealName string `json:"RealName" xml:"RealName"`
+	NickName string `json:"NickName" xml:"NickName"`
+	Avatar   string `json:"Avatar" xml:"Avatar"`
+	Id       int    `json:"Id" xml:"Id"`
+	Email    string `json:"Email" xml:"Email"`
+	StaffId  string `json:"StaffId" xml:"StaffId"`
+}

+ 24 - 0
services/rdc/struct_project_member.go

@@ -0,0 +1,24 @@
+package rdc
+
+//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.
+
+// ProjectMember is a nested struct in rdc response
+type ProjectMember struct {
+	Identifier string `json:"Identifier" xml:"Identifier"`
+	Name       string `json:"Name" xml:"Name"`
+	Id         int    `json:"Id" xml:"Id"`
+	Users      []User `json:"Users" xml:"Users"`
+}

+ 21 - 0
services/rdc/struct_project_members.go

@@ -0,0 +1,21 @@
+package rdc
+
+//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.
+
+// ProjectMembers is a nested struct in rdc response
+type ProjectMembers struct {
+	ProjectMember []ProjectMember `json:"ProjectMember" xml:"ProjectMember"`
+}

+ 26 - 0
services/rdc/struct_user.go

@@ -0,0 +1,26 @@
+package rdc
+
+//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.
+
+// User is a nested struct in rdc response
+type User struct {
+	RealName string `json:"RealName" xml:"RealName"`
+	NickName string `json:"NickName" xml:"NickName"`
+	Avatar   string `json:"Avatar" xml:"Avatar"`
+	Id       int    `json:"Id" xml:"Id"`
+	Email    string `json:"Email" xml:"Email"`
+	StaffId  string `json:"StaffId" xml:"StaffId"`
+}

+ 1 - 1
services/rdc/struct_users.go

@@ -17,5 +17,5 @@ package rdc
 
 // Users is a nested struct in rdc response
 type Users struct {
-	UsersItem []UsersItem `json:"Users" xml:"Users"`
+	User []User `json:"User" xml:"User"`
 }

+ 109 - 0
services/rdc/update_project.go

@@ -0,0 +1,109 @@
+package rdc
+
+//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"
+)
+
+// UpdateProject invokes the rdc.UpdateProject API synchronously
+// api document: https://help.aliyun.com/api/rdc/updateproject.html
+func (client *Client) UpdateProject(request *UpdateProjectRequest) (response *UpdateProjectResponse, err error) {
+	response = CreateUpdateProjectResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UpdateProjectWithChan invokes the rdc.UpdateProject API asynchronously
+// api document: https://help.aliyun.com/api/rdc/updateproject.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateProjectWithChan(request *UpdateProjectRequest) (<-chan *UpdateProjectResponse, <-chan error) {
+	responseChan := make(chan *UpdateProjectResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UpdateProject(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UpdateProjectWithCallback invokes the rdc.UpdateProject API asynchronously
+// api document: https://help.aliyun.com/api/rdc/updateproject.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateProjectWithCallback(request *UpdateProjectRequest, callback func(response *UpdateProjectResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UpdateProjectResponse
+		var err error
+		defer close(result)
+		response, err = client.UpdateProject(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UpdateProjectRequest is the request struct for api UpdateProject
+type UpdateProjectRequest struct {
+	*requests.RpcRequest
+	CorpIdentifier string `position:"Query" name:"CorpIdentifier"`
+	ParamJson      string `position:"Body" name:"ParamJson"`
+	StaffId        string `position:"Body" name:"StaffId"`
+}
+
+// UpdateProjectResponse is the response struct for api UpdateProject
+type UpdateProjectResponse struct {
+	*responses.BaseResponse
+	Code      int    `json:"Code" xml:"Code"`
+	Data      bool   `json:"Data" xml:"Data"`
+	Success   bool   `json:"Success" xml:"Success"`
+	Message   string `json:"Message" xml:"Message"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateUpdateProjectRequest creates a request to invoke UpdateProject API
+func CreateUpdateProjectRequest() (request *UpdateProjectRequest) {
+	request = &UpdateProjectRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Rdc", "2018-08-16", "UpdateProject", "rdc", "openAPI")
+	return
+}
+
+// CreateUpdateProjectResponse creates a response to parse from UpdateProject response
+func CreateUpdateProjectResponse() (response *UpdateProjectResponse) {
+	response = &UpdateProjectResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}