@itentialopensource/adapter-openstack_cinder 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +5 -0
- package/.eslintrc.js +18 -0
- package/.jshintrc +3 -0
- package/AUTH.md +43 -0
- package/BROKER.md +199 -0
- package/CALLS.md +1118 -0
- package/CHANGELOG.md +9 -0
- package/CODE_OF_CONDUCT.md +43 -0
- package/CONTRIBUTING.md +172 -0
- package/ENHANCE.md +69 -0
- package/LICENSE +201 -0
- package/PROPERTIES.md +641 -0
- package/README.md +337 -0
- package/SUMMARY.md +9 -0
- package/SYSTEMINFO.md +11 -0
- package/TROUBLESHOOT.md +47 -0
- package/adapter.js +20288 -0
- package/adapterBase.js +1788 -0
- package/entities/.generic/action.json +214 -0
- package/entities/.generic/schema.json +28 -0
- package/entities/.system/action.json +50 -0
- package/entities/.system/mockdatafiles/getToken-default.json +242 -0
- package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
- package/entities/.system/schema.json +19 -0
- package/entities/.system/schemaTokenReq.json +53 -0
- package/entities/.system/schemaTokenResp.json +49 -0
- package/entities/APIExtensionsExtensions/action.json +25 -0
- package/entities/APIExtensionsExtensions/schema.json +30 -0
- package/entities/APIVersionDetails/action.json +25 -0
- package/entities/APIVersionDetails/schema.json +19 -0
- package/entities/APIVersions/action.json +25 -0
- package/entities/APIVersions/schema.json +19 -0
- package/entities/AttachmentsAttachments/action.json +147 -0
- package/entities/AttachmentsAttachments/schema.json +58 -0
- package/entities/BackEndStoragePools/action.json +25 -0
- package/entities/BackEndStoragePools/schema.json +30 -0
- package/entities/BackupActionsBackupsAction/action.json +24 -0
- package/entities/BackupActionsBackupsAction/schema.json +41 -0
- package/entities/BackupsBackups/action.json +188 -0
- package/entities/BackupsBackups/schema.json +71 -0
- package/entities/CapabilitiesForStorageBackEndsCapabilities/action.json +25 -0
- package/entities/CapabilitiesForStorageBackEndsCapabilities/schema.json +30 -0
- package/entities/ConsistencyGroupSnapshotsDEPRECATED/action.json +107 -0
- package/entities/ConsistencyGroupSnapshotsDEPRECATED/schema.json +56 -0
- package/entities/ConsistencyGroupsDEPRECATED/action.json +147 -0
- package/entities/ConsistencyGroupsDEPRECATED/schema.json +58 -0
- package/entities/DefaultVolumeTypesDefaultTypes/action.json +86 -0
- package/entities/DefaultVolumeTypesDefaultTypes/schema.json +33 -0
- package/entities/GenericVolumeGroupsGroups/action.json +147 -0
- package/entities/GenericVolumeGroupsGroups/schema.json +69 -0
- package/entities/GroupSnapshotsGroupSnapshots/action.json +127 -0
- package/entities/GroupSnapshotsGroupSnapshots/schema.json +79 -0
- package/entities/GroupTypeSpecsGroupTypesGroupSpecs/action.json +106 -0
- package/entities/GroupTypeSpecsGroupTypesGroupSpecs/schema.json +56 -0
- package/entities/GroupTypesGroupTypes/action.json +127 -0
- package/entities/GroupTypesGroupTypes/schema.json +46 -0
- package/entities/HostsExtensionOsHosts/action.json +46 -0
- package/entities/HostsExtensionOsHosts/schema.json +42 -0
- package/entities/LimitsLimits/action.json +25 -0
- package/entities/LimitsLimits/schema.json +30 -0
- package/entities/MessagesMessages/action.json +66 -0
- package/entities/MessagesMessages/schema.json +43 -0
- package/entities/QualityOfServiceQoSSpecificationsQosSpecs/action.json +210 -0
- package/entities/QualityOfServiceQoSSpecificationsQosSpecs/schema.json +61 -0
- package/entities/QuotaClassSetExtensionOsQuotaClassSets/action.json +45 -0
- package/entities/QuotaClassSetExtensionOsQuotaClassSets/schema.json +42 -0
- package/entities/QuotaSetsExtensionOsQuotaSets/action.json +86 -0
- package/entities/QuotaSetsExtensionOsQuotaSets/schema.json +44 -0
- package/entities/ResourceFiltersResourceFilters/action.json +25 -0
- package/entities/ResourceFiltersResourceFilters/schema.json +30 -0
- package/entities/ServicesOsServices/action.json +185 -0
- package/entities/ServicesOsServices/schema.json +38 -0
- package/entities/SnapshotActionsSnapshotsAction/action.json +24 -0
- package/entities/SnapshotActionsSnapshotsAction/schema.json +41 -0
- package/entities/SnapshotManageExtensionManageableSnapshots/action.json +66 -0
- package/entities/SnapshotManageExtensionManageableSnapshots/schema.json +32 -0
- package/entities/VolumeActionsVolumesAction/action.json +24 -0
- package/entities/VolumeActionsVolumesAction/schema.json +41 -0
- package/entities/VolumeManageExtensionManageableVolumes/action.json +66 -0
- package/entities/VolumeManageExtensionManageableVolumes/schema.json +32 -0
- package/entities/VolumeSnapshotsSnapshots/action.json +249 -0
- package/entities/VolumeSnapshotsSnapshots/schema.json +85 -0
- package/entities/VolumeTransfer/action.json +127 -0
- package/entities/VolumeTransfer/schema.json +57 -0
- package/entities/VolumeTransfersVolumeTransfers355OrLater/action.json +127 -0
- package/entities/VolumeTransfersVolumeTransfers355OrLater/schema.json +79 -0
- package/entities/VolumeTypeAccessTypesActionTypesOsVolumeTypeAccess/action.json +45 -0
- package/entities/VolumeTypeAccessTypesActionTypesOsVolumeTypeAccess/schema.json +42 -0
- package/entities/VolumeTypesTypes/action.json +331 -0
- package/entities/VolumeTypesTypes/schema.json +78 -0
- package/entities/VolumesVolumes/action.json +270 -0
- package/entities/VolumesVolumes/schema.json +108 -0
- package/entities/WorkersWorkers/action.json +24 -0
- package/entities/WorkersWorkers/schema.json +30 -0
- package/error.json +190 -0
- package/package.json +87 -0
- package/pronghorn.json +10093 -0
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +1284 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +10 -0
- package/report/cinder-openapi.json +8589 -0
- package/report/creationReport.json +1495 -0
- package/sampleProperties.json +198 -0
- package/swagger/openstack_API_docs/BlockStorageAPIV3-cinder-documentation.html +32674 -0
- package/swagger/openstack_api_cinder.js +602 -0
- package/test/integration/adapterTestBasicGet.js +85 -0
- package/test/integration/adapterTestConnectivity.js +93 -0
- package/test/integration/adapterTestIntegration.js +4799 -0
- package/test/unit/adapterBaseTestUnit.js +952 -0
- package/test/unit/adapterTestUnit.js +7633 -0
- package/utils/adapterInfo.js +206 -0
- package/utils/addAuth.js +94 -0
- package/utils/artifactize.js +146 -0
- package/utils/basicGet.js +50 -0
- package/utils/checkMigrate.js +63 -0
- package/utils/entitiesToDB.js +179 -0
- package/utils/findPath.js +74 -0
- package/utils/methodDocumentor.js +225 -0
- package/utils/modify.js +154 -0
- package/utils/packModificationScript.js +35 -0
- package/utils/patches2bundledDeps.js +90 -0
- package/utils/pre-commit.sh +32 -0
- package/utils/removeHooks.js +20 -0
- package/utils/setup.js +33 -0
- package/utils/tbScript.js +184 -0
- package/utils/tbUtils.js +469 -0
- package/utils/testRunner.js +298 -0
- package/utils/troubleshootingAdapter.js +190 -0
- package/workflows/README.md +3 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "manageAnExistingSnapshot",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "POST",
|
|
7
|
+
"entitypath": "{base_path}/{version}/v3/{pathv1}/manageable_snapshots?{query}",
|
|
8
|
+
"requestSchema": "schema.json",
|
|
9
|
+
"responseSchema": "schema.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"requestDatatype": "JSON",
|
|
13
|
+
"responseDatatype": "JSON",
|
|
14
|
+
"headers": {},
|
|
15
|
+
"responseObjects": [
|
|
16
|
+
{
|
|
17
|
+
"type": "default",
|
|
18
|
+
"key": "",
|
|
19
|
+
"mockFile": ""
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "listSummaryOfSnapshotsAvailableToManage",
|
|
25
|
+
"protocol": "REST",
|
|
26
|
+
"method": "GET",
|
|
27
|
+
"entitypath": "{base_path}/{version}/v3/{pathv1}/manageable_snapshots?{query}",
|
|
28
|
+
"requestSchema": "schema.json",
|
|
29
|
+
"responseSchema": "schema.json",
|
|
30
|
+
"timeout": 0,
|
|
31
|
+
"sendEmpty": false,
|
|
32
|
+
"sendGetBody": false,
|
|
33
|
+
"requestDatatype": "JSON",
|
|
34
|
+
"responseDatatype": "JSON",
|
|
35
|
+
"headers": {},
|
|
36
|
+
"responseObjects": [
|
|
37
|
+
{
|
|
38
|
+
"type": "default",
|
|
39
|
+
"key": "",
|
|
40
|
+
"mockFile": ""
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "listDetailOfSnapshotsAvailableToManage",
|
|
46
|
+
"protocol": "REST",
|
|
47
|
+
"method": "GET",
|
|
48
|
+
"entitypath": "{base_path}/{version}/v3/{pathv1}/manageable_snapshots/detail?{query}",
|
|
49
|
+
"requestSchema": "schema.json",
|
|
50
|
+
"responseSchema": "schema.json",
|
|
51
|
+
"timeout": 0,
|
|
52
|
+
"sendEmpty": false,
|
|
53
|
+
"sendGetBody": false,
|
|
54
|
+
"requestDatatype": "JSON",
|
|
55
|
+
"responseDatatype": "JSON",
|
|
56
|
+
"headers": {},
|
|
57
|
+
"responseObjects": [
|
|
58
|
+
{
|
|
59
|
+
"type": "default",
|
|
60
|
+
"key": "",
|
|
61
|
+
"mockFile": ""
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": true,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "manageAnExistingSnapshot",
|
|
12
|
+
"enum": [
|
|
13
|
+
"manageAnExistingSnapshot",
|
|
14
|
+
"listSummaryOfSnapshotsAvailableToManage",
|
|
15
|
+
"listDetailOfSnapshotsAvailableToManage"
|
|
16
|
+
],
|
|
17
|
+
"external_name": "ph_request_type"
|
|
18
|
+
},
|
|
19
|
+
"projectId": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "The UUID of the project in a multi-tenancy cloud.",
|
|
22
|
+
"parse": false,
|
|
23
|
+
"encode": false,
|
|
24
|
+
"encrypt": {
|
|
25
|
+
"type": "AES",
|
|
26
|
+
"key": ""
|
|
27
|
+
},
|
|
28
|
+
"external_name": "project_id"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"definitions": {}
|
|
32
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "extendAVolumeSize",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "POST",
|
|
7
|
+
"entitypath": "{base_path}/{version}/v3/{pathv1}/volumes/{pathv2}/action?{query}",
|
|
8
|
+
"requestSchema": "schema.json",
|
|
9
|
+
"responseSchema": "schema.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"requestDatatype": "JSON",
|
|
13
|
+
"responseDatatype": "JSON",
|
|
14
|
+
"headers": {},
|
|
15
|
+
"responseObjects": [
|
|
16
|
+
{
|
|
17
|
+
"type": "default",
|
|
18
|
+
"key": "",
|
|
19
|
+
"mockFile": ""
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": true,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "extendAVolumeSize",
|
|
12
|
+
"enum": [
|
|
13
|
+
"extendAVolumeSize"
|
|
14
|
+
],
|
|
15
|
+
"external_name": "ph_request_type"
|
|
16
|
+
},
|
|
17
|
+
"projectId": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "The UUID of the project in a multi-tenancy cloud.",
|
|
20
|
+
"parse": false,
|
|
21
|
+
"encode": false,
|
|
22
|
+
"encrypt": {
|
|
23
|
+
"type": "AES",
|
|
24
|
+
"key": ""
|
|
25
|
+
},
|
|
26
|
+
"external_name": "project_id"
|
|
27
|
+
},
|
|
28
|
+
"volumeId": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "The UUID of the volume.",
|
|
31
|
+
"parse": false,
|
|
32
|
+
"encode": false,
|
|
33
|
+
"encrypt": {
|
|
34
|
+
"type": "AES",
|
|
35
|
+
"key": ""
|
|
36
|
+
},
|
|
37
|
+
"external_name": "volume_id"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"definitions": {}
|
|
41
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "manageAnExistingVolume",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "POST",
|
|
7
|
+
"entitypath": "{base_path}/{version}/v3/{pathv1}/manageable_volumes?{query}",
|
|
8
|
+
"requestSchema": "schema.json",
|
|
9
|
+
"responseSchema": "schema.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"requestDatatype": "JSON",
|
|
13
|
+
"responseDatatype": "JSON",
|
|
14
|
+
"headers": {},
|
|
15
|
+
"responseObjects": [
|
|
16
|
+
{
|
|
17
|
+
"type": "default",
|
|
18
|
+
"key": "",
|
|
19
|
+
"mockFile": ""
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "listSummaryOfVolumesAvailableToManage",
|
|
25
|
+
"protocol": "REST",
|
|
26
|
+
"method": "GET",
|
|
27
|
+
"entitypath": "{base_path}/{version}/v3/{pathv1}/manageable_volumes?{query}",
|
|
28
|
+
"requestSchema": "schema.json",
|
|
29
|
+
"responseSchema": "schema.json",
|
|
30
|
+
"timeout": 0,
|
|
31
|
+
"sendEmpty": false,
|
|
32
|
+
"sendGetBody": false,
|
|
33
|
+
"requestDatatype": "JSON",
|
|
34
|
+
"responseDatatype": "JSON",
|
|
35
|
+
"headers": {},
|
|
36
|
+
"responseObjects": [
|
|
37
|
+
{
|
|
38
|
+
"type": "default",
|
|
39
|
+
"key": "",
|
|
40
|
+
"mockFile": ""
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "listDetailOfVolumesAvailableToManage",
|
|
46
|
+
"protocol": "REST",
|
|
47
|
+
"method": "GET",
|
|
48
|
+
"entitypath": "{base_path}/{version}/v3/{pathv1}/manageable_volumes/detail?{query}",
|
|
49
|
+
"requestSchema": "schema.json",
|
|
50
|
+
"responseSchema": "schema.json",
|
|
51
|
+
"timeout": 0,
|
|
52
|
+
"sendEmpty": false,
|
|
53
|
+
"sendGetBody": false,
|
|
54
|
+
"requestDatatype": "JSON",
|
|
55
|
+
"responseDatatype": "JSON",
|
|
56
|
+
"headers": {},
|
|
57
|
+
"responseObjects": [
|
|
58
|
+
{
|
|
59
|
+
"type": "default",
|
|
60
|
+
"key": "",
|
|
61
|
+
"mockFile": ""
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": true,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "manageAnExistingVolume",
|
|
12
|
+
"enum": [
|
|
13
|
+
"manageAnExistingVolume",
|
|
14
|
+
"listSummaryOfVolumesAvailableToManage",
|
|
15
|
+
"listDetailOfVolumesAvailableToManage"
|
|
16
|
+
],
|
|
17
|
+
"external_name": "ph_request_type"
|
|
18
|
+
},
|
|
19
|
+
"projectId": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "The UUID of the project in a multi-tenancy cloud.",
|
|
22
|
+
"parse": false,
|
|
23
|
+
"encode": false,
|
|
24
|
+
"encrypt": {
|
|
25
|
+
"type": "AES",
|
|
26
|
+
"key": ""
|
|
27
|
+
},
|
|
28
|
+
"external_name": "project_id"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"definitions": {}
|
|
32
|
+
}
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "listSnapshotsAndDetails",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "GET",
|
|
7
|
+
"entitypath": "{base_path}/{version}/v3/{pathv1}/snapshots/detail?{query}",
|
|
8
|
+
"requestSchema": "schema.json",
|
|
9
|
+
"responseSchema": "schema.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"sendGetBody": false,
|
|
13
|
+
"requestDatatype": "JSON",
|
|
14
|
+
"responseDatatype": "JSON",
|
|
15
|
+
"headers": {},
|
|
16
|
+
"responseObjects": [
|
|
17
|
+
{
|
|
18
|
+
"type": "default",
|
|
19
|
+
"key": "",
|
|
20
|
+
"mockFile": ""
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "createASnapshot",
|
|
26
|
+
"protocol": "REST",
|
|
27
|
+
"method": "POST",
|
|
28
|
+
"entitypath": "{base_path}/{version}/v3/{pathv1}/snapshots?{query}",
|
|
29
|
+
"requestSchema": "schema.json",
|
|
30
|
+
"responseSchema": "schema.json",
|
|
31
|
+
"timeout": 0,
|
|
32
|
+
"sendEmpty": false,
|
|
33
|
+
"requestDatatype": "JSON",
|
|
34
|
+
"responseDatatype": "JSON",
|
|
35
|
+
"headers": {},
|
|
36
|
+
"responseObjects": [
|
|
37
|
+
{
|
|
38
|
+
"type": "default",
|
|
39
|
+
"key": "",
|
|
40
|
+
"mockFile": ""
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "listAccessibleSnapshots",
|
|
46
|
+
"protocol": "REST",
|
|
47
|
+
"method": "GET",
|
|
48
|
+
"entitypath": "{base_path}/{version}/v3/{pathv1}/snapshots?{query}",
|
|
49
|
+
"requestSchema": "schema.json",
|
|
50
|
+
"responseSchema": "schema.json",
|
|
51
|
+
"timeout": 0,
|
|
52
|
+
"sendEmpty": false,
|
|
53
|
+
"sendGetBody": false,
|
|
54
|
+
"requestDatatype": "JSON",
|
|
55
|
+
"responseDatatype": "JSON",
|
|
56
|
+
"headers": {},
|
|
57
|
+
"responseObjects": [
|
|
58
|
+
{
|
|
59
|
+
"type": "default",
|
|
60
|
+
"key": "",
|
|
61
|
+
"mockFile": ""
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "showASnapshotSMetadata",
|
|
67
|
+
"protocol": "REST",
|
|
68
|
+
"method": "GET",
|
|
69
|
+
"entitypath": "{base_path}/{version}/v3/{pathv1}/snapshots/{pathv2}/metadata?{query}",
|
|
70
|
+
"requestSchema": "schema.json",
|
|
71
|
+
"responseSchema": "schema.json",
|
|
72
|
+
"timeout": 0,
|
|
73
|
+
"sendEmpty": false,
|
|
74
|
+
"sendGetBody": false,
|
|
75
|
+
"requestDatatype": "JSON",
|
|
76
|
+
"responseDatatype": "JSON",
|
|
77
|
+
"headers": {},
|
|
78
|
+
"responseObjects": [
|
|
79
|
+
{
|
|
80
|
+
"type": "default",
|
|
81
|
+
"key": "",
|
|
82
|
+
"mockFile": ""
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "createASnapshotSMetadata",
|
|
88
|
+
"protocol": "REST",
|
|
89
|
+
"method": "POST",
|
|
90
|
+
"entitypath": "{base_path}/{version}/v3/{pathv1}/snapshots/{pathv2}/metadata?{query}",
|
|
91
|
+
"requestSchema": "schema.json",
|
|
92
|
+
"responseSchema": "schema.json",
|
|
93
|
+
"timeout": 0,
|
|
94
|
+
"sendEmpty": false,
|
|
95
|
+
"requestDatatype": "JSON",
|
|
96
|
+
"responseDatatype": "JSON",
|
|
97
|
+
"headers": {},
|
|
98
|
+
"responseObjects": [
|
|
99
|
+
{
|
|
100
|
+
"type": "default",
|
|
101
|
+
"key": "",
|
|
102
|
+
"mockFile": ""
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "updateASnapshotSMetadata",
|
|
108
|
+
"protocol": "REST",
|
|
109
|
+
"method": "PUT",
|
|
110
|
+
"entitypath": "{base_path}/{version}/v3/{pathv1}/snapshots/{pathv2}/metadata?{query}",
|
|
111
|
+
"requestSchema": "schema.json",
|
|
112
|
+
"responseSchema": "schema.json",
|
|
113
|
+
"timeout": 0,
|
|
114
|
+
"sendEmpty": false,
|
|
115
|
+
"requestDatatype": "JSON",
|
|
116
|
+
"responseDatatype": "JSON",
|
|
117
|
+
"headers": {},
|
|
118
|
+
"responseObjects": [
|
|
119
|
+
{
|
|
120
|
+
"type": "default",
|
|
121
|
+
"key": "",
|
|
122
|
+
"mockFile": ""
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "showASnapshotSDetails",
|
|
128
|
+
"protocol": "REST",
|
|
129
|
+
"method": "GET",
|
|
130
|
+
"entitypath": "{base_path}/{version}/v3/{pathv1}/snapshots/{pathv2}?{query}",
|
|
131
|
+
"requestSchema": "schema.json",
|
|
132
|
+
"responseSchema": "schema.json",
|
|
133
|
+
"timeout": 0,
|
|
134
|
+
"sendEmpty": false,
|
|
135
|
+
"sendGetBody": false,
|
|
136
|
+
"requestDatatype": "JSON",
|
|
137
|
+
"responseDatatype": "JSON",
|
|
138
|
+
"headers": {},
|
|
139
|
+
"responseObjects": [
|
|
140
|
+
{
|
|
141
|
+
"type": "default",
|
|
142
|
+
"key": "",
|
|
143
|
+
"mockFile": ""
|
|
144
|
+
}
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"name": "updateASnapshot",
|
|
149
|
+
"protocol": "REST",
|
|
150
|
+
"method": "PUT",
|
|
151
|
+
"entitypath": "{base_path}/{version}/v3/{pathv1}/snapshots/{pathv2}?{query}",
|
|
152
|
+
"requestSchema": "schema.json",
|
|
153
|
+
"responseSchema": "schema.json",
|
|
154
|
+
"timeout": 0,
|
|
155
|
+
"sendEmpty": false,
|
|
156
|
+
"requestDatatype": "JSON",
|
|
157
|
+
"responseDatatype": "JSON",
|
|
158
|
+
"headers": {},
|
|
159
|
+
"responseObjects": [
|
|
160
|
+
{
|
|
161
|
+
"type": "default",
|
|
162
|
+
"key": "",
|
|
163
|
+
"mockFile": ""
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "deleteASnapshot",
|
|
169
|
+
"protocol": "REST",
|
|
170
|
+
"method": "DELETE",
|
|
171
|
+
"entitypath": "{base_path}/{version}/v3/{pathv1}/snapshots/{pathv2}?{query}",
|
|
172
|
+
"requestSchema": "schema.json",
|
|
173
|
+
"responseSchema": "schema.json",
|
|
174
|
+
"timeout": 0,
|
|
175
|
+
"sendEmpty": false,
|
|
176
|
+
"requestDatatype": "JSON",
|
|
177
|
+
"responseDatatype": "JSON",
|
|
178
|
+
"headers": {},
|
|
179
|
+
"responseObjects": [
|
|
180
|
+
{
|
|
181
|
+
"type": "default",
|
|
182
|
+
"key": "",
|
|
183
|
+
"mockFile": ""
|
|
184
|
+
}
|
|
185
|
+
]
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "showASnapshotSMetadataForASpecificKey",
|
|
189
|
+
"protocol": "REST",
|
|
190
|
+
"method": "GET",
|
|
191
|
+
"entitypath": "{base_path}/{version}/v3/{pathv1}/snapshot/{pathv2}/metadata/{pathv3}?{query}",
|
|
192
|
+
"requestSchema": "schema.json",
|
|
193
|
+
"responseSchema": "schema.json",
|
|
194
|
+
"timeout": 0,
|
|
195
|
+
"sendEmpty": false,
|
|
196
|
+
"sendGetBody": false,
|
|
197
|
+
"requestDatatype": "JSON",
|
|
198
|
+
"responseDatatype": "JSON",
|
|
199
|
+
"headers": {},
|
|
200
|
+
"responseObjects": [
|
|
201
|
+
{
|
|
202
|
+
"type": "default",
|
|
203
|
+
"key": "",
|
|
204
|
+
"mockFile": ""
|
|
205
|
+
}
|
|
206
|
+
]
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "deleteASnapshotSMetadata",
|
|
210
|
+
"protocol": "REST",
|
|
211
|
+
"method": "DELETE",
|
|
212
|
+
"entitypath": "{base_path}/{version}/v3/{pathv1}/snapshots/{pathv2}/metadata/{pathv3}?{query}",
|
|
213
|
+
"requestSchema": "schema.json",
|
|
214
|
+
"responseSchema": "schema.json",
|
|
215
|
+
"timeout": 0,
|
|
216
|
+
"sendEmpty": false,
|
|
217
|
+
"requestDatatype": "JSON",
|
|
218
|
+
"responseDatatype": "JSON",
|
|
219
|
+
"headers": {},
|
|
220
|
+
"responseObjects": [
|
|
221
|
+
{
|
|
222
|
+
"type": "default",
|
|
223
|
+
"key": "",
|
|
224
|
+
"mockFile": ""
|
|
225
|
+
}
|
|
226
|
+
]
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"name": "updateASnapshotSMetadataForASpecificKey",
|
|
230
|
+
"protocol": "REST",
|
|
231
|
+
"method": "PUT",
|
|
232
|
+
"entitypath": "{base_path}/{version}/v3/{pathv1}/snapshots/{pathv2}/metadata/{pathv3}?{query}",
|
|
233
|
+
"requestSchema": "schema.json",
|
|
234
|
+
"responseSchema": "schema.json",
|
|
235
|
+
"timeout": 0,
|
|
236
|
+
"sendEmpty": false,
|
|
237
|
+
"requestDatatype": "JSON",
|
|
238
|
+
"responseDatatype": "JSON",
|
|
239
|
+
"headers": {},
|
|
240
|
+
"responseObjects": [
|
|
241
|
+
{
|
|
242
|
+
"type": "default",
|
|
243
|
+
"key": "",
|
|
244
|
+
"mockFile": ""
|
|
245
|
+
}
|
|
246
|
+
]
|
|
247
|
+
}
|
|
248
|
+
]
|
|
249
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": true,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "listSnapshotsAndDetails",
|
|
12
|
+
"enum": [
|
|
13
|
+
"listSnapshotsAndDetails",
|
|
14
|
+
"createASnapshot",
|
|
15
|
+
"listAccessibleSnapshots",
|
|
16
|
+
"showASnapshotSMetadata",
|
|
17
|
+
"createASnapshotSMetadata",
|
|
18
|
+
"updateASnapshotSMetadata",
|
|
19
|
+
"showASnapshotSDetails",
|
|
20
|
+
"updateASnapshot",
|
|
21
|
+
"deleteASnapshot",
|
|
22
|
+
"showASnapshotSMetadataForASpecificKey",
|
|
23
|
+
"deleteASnapshotSMetadata",
|
|
24
|
+
"updateASnapshotSMetadataForASpecificKey"
|
|
25
|
+
],
|
|
26
|
+
"external_name": "ph_request_type"
|
|
27
|
+
},
|
|
28
|
+
"allTenants": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "Shows details for all project. Admin only.",
|
|
31
|
+
"parse": false,
|
|
32
|
+
"encode": false,
|
|
33
|
+
"encrypt": {
|
|
34
|
+
"type": "AES",
|
|
35
|
+
"key": ""
|
|
36
|
+
},
|
|
37
|
+
"external_name": "all_tenants"
|
|
38
|
+
},
|
|
39
|
+
"withCount": {
|
|
40
|
+
"type": "boolean",
|
|
41
|
+
"description": "Whether to show count in API response or not, default is False.",
|
|
42
|
+
"parse": false,
|
|
43
|
+
"encode": false,
|
|
44
|
+
"encrypt": {
|
|
45
|
+
"type": "AES",
|
|
46
|
+
"key": ""
|
|
47
|
+
},
|
|
48
|
+
"external_name": "with_count"
|
|
49
|
+
},
|
|
50
|
+
"consumesQuota": {
|
|
51
|
+
"type": "boolean",
|
|
52
|
+
"description": "Filters results by consumes_quota field. Resources that don’t use\nquotas are usually temporary internal resources created to perform an\noperation. Default is to not fil...(description truncated)",
|
|
53
|
+
"parse": false,
|
|
54
|
+
"encode": false,
|
|
55
|
+
"encrypt": {
|
|
56
|
+
"type": "AES",
|
|
57
|
+
"key": ""
|
|
58
|
+
},
|
|
59
|
+
"external_name": "consumes_quota"
|
|
60
|
+
},
|
|
61
|
+
"projectId": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"description": "The UUID of the project in a multi-tenancy cloud.",
|
|
64
|
+
"parse": false,
|
|
65
|
+
"encode": false,
|
|
66
|
+
"encrypt": {
|
|
67
|
+
"type": "AES",
|
|
68
|
+
"key": ""
|
|
69
|
+
},
|
|
70
|
+
"external_name": "project_id"
|
|
71
|
+
},
|
|
72
|
+
"snapshotId": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"description": "The UUID of the snapshot.",
|
|
75
|
+
"parse": false,
|
|
76
|
+
"encode": false,
|
|
77
|
+
"encrypt": {
|
|
78
|
+
"type": "AES",
|
|
79
|
+
"key": ""
|
|
80
|
+
},
|
|
81
|
+
"external_name": "snapshot_id"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"definitions": {}
|
|
85
|
+
}
|