Browse Source

Generated 2019-09-16 for alikafka.

sdk-team 6 years ago
parent
commit
7c89328f67

+ 5 - 0
ChangeLog.txt

@@ -1,3 +1,8 @@
+2020-01-14 Version: v1.60.334
+- Generated 2019-09-16 for `alikafka`.
+- Support modity topic remark.
+- Support modify topic partitions.
+
 2020-01-13 Version: v1.60.333
 - Generated 2015-12-01 for `Dds`.
 - New API DescribeAvailableResource.

+ 1 - 0
services/alikafka/create_consumer_group.go

@@ -77,6 +77,7 @@ func (client *Client) CreateConsumerGroupWithCallback(request *CreateConsumerGro
 type CreateConsumerGroupRequest struct {
 	*requests.RpcRequest
 	ConsumerId string `position:"Query" name:"ConsumerId"`
+	Remark     string `position:"Query" name:"Remark"`
 	InstanceId string `position:"Query" name:"InstanceId"`
 }
 

+ 3 - 3
services/alikafka/get_consumer_list.go

@@ -76,9 +76,9 @@ func (client *Client) GetConsumerListWithCallback(request *GetConsumerListReques
 // GetConsumerListRequest is the request struct for api GetConsumerList
 type GetConsumerListRequest struct {
 	*requests.RpcRequest
-	CurrentPage string `position:"Query" name:"CurrentPage"`
-	InstanceId  string `position:"Query" name:"InstanceId"`
-	PageSize    string `position:"Query" name:"PageSize"`
+	CurrentPage requests.Integer `position:"Query" name:"CurrentPage"`
+	InstanceId  string           `position:"Query" name:"InstanceId"`
+	PageSize    requests.Integer `position:"Query" name:"PageSize"`
 }
 
 // GetConsumerListResponse is the response struct for api GetConsumerList

+ 9 - 1
services/alikafka/get_instance_list.go

@@ -76,7 +76,15 @@ func (client *Client) GetInstanceListWithCallback(request *GetInstanceListReques
 // GetInstanceListRequest is the request struct for api GetInstanceList
 type GetInstanceListRequest struct {
 	*requests.RpcRequest
-	OrderId string `position:"Query" name:"OrderId"`
+	OrderId    string                `position:"Query" name:"OrderId"`
+	InstanceId *[]string             `position:"Query" name:"InstanceId"  type:"Repeated"`
+	Tag        *[]GetInstanceListTag `position:"Query" name:"Tag"  type:"Repeated"`
+}
+
+// GetInstanceListTag is a repeated param struct in GetInstanceListRequest
+type GetInstanceListTag struct {
+	Value string `name:"Value"`
+	Key   string `name:"Key"`
 }
 
 // GetInstanceListResponse is the response struct for api GetInstanceList

+ 5 - 5
services/alikafka/get_meta_product_list.go

@@ -82,11 +82,11 @@ type GetMetaProductListRequest struct {
 // GetMetaProductListResponse is the response struct for api GetMetaProductList
 type GetMetaProductListResponse struct {
 	*responses.BaseResponse
-	Success   bool   `json:"Success" xml:"Success"`
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Code      int    `json:"Code" xml:"Code"`
-	Message   string `json:"Message" xml:"Message"`
-	MetaData  string `json:"MetaData" xml:"MetaData"`
+	Success   bool     `json:"Success" xml:"Success"`
+	RequestId string   `json:"RequestId" xml:"RequestId"`
+	Code      int      `json:"Code" xml:"Code"`
+	Message   string   `json:"Message" xml:"Message"`
+	MetaData  MetaData `json:"MetaData" xml:"MetaData"`
 }
 
 // CreateGetMetaProductListRequest creates a request to invoke GetMetaProductList API

+ 108 - 0
services/alikafka/modify_partition_num.go

@@ -0,0 +1,108 @@
+package alikafka
+
+//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"
+)
+
+// ModifyPartitionNum invokes the alikafka.ModifyPartitionNum API synchronously
+// api document: https://help.aliyun.com/api/alikafka/modifypartitionnum.html
+func (client *Client) ModifyPartitionNum(request *ModifyPartitionNumRequest) (response *ModifyPartitionNumResponse, err error) {
+	response = CreateModifyPartitionNumResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ModifyPartitionNumWithChan invokes the alikafka.ModifyPartitionNum API asynchronously
+// api document: https://help.aliyun.com/api/alikafka/modifypartitionnum.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ModifyPartitionNumWithChan(request *ModifyPartitionNumRequest) (<-chan *ModifyPartitionNumResponse, <-chan error) {
+	responseChan := make(chan *ModifyPartitionNumResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ModifyPartitionNum(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ModifyPartitionNumWithCallback invokes the alikafka.ModifyPartitionNum API asynchronously
+// api document: https://help.aliyun.com/api/alikafka/modifypartitionnum.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ModifyPartitionNumWithCallback(request *ModifyPartitionNumRequest, callback func(response *ModifyPartitionNumResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ModifyPartitionNumResponse
+		var err error
+		defer close(result)
+		response, err = client.ModifyPartitionNum(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ModifyPartitionNumRequest is the request struct for api ModifyPartitionNum
+type ModifyPartitionNumRequest struct {
+	*requests.RpcRequest
+	InstanceId      string           `position:"Query" name:"InstanceId"`
+	Topic           string           `position:"Query" name:"Topic"`
+	AddPartitionNum requests.Integer `position:"Query" name:"AddPartitionNum"`
+}
+
+// ModifyPartitionNumResponse is the response struct for api ModifyPartitionNum
+type ModifyPartitionNumResponse struct {
+	*responses.BaseResponse
+	Success   bool   `json:"Success" xml:"Success"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Code      int    `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+}
+
+// CreateModifyPartitionNumRequest creates a request to invoke ModifyPartitionNum API
+func CreateModifyPartitionNumRequest() (request *ModifyPartitionNumRequest) {
+	request = &ModifyPartitionNumRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("alikafka", "2019-09-16", "ModifyPartitionNum", "alikafka", "openAPI")
+	return
+}
+
+// CreateModifyPartitionNumResponse creates a response to parse from ModifyPartitionNum response
+func CreateModifyPartitionNumResponse() (response *ModifyPartitionNumResponse) {
+	response = &ModifyPartitionNumResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 108 - 0
services/alikafka/modify_topic_remark.go

@@ -0,0 +1,108 @@
+package alikafka
+
+//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"
+)
+
+// ModifyTopicRemark invokes the alikafka.ModifyTopicRemark API synchronously
+// api document: https://help.aliyun.com/api/alikafka/modifytopicremark.html
+func (client *Client) ModifyTopicRemark(request *ModifyTopicRemarkRequest) (response *ModifyTopicRemarkResponse, err error) {
+	response = CreateModifyTopicRemarkResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ModifyTopicRemarkWithChan invokes the alikafka.ModifyTopicRemark API asynchronously
+// api document: https://help.aliyun.com/api/alikafka/modifytopicremark.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ModifyTopicRemarkWithChan(request *ModifyTopicRemarkRequest) (<-chan *ModifyTopicRemarkResponse, <-chan error) {
+	responseChan := make(chan *ModifyTopicRemarkResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ModifyTopicRemark(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ModifyTopicRemarkWithCallback invokes the alikafka.ModifyTopicRemark API asynchronously
+// api document: https://help.aliyun.com/api/alikafka/modifytopicremark.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ModifyTopicRemarkWithCallback(request *ModifyTopicRemarkRequest, callback func(response *ModifyTopicRemarkResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ModifyTopicRemarkResponse
+		var err error
+		defer close(result)
+		response, err = client.ModifyTopicRemark(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ModifyTopicRemarkRequest is the request struct for api ModifyTopicRemark
+type ModifyTopicRemarkRequest struct {
+	*requests.RpcRequest
+	InstanceId string `position:"Query" name:"InstanceId"`
+	Topic      string `position:"Query" name:"Topic"`
+	Remark     string `position:"Query" name:"Remark"`
+}
+
+// ModifyTopicRemarkResponse is the response struct for api ModifyTopicRemark
+type ModifyTopicRemarkResponse struct {
+	*responses.BaseResponse
+	Success   bool   `json:"Success" xml:"Success"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Code      int    `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+}
+
+// CreateModifyTopicRemarkRequest creates a request to invoke ModifyTopicRemark API
+func CreateModifyTopicRemarkRequest() (request *ModifyTopicRemarkRequest) {
+	request = &ModifyTopicRemarkRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("alikafka", "2019-09-16", "ModifyTopicRemark", "alikafka", "openAPI")
+	return
+}
+
+// CreateModifyTopicRemarkResponse creates a response to parse from ModifyTopicRemark response
+func CreateModifyTopicRemarkResponse() (response *ModifyTopicRemarkResponse) {
+	response = &ModifyTopicRemarkResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 23 - 0
services/alikafka/struct_meta_data.go

@@ -0,0 +1,23 @@
+package alikafka
+
+//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.
+
+// MetaData is a nested struct in alikafka response
+type MetaData struct {
+	Names                map[string]interface{} `json:"Names" xml:"Names"`
+	ProductsNormal       ProductsNormal         `json:"ProductsNormal" xml:"ProductsNormal"`
+	ProductsProfessional ProductsProfessional   `json:"ProductsProfessional" xml:"ProductsProfessional"`
+}

+ 21 - 0
services/alikafka/struct_products_normal.go

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

+ 21 - 0
services/alikafka/struct_products_professional.go

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

+ 27 - 0
services/alikafka/struct_spec_vo.go

@@ -0,0 +1,27 @@
+package alikafka
+
+//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.
+
+// SpecVO is a nested struct in alikafka response
+type SpecVO struct {
+	DiskSize   string `json:"DiskSize" xml:"DiskSize"`
+	IoMax      int64  `json:"IoMax" xml:"IoMax"`
+	RegionId   string `json:"RegionId" xml:"RegionId"`
+	TopicQuota string `json:"TopicQuota" xml:"TopicQuota"`
+	DiskType   string `json:"DiskType" xml:"DiskType"`
+	DeployType string `json:"DeployType" xml:"DeployType"`
+	SpecType   string `json:"SpecType" xml:"SpecType"`
+}

+ 27 - 0
services/alikafka/struct_spec_vo_in_get_meta_product_list.go

@@ -0,0 +1,27 @@
+package alikafka
+
+//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.
+
+// SpecVOInGetMetaProductList is a nested struct in alikafka response
+type SpecVOInGetMetaProductList struct {
+	RegionId   string `json:"RegionId" xml:"RegionId"`
+	SpecType   string `json:"SpecType" xml:"SpecType"`
+	IoMax      int    `json:"IoMax" xml:"IoMax"`
+	DiskType   string `json:"DiskType" xml:"DiskType"`
+	DiskSize   string `json:"DiskSize" xml:"DiskSize"`
+	TopicQuota string `json:"TopicQuota" xml:"TopicQuota"`
+	DeployType string `json:"DeployType" xml:"DeployType"`
+}