Coverage for manila/share/drivers/netapp/dataontap/client/rest_endpoints.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.11.0, created at 2026-02-18 22:19 +0000

1# Copyright 2021 NetApp, Inc. 

2# All Rights Reserved. 

3# 

4# Licensed under the Apache License, Version 2.0 (the "License"); you may 

5# not use this file except in compliance with the License. You may obtain 

6# 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, WITHOUT 

12# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 

13# License for the specific language governing permissions and limitations 

14# under the License. 

15 

16ENDPOINT_MIGRATION_ACTIONS = 'svm/migrations/%(svm_migration_id)s' 

17ENDPOINT_MIGRATIONS = 'svm/migrations' 

18ENDPOINT_JOB_ACTIONS = 'cluster/jobs/%(job_uuid)s' 

19ENDPOINT_MIGRATION_GET_PROGRESS = '/storage/volumes/' 

20 

21endpoints = { 

22 'system-get-version': { 

23 'method': 'get', 

24 'url': 'cluster?fields=version', 

25 }, 

26 'svm-migration-start': { 

27 'method': 'post', 

28 'url': ENDPOINT_MIGRATIONS 

29 }, 

30 'svm-migration-complete': { 

31 'method': 'patch', 

32 'url': ENDPOINT_MIGRATION_ACTIONS 

33 }, 

34 'svm-migration-cancel': { 

35 'method': 'delete', 

36 'url': ENDPOINT_MIGRATION_ACTIONS 

37 }, 

38 'svm-migration-get': { 

39 'method': 'get', 

40 'url': ENDPOINT_MIGRATION_ACTIONS 

41 }, 

42 'get-job': { 

43 'method': 'get', 

44 'url': ENDPOINT_JOB_ACTIONS 

45 }, 

46 'svm-migration-pause': { 

47 'method': 'patch', 

48 'url': ENDPOINT_MIGRATION_ACTIONS 

49 }, 

50 'svm-migration-get-progress': { 

51 'method': 'get', 

52 'url': ENDPOINT_MIGRATION_GET_PROGRESS 

53 }, 

54}