def __init__(self, service, op_data, paginator_cls=None): self.input = {} self.output = {} BotoCoreObject.__init__(self, **op_data) self.service = service if self.service: self.session = self.service.session else: self.session = None self.type = 'operation' self._params = None if paginator_cls is None: paginator_cls = self._DEFAULT_PAGINATOR_CLS self._paginator_cls = paginator_cls
def __init__(self, operation, **kwargs): self.operation = operation self.xmlname = None self.required = False self.flattened = False self.allow_file = False self.min = None self.max = None self.payload = False self.streaming = False self.example_fn = None BotoCoreObject.__init__(self, **kwargs) self.cli_name = '--' + self.cli_name self._handle_subtypes()