text: # Licensed to the Apache Software Foundation (ASF) under one
  # or more contributor license agreements.  See the NOTICE file
  # distributed with this work for additional information
  # regarding copyright ownership.  The ASF licenses this file
  # to you 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.
  
  from aliyunsdkcore.request import RoaRequest
  from aliyunsdkelasticsearch.endpoint import endpoint_data
  
  class ListNodesRequest(RoaRequest):
  
  	def __init__(self):
  		RoaRequest.__init__(self, 'elasticsearch', '2017-06-13', 'ListNodes','elasticsearch')
  		self.set_uri_pattern('/openapi/collectors/[ResId]/nodes')
  		self.set_method('GET')
  		if hasattr(self, "endpoint_map"):
  			setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
  		if hasattr(self, "endpoint_regional"):
  			setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
  
  
  	def get_ecsInstanceName(self):
  		return self.get_query_params().get('ecsInstanceName')
  
  	def set_ecsInstanceName(self,ecsInstanceName):
  		self.add_query_param('ecsInstanceName',ecsInstanceName)
  
  	def get_ecsInstanceIds(self):
  		return self.get_query_params().get('ecsInstanceIds')
  
  	def set_ecsInstanceIds(self,ecsInstanceIds):
  		self.add_query_param('ecsInstanceIds',ecsInstanceIds)
  
  	def get_size(self):
  		return self.get_query_params().get('size')
  
  	def set_size(self,size):
  		self.add_query_param('size',size)
  
  	def get_page(self):
  		return self.get_query_params().get('page')
  
  	def set_page(self,page):
  		self.add_query_param('page',page)
  
  	def get_ResId(self):
  		return self.get_path_params().get('ResId')
  
  	def set_ResId(self,ResId):
  		self.add_path_param('ResId',ResId)
  
  	def get_tags(self):
  		return self.get_query_params().get('tags')
  
  	def set_tags(self,tags):
  		self.add_query_param('tags',tags)