You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mongodbatlas/cloud_provider_snapshot_backup_policies.go
+38-11Lines changed: 38 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -42,17 +42,20 @@ var _ CloudProviderSnapshotBackupPoliciesService = &CloudProviderSnapshotBackupP
42
42
43
43
// CloudProviderSnapshotBackupPolicy represents a cloud provider snapshot schedule.
44
44
typeCloudProviderSnapshotBackupPolicystruct {
45
-
ClusterIDstring`json:"clusterId,omitempty"`// Unique identifier of the Atlas cluster.
46
-
ClusterNamestring`json:"clusterName,omitempty"`// Name of the Atlas cluster.
47
-
ReferenceHourOfDay*int64`json:"referenceHourOfDay,omitempty"`// UTC Hour of day between 0 and 23, inclusive, representing which hour of the day that Atlas takes snapshots for backup policy items.
48
-
ReferenceMinuteOfHour*int64`json:"referenceMinuteOfHour,omitempty"`// UTC Minutes after referenceHourOfDay that Atlas takes snapshots for backup policy items. Must be between 0 and 59, inclusive. Number of days back in time you can restore to with point-in-time accuracy.
49
-
RestoreWindowDays*int64`json:"restoreWindowDays,omitempty"`// Number of days back in time you can restore to with point-in-time accuracy. Must be a positive, non-zero integer.
50
-
UpdateSnapshots*bool`json:"updateSnapshots,omitempty"`// Specify true to apply the retention changes in the updated backup policy to snapshots that Atlas took previously.
51
-
NextSnapshotstring`json:"nextSnapshot,omitempty"`// UTC ISO 8601 formatted point in time when Atlas will take the next snapshot.
52
-
Policies []Policy`json:"policies,omitempty"`// A list of policy definitions for the cluster.
53
-
AutoExportEnabled*bool`json:"autoExportEnabled,omitempty"`// Specify true to enable automatic export of cloud backup snapshots to the AWS bucket. You must also define the export policy using export. Specify false to disable automatic export.
54
-
Export*Export`json:"export,omitempty"`// Export struct that represents a policy for automatically exporting cloud backup snapshots to AWS bucket.
55
-
UseOrgAndGroupNamesInExportPrefix*bool`json:"useOrgAndGroupNamesInExportPrefix,omitempty"`// Specifies whether to use organization and project names instead of organization and project UUIDs in the path to the metadata files that Atlas uploads to your S3 bucket after it finishes exporting the snapshots
45
+
ClusterIDstring`json:"clusterId,omitempty"`// Unique identifier of the Atlas cluster.
46
+
ClusterNamestring`json:"clusterName,omitempty"`// Name of the Atlas cluster.
47
+
ReferenceHourOfDay*int64`json:"referenceHourOfDay,omitempty"`// UTC Hour of day between 0 and 23, inclusive, representing which hour of the day that Atlas takes snapshots for backup policy items.
48
+
ReferenceMinuteOfHour*int64`json:"referenceMinuteOfHour,omitempty"`// UTC Minutes after referenceHourOfDay that Atlas takes snapshots for backup policy items. Must be between 0 and 59, inclusive. Number of days back in time you can restore to with point-in-time accuracy.
49
+
RestoreWindowDays*int64`json:"restoreWindowDays,omitempty"`// Number of days back in time you can restore to with point-in-time accuracy. Must be a positive, non-zero integer.
50
+
UpdateSnapshots*bool`json:"updateSnapshots,omitempty"`// Specify true to apply the retention changes in the updated backup policy to snapshots that Atlas took previously.
51
+
NextSnapshotstring`json:"nextSnapshot,omitempty"`// UTC ISO 8601 formatted point in time when Atlas will take the next snapshot.
52
+
Policies []Policy`json:"policies,omitempty"`// A list of policy definitions for the cluster.
53
+
AutoExportEnabled*bool`json:"autoExportEnabled,omitempty"`// Specify true to enable automatic export of cloud backup snapshots to the AWS bucket. You must also define the export policy using export. Specify false to disable automatic export.
54
+
Export*Export`json:"export,omitempty"`// Export struct that represents a policy for automatically exporting cloud backup snapshots to AWS bucket.
55
+
UseOrgAndGroupNamesInExportPrefix*bool`json:"useOrgAndGroupNamesInExportPrefix,omitempty"`// Specifies whether to use organization and project names instead of organization and project UUIDs in the path to the metadata files that Atlas uploads to your S3 bucket after it finishes exporting the snapshots
56
+
Links []*Link`json:"links,omitempty"`// One or more links to sub-resources and/or related resources.
57
+
CopySettings []CopySetting`json:"copySettings,omitempty"`// List that contains a document for each copy setting item in the desired backup policy.
58
+
DeleteCopiedBackups []DeleteCopiedBackup`json:"deleteCopiedBackups,omitempty"`// List that contains a document for each deleted copy setting whose backup copies you want to delete.
56
59
}
57
60
58
61
// Policy represents for the snapshot and an array of backup policy items.
@@ -76,6 +79,22 @@ type Export struct {
76
79
FrequencyTypestring`json:"frequencyType,omitempty"`// Frequency associated with the export policy.
77
80
}
78
81
82
+
// CopySetting is autogenerated from the json schema.
83
+
typeCopySettingstruct {
84
+
CloudProvider*string`json:"cloudProvider,omitempty"`// Identifies the cloud provider that stores the snapshot copy.
85
+
RegionName*string`json:"regionName,omitempty"`// Target region to copy snapshots belonging to replicationSpecId to.
86
+
ReplicationSpecID*string`json:"replicationSpecId,omitempty"`// Unique identifier that identifies the replication object for a zone in a cluster.
87
+
ShouldCopyOplogs*bool`json:"shouldCopyOplogs,omitempty"`// Flag that indicates whether to copy the oplogs to the target region.
88
+
Frequencies []string`json:"frequencies,omitempty"`// List that describes which types of snapshots to copy.
89
+
}
90
+
91
+
// DeleteCopiedBackup is autogenerated from the json schema.
92
+
typeDeleteCopiedBackupstruct {
93
+
CloudProvider*string`json:"cloudProvider,omitempty"`// Identifies the cloud provider that stores the snapshot copy.
94
+
RegionName*string`json:"regionName,omitempty"`// Target region to copy snapshots belonging to replicationSpecId to.
95
+
ReplicationSpecID*string`json:"replicationSpecId,omitempty"`// Unique identifier that identifies the replication object for a zone in a cluster.
96
+
}
97
+
79
98
// Get gets the current snapshot schedule and retention settings for the cluster with {CLUSTER-NAME}.
80
99
// See more: https://docs.atlas.mongodb.com/reference/api/cloud-provider-snapshot-schedule-get-all/
0 commit comments