Skip to content

Commit ae5431a

Browse files
Christopher BeckChristopher Beck
authored andcommitted
more cleanup
1 parent 35f8875 commit ae5431a

4 files changed

Lines changed: 11 additions & 101 deletions

File tree

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
Oracle Cloud Infrastructure REST APIs implemented in node.js.
44

5-
**NOTE: This API is not fully implemented yet, but more are being added and the plan is to fully implement the entire REST API.**
6-
7-
Most commands take the form of:
5+
Most commands take the form of:
86

97
## oci.[serviceName].[resourceType].[action]
108

@@ -38,7 +36,7 @@ Inputs take the following form...
3836
autonomousDatabaseId : "asd.jsj.0239409324",
3937
body : { "freeformTags" : {"tag 1": 123456,
4038
"tag 2": "yyy",
41-
"tag 3": "aaa" },
39+
"another tag": "aaa" },
4240
};
4341
```
4442

ocirest_old.js

Lines changed: 0 additions & 86 deletions
This file was deleted.

services/objectStore/obj.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ function put( auth, parameters, callback ){
162162
'/o/' + encodeURIComponent(parameters.objectName),
163163
host : endpoint.service.objectStore[auth.region],
164164
headers : headers,
165-
uploadFile: true,
166165
body : parameters.body,
167166
method : 'PUT' },
168167
callback );
@@ -211,7 +210,6 @@ function uploadPart( auth, parameters, callback ) {
211210
host : endpoint.service.objectStore[auth.region],
212211
headers : headers,
213212
method : 'PUT',
214-
uploadFile: true,
215213
body : parameters.body },
216214
callback );
217215
}

test.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,6 @@ parameters = {
5454
}
5555
oci.database.autonomousDataWarehouse.update( auth, parameters, function(data){console.log(data);} );
5656

57-
//
58-
// Rename file in objectstore bucket
59-
//
60-
61-
// add body element to parameters
62-
parameters.body = { sourceName : 'abc.jpg', newName : 'xyz.jpg' };
63-
oci.objectStore.obj.rename( auth, parameters, callback );
64-
65-
6657
//
6758
// list all resource Types
6859
//
@@ -105,3 +96,12 @@ oci.objectStore.obj.list( auth, parameters, function(data){
10596
for(var i=0; i<data.objects.length; i++ )
10697
console.log( data.objects[i].name );
10798
} );
99+
100+
101+
//
102+
// Rename file in objectstore bucket
103+
//
104+
105+
// add body element to parameters
106+
parameters.body = { sourceName : '94927a.jpg', newName : 'xyz.jpg' };
107+
oci.objectStore.obj.rename( auth, parameters, callback );

0 commit comments

Comments
 (0)