Skip to content

Commit 453ad6b

Browse files
Update SDK:
1 parent 24bc944 commit 453ad6b

32 files changed

+196
-185
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# [1.9.2] - 2023-04-06
2+
Updated SDK for 6.8.1_u1 Cluster Version.
3+
4+
### Added
5+
- None
6+
7+
### Changed
8+
- Fixed incorrect vmware_protection_source class name.
9+
10+
### Fixed
11+
- None
12+
113
# [1.9.1] - 2023-04-04
214
Updated SDK for 6.8.1_u1 Cluster Version.
315

cohesity_management_sdk/controllers/base_controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class BaseController(object):
2727
http_call_back = None
2828

2929

30-
global_headers = {'user-agent': 'cohesity-python/1.9.1'}
30+
global_headers = {'user-agent': 'cohesity-python/1.9.2'}
3131

3232
def __init__(self, config=None, client=None, call_back=None):
3333
if client != None:

cohesity_management_sdk/models/backup_job_proto.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ class BackupJobProto(object):
336336
"end_time_usecs":'endTimeUsecs',
337337
"env_backup_params":'envBackupParams',
338338
"exclude_sources":'excludeSources',
339-
"exclude_sources_deprecated":'excludeSourcesDEPRECATED',
339+
"exclude_sources_deprecated":'excludeSources_DEPRECATED',
340340
"exclusion_ranges":'exclusionRanges',
341341
"full_backup_job_policy":'fullBackupJobPolicy',
342342
"full_backup_sla_time_mins":'fullBackupSlaTimeMins',
@@ -623,9 +623,9 @@ def from_dictionary(cls,
623623
for structure in dictionary.get('excludeSources'):
624624
exclude_sources.append(cohesity_management_sdk.models.backup_job_proto_exclude_source.BackupJobProto_ExcludeSource.from_dictionary(structure))
625625
exclude_sources_deprecated = None
626-
if dictionary.get('excludeSourcesDEPRECATED') != None:
626+
if dictionary.get('excludeSources_DEPRECATED') != None:
627627
exclude_sources_deprecated = list()
628-
for structure in dictionary.get('excludeSourcesDEPRECATED'):
628+
for structure in dictionary.get('excludeSources_DEPRECATED'):
629629
exclude_sources_deprecated.append(cohesity_management_sdk.models.entity_proto.EntityProto.from_dictionary(structure))
630630
exclusion_ranges = None
631631
if dictionary.get('exclusionRanges') != None:

cohesity_management_sdk/models/backup_source_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def from_dictionary(cls,
130130
sharepoint_params = cohesity_management_sdk.models.sharepoint_backup_source_params.SharepointBackupSourceParams.from_dictionary(dictionary.get('sharepointParams')) if dictionary.get('sharepointParams') else None
131131
skip_indexing = dictionary.get('skipIndexing')
132132
source_id = dictionary.get('sourceId')
133-
vmware_params = cohesity_management_sdk.models.vmware_backup_source_params.VMwareBackupSourceParams.from_dictionary(dictionary.get('vmwareParams')) if dictionary.get('vmwareParams') else None
133+
vmware_params = cohesity_management_sdk.models.vmware_backup_source_params.VmwareBackupSourceParams.from_dictionary(dictionary.get('vmwareParams')) if dictionary.get('vmwareParams') else None
134134

135135
# Return an object of this model
136136
return cls(

cohesity_management_sdk/models/cluster_config_proto_subnet.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class ClusterConfigProto_Subnet(object):
2626
view.
2727
nfs_root_squash (bool): Whether clients from this subnet can mount as
2828
root on NFS.
29-
s_3_access (int): Whether clients from this subnet can accept requests
29+
s3_access (int): Whether clients from this subnet can accept requests
3030
using S3 protocol.
3131
smb_access (int): Whether clients from this subnet can mount using SMB
3232
protocol.
@@ -45,7 +45,7 @@ class ClusterConfigProto_Subnet(object):
4545
"nfs_access":'nfsAccess',
4646
"nfs_all_squash":'nfsAllSquash',
4747
"nfs_root_squash":'nfsRootSquash',
48-
"s_3_access":'s3Access',
48+
"s3_access":'s3Access',
4949
"smb_access":'smbAccess',
5050
}
5151
def __init__(self,
@@ -59,7 +59,7 @@ def __init__(self,
5959
nfs_access=None,
6060
nfs_all_squash=None,
6161
nfs_root_squash=None,
62-
s_3_access=None,
62+
s3_access=None,
6363
smb_access=None,
6464
):
6565

@@ -76,7 +76,7 @@ def __init__(self,
7676
self.nfs_access = nfs_access
7777
self.nfs_all_squash = nfs_all_squash
7878
self.nfs_root_squash = nfs_root_squash
79-
self.s_3_access = s_3_access
79+
self.s3_access = s3_access
8080
self.smb_access = smb_access
8181

8282
@classmethod
@@ -107,7 +107,7 @@ def from_dictionary(cls,
107107
nfs_access = dictionary.get('nfsAccess')
108108
nfs_all_squash = dictionary.get('nfsAllSquash')
109109
nfs_root_squash = dictionary.get('nfsRootSquash')
110-
s_3_access = dictionary.get('s3Access')
110+
s3_access = dictionary.get('s3Access')
111111
smb_access = dictionary.get('smbAccess')
112112

113113
# Return an object of this model
@@ -122,6 +122,6 @@ def from_dictionary(cls,
122122
nfs_access,
123123
nfs_all_squash,
124124
nfs_root_squash,
125-
s_3_access,
125+
s3_access,
126126
smb_access
127127
)

cohesity_management_sdk/models/create_view_box_params.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ class CreateViewBoxParams(object):
8888
or data is removed, there may be a delay before the Cohesity
8989
Cluster allows more data to be written to the Storage Domain (View
9090
Box), as the Cluster is calculating the usage across Nodes.
91-
s_3_buckets_allowed (bool): Specifies whether creation of a S3 bucket
92-
is allowed in this Storage Domain (View Box). When a new S3 bucket
91+
s3_buckets_allowed (bool): Specifies whether creation of a S3 bucket is
92+
allowed in this Storage Domain (View Box). When a new S3 bucket
9393
creation request arrives, we'll look at all the View Boxes and the
9494
first Storage Domain (View Box) that allows creating S3 buckets in
9595
it will be the one where the bucket will be placed.
@@ -124,7 +124,7 @@ class CreateViewBoxParams(object):
124124
"name":'name',
125125
"nis_domain_name_vec":'nisDomainNameVec',
126126
"physical_quota":'physicalQuota',
127-
"s_3_buckets_allowed":'s3BucketsAllowed',
127+
"s3_buckets_allowed":'s3BucketsAllowed',
128128
"storage_policy":'storagePolicy',
129129
"tenant_id_vec":'tenantIdVec',
130130
"updated_brick_size":'updatedBrickSize',
@@ -146,7 +146,7 @@ def __init__(self,
146146
name=None,
147147
nis_domain_name_vec=None,
148148
physical_quota=None,
149-
s_3_buckets_allowed=None,
149+
s3_buckets_allowed=None,
150150
storage_policy=None,
151151
tenant_id_vec=None,
152152
updated_brick_size=None,
@@ -171,7 +171,7 @@ def __init__(self,
171171
self.name = name
172172
self.nis_domain_name_vec = nis_domain_name_vec
173173
self.physical_quota = physical_quota
174-
self.s_3_buckets_allowed = s_3_buckets_allowed
174+
self.s3_buckets_allowed = s3_buckets_allowed
175175
self.storage_policy = storage_policy
176176
self.tenant_id_vec = tenant_id_vec
177177
self.updated_brick_size = updated_brick_size
@@ -214,7 +214,7 @@ def from_dictionary(cls,
214214
name = dictionary.get('name')
215215
nis_domain_name_vec = dictionary.get("nisDomainNameVec")
216216
physical_quota = cohesity_management_sdk.models.quota_policy.QuotaPolicy.from_dictionary(dictionary.get('physicalQuota')) if dictionary.get('physicalQuota') else None
217-
s_3_buckets_allowed = dictionary.get('s3BucketsAllowed')
217+
s3_buckets_allowed = dictionary.get('s3BucketsAllowed')
218218
storage_policy = cohesity_management_sdk.models.storage_policy.StoragePolicy.from_dictionary(dictionary.get('storagePolicy')) if dictionary.get('storagePolicy') else None
219219
tenant_id_vec = dictionary.get("tenantIdVec")
220220
updated_brick_size = dictionary.get('updatedBrickSize')
@@ -237,7 +237,7 @@ def from_dictionary(cls,
237237
name,
238238
nis_domain_name_vec,
239239
physical_quota,
240-
s_3_buckets_allowed,
240+
s3_buckets_allowed,
241241
storage_policy,
242242
tenant_id_vec,
243243
updated_brick_size

cohesity_management_sdk/models/create_view_request.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ class CreateViewRequest(object):
113113
of a view does not match any of the above. In this case, the
114114
constant is used as 'catch-all'.
115115
qos (QoS): Specifies the Quality of Service (QoS) Policy for the View.
116-
s_3_folder_support_enabled (bool): Specifies whether to support s3
116+
s3_folder_support_enabled (bool): Specifies whether to support s3
117117
folder support feature on the view. This parameter can only be set
118118
during create and cannot be changed.
119-
s_3_key_mapping_config (S3KeyMappingConfigEnum): Specifies key mapping
119+
s3_key_mapping_config (S3KeyMappingConfigEnum): Specifies key mapping
120120
config of S3 storage. Configuration of S3 key mapping. Specifies
121121
the type of S3 key mapping config.
122122
security_mode (SecurityModeEnum): Specifies the security mode used for
@@ -182,8 +182,8 @@ class CreateViewRequest(object):
182182
"override_global_whitelist":'overrideGlobalWhitelist',
183183
"protocol_access":'protocolAccess',
184184
"qos":'qos',
185-
"s_3_folder_support_enabled":'s3FolderSupportEnabled',
186-
"s_3_key_mapping_config":'s3KeyMappingConfig',
185+
"s3_folder_support_enabled":'s3FolderSupportEnabled',
186+
"s3_key_mapping_config":'s3KeyMappingConfig',
187187
"security_mode":'securityMode',
188188
"share_permissions":'sharePermissions',
189189
"smb_permissions_info":'smbPermissionsInfo',
@@ -229,8 +229,8 @@ def __init__(self,
229229
override_global_whitelist=None,
230230
protocol_access=None,
231231
qos=None,
232-
s_3_folder_support_enabled=None,
233-
s_3_key_mapping_config=None,
232+
s3_folder_support_enabled=None,
233+
s3_key_mapping_config=None,
234234
security_mode=None,
235235
share_permissions=None,
236236
smb_permissions_info=None,
@@ -279,8 +279,8 @@ def __init__(self,
279279
self.override_global_whitelist = override_global_whitelist
280280
self.protocol_access = protocol_access
281281
self.qos = qos
282-
self.s_3_folder_support_enabled = s_3_folder_support_enabled
283-
self.s_3_key_mapping_config = s_3_key_mapping_config
282+
self.s3_folder_support_enabled = s3_folder_support_enabled
283+
self.s3_key_mapping_config = s3_key_mapping_config
284284
self.security_mode = security_mode
285285
self.share_permissions = share_permissions
286286
self.smb_permissions_info = smb_permissions_info
@@ -347,8 +347,8 @@ def from_dictionary(cls,
347347
override_global_whitelist = dictionary.get('overrideGlobalWhitelist')
348348
protocol_access = dictionary.get('protocolAccess')
349349
qos = cohesity_management_sdk.models.qo_s.QoS.from_dictionary(dictionary.get('qos')) if dictionary.get('qos') else None
350-
s_3_folder_support_enabled = dictionary.get('s3FolderSupportEnabled')
351-
s_3_key_mapping_config = dictionary.get('s3KeyMappingConfig')
350+
s3_folder_support_enabled = dictionary.get('s3FolderSupportEnabled')
351+
s3_key_mapping_config = dictionary.get('s3KeyMappingConfig')
352352
security_mode = dictionary.get('securityMode')
353353
share_permissions = None
354354
if dictionary.get('sharePermissions') != None:
@@ -403,8 +403,8 @@ def from_dictionary(cls,
403403
override_global_whitelist,
404404
protocol_access,
405405
qos,
406-
s_3_folder_support_enabled,
407-
s_3_key_mapping_config,
406+
s3_folder_support_enabled,
407+
s3_key_mapping_config,
408408
security_mode,
409409
share_permissions,
410410
smb_permissions_info,

cohesity_management_sdk/models/destroy_cloned_task_state_proto.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class DestroyClonedTaskStateProto(object):
113113
"user_info":'userInfo',
114114
"vcd_config":'vcdConfig',
115115
"view_box_id":'viewBoxId',
116-
"view_name_deprecated":'viewNameDEPRECATED',
116+
"view_name_deprecated":'viewName_DEPRECATED',
117117
}
118118
def __init__(self,
119119
action_executor_target_type=None,
@@ -220,7 +220,7 @@ def from_dictionary(cls,
220220
user_info = cohesity_management_sdk.models.user_information.UserInformation.from_dictionary(dictionary.get('userInfo')) if dictionary.get('userInfo') else None
221221
vcd_config = cohesity_management_sdk.models.restored_object_vcd_config_proto.RestoredObjectVCDConfigProto.from_dictionary(dictionary.get('vcdConfig')) if dictionary.get('vcdConfig') else None
222222
view_box_id = dictionary.get('viewBoxId')
223-
view_name_deprecated = dictionary.get('viewNameDEPRECATED')
223+
view_name_deprecated = dictionary.get('viewName_DEPRECATED')
224224

225225
# Return an object of this model
226226
return cls(

cohesity_management_sdk/models/env_backup_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def from_dictionary(cls,
190190
snapshot_manager_params = cohesity_management_sdk.models.snapshot_manager_params.SnapshotManagerParams.from_dictionary(dictionary.get('snapshotManagerParams')) if dictionary.get('snapshotManagerParams') else None
191191
sql_backup_job_params = cohesity_management_sdk.models.sql_backup_job_params.SqlBackupJobParams.from_dictionary(dictionary.get('sqlBackupJobParams')) if dictionary.get('sqlBackupJobParams') else None
192192
uda_backup_job_params = cohesity_management_sdk.models.uda_backup_job_params.UdaBackupJobParams.from_dictionary(dictionary.get('udaBackupJobParams')) if dictionary.get('udaBackupJobParams') else None
193-
vmware_backup_params = cohesity_management_sdk.models.vmware_backup_env_params.VMwareBackupEnvParams.from_dictionary(dictionary.get('vmwareBackupParams')) if dictionary.get('vmwareBackupParams') else None
193+
vmware_backup_params = cohesity_management_sdk.models.vmware_backup_env_params.VmwareBackupEnvParams.from_dictionary(dictionary.get('vmwareBackupParams')) if dictionary.get('vmwareBackupParams') else None
194194

195195
# Return an object of this model
196196
return cls(

cohesity_management_sdk/models/nas_backup_params.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import cohesity_management_sdk.models.filtering_policy_proto
55
import cohesity_management_sdk.models.nas_throttling_params
6-
import cohesity_management_sdk.models.s_3_view_backup_properties
6+
import cohesity_management_sdk.models.s3_view_backup_properties
77
import cohesity_management_sdk.models.view_id_mapping_proto_file_level_data_lock_config
88

99

@@ -55,8 +55,8 @@ class NasBackupParams(object):
5555
nfs_version_preference (int): If the target entity supports both NFSv3
5656
and NFSv4.1, which NAS protocol type the user prefers to backup.
5757
This does not apply to generic NAS and will be ignored.
58-
s_3_viewbackupproperties (S3ViewBackupProperties): This message
59-
captures all the details of S3 view.
58+
s3_viewbackupproperties (S3ViewBackupProperties): This message captures
59+
all the details of S3 view.
6060
shared_view_name (string): Specifies the view name if the view is to be
6161
shared across multiple backup jobs. Required for backing up
6262
multiple directories of the same share through different protection
@@ -85,7 +85,7 @@ class NasBackupParams(object):
8585
"mixed_mode_preference":'mixedModePreference',
8686
"modify_source_permissions":'modifySourcePermissions',
8787
"nfs_version_preference":'nfsVersionPreference',
88-
"s_3_viewbackupproperties":'s3Viewbackupproperties',
88+
"s3_viewbackupproperties":'s3Viewbackupproperties',
8989
"shared_view_name":'sharedViewName',
9090
"snapshot_change_enabled":'snapshotChangeEnabled',
9191
"throttling_params":'throttlingParams',
@@ -104,7 +104,7 @@ def __init__(self,
104104
mixed_mode_preference=None,
105105
modify_source_permissions=None,
106106
nfs_version_preference=None,
107-
s_3_viewbackupproperties=None,
107+
s3_viewbackupproperties=None,
108108
shared_view_name=None,
109109
snapshot_change_enabled=None,
110110
throttling_params=None,
@@ -126,7 +126,7 @@ def __init__(self,
126126
self.mixed_mode_preference = mixed_mode_preference
127127
self.modify_source_permissions = modify_source_permissions
128128
self.nfs_version_preference = nfs_version_preference
129-
self.s_3_viewbackupproperties = s_3_viewbackupproperties
129+
self.s3_viewbackupproperties = s3_viewbackupproperties
130130
self.shared_view_name = shared_view_name
131131
self.snapshot_change_enabled = snapshot_change_enabled
132132
self.throttling_params = throttling_params
@@ -162,7 +162,7 @@ def from_dictionary(cls,
162162
mixed_mode_preference = dictionary.get('mixedModePreference')
163163
modify_source_permissions = dictionary.get('modifySourcePermissions')
164164
nfs_version_preference = dictionary.get('nfsVersionPreference')
165-
s_3_viewbackupproperties = cohesity_management_sdk.models.s_3_view_backup_properties.S3ViewBackupProperties.from_dictionary(dictionary.get('s3Viewbackupproperties')) if dictionary.get('s3Viewbackupproperties') else None
165+
s3_viewbackupproperties = cohesity_management_sdk.models.s3_view_backup_properties.S3ViewBackupProperties.from_dictionary(dictionary.get('s3Viewbackupproperties')) if dictionary.get('s3Viewbackupproperties') else None
166166
shared_view_name = dictionary.get('sharedViewName')
167167
snapshot_change_enabled = dictionary.get('snapshotChangeEnabled')
168168
throttling_params = cohesity_management_sdk.models.nas_throttling_params.NasThrottlingParams.from_dictionary(dictionary.get('throttlingParams')) if dictionary.get('throttlingParams') else None
@@ -182,7 +182,7 @@ def from_dictionary(cls,
182182
mixed_mode_preference,
183183
modify_source_permissions,
184184
nfs_version_preference,
185-
s_3_viewbackupproperties,
185+
s3_viewbackupproperties,
186186
shared_view_name,
187187
snapshot_change_enabled,
188188
throttling_params,

0 commit comments

Comments
 (0)