Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ObjectStorageService #94

Merged
merged 1 commit into from
Jun 24, 2022
Merged

Add ObjectStorageService #94

merged 1 commit into from
Jun 24, 2022

Conversation

fuku2014
Copy link
Member

@fuku2014 fuku2014 commented Jun 10, 2022

Summary

Add ObjectStorageService

Test

  • Enjoi ObjectStorage Service API!
from nifcloud import session

client = session.get_session().create_client(
    "storage",
    region_name="jp-east-1",
    nifcloud_access_key_id="<YOUR ACCSESS KEY>",
    nifcloud_secret_access_key="<YOUR SECRET KEY>"
)

print(client.get_service())

@fuku2014 fuku2014 requested a review from tily June 10, 2022 08:47
@tily
Copy link
Member

tily commented Jun 24, 2022

@fuku2014

Your enjoiable test script worked just like magic for me!!!

$ docker-compose run --rm app python nifcloud-sdk-python-pull-94.py 
Creating nifcloud-sdk-python_app_run ... done
Loading .env environment variables…
{'ResponseMetadata': {'RequestId': '1656032466711019', 'HostId': '12084406', 'HTTPStatusCode': 200, 'HTTPHeaders': {'date': 'Fri, 24 Jun 2022 01:01:06 GMT', 'server': 'Apache', 'x-amz-request-id': '1656032466711019', 'x-amz-id-2': '12084406', 'content-length': '562', 'x-ntap-sg-trace-id': '17b32ce1cc027758', 'content-type': 'application/xml', 'connection': 'close'}, 'RetryAttempts': 0}, 'Buckets': [{'CreationDate': datetime.datetime(2022, 6, 24, 0, 51, 42, 566000, tzinfo=tzlocal()), 'Name': 'tilytest001'}, {'CreationDate': datetime.datetime(2022, 6, 24, 0, 51, 48, 200000, tzinfo=tzlocal()), 'Name': 'tilytest002'}, {'CreationDate': datetime.datetime(2022, 6, 24, 0, 51, 54, 340000, tzinfo=tzlocal()), 'Name': 'tilytest003'}], 'Owner': {'DisplayName': 'fYaNEXl1/1e395f458bd34584882bf885fd1e60b5/abc-def12345', 'ID': '84033269599971081864'}}

Copy link
Member

@tily tily left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@tily tily merged commit 645c08c into main Jun 24, 2022
@tily tily deleted the storage branch June 24, 2022 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants