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 RoaRequest
21+ from aliyunsdkelasticsearch .endpoint import endpoint_data
22+
23+ class ListApmRequest (RoaRequest ):
24+
25+ def __init__ (self ):
26+ RoaRequest .__init__ (self , 'elasticsearch' , '2017-06-13' , 'ListApm' ,'elasticsearch' )
27+ self .set_uri_pattern ('/openapi/apm' )
28+ self .set_method ('GET' )
29+ if hasattr (self , "endpoint_map" ):
30+ setattr (self , "endpoint_map" , endpoint_data .getEndpointMap ())
31+ if hasattr (self , "endpoint_regional" ):
32+ setattr (self , "endpoint_regional" , endpoint_data .getEndpointRegional ())
33+
34+
35+ def get_output (self ):
36+ return self .get_query_params ().get ('output' )
37+
38+ def set_output (self ,output ):
39+ self .add_query_param ('output' ,output )
40+
41+ def get_instanceId (self ):
42+ return self .get_query_params ().get ('instanceId' )
43+
44+ def set_instanceId (self ,instanceId ):
45+ self .add_query_param ('instanceId' ,instanceId )
46+
47+ def get_size (self ):
48+ return self .get_query_params ().get ('size' )
49+
50+ def set_size (self ,size ):
51+ self .add_query_param ('size' ,size )
52+
53+ def get_description (self ):
54+ return self .get_query_params ().get ('description' )
55+
56+ def set_description (self ,description ):
57+ self .add_query_param ('description' ,description )
58+
59+ def get_page (self ):
60+ return self .get_query_params ().get ('page' )
61+
62+ def set_page (self ,page ):
63+ self .add_query_param ('page' ,page )
0 commit comments