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 dataclasses
import dataclass
20 # Workflow Dataclasses
24 class VimOperationInput
:
26 Input dataclass for workflows that perform operations
27 (create, update, delete) on VIMs.
32 The UUID of the VIM account as stored in the OSM vim
36 The operation (task) id for this workflow. This is used
37 by the workflow at the end to update the status of the
38 operation in Mongo vim collection.
45 # Activity Dataclasses
49 class TestVimConnectivityInput
:
51 Input dataclass for the Test Vim Connectivity Ativity
56 The UUID of the VIM account as stored in the OSM vim
64 class UpdateVimStateInput
:
66 Input dataclass for updating VIM state in the DB
71 The UUID of the VIM account as stored in the OSM vim
74 operational_state : str
75 A representation of the operational state (ENABLED or ERROR)
79 Human readable message providing additional details to the
80 operational state, such as the error message associated
81 with the ERROR operational_state.
85 operational_state
: str
90 class UpdateVimOperationStateInput
:
92 Input dataclass for updating VIM Operations in the Mongo VIM
98 The UUID of the VIM account as stored in the OSM vim
102 The operation (task) id for this workflow. This is used
103 to update the status of the operation in Mongo vim collection.
106 A representation of the state of the specified operation id,
107 such as COMPLETED, or FAILED.
110 Human readable message providing additional details to the
111 operation state, such as the error message explaining why
112 the operation failed.
122 class DeleteVimInput
:
124 Input dataclass for deleting vim record from the database
129 The UUID of the VIM account as stored in the OSM vim