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
this is blocking most of our configuration work.. any help is appreciated..
here is my code
defcreate_file(api_client):
api_instance=isi_sdk.NamespaceApi(api_client)
file_path='ifs/data/test_file_2'# str | File path relative to /.x_isi_ifs_target_type='object'# str | Specifies the resource type. (default to object)# file_contents = 'blaaaaaa'.encode("utf-8").decode("utf-8") # str | The contents of the file object.file_contents='bla'x_isi_ifs_access_control='0600'# str | Specifies a pre-defined ACL value or POSIX mode with a string in octal string format. (optional) (default to 0600)content_encoding='utf-8'# str | Specifies the content encoding that was applied to the object content, so that decoding can be applied when retrieving the content. (optional)content_type='text/plain'# str | Specifies a standard MIME-type description of the content format. (optional) (default to binary/octet-stream)overwrite=True#try:
api_response=api_instance.create_file(file_path,x_isi_ifs_target_type, file_contents)
print(api_response)
print(dir(api_response))
exceptApiExceptionase:
print(e)
defmain():
# we use this string to match the set of values on the YAML filecluster_tag="vm1"endpoint=endpoints[cluster_tag]
# user = data["api_user"]user="api_test"api_client=connect(endpoint, user)
create_file(api_client)
if__name__=="__main__":
main()
this is blocking most of our configuration work.. any help is appreciated..
here is my code
i can create the file
but the file should look like this without
"
If i use the API directly
i am getting the expected output. Something is wrong with the SDK wrapper around the namespace API.
The text was updated successfully, but these errors were encountered: