Sonar Fixes policy/models, removing model-yaml
[policy/models.git] / models-interactions / model-yaml / src / test / resources / v2.0.0-guard / policy_guard_blacklist.yaml
1 # Copyright 2018 AT&T Intellectual Property. All rights reserved
2 # Modifications Copyright (C) 2019 Nordix Foundation.
3 #
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
7 #
8 #         http://www.apache.org/licenses/LICENSE-2.0
9 #
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 implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 guard:
16   version: 2.0.0
17
18 guards:
19   - id: unique_guard_vService_blacklist
20     name: APPC Restart Blacklist
21     description: |
22       We deny restart of the blacklisted targets (avoid midnight to 5am)
23     actor: APPC
24     recipe: Restart
25     limit_constraints:
26       - blacklist:
27           - TargetName1
28           - TargetName2
29         time_in_range:
30           arg2: 00:00:00-05:00
31           arg3: 23:59:59-05:00