コード例 #1
0
 def delete(self, blueprint_id, **kwargs):
     """
     Delete blueprint by id
     """
     with rest_utils.skip_nested_marshalling():
         return super(BlueprintsId, self).delete(blueprint_id=blueprint_id,
                                                 **kwargs)
コード例 #2
0
 def put(self, blueprint_id, **kwargs):
     """
     Upload a blueprint (id specified)
     """
     with rest_utils.skip_nested_marshalling():
         return super(BlueprintsId, self).put(blueprint_id=blueprint_id,
                                              **kwargs)
コード例 #3
0
 def delete(self, blueprint_id, **kwargs):
     """
     Delete blueprint by id
     """
     with rest_utils.skip_nested_marshalling():
         return super(BlueprintsId, self).delete(
             blueprint_id=blueprint_id, **kwargs)
コード例 #4
0
 def put(self, blueprint_id, **kwargs):
     """
     Upload a blueprint (id specified)
     """
     with rest_utils.skip_nested_marshalling():
         return super(BlueprintsId, self).put(blueprint_id=blueprint_id,
                                              **kwargs)
コード例 #5
0
 def get(self, blueprint_id, _include=None, **kwargs):
     """
     Get blueprint by id
     """
     with rest_utils.skip_nested_marshalling():
         return super(BlueprintsId, self).get(blueprint_id=blueprint_id,
                                              _include=_include,
                                              **kwargs)
コード例 #6
0
 def get(self, blueprint_id, _include=None, **kwargs):
     """
     Get blueprint by id
     """
     with rest_utils.skip_nested_marshalling():
         return super(BlueprintsId, self).get(blueprint_id=blueprint_id,
                                              _include=_include,
                                              **kwargs)
コード例 #7
0
ファイル: plugins.py プロジェクト: pks-os/cloudify-manager
 def post(self, **kwargs):
     """
     Upload a plugin
     """
     visibility = rest_utils.get_visibility_parameter(
         optional=True,
         is_argument=True,
         valid_values=VisibilityState.STATES)
     with rest_utils.skip_nested_marshalling():
         return super(Plugins, self).post(visibility=visibility)