-
Notifications
You must be signed in to change notification settings - Fork 141
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 API to get list of COS objects #1221
Add API to get list of COS objects #1221
Conversation
ok
Thanks Jay for all the great work. |
class CloudObjectStoreObjectsController < BaseProviderController | ||
def create_resource(type, _ems_id = nil, data = {}) | ||
create_ems_resource(type, data, :supports => true) do |ems, klass| | ||
resource_search(data["cloud_tenant_id"], :cloud_tenants) if data["cloud_tenant_id"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is cloud_tenant_id required?
If so, lets make that change accordingly.
If not, then this code is good as is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Original scope of this PR is just read-only... so I just removed the create_resource
method altogether.
d0d35f6
to
63cee2b
Compare
I added some changes to |
63cee2b
to
9af7d45
Compare
Took me a while to realize it, but the feature was already there... I just typo'd the identifier 😆 diff --git a/config/api.yml b/config/api.yml
index f97de0fe..da5563ef 100644
--- a/config/api.yml
+++ b/config/api.yml
@@ -610,7 +610,7 @@
:identifier: cloud_object_store_container_show
:cloud_object_store_objects:
:description: Cloud Object Store Objects
- :identifier: cloud_object_store_objects
+ :identifier: cloud_object_store_object
:options:
- :collection
:verbs: *gp |
Existing specs are now passing locally... just need to add new specs and then this will be out of WIP. |
Add a new API to: - Get cloud object store (COS) object - Get a list of cloud object store (COS) objects
9af7d45
to
1b6690c
Compare
@kbrock I think this is ready to go now. I wasn't sure if I should go ahead and add the |
Checked commit jaywcarman@1b6690c with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint |
Related to:
TODO: Add specs