Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
391 changes: 0 additions & 391 deletions mysql_artifact_v2.0.26.json

This file was deleted.

2 changes: 1 addition & 1 deletion plugin_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ pluginType: STAGED
entryPoint: plugin_runner:plugin
srcDir: src
schemaFile: schema.json
buildNumber: 2.0.26
buildNumber: 2.0.40
27 changes: 22 additions & 5 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,13 @@
"prettyName": "DB User",
"description": "DB user for the virtual database",
"default": "delphixdb"
},
},
"vdbPass": {
"type": "string",
"format": "password",
"pattern" : "^[^\"\\'\\s]*$",
"prettyName": "DB Password",
"description": "DB user password for the virtual database",
"description": "DB user password for the virtual database. Double quote, single quote or space characters are not valid.",
"default": "Delphix@123"
},
"baseDir": {
Expand Down Expand Up @@ -199,8 +200,9 @@
"sourcePass": {
"type": "string",
"format": "password",
"pattern" : "^[^\"\\'\\s]*$",
"prettyName": "Source Connection Password",
"description": "* Required if Delphix is taking backups",
"description": "* Required if Delphix is taking backups. Double quote, single quote or space characters are not valid.",
"default": "Delphix@123"
},
"databaseList": {
Expand All @@ -224,15 +226,17 @@
"replicationPass": {
"type": "string",
"format": "password",
"pattern" : "^[^\"\\'\\s]*$",
"prettyName": "Replication User's Password",
"description": "* Required if using Replication Method with LogSync",
"description": "* Required if using Replication Method with LogSync. Double quote, single quote or space characters are not valid.",
"default": "Delphix@123"
},
"stagingPass": {
"type": "string",
"format": "password",
"pattern" : "^[^\"\\'\\s]*$",
"prettyName": "Staging Initialization Password",
"description": "root user password to use while initializing Staging DB.",
"description": "root user password to use while initializing Staging DB. Double quote, single quote or space characters are not valid.",
"default": "Delphix@123"
},
"serverId": {
Expand Down Expand Up @@ -306,5 +310,18 @@
"description": "Time when the snapshot was taken."
}
}
},
"snapshotParametersDefinition": {
"type" : "object",
"additionalProperties" : false,
"required": ["resync"],
"properties" : {
"resync" : {
"type": "boolean",
"default": true,
"prettyName": "Resynchronize dSource",
"description": "Before taking a snapshot will refresh the staging database to update its data. Unselect this option if you wish to snapshot the staging database in its current state."
}
}
}
}
8 changes: 4 additions & 4 deletions src/plugin_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,16 @@ def stop_staging(staged_source, repository, source_config):
pluginops.stop_staging(staged_source, repository, source_config)

@plugin.linked.pre_snapshot()
def linked_pre_snapshot(staged_source, repository, source_config, snapshot_parameters):
def linked_pre_snapshot(staged_source, repository, source_config, optional_snapshot_parameters):
logger.debug("linked_pre_snapshot > Start ")
# Start Staging if not already running.
pluginops.linked_pre_snapshot(staged_source, repository, source_config, snapshot_parameters)
pluginops.linked_pre_snapshot(staged_source, repository, source_config, optional_snapshot_parameters)
logger.debug(" linked_pre_snapshot > End ")

@plugin.linked.post_snapshot()
def linked_post_snapshot(staged_source,repository,source_config,snapshot_parameters):
def linked_post_snapshot(staged_source,repository,source_config,optional_snapshot_parameters):
logger.debug("linked_post_snapshot - Start ")
snapshot = pluginops.linked_post_snapshot(staged_source,repository,source_config,snapshot_parameters)
snapshot = pluginops.linked_post_snapshot(staged_source,repository,source_config,optional_snapshot_parameters)
linked_status(staged_source, repository, source_config)
logger.debug("linked_post_snapshot - End ")
return snapshot
Expand Down