
import logging

from st2client.models import core


LOG = logging.getLogger(__name__)


class Sensor(core.Resource):
    _plural = 'Sensortypes'
    _repr_attributes = ['name', 'pack']


class TriggerType(core.Resource):
    _alias = 'Trigger'
    _display_name = 'Trigger'
    _plural = 'Triggertypes'
    _plural_display_name = 'Triggers'
    _repr_attributes = ['name', 'pack']


class Rule(core.Resource):
    _plural = 'Rules'


import logging

from st2client.models import core


LOG = logging.getLogger(__name__)


class Sensor(core.Resource):
    _plural = 'Sensortypes'
    _repr_attributes = ['name', 'pack']


class TriggerType(core.Resource):
    _alias = 'Trigger'
    _display_name = 'Trigger'
    _plural = 'Triggertypes'
    _plural_display_name = 'Triggers'
    _repr_attributes = ['name', 'pack']


class Trigger(core.Resource):
    _alias = 'TriggerSpecification'
    _display_name = 'TriggerSpecification'
    _plural = 'Triggers'
    _plural_display_name = 'Triggers'
    _repr_attributes = ['name', 'pack']


class Rule(core.Resource):
    _plural = 'Rules'

Add Trigger model to client and alias it as TriggerSpecification.
Add Trigger model to client and alias it as TriggerSpecification.

  
  import logging
  
  from st2client.models import core
  
  
  LOG = logging.getLogger(__name__)
  
  
  class Sensor(core.Resource):
      _plural = 'Sensortypes'
      _repr_attributes = ['name', 'pack']
  
  
  class TriggerType(core.Resource):
      _alias = 'Trigger'
      _display_name = 'Trigger'
      _plural = 'Triggertypes'
      _plural_display_name = 'Triggers'
      _repr_attributes = ['name', 'pack']
  
  
+ class Trigger(core.Resource):
+     _alias = 'TriggerSpecification'
+     _display_name = 'TriggerSpecification'
+     _plural = 'Triggers'
+     _plural_display_name = 'Triggers'
+     _repr_attributes = ['name', 'pack']
+ 
+ 
  class Rule(core.Resource):
      _plural = 'Rules'
  
Add Trigger model to client and alias it as TriggerSpecification.
## Code Before:

import logging

from st2client.models import core


LOG = logging.getLogger(__name__)


class Sensor(core.Resource):
    _plural = 'Sensortypes'
    _repr_attributes = ['name', 'pack']


class TriggerType(core.Resource):
    _alias = 'Trigger'
    _display_name = 'Trigger'
    _plural = 'Triggertypes'
    _plural_display_name = 'Triggers'
    _repr_attributes = ['name', 'pack']


class Rule(core.Resource):
    _plural = 'Rules'

## Instruction:
Add Trigger model to client and alias it as TriggerSpecification.
## Code After:

import logging

from st2client.models import core


LOG = logging.getLogger(__name__)


class Sensor(core.Resource):
    _plural = 'Sensortypes'
    _repr_attributes = ['name', 'pack']


class TriggerType(core.Resource):
    _alias = 'Trigger'
    _display_name = 'Trigger'
    _plural = 'Triggertypes'
    _plural_display_name = 'Triggers'
    _repr_attributes = ['name', 'pack']


class Trigger(core.Resource):
    _alias = 'TriggerSpecification'
    _display_name = 'TriggerSpecification'
    _plural = 'Triggers'
    _plural_display_name = 'Triggers'
    _repr_attributes = ['name', 'pack']


class Rule(core.Resource):
    _plural = 'Rules'
