Skip to content

Commit

Permalink
Merge pull request #78 from cohesity/1.10.1
Browse files Browse the repository at this point in the history
Updated Periodicity Enum
  • Loading branch information
naveena-maplelabs committed Aug 31, 2023
2 parents d003d2a + 145f88f commit 4d862de
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 35 deletions.
2 changes: 1 addition & 1 deletion cohesity_management_sdk/controllers/base_controller.py
Expand Up @@ -27,7 +27,7 @@ class BaseController(object):
http_call_back = None


global_headers = {'user-agent': 'cohesity-python/1.9.2'}
global_headers = {'user-agent': 'cohesity-python/1.10.1'}

def __init__(self, config=None, client=None, call_back=None):
if client != None:
Expand Down
41 changes: 17 additions & 24 deletions cohesity_management_sdk/models/periodicity_enum.py
Expand Up @@ -4,37 +4,30 @@
class PeriodicityEnum(object):

"""Implementation of the 'Periodicity' enum.
Specifies the frequency that Snapshots should be copied to the specified
target. Used in combination with multiplier. 'kEvery' means that the
Snapshot copy occurs after the number of Job Runs equals the number
specified in the multiplier. 'kHour' means that the Snapshot copy occurs
hourly at the frequency set in the multiplier, for example if multiplier is
2, the copy occurs every 2 hours. 'kDay' means that the Snapshot copy
occurs daily at the frequency set in the multiplier. 'kWeek' means that the
Snapshot copy occurs weekly at the frequency set in the multiplier.
'kMonth' means that the Snapshot copy occurs monthly at the frequency set
in the multiplier. 'kYear' means that the Snapshot copy occurs yearly at
the frequency set in the multiplier.
Specifies how often to start new Job Runs of a Protection Job.
'kDaily' means new Job Runs start daily.
'kMonthly' means new Job Runs start monthly.
'kContinuous' means new Job Runs repetitively start at the
beginning of the specified time interval (in hours or minutes).
'kContinuousRPO' means this is an RPO schedule.
'kCDP' means this is a continuous data protection policy.
Attributes:
KEVERY: TODO: type description here.
KHOUR: TODO: type description here.
KDAY: TODO: type description here.
KWEEK: TODO: type description here.
KMONTH: TODO: type description here.
KYEAR: TODO: type description here.
KCONTINUOUS: TODO: type description here.
KDAILY: TODO: type description here.
KMONTHLY: TODO: type description here.
KCONTINUOUSRPO: TODO: type description here.
KCDP: TODO: type description here.
"""

KEVERY = 'kEvery'
KCONTINUOUS = 'kContinuous'

KHOUR = 'kHour'
KDAILY = 'kDaily'

KDAY = 'kDay'
KMONTHLY = 'kMonthly'

KWEEK = 'kWeek'
KCONTINUOUSRPO = 'kContinuousRPO'

KMONTH = 'kMonth'

KYEAR = 'kYear'
KCDP = 'kCDP'
Expand Up @@ -54,9 +54,10 @@ class SnapshotArchivalCopyPolicy(object):
determine the copy schedule. For example if set to 2 and the
periodicity is hourly, then Snapshots from the first eligible Job
Run for every 2 hour period is copied.
periodicity (PeriodicityEnum): Specifies the frequency that Snapshots
should be copied to the specified target. Used in combination with
multiplier. 'kEvery' means that the Snapshot copy occurs after the
periodicity (PeriodicitySnapshotArchivalCopyPolicyEnum): Specifies the
frequency that Snapshots should be copied to the specified target.
Used in combination with multiplier.
'kEvery' means that the Snapshot copy occurs after the
number of Job Runs equals the number specified in the multiplier.
'kHour' means that the Snapshot copy occurs hourly at the frequency
set in the multiplier, for example if multiplier is 2, the copy
Expand Down
7 changes: 4 additions & 3 deletions cohesity_management_sdk/models/snapshot_cloud_copy_policy.py
Expand Up @@ -54,9 +54,10 @@ class SnapshotCloudCopyPolicy(object):
determine the copy schedule. For example if set to 2 and the
periodicity is hourly, then Snapshots from the first eligible Job
Run for every 2 hour period is copied.
periodicity (PeriodicityEnum): Specifies the frequency that Snapshots
should be copied to the specified target. Used in combination with
multiplier. 'kEvery' means that the Snapshot copy occurs after the
periodicity (PeriodicitySnapshotCloudCopyPolicyEnum): Specifies the
frequency that Snapshots should be copied to the specified target.
Used in combination with multiplier.
'kEvery' means that the Snapshot copy occurs after the
number of Job Runs equals the number specified in the multiplier.
'kHour' means that the Snapshot copy occurs hourly at the frequency
set in the multiplier, for example if multiplier is 2, the copy
Expand Down
Expand Up @@ -57,9 +57,10 @@ class SnapshotReplicationCopyPolicy(object):
determine the copy schedule. For example if set to 2 and the
periodicity is hourly, then Snapshots from the first eligible Job
Run for every 2 hour period is copied.
periodicity (PeriodicityEnum): Specifies the frequency that Snapshots
should be copied to the specified target. Used in combination with
multiplier. 'kEvery' means that the Snapshot copy occurs after the
periodicity (PeriodicitySnapshotReplicationCopyPolicyEnum): Specifies
the frequency that Snapshots should be copied to the specified target.
Used in combination with multiplier.
'kEvery' means that the Snapshot copy occurs after the
number of Job Runs equals the number specified in the multiplier.
'kHour' means that the Snapshot copy occurs hourly at the frequency
set in the multiplier, for example if multiplier is 2, the copy
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -14,7 +14,7 @@

setup(
name='cohesity_management_sdk',
version='1.10.0',
version='1.10.1',
description='This SDK provides operations for interfacing with the Cohesity Cluster.',
long_description=long_description,
long_description_content_type=long_description_content_type,
Expand Down

0 comments on commit 4d862de

Please sign in to comment.