cloudmesh-storage.cloudmesh.storage.provider.parallelgdrive.Provider_old
¶
Module Contents¶
Classes¶
-
class
cloudmesh-storage.cloudmesh.storage.provider.parallelgdrive.Provider_old.
Provider
(service=None)¶ Bases:
cloudmesh.abstract.StorageABC.StorageABC
-
kind
= parallelgdrive¶
-
sample
= TODO: missing¶
-
output
¶
-
generate_flags_json
(self)¶
-
generate_key_json
(self)¶ TODO: missing, also define parameters
- Returns
-
get_credentials
(self)¶ We have stored the credentials in “.credentials” folder and there is a file named ‘google-drive-credentials.json’ that has all the credentials required for our authentication If there is nothing stored in it this program creates credentials json file for future authentication Here the authentication type is OAuth2
- Returns
- Return type
-
put
(self, source=None, destination=None, recursive=False)¶ TODO: missing, also define parameters
- Parameters
source –
destination –
recursive –
- Returns
-
get
(self, source=None, destination=None, recursive=False)¶ TODO: missing, also define parameters
- Parameters
source –
destination –
recursive –
- Returns
-
delete
(self, filename=None, recursive=False)¶ TODO: missing, also define parameters
- Parameters
filename –
recursive –
- Returns
-
create_dir
(self, service=None, directory=None)¶ TODO: missing, also define parameters
- Parameters
service –
directory –
- Returns
-
list
(self, source=None, recursive=False)¶ TODO: missing, also define parameters
- Parameters
source –
recursive –
- Returns
-
search
(self, directory=None, filename=None, recursive=False)¶ TODO: missing, also define parameters
- Parameters
directory –
filename –
recursive –
- Returns
-
upload_file
(self, source, filename, parent_it)¶ TODO: missing
- Parameters
source –
filename –
parent_it –
- Returns
-
download_file
(self, source, file_id, file_name, mime_type)¶ TODO: missing, also define parameters
- Parameters
source –
file_id –
file_name –
mime_type –
- Returns
-
cloud_path
(self, srv_path)¶ Internal function to determine if the cloud path specified is file or folder or mix
TODO: missing, also define parameters
- Parameters
srv_path –
- Returns
-
update_dict
(self, elements)¶ TODO: missing, also define parameters
- Parameters
elements –
- Returns
-