|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# |
| 10 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +# |
| 12 | +# |
| 13 | +# Unless required by applicable law or agreed to in writing, |
| 14 | +# software distributed under the License is distributed on an |
| 15 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 16 | +# KIND, either express or implied. See the License for the |
| 17 | +# specific language governing permissions and limitations |
| 18 | +# under the License. |
| 19 | + |
| 20 | +from aliyunsdkcore.request import RpcRequest |
| 21 | + |
| 22 | +class SearchImageRequest(RpcRequest): |
| 23 | + |
| 24 | + def __init__(self): |
| 25 | + RpcRequest.__init__(self, 'WebsiteBuild', '2025-04-29', 'SearchImage') |
| 26 | + self.set_protocol_type('https') |
| 27 | + self.set_method('POST') |
| 28 | + |
| 29 | + def get_HasPerson(self): # Boolean |
| 30 | + return self.get_query_params().get('HasPerson') |
| 31 | + |
| 32 | + def set_HasPerson(self, HasPerson): # Boolean |
| 33 | + self.add_query_param('HasPerson', HasPerson) |
| 34 | + def get_MaxWidth(self): # Integer |
| 35 | + return self.get_query_params().get('MaxWidth') |
| 36 | + |
| 37 | + def set_MaxWidth(self, MaxWidth): # Integer |
| 38 | + self.add_query_param('MaxWidth', MaxWidth) |
| 39 | + def get_OssKey(self): # String |
| 40 | + return self.get_query_params().get('OssKey') |
| 41 | + |
| 42 | + def set_OssKey(self, OssKey): # String |
| 43 | + self.add_query_param('OssKey', OssKey) |
| 44 | + def get_ImageCategory(self): # String |
| 45 | + return self.get_query_params().get('ImageCategory') |
| 46 | + |
| 47 | + def set_ImageCategory(self, ImageCategory): # String |
| 48 | + self.add_query_param('ImageCategory', ImageCategory) |
| 49 | + def get_MaxHeight(self): # Integer |
| 50 | + return self.get_query_params().get('MaxHeight') |
| 51 | + |
| 52 | + def set_MaxHeight(self, MaxHeight): # Integer |
| 53 | + self.add_query_param('MaxHeight', MaxHeight) |
| 54 | + def get_ImageRatio(self): # String |
| 55 | + return self.get_query_params().get('ImageRatio') |
| 56 | + |
| 57 | + def set_ImageRatio(self, ImageRatio): # String |
| 58 | + self.add_query_param('ImageRatio', ImageRatio) |
| 59 | + def get_NextToken(self): # String |
| 60 | + return self.get_query_params().get('NextToken') |
| 61 | + |
| 62 | + def set_NextToken(self, NextToken): # String |
| 63 | + self.add_query_param('NextToken', NextToken) |
| 64 | + def get_Text(self): # String |
| 65 | + return self.get_query_params().get('Text') |
| 66 | + |
| 67 | + def set_Text(self, Text): # String |
| 68 | + self.add_query_param('Text', Text) |
| 69 | + def get_ColorHex(self): # String |
| 70 | + return self.get_query_params().get('ColorHex') |
| 71 | + |
| 72 | + def set_ColorHex(self, ColorHex): # String |
| 73 | + self.add_query_param('ColorHex', ColorHex) |
| 74 | + def get_MinHeight(self): # Integer |
| 75 | + return self.get_query_params().get('MinHeight') |
| 76 | + |
| 77 | + def set_MinHeight(self, MinHeight): # Integer |
| 78 | + self.add_query_param('MinHeight', MinHeight) |
| 79 | + def get_Start(self): # Integer |
| 80 | + return self.get_query_params().get('Start') |
| 81 | + |
| 82 | + def set_Start(self, Start): # Integer |
| 83 | + self.add_query_param('Start', Start) |
| 84 | + def get_Tags(self): # Array |
| 85 | + return self.get_query_params().get('Tags') |
| 86 | + |
| 87 | + def set_Tags(self, Tags): # Array |
| 88 | + for index1, value1 in enumerate(Tags): |
| 89 | + self.add_query_param('Tags.' + str(index1 + 1), value1) |
| 90 | + def get_Size(self): # Integer |
| 91 | + return self.get_query_params().get('Size') |
| 92 | + |
| 93 | + def set_Size(self, Size): # Integer |
| 94 | + self.add_query_param('Size', Size) |
| 95 | + def get_MinWidth(self): # Integer |
| 96 | + return self.get_query_params().get('MinWidth') |
| 97 | + |
| 98 | + def set_MinWidth(self, MinWidth): # Integer |
| 99 | + self.add_query_param('MinWidth', MinWidth) |
| 100 | + def get_MaxResults(self): # Integer |
| 101 | + return self.get_query_params().get('MaxResults') |
| 102 | + |
| 103 | + def set_MaxResults(self, MaxResults): # Integer |
| 104 | + self.add_query_param('MaxResults', MaxResults) |
0 commit comments