/
sync_report_policy.go
38 lines (28 loc) · 2.09 KB
/
sync_report_policy.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* Isilon SDK
*
* Isilon SDK - Language bindings for the OneFS API
*
* API version: 5
* Contact: sdk@isilon.com
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package isi_sdk_8_1_0
type SyncReportPolicy struct {
// If 'copy', source files will be copied to the target cluster. If 'sync', the target directory will be made an image of the source directory: Files and directories that have been deleted on the source, have been moved within the target directory, or no longer match the selection criteria will be deleted from the target directory.
Action string `json:"action,omitempty"`
// A file matching pattern, organized as an OR'ed set of AND'ed file criteria, for example ((a AND b) OR (x AND y)) used to define a set of files with specific properties. Policies of type 'sync' cannot use 'path' or time criteria in their matching patterns, but policies of type 'copy' can use all listed criteria.
FileMatchingPattern *SyncJobPolicyFileMatchingPattern `json:"file_matching_pattern,omitempty"`
// User-assigned name of this sync policy.
Name string `json:"name,omitempty"`
// Directories that will be excluded from the sync. Modifying this field will result in a full synchronization of all data.
SourceExcludeDirectories []string `json:"source_exclude_directories,omitempty"`
// Directories that will be included in the sync. Modifying this field will result in a full synchronization of all data.
SourceIncludeDirectories []string `json:"source_include_directories,omitempty"`
// The root directory on the source cluster the files will be synced from. Modifying this field will result in a full synchronization of all data.
SourceRootPath string `json:"source_root_path,omitempty"`
// Hostname or IP address of sync target cluster. Modifying the target cluster host can result in the policy being unrunnable if the new target does not match the current target association.
TargetHost string `json:"target_host,omitempty"`
// Absolute filesystem path on the target cluster for the sync destination.
TargetPath string `json:"target_path,omitempty"`
}