Skip to content

Commit 2ac2b48

Browse files
authored
Merge pull request #451 from SumoSourabh/syncdevelop
CP-8806 Sync virtualization-sdk develop and master for 4.0.5 release
2 parents 93e5fbf + 47177b2 commit 2ac2b48

File tree

20 files changed

+174
-33
lines changed

20 files changed

+174
-33
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 4.0.5.dev1
2+
current_version = 4.0.5
33
commit = False
44
tag = False
55
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+)(?P<dev>\d+))?

common/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
PYTHON_SRC = 'src/main/python'
55

66
install_requires = [
7-
"dvp-api == 1.7.0.dev0",
7+
"dvp-api == 1.7.0",
88
]
99

1010
with open(os.path.join(PYTHON_SRC, 'dlpx/virtualization/common/VERSION')) as version_file:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.0.5.dev1
1+
4.0.5

docs/docs/References/Decorators.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,15 @@ Plugin Operation | Decorator
2727
[Source Config Discovey](Plugin_Operations.md#source-config-discovery) | `@plugin.discovery.source_config()`
2828
[Direct Linked Source Pre-Snapshot](Plugin_Operations.md#direct-linked-source-pre-snapshot) | `@plugin.linked.pre_snapshot()`
2929
[Direct Linked Source Post-Snapshot](Plugin_Operations.md#direct-linked-source-post-snapshot) | `@plugin.linked.post_snapshot()`
30+
[Direct Linked Source Size](Plugin_Operations.md#direct-linked-source-size) | `@plugin.linked.source_size()`
3031
[Staged Linked Source Pre-Snapshot](Plugin_Operations.md#staged-linked-source-pre-snapshot) | `@plugin.linked.pre_snapshot()`
3132
[Staged Linked Source Post-Snapshot](Plugin_Operations.md#linkedsource-post-snapshot) | `@plugin.linked.post_snapshot()`
3233
[Staged Linked Source Start-Staging](Plugin_Operations.md#staged-linked-source-start-staging) | `@plugin.linked.start_staging()`
3334
[Staged Linked Source Stop-Staging](Plugin_Operations.md#staged-linked-source-stop-staging) | `@plugin.linked.stop_staging()`
3435
[Staged Linked Source Status](Plugin_Operations.md#staged-linked-source-status) | `@plugin.linked.status()`
3536
[Staged Linked Source Worker](Plugin_Operations.md#staged-linked-source-worker) | `@plugin.linked.worker()`
3637
[Staged Linked Source Mount Specification](Plugin_Operations.md#staged-linked-source-mount-specification) | `@plugin.linked.mount_specification()`
38+
[Staged Linked Source Size](Plugin_Operations.md#staged-linked-source-size) | `@plugin.linked.source_size()`
3739
[Virtual Source Configure](Plugin_Operations.md#virtual-source-configure) | `@plugin.virtual.configure()`
3840
[Virtual Source Initialize](Plugin_Operations.md#virtual-source-initialize) | `@plugin.virtual.initialize()`
3941
[Virtual Source Unconfigure](Plugin_Operations.md#virtual-source-unconfigure) | `@plugin.virtual.unconfigure()`
@@ -45,6 +47,7 @@ Plugin Operation | Decorator
4547
[Virtual Source Post-Snapshot](Plugin_Operations.md#virtual-source-post-snapshot) | `@plugin.virtual.post_snapshot()`
4648
[Virtual Source Mount Specification](Plugin_Operations.md#virtual-source-mount-specification) | `@plugin.virtual.mount_specification()`
4749
[Virtual Source Status](Plugin_Operations.md#virtual-source-status) | `@plugin.virtual.status()`
50+
[Virtual Source Size](Plugin_Operations.md#virtual-source-size) | `@plugin.virtual.source_size()`
4851
[Repository Data Migration](Plugin_Operations.md#repository-data-migration) | `@plugin.upgrade.repository(migration_id)`
4952
[Source Config Data Migration](Plugin_Operations.md#source-config-data-migration) | `@plugin.upgrade.source_config(migration_id)`
5053
[Linked Source Data Migration](Plugin_Operations.md#linked-source-data-migration) | `@plugin.upgrade.linked_source(migration_id)`

docs/docs/References/Plugin_Operations.md

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ Plugin Operation | **Required** | Decorator | Delphix Engine Operations
1414
[Source Config<br/>Discovery](#source-config-discovery) | **Yes** |`discovery.source_config()` | [Environment Discovery](Workflows.md#environment-discovery-refresh)<br/>[Environment Refresh](Workflows.md#environment-discovery-refresh)
1515
[Direct Linked Source<br/>Pre-Snapshot](#direct-linked-source-pre-snapshot) | **No** | `linked.pre_snapshot()` | [Linked Source Sync](Workflows.md#linked-source-sync)
1616
[Direct Linked Source<br/>Post-Snapshot](#direct-linked-source-post-snapshot) | **Yes** | `linked.post_snapshot()` | [Linked Source Sync](Workflows.md#linked-source-sync)
17+
[Direct Linked Source<br/>Source Size](#direct-linked-source-size) | **No** | `linked.source_size()` | N/A
1718
[Staged Linked Source<br/>Pre-Snapshot](#staged-linked-source-pre-snapshot) | **No** | `linked.pre_snapshot()` | [Linked Source Sync](Workflows.md#linked-source-sync)
1819
[Staged Linked Source<br/>Post-Snapshot](#staged-linked-source-post-snapshot) | **Yes** | `linked.post_snapshot()` | [Linked Source Sync](Workflows.md#linked-source-sync)
1920
[Staged Linked Source<br/>Start-Staging](#staged-linked-source-start-staging) | **No** | `linked.start_staging()` | [Linked Source Enable](Workflows.md#linked-source-enable)
2021
[Staged Linked Source<br/>Stop-Staging](#staged-linked-source-stop-staging) | **No** | `linked.stop_staging()` | [Linked Source Disable](Workflows.md#linked-source-disable)<br/>[Linked Source Delete](Workflows.md#linked-source-delete)
2122
[Staged Linked Source<br/>Status](#staged-linked-source-status) | **No** |`linked.status()` | N/A
2223
[Staged Linked Source<br/>Worker](#staged-linked-source-worker) | **No** |`linked.worker()` | N/A
2324
[Staged Linked Source<br/>Mount Specification](#staged-linked-source-mount-specification) | **Yes** | `linked.mount_specification()` | [Linked Source Sync](Workflows.md#linked-source-sync)<br/>[Linked Source Enable](Workflows.md#linked-source-enable)
25+
[Staged Linked Source<br/>Source Size](#staged-linked-source-size) | **No** | `linked.source_size()` | N/A
2426
[Virtual Source<br/>Initialize](#virtual-source-initialize) | **No** | `virtual.initialize()` | [Virtual Source Create Empty VDB](Workflows.md#virtual-source-create-empty-vdb)
2527
[Virtual Source<br/>Configure](#virtual-source-configure) | **Yes** | `virtual.configure()` | [Virtual Source Provision](Workflows.md#virtual-source-provision)<br/>[Virtual Source Refresh](Workflows.md#virtual-source-refresh)
2628
[Virtual Source<br/>Unconfigure](#virtual-source-unconfigure) | **No** | `virtual.unconfigure()` | [Virtual Source Refresh](Workflows.md#virtual-source-refresh)<br/>[Virtual Source Delete](Workflows.md#virtual-source-delete)
@@ -32,6 +34,7 @@ Plugin Operation | **Required** | Decorator | Delphix Engine Operations
3234
[Virtual Source<br/>Post-Snapshot](#virtual-source-post-snapshot) | **Yes** | `virtual.post_snapshot()` | [Virtual Source Snapshot](Workflows.md#virtual-source-snapshot)
3335
[Virtual Source<br>Mount Specification](#virtual-source-mount-specification) | **Yes** | `virtual.mount_specification()` | [Virtual Source Enable](Workflows.md#virtual-source-enable)<br/>[Virtual Source Provision](Workflows.md#virtual-source-provision)<br/>[Virtual Source Refresh](Workflows.md#virtual-source-refresh)<br/>[Virtual Source Rollback](Workflows.md#virtual-source-rollback)<br/>[Virtual Source Start](Workflows.md#virtual-source-start)
3436
[Virtual Source<br/>Status](#virtual-source-status) | **No** | `virtual.status()` | [Virtual Source Enable](Workflows.md#virtual-source-enable)
37+
[Virtual Source<br/>Source Size](#virtual-source-size) | **No** | `virtual.source_size()` | N/A
3538
[Repository Data Migration](#repository-data-migration) | **No** | `upgrade.repository(migration_id)` | [Upgrade](Workflows.md#upgrade)
3639
[Source Config Data Migration](#source-config-data-migration) | **No** | `upgrade.source_config(migration_id)` | [Upgrade](Workflows.md#upgrade)
3740
[Linked Source Data Migration](#linked-source-data-migration) | **No** | `upgrade.linked_source(migration_id)` | [Upgrade](Workflows.md#upgrade)
@@ -266,6 +269,50 @@ def linked_post_snapshot(direct_source, repository, source_config, optional_snap
266269
}
267270
```
268271

272+
## Direct Linked Source Size
273+
274+
Determines the database size of a [dSource](Glossary.md#dsource) once data has been ingested. Only applies when using a [Direct Linking](Glossary.md#direct-linking) strategy.
275+
276+
### Required / Optional
277+
**Optional.**
278+
279+
### Delphix Engine Operations
280+
281+
* N/A
282+
283+
### Signature
284+
285+
`def linked_source_size(direct_source, repository, source_config)`
286+
287+
### Decorator
288+
289+
`linked.source_size()`
290+
291+
### Arguments
292+
293+
Argument | Type | Description
294+
-------- | ---- | -----------
295+
direct_source | [DirectSource](Classes.md#directsource) | The source associated with this operation.
296+
repository | [RepositoryDefinition](Schemas_and_Autogenerated_Classes.md#repositorydefinition-class) | The repository associated with this source.
297+
source_config | [SourceConfigDefinition](Schemas_and_Autogenerated_Classes.md#sourceconfigdefinition-class) | The source config associated with this source.
298+
299+
### Returns
300+
Positive Numeric
301+
302+
### Example
303+
304+
```python
305+
from dlpx.virtualization.platform import Plugin
306+
307+
plugin = Plugin()
308+
309+
@plugin.linked.source_size()
310+
def linked_source_size(direct_source, repository, source_config):
311+
database_size = 0
312+
# Implementation to fetch the database size.
313+
return database_size
314+
```
315+
269316
## Staged Linked Source Pre-Snapshot
270317

271318
Sets up a [dSource](Glossary.md#dsource) to ingest data. Only applies when using a [Staged Linking](Glossary.md#staged-linking) strategy.
@@ -596,6 +643,50 @@ def linked_mount_specification(staged_source, repository):
596643
return MountSpecification([mount], ownership_spec)
597644
```
598645

646+
## Staged Linked Source Size
647+
648+
Determines the database size of a [Staging Source](Glossary.md#staging-source) once data has been ingested. Only applies when using a [Staged Linking](Glossary.md#staged-linking) strategy.
649+
650+
### Required / Optional
651+
**Optional.**
652+
653+
### Delphix Engine Operations
654+
655+
* N/A
656+
657+
### Signature
658+
659+
`def linked_source_size(staged_source, repository, source_config)`
660+
661+
### Decorator
662+
663+
`linked.source_size()`
664+
665+
### Arguments
666+
667+
Argument | Type | Description
668+
-------- | ---- | -----------
669+
staged_source | [StagedSource](Classes.md#stagedsource) | The source associated with this operation.
670+
repository | [RepositoryDefinition](Schemas_and_Autogenerated_Classes.md#repositorydefinition-class) | The repository associated with this source.
671+
source_config | [SourceConfigDefinition](Schemas_and_Autogenerated_Classes.md#sourceconfigdefinition-class) | The source config associated with this source.
672+
673+
### Returns
674+
Positive Numeric
675+
676+
### Example
677+
678+
```python
679+
from dlpx.virtualization.platform import Plugin
680+
681+
plugin = Plugin()
682+
683+
@plugin.linked.source_size()
684+
def linked_source_size(staged_source, repository, source_config):
685+
database_size = 0
686+
# Implementation to fetch the database size.
687+
return database_size
688+
```
689+
599690
## Virtual Source Initialize
600691

601692
Initializes a brand-new [empty VDB](Glossary.md#empty-vdb). As with all VDBs, this new dataset will have access to mounted Delphix Engine storage, but of course there will be no data there at first.
@@ -1153,6 +1244,50 @@ def virtual_status(virtual_source, repository, source_config):
11531244
return Status.ACTIVE
11541245
```
11551246

1247+
## Virtual Source Size
1248+
1249+
Determines the database size of a [Virtual Source](Glossary.md#virtual-source) once data has been ingested.
1250+
1251+
### Required / Optional
1252+
**Optional.**
1253+
1254+
### Delphix Engine Operations
1255+
1256+
* N/A
1257+
1258+
### Signature
1259+
1260+
`def virtual_source_size(virtual_source, repository, source_config)`
1261+
1262+
### Decorator
1263+
1264+
`virtual.source_size()`
1265+
1266+
### Arguments
1267+
1268+
Argument | Type | Description
1269+
-------- | ---- | -----------
1270+
virtual_source | [VirtualSource](Classes.md#virtualsource) | The source associated with this operation.
1271+
repository | [RepositoryDefinition](Schemas_and_Autogenerated_Classes.md#repositorydefinition-class) | The repository associated with this source.
1272+
source_config | [SourceConfigDefinition](Schemas_and_Autogenerated_Classes.md#sourceconfigdefinition-class) | The source config associated with this source.
1273+
1274+
### Returns
1275+
Positive Numeric
1276+
1277+
### Example
1278+
1279+
```python
1280+
from dlpx.virtualization.platform import Plugin
1281+
1282+
plugin = Plugin()
1283+
1284+
@plugin.virtual.source_size()
1285+
def virtual_source_size(virtual_source, repository, source_config):
1286+
database_size = 0
1287+
# Implementation to fetch the database size.
1288+
return database_size
1289+
```
1290+
11561291

11571292
## Repository Data Migration
11581293

docs/docs/References/Version_Compatibility.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,25 @@
44

55
|vSDK Version|Earliest Supported DE Version|Latest Supported DE Version|
66
|------------|:---------------------------:|:-------------------------:|
7-
|4.0.4|6.0.12.0|[Latest Release](https://docs.delphix.com/docs/release-notes/)|
8-
|4.0.2|6.0.12.0|[Latest Release](https://docs.delphix.com/docs/release-notes/)|
9-
|3.1.0|6.0.7.0|[Latest Release](https://docs.delphix.com/docs/release-notes/)|
10-
|3.0.0|6.0.6.0|[Latest Release](https://docs.delphix.com/docs/release-notes/)|
11-
|2.1.0|6.0.3.0|[Latest Release](https://docs.delphix.com/docs/release-notes/)|
12-
|2.0.0|6.0.2.0|[Latest Release](https://docs.delphix.com/docs/release-notes/)|
13-
|1.0.0|6.0.2.0|[Latest Release](https://docs.delphix.com/docs/release-notes/)|
14-
|0.4.0|5.3.5.0|6.0.1.0|
7+
|[4.0.5](/Release_Notes/4.0.5/4.0.5.md)|6.0.16.0|[Latest Release](https://docs.delphix.com/docs/release-notes/)|
8+
|[4.0.2](/Release_Notes/4.0.2/4.0.2.md)|6.0.12.0|[Latest Release](https://docs.delphix.com/docs/release-notes/)|
9+
|[3.1.0](/Release_Notes/3.1.0/3.1.0.md)|6.0.7.0|[Latest Release](https://docs.delphix.com/docs/release-notes/)|
10+
|[3.0.0](/Release_Notes/3.0.0/3.0.0.md)|6.0.6.0|[Latest Release](https://docs.delphix.com/docs/release-notes/)|
11+
|[2.1.0](/Release_Notes/2.1.0/2.1.0.md)|6.0.3.0|[Latest Release](https://docs.delphix.com/docs/release-notes/)|
12+
|[2.0.0](/Release_Notes/2.0.0/2.0.0.md)|6.0.2.0|[Latest Release](https://docs.delphix.com/docs/release-notes/)|
13+
|[1.0.0](/Release_Notes/1.0.0/1.0.0.md)|6.0.2.0|[Latest Release](https://docs.delphix.com/docs/release-notes/)|
14+
|[0.4.0](/Release_Notes/0.4.0/0.4.0.md)|5.3.5.0|6.0.1.0|
1515

1616
## Virtualization SDK and Python Compatibility Map
1717

1818
|vSDK Version|Python Version|
1919
|------------|:------------:|
20-
|4.0.4|3.8|
21-
|4.0.2|3.8|
22-
|3.1.0|2.7|
23-
|3.0.0|2.7|
24-
|2.1.0|2.7|
25-
|2.0.0|2.7|
26-
|1.0.0|2.7|
27-
|0.4.0|2.7|
20+
|[4.0.5](/Release_Notes/4.0.5/4.0.5.md)|3.8|
21+
|[4.0.2](/Release_Notes/4.0.2/4.0.2.md)|3.8|
22+
|[3.1.0](/Release_Notes/3.1.0/3.1.0.md)|2.7|
23+
|[3.0.0](/Release_Notes/3.0.0/3.0.0.md)|2.7|
24+
|[2.1.0](/Release_Notes/2.1.0/2.1.0.md)|2.7|
25+
|[2.0.0](/Release_Notes/2.0.0/2.0.0.md)|2.7|
26+
|[1.0.0](/Release_Notes/1.0.0/1.0.0.md)|2.7|
27+
|[0.4.0](/Release_Notes/0.4.0/0.4.0.md)|2.7|
2828

docs/docs/Release_Notes/.pages

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
arrange:
2+
- 4.0.5
3+
- 4.0.2
24
- 3.1.0
35
- 3.0.0
46
- 2.1.0

docs/docs/Release_Notes/4.0.0/.pages

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
arrange:
2+
- 4.0.2.md
3+
- 4.0.2_Breaking_Changes.md
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Release - v4.0.0
1+
# Release - v4.0.2
22

33
To install or upgrade the SDK, refer to instructions [here](/Getting_Started.md#installation).
44

0 commit comments

Comments
 (0)