Skip to content

Commit

Permalink
Merge pull request #161 from Esri/ccscf
Browse files Browse the repository at this point in the history
create cloud connection file
  • Loading branch information
abhiataero authored Nov 14, 2024
2 parents 3f8f807 + eb325fe commit 06f31c5
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scripts/master.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1057,6 +1057,21 @@
<compute_stats>COMPUTE_STATS;NO_COMPUTE_STATS</compute_stats>
<out_las_dataset>#</out_las_dataset>
</ColorizeLAS>
<!-- Create Cloud storage Connection File -->
<!-- https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/create-cloud-storage-connection-file.htm -->
<CreateCloudStorageConnectionFile>
<out_folder_path>#</out_folder_path>
<out_name>#</out_name>
<service_provider>AZURE;AMAZON;GOOGLE;ALIBABA;WEBHDFS;MINIO;AZUREDATALAKE</service_provider>
<bucket_name></bucket_name>
<access_key_id></access_key_id>
<secret_access_key></secret_access_key>
<region></region>
<end_point></end_point>
<config_options>"configkeyname1 configkeyvalue1;configkeyname1 configkeyvalue1"</config_options>
<folder></folder>
<authentication></authentication>
</CreateCloudStorageConnectionFile>
</Processes>
</MosaicDataset>
</Workspace>
Expand Down
15 changes: 15 additions & 0 deletions scripts/solutionsLib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1722,6 +1722,17 @@ def executeCommand(self, com, index=0):
index,
info=invokeDynamicFnInfo # info = to pass extra args to the fnc '__invokeDynamicFn'
)
elif (com == 'CCSCF'):
self.m_log.Message(
"\t{}".format(
self.commands[com]['desc']),
self.m_log.const_general_text)
return self.__invokeDynamicFn(
[],
'createcloudstorageconnectionfile',
'arcpy.CreateCloudStorageConnectionFile_management',
index
)
elif (com == 'DEL'):
self.m_log.Message(
"\t{}:{}".format(
Expand Down Expand Up @@ -2469,6 +2480,10 @@ def executeCommand(self, com, index=0):
},
'EL':
{'desc': 'Extract LAS',
'fnc': executeCommand
},
'CCSCF':
{'desc': 'Create Cloud Storage Connection File',
'fnc': executeCommand
}
}
Expand Down

0 comments on commit 06f31c5

Please sign in to comment.