1 #######################################################################################
2 # Copyright ETSI Contributors and Others.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #######################################################################################
18 from abc
import abstractmethod
19 from dataclasses
import dataclass
21 from osm_common
.temporal
.workflows
.base
import BaseWorkflow
24 class VnfInstantiateWorkflow(BaseWorkflow
):
28 It is recommended that the ID for the VNF is referred as a workflow
29 ID when invoking this workflow.
35 Input dataclass for workflow that instantiates a VNF.
40 The UUID of the VNF which is stored in the OSM vnfrs
45 instantiation_config: dict
46 The instantiation configuration of the VNF
52 instantiation_config
: dict
55 async def run(self
, workflow_input
: Input
) -> None:
59 class VnfPrepareWorkflow(BaseWorkflow
):
63 It is recommended that the ID for the VNF is referred as a workflow
64 ID when invoking this workflow.
70 Input dataclass for workflow that instantiates a VNF.
75 The UUID of the VNF which is stored in the OSM vnfrs
86 async def run(self
, workflow_input
: Input
) -> None:
90 class VnfTerminateWorkflow(BaseWorkflow
):
98 The UUID of the VNF which is stored in the OSM vnfrs
105 async def run(self
, workflow_input
: Input
) -> None:
109 class VnfDeleteWorkflow(BaseWorkflow
):
113 It is recommended that the ID for the VNF is referred as a workflow
114 ID when invoking this workflow.
120 Input dataclass for workflow that deletes a VNF.
125 The UUID of the VNF which is stored in the OSM vnfrs
133 async def run(self
, workflow_input
: Input
) -> None: