Sfoglia il codice sorgente

Support API RecognizeImageColor.

sdk-team 6 anni fa
parent
commit
cd5cf285f2

+ 10 - 0
ChangeLog.txt

@@ -1,3 +1,13 @@
+2019-08-22 Version: 1.60.118
+- Support API RecognizeImageColor.
+- Support API DetectImageElements.
+- Support API RecolorImage.
+- Support API SegmentImage.
+- Support API ChangeImageSize.
+- Support API ExtendImageStyle.
+- Support API RecognizeImageStyle.
+- Support API MakeSuperResolutionImage.
+
 2019-08-22 Version: 1.60.117
 2019-08-22 Version: 1.60.117
 - Api release 2019-08-08 public sdk 2-5-2 sdk release 20190822 shichun-fsc.
 - Api release 2019-08-08 public sdk 2-5-2 sdk release 20190822 shichun-fsc.
 
 

+ 108 - 0
services/ivpd/change_image_size.go

@@ -0,0 +1,108 @@
+package ivpd
+
+//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"
+)
+
+// ChangeImageSize invokes the ivpd.ChangeImageSize API synchronously
+// api document: https://help.aliyun.com/api/ivpd/changeimagesize.html
+func (client *Client) ChangeImageSize(request *ChangeImageSizeRequest) (response *ChangeImageSizeResponse, err error) {
+	response = CreateChangeImageSizeResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ChangeImageSizeWithChan invokes the ivpd.ChangeImageSize API asynchronously
+// api document: https://help.aliyun.com/api/ivpd/changeimagesize.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ChangeImageSizeWithChan(request *ChangeImageSizeRequest) (<-chan *ChangeImageSizeResponse, <-chan error) {
+	responseChan := make(chan *ChangeImageSizeResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ChangeImageSize(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ChangeImageSizeWithCallback invokes the ivpd.ChangeImageSize API asynchronously
+// api document: https://help.aliyun.com/api/ivpd/changeimagesize.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ChangeImageSizeWithCallback(request *ChangeImageSizeRequest, callback func(response *ChangeImageSizeResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ChangeImageSizeResponse
+		var err error
+		defer close(result)
+		response, err = client.ChangeImageSize(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ChangeImageSizeRequest is the request struct for api ChangeImageSize
+type ChangeImageSizeRequest struct {
+	*requests.RpcRequest
+	Width  requests.Integer `position:"Body" name:"Width"`
+	Url    string           `position:"Body" name:"Url"`
+	Height requests.Integer `position:"Body" name:"Height"`
+}
+
+// ChangeImageSizeResponse is the response struct for api ChangeImageSize
+type ChangeImageSizeResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Data      Data   `json:"Data" xml:"Data"`
+}
+
+// CreateChangeImageSizeRequest creates a request to invoke ChangeImageSize API
+func CreateChangeImageSizeRequest() (request *ChangeImageSizeRequest) {
+	request = &ChangeImageSizeRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("ivpd", "2019-06-25", "ChangeImageSize", "ivpd", "openAPI")
+	return
+}
+
+// CreateChangeImageSizeResponse creates a response to parse from ChangeImageSize response
+func CreateChangeImageSizeResponse() (response *ChangeImageSizeResponse) {
+	response = &ChangeImageSizeResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 129 - 0
services/ivpd/client.go

@@ -0,0 +1,129 @@
+package ivpd
+
+//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 (
+	"reflect"
+
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider"
+)
+
+// Client is the sdk client struct, each func corresponds to an OpenAPI
+type Client struct {
+	sdk.Client
+}
+
+// SetClientProperty Set Property by Reflect
+func SetClientProperty(client *Client, propertyName string, propertyValue interface{}) {
+	v := reflect.ValueOf(client).Elem()
+	if v.FieldByName(propertyName).IsValid() && v.FieldByName(propertyName).CanSet() {
+		v.FieldByName(propertyName).Set(reflect.ValueOf(propertyValue))
+	}
+}
+
+// SetEndpointDataToClient Set EndpointMap and ENdpointType
+func SetEndpointDataToClient(client *Client) {
+	SetClientProperty(client, "EndpointMap", GetEndpointMap())
+	SetClientProperty(client, "EndpointType", GetEndpointType())
+}
+
+// NewClient creates a sdk client with environment variables
+func NewClient() (client *Client, err error) {
+	client = &Client{}
+	err = client.Init()
+	SetEndpointDataToClient(client)
+	return
+}
+
+// NewClientWithProvider creates a sdk client with providers
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error) {
+	client = &Client{}
+	var pc provider.Provider
+	if len(providers) == 0 {
+		pc = provider.DefaultChain
+	} else {
+		pc = provider.NewProviderChain(providers)
+	}
+	err = client.InitWithProviderChain(regionId, pc)
+	SetEndpointDataToClient(client)
+	return
+}
+
+// NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential
+// this is the common api to create a sdk client
+func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithOptions(regionId, config, credential)
+	SetEndpointDataToClient(client)
+	return
+}
+
+// NewClientWithAccessKey is a shortcut to create sdk client with accesskey
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret)
+	SetEndpointDataToClient(client)
+	return
+}
+
+// NewClientWithStsToken is a shortcut to create sdk client with sts token
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken)
+	SetEndpointDataToClient(client)
+	return
+}
+
+// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName)
+	SetEndpointDataToClient(client)
+	return
+}
+
+// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithRamRoleArnAndPolicy(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy)
+	SetEndpointDataToClient(client)
+	return
+}
+
+// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithEcsRamRole(regionId, roleName)
+	SetEndpointDataToClient(client)
+	return
+}
+
+// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration)
+	SetEndpointDataToClient(client)
+	return
+}

+ 106 - 0
services/ivpd/detect_image_elements.go

@@ -0,0 +1,106 @@
+package ivpd
+
+//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"
+)
+
+// DetectImageElements invokes the ivpd.DetectImageElements API synchronously
+// api document: https://help.aliyun.com/api/ivpd/detectimageelements.html
+func (client *Client) DetectImageElements(request *DetectImageElementsRequest) (response *DetectImageElementsResponse, err error) {
+	response = CreateDetectImageElementsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DetectImageElementsWithChan invokes the ivpd.DetectImageElements API asynchronously
+// api document: https://help.aliyun.com/api/ivpd/detectimageelements.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DetectImageElementsWithChan(request *DetectImageElementsRequest) (<-chan *DetectImageElementsResponse, <-chan error) {
+	responseChan := make(chan *DetectImageElementsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DetectImageElements(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DetectImageElementsWithCallback invokes the ivpd.DetectImageElements API asynchronously
+// api document: https://help.aliyun.com/api/ivpd/detectimageelements.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DetectImageElementsWithCallback(request *DetectImageElementsRequest, callback func(response *DetectImageElementsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DetectImageElementsResponse
+		var err error
+		defer close(result)
+		response, err = client.DetectImageElements(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DetectImageElementsRequest is the request struct for api DetectImageElements
+type DetectImageElementsRequest struct {
+	*requests.RpcRequest
+	Url string `position:"Body" name:"Url"`
+}
+
+// DetectImageElementsResponse is the response struct for api DetectImageElements
+type DetectImageElementsResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Data      Data   `json:"Data" xml:"Data"`
+}
+
+// CreateDetectImageElementsRequest creates a request to invoke DetectImageElements API
+func CreateDetectImageElementsRequest() (request *DetectImageElementsRequest) {
+	request = &DetectImageElementsRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("ivpd", "2019-06-25", "DetectImageElements", "ivpd", "openAPI")
+	return
+}
+
+// CreateDetectImageElementsResponse creates a response to parse from DetectImageElements response
+func CreateDetectImageElementsResponse() (response *DetectImageElementsResponse) {
+	response = &DetectImageElementsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 20 - 0
services/ivpd/endpoint.go

@@ -0,0 +1,20 @@
+package ivpd
+
+// EndpointMap Endpoint Data
+var EndpointMap map[string]string
+
+// EndpointType regional or central
+var EndpointType = "regional"
+
+// GetEndpointMap Get Endpoint Data Map
+func GetEndpointMap() map[string]string {
+	if EndpointMap == nil {
+		EndpointMap = map[string]string{}
+	}
+	return EndpointMap
+}
+
+// GetEndpointType Get Endpoint Type Value
+func GetEndpointType() string {
+	return EndpointType
+}

+ 107 - 0
services/ivpd/extend_image_style.go

@@ -0,0 +1,107 @@
+package ivpd
+
+//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"
+)
+
+// ExtendImageStyle invokes the ivpd.ExtendImageStyle API synchronously
+// api document: https://help.aliyun.com/api/ivpd/extendimagestyle.html
+func (client *Client) ExtendImageStyle(request *ExtendImageStyleRequest) (response *ExtendImageStyleResponse, err error) {
+	response = CreateExtendImageStyleResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ExtendImageStyleWithChan invokes the ivpd.ExtendImageStyle API asynchronously
+// api document: https://help.aliyun.com/api/ivpd/extendimagestyle.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ExtendImageStyleWithChan(request *ExtendImageStyleRequest) (<-chan *ExtendImageStyleResponse, <-chan error) {
+	responseChan := make(chan *ExtendImageStyleResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ExtendImageStyle(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ExtendImageStyleWithCallback invokes the ivpd.ExtendImageStyle API asynchronously
+// api document: https://help.aliyun.com/api/ivpd/extendimagestyle.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ExtendImageStyleWithCallback(request *ExtendImageStyleRequest, callback func(response *ExtendImageStyleResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ExtendImageStyleResponse
+		var err error
+		defer close(result)
+		response, err = client.ExtendImageStyle(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ExtendImageStyleRequest is the request struct for api ExtendImageStyle
+type ExtendImageStyleRequest struct {
+	*requests.RpcRequest
+	MajorUrl string `position:"Body" name:"MajorUrl"`
+	StyleUrl string `position:"Body" name:"StyleUrl"`
+}
+
+// ExtendImageStyleResponse is the response struct for api ExtendImageStyle
+type ExtendImageStyleResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Data      Data   `json:"Data" xml:"Data"`
+}
+
+// CreateExtendImageStyleRequest creates a request to invoke ExtendImageStyle API
+func CreateExtendImageStyleRequest() (request *ExtendImageStyleRequest) {
+	request = &ExtendImageStyleRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("ivpd", "2019-06-25", "ExtendImageStyle", "ivpd", "openAPI")
+	return
+}
+
+// CreateExtendImageStyleResponse creates a response to parse from ExtendImageStyle response
+func CreateExtendImageStyleResponse() (response *ExtendImageStyleResponse) {
+	response = &ExtendImageStyleResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 106 - 0
services/ivpd/make_super_resolution_image.go

@@ -0,0 +1,106 @@
+package ivpd
+
+//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"
+)
+
+// MakeSuperResolutionImage invokes the ivpd.MakeSuperResolutionImage API synchronously
+// api document: https://help.aliyun.com/api/ivpd/makesuperresolutionimage.html
+func (client *Client) MakeSuperResolutionImage(request *MakeSuperResolutionImageRequest) (response *MakeSuperResolutionImageResponse, err error) {
+	response = CreateMakeSuperResolutionImageResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// MakeSuperResolutionImageWithChan invokes the ivpd.MakeSuperResolutionImage API asynchronously
+// api document: https://help.aliyun.com/api/ivpd/makesuperresolutionimage.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) MakeSuperResolutionImageWithChan(request *MakeSuperResolutionImageRequest) (<-chan *MakeSuperResolutionImageResponse, <-chan error) {
+	responseChan := make(chan *MakeSuperResolutionImageResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.MakeSuperResolutionImage(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// MakeSuperResolutionImageWithCallback invokes the ivpd.MakeSuperResolutionImage API asynchronously
+// api document: https://help.aliyun.com/api/ivpd/makesuperresolutionimage.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) MakeSuperResolutionImageWithCallback(request *MakeSuperResolutionImageRequest, callback func(response *MakeSuperResolutionImageResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *MakeSuperResolutionImageResponse
+		var err error
+		defer close(result)
+		response, err = client.MakeSuperResolutionImage(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// MakeSuperResolutionImageRequest is the request struct for api MakeSuperResolutionImage
+type MakeSuperResolutionImageRequest struct {
+	*requests.RpcRequest
+	Url string `position:"Body" name:"Url"`
+}
+
+// MakeSuperResolutionImageResponse is the response struct for api MakeSuperResolutionImage
+type MakeSuperResolutionImageResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Data      Data   `json:"Data" xml:"Data"`
+}
+
+// CreateMakeSuperResolutionImageRequest creates a request to invoke MakeSuperResolutionImage API
+func CreateMakeSuperResolutionImageRequest() (request *MakeSuperResolutionImageRequest) {
+	request = &MakeSuperResolutionImageRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("ivpd", "2019-06-25", "MakeSuperResolutionImage", "ivpd", "openAPI")
+	return
+}
+
+// CreateMakeSuperResolutionImageResponse creates a response to parse from MakeSuperResolutionImage response
+func CreateMakeSuperResolutionImageResponse() (response *MakeSuperResolutionImageResponse) {
+	response = &MakeSuperResolutionImageResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 107 - 0
services/ivpd/recognize_image_color.go

@@ -0,0 +1,107 @@
+package ivpd
+
+//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"
+)
+
+// RecognizeImageColor invokes the ivpd.RecognizeImageColor API synchronously
+// api document: https://help.aliyun.com/api/ivpd/recognizeimagecolor.html
+func (client *Client) RecognizeImageColor(request *RecognizeImageColorRequest) (response *RecognizeImageColorResponse, err error) {
+	response = CreateRecognizeImageColorResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// RecognizeImageColorWithChan invokes the ivpd.RecognizeImageColor API asynchronously
+// api document: https://help.aliyun.com/api/ivpd/recognizeimagecolor.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) RecognizeImageColorWithChan(request *RecognizeImageColorRequest) (<-chan *RecognizeImageColorResponse, <-chan error) {
+	responseChan := make(chan *RecognizeImageColorResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.RecognizeImageColor(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// RecognizeImageColorWithCallback invokes the ivpd.RecognizeImageColor API asynchronously
+// api document: https://help.aliyun.com/api/ivpd/recognizeimagecolor.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) RecognizeImageColorWithCallback(request *RecognizeImageColorRequest, callback func(response *RecognizeImageColorResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *RecognizeImageColorResponse
+		var err error
+		defer close(result)
+		response, err = client.RecognizeImageColor(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// RecognizeImageColorRequest is the request struct for api RecognizeImageColor
+type RecognizeImageColorRequest struct {
+	*requests.RpcRequest
+	ColorCount string `position:"Body" name:"ColorCount"`
+	Url        string `position:"Body" name:"Url"`
+}
+
+// RecognizeImageColorResponse is the response struct for api RecognizeImageColor
+type RecognizeImageColorResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Data      Data   `json:"Data" xml:"Data"`
+}
+
+// CreateRecognizeImageColorRequest creates a request to invoke RecognizeImageColor API
+func CreateRecognizeImageColorRequest() (request *RecognizeImageColorRequest) {
+	request = &RecognizeImageColorRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("ivpd", "2019-06-25", "RecognizeImageColor", "ivpd", "openAPI")
+	return
+}
+
+// CreateRecognizeImageColorResponse creates a response to parse from RecognizeImageColor response
+func CreateRecognizeImageColorResponse() (response *RecognizeImageColorResponse) {
+	response = &RecognizeImageColorResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 106 - 0
services/ivpd/recognize_image_style.go

@@ -0,0 +1,106 @@
+package ivpd
+
+//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"
+)
+
+// RecognizeImageStyle invokes the ivpd.RecognizeImageStyle API synchronously
+// api document: https://help.aliyun.com/api/ivpd/recognizeimagestyle.html
+func (client *Client) RecognizeImageStyle(request *RecognizeImageStyleRequest) (response *RecognizeImageStyleResponse, err error) {
+	response = CreateRecognizeImageStyleResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// RecognizeImageStyleWithChan invokes the ivpd.RecognizeImageStyle API asynchronously
+// api document: https://help.aliyun.com/api/ivpd/recognizeimagestyle.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) RecognizeImageStyleWithChan(request *RecognizeImageStyleRequest) (<-chan *RecognizeImageStyleResponse, <-chan error) {
+	responseChan := make(chan *RecognizeImageStyleResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.RecognizeImageStyle(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// RecognizeImageStyleWithCallback invokes the ivpd.RecognizeImageStyle API asynchronously
+// api document: https://help.aliyun.com/api/ivpd/recognizeimagestyle.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) RecognizeImageStyleWithCallback(request *RecognizeImageStyleRequest, callback func(response *RecognizeImageStyleResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *RecognizeImageStyleResponse
+		var err error
+		defer close(result)
+		response, err = client.RecognizeImageStyle(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// RecognizeImageStyleRequest is the request struct for api RecognizeImageStyle
+type RecognizeImageStyleRequest struct {
+	*requests.RpcRequest
+	Url string `position:"Body" name:"Url"`
+}
+
+// RecognizeImageStyleResponse is the response struct for api RecognizeImageStyle
+type RecognizeImageStyleResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Data      Data   `json:"Data" xml:"Data"`
+}
+
+// CreateRecognizeImageStyleRequest creates a request to invoke RecognizeImageStyle API
+func CreateRecognizeImageStyleRequest() (request *RecognizeImageStyleRequest) {
+	request = &RecognizeImageStyleRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("ivpd", "2019-06-25", "RecognizeImageStyle", "ivpd", "openAPI")
+	return
+}
+
+// CreateRecognizeImageStyleResponse creates a response to parse from RecognizeImageStyle response
+func CreateRecognizeImageStyleResponse() (response *RecognizeImageStyleResponse) {
+	response = &RecognizeImageStyleResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 115 - 0
services/ivpd/recolor_image.go

@@ -0,0 +1,115 @@
+package ivpd
+
+//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"
+)
+
+// RecolorImage invokes the ivpd.RecolorImage API synchronously
+// api document: https://help.aliyun.com/api/ivpd/recolorimage.html
+func (client *Client) RecolorImage(request *RecolorImageRequest) (response *RecolorImageResponse, err error) {
+	response = CreateRecolorImageResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// RecolorImageWithChan invokes the ivpd.RecolorImage API asynchronously
+// api document: https://help.aliyun.com/api/ivpd/recolorimage.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) RecolorImageWithChan(request *RecolorImageRequest) (<-chan *RecolorImageResponse, <-chan error) {
+	responseChan := make(chan *RecolorImageResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.RecolorImage(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// RecolorImageWithCallback invokes the ivpd.RecolorImage API asynchronously
+// api document: https://help.aliyun.com/api/ivpd/recolorimage.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) RecolorImageWithCallback(request *RecolorImageRequest, callback func(response *RecolorImageResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *RecolorImageResponse
+		var err error
+		defer close(result)
+		response, err = client.RecolorImage(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// RecolorImageRequest is the request struct for api RecolorImage
+type RecolorImageRequest struct {
+	*requests.RpcRequest
+	Mode          string                       `position:"Body" name:"Mode"`
+	ColorTemplate *[]RecolorImageColorTemplate `position:"Body" name:"ColorTemplate"  type:"Repeated"`
+	ColorCount    requests.Integer             `position:"Body" name:"ColorCount"`
+	RefUrl        string                       `position:"Body" name:"RefUrl"`
+	Url           string                       `position:"Body" name:"Url"`
+}
+
+// RecolorImageColorTemplate is a repeated param struct in RecolorImageRequest
+type RecolorImageColorTemplate struct {
+	Color string `name:"Color"`
+}
+
+// RecolorImageResponse is the response struct for api RecolorImage
+type RecolorImageResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Data      Data   `json:"Data" xml:"Data"`
+}
+
+// CreateRecolorImageRequest creates a request to invoke RecolorImage API
+func CreateRecolorImageRequest() (request *RecolorImageRequest) {
+	request = &RecolorImageRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("ivpd", "2019-06-25", "RecolorImage", "ivpd", "openAPI")
+	return
+}
+
+// CreateRecolorImageResponse creates a response to parse from RecolorImage response
+func CreateRecolorImageResponse() (response *RecolorImageResponse) {
+	response = &RecolorImageResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 106 - 0
services/ivpd/segment_image.go

@@ -0,0 +1,106 @@
+package ivpd
+
+//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"
+)
+
+// SegmentImage invokes the ivpd.SegmentImage API synchronously
+// api document: https://help.aliyun.com/api/ivpd/segmentimage.html
+func (client *Client) SegmentImage(request *SegmentImageRequest) (response *SegmentImageResponse, err error) {
+	response = CreateSegmentImageResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// SegmentImageWithChan invokes the ivpd.SegmentImage API asynchronously
+// api document: https://help.aliyun.com/api/ivpd/segmentimage.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SegmentImageWithChan(request *SegmentImageRequest) (<-chan *SegmentImageResponse, <-chan error) {
+	responseChan := make(chan *SegmentImageResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.SegmentImage(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// SegmentImageWithCallback invokes the ivpd.SegmentImage API asynchronously
+// api document: https://help.aliyun.com/api/ivpd/segmentimage.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SegmentImageWithCallback(request *SegmentImageRequest, callback func(response *SegmentImageResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *SegmentImageResponse
+		var err error
+		defer close(result)
+		response, err = client.SegmentImage(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// SegmentImageRequest is the request struct for api SegmentImage
+type SegmentImageRequest struct {
+	*requests.RpcRequest
+	Url string `position:"Body" name:"Url"`
+}
+
+// SegmentImageResponse is the response struct for api SegmentImage
+type SegmentImageResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Data      Data   `json:"Data" xml:"Data"`
+}
+
+// CreateSegmentImageRequest creates a request to invoke SegmentImage API
+func CreateSegmentImageRequest() (request *SegmentImageRequest) {
+	request = &SegmentImageRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("ivpd", "2019-06-25", "SegmentImage", "ivpd", "openAPI")
+	return
+}
+
+// CreateSegmentImageResponse creates a response to parse from SegmentImage response
+func CreateSegmentImageResponse() (response *SegmentImageResponse) {
+	response = &SegmentImageResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 23 - 0
services/ivpd/struct_color_template.go

@@ -0,0 +1,23 @@
+package ivpd
+
+//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.
+
+// ColorTemplate is a nested struct in ivpd response
+type ColorTemplate struct {
+	Color      string  `json:"Color" xml:"Color"`
+	Label      string  `json:"Label" xml:"Label"`
+	Percentage float64 `json:"Percentage" xml:"Percentage"`
+}

+ 21 - 0
services/ivpd/struct_color_template_list.go

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

+ 26 - 0
services/ivpd/struct_data.go

@@ -0,0 +1,26 @@
+package ivpd
+
+//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.
+
+// Data is a nested struct in ivpd response
+type Data struct {
+	MajorUrl          string          `json:"MajorUrl" xml:"MajorUrl"`
+	Url               string          `json:"Url" xml:"Url"`
+	ImageList         []string        `json:"ImageList" xml:"ImageList"`
+	Styles            []string        `json:"Styles" xml:"Styles"`
+	Elements          []Element       `json:"Elements" xml:"Elements"`
+	ColorTemplateList []ColorTemplate `json:"ColorTemplateList" xml:"ColorTemplateList"`
+}

+ 26 - 0
services/ivpd/struct_element.go

@@ -0,0 +1,26 @@
+package ivpd
+
+//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.
+
+// Element is a nested struct in ivpd response
+type Element struct {
+	Type   string  `json:"Type" xml:"Type"`
+	X      int     `json:"X" xml:"X"`
+	Y      int     `json:"Y" xml:"Y"`
+	Width  int     `json:"Width" xml:"Width"`
+	Height int     `json:"Height" xml:"Height"`
+	Score  float64 `json:"Score" xml:"Score"`
+}

+ 21 - 0
services/ivpd/struct_elements.go

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

+ 21 - 0
services/ivpd/struct_image_list.go

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

+ 21 - 0
services/ivpd/struct_styles.go

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