22# (C) Copyright 2021 Hewlett Packard Enterprise Development LP.
33#
44# overlays : Add, update, delete overlay configurations
5+ import requests
56
67
78def get_all_overlays_config (self ) -> list :
@@ -26,7 +27,7 @@ def get_all_overlays_config(self) -> list:
2627def configure_new_overlay (
2728 self ,
2829 overlay_config : dict ,
29- ) -> dict :
30+ ) -> requests . Response :
3031 """Configure a new overlay on Orchestrator
3132
3233 .. list-table::
@@ -82,7 +83,7 @@ def get_all_overlays_config_keyed(self) -> dict:
8283def configure_regionalized_overlay (
8384 self ,
8485 regional_overlay_config : list ,
85- ) -> dict :
86+ ) -> requests . Response :
8687 """Use this API to create an exhaustive representation of
8788 regionalized overlays. The body of this request should be an array
8889 of map which keyed by region id whose value is regional overlay
@@ -119,7 +120,7 @@ def configure_regionalized_overlay(
119120def modify_regionalized_overlay (
120121 self ,
121122 regional_overlay_config : list ,
122- ) -> dict :
123+ ) -> requests . Response :
123124 """Use this API to update an exhaustive representation of
124125 regionalized overlays. The body of this request should be a map
125126 keyed by overlayId whose value is a map of regionId to regional
@@ -180,7 +181,7 @@ def modify_overlay_config(
180181 self ,
181182 overlay_id : int ,
182183 overlay_config : dict ,
183- ) -> dict :
184+ ) -> requests . Response :
184185 """Use this API to update an existing overlay configuration. If you
185186 are using regions and have customized regional BIO per region, it
186187 will be overridden. To avoid this use the other PUT api which takes
@@ -201,8 +202,9 @@ def modify_overlay_config(
201202 :type overlay_id: int
202203 :param overlay_config: Full overlay configuration object
203204 :type overlay_config: dict
204- :return: Returns dictionary of overlay configuration
205- :rtype: dict
205+ :return: Returns full response details. On successful call will
206+ return newly created Overlay ID
207+ :rtype: Requests.response object
206208 """
207209 return self ._put (
208210 "/gms/overlays/config/{}" .format (overlay_id ),
@@ -276,7 +278,7 @@ def modify_overlay_config_for_region(
276278 overlay_id : int ,
277279 region_id : int ,
278280 overlay_config : dict ,
279- ) -> dict :
281+ ) -> requests . Response :
280282 """Use this API to update an existing overlay configuration, use
281283 region_id ``0`` to update global overlay configuration.
282284
0 commit comments