Skip to content

Commit c7fc82d

Browse files
committed
Move the samples/object_store directory to samples/objectstore so integration tests run.
Tests were expecting the directory to be samples/objectstore - I *think* because they take the service name, ("ObjectStore"), and lower-case it.
1 parent 67012e3 commit c7fc82d

26 files changed

+21
-21
lines changed

doc/services/object-store/v1/account.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ Show account details
66

77
To work with an Object Store account, you must first retrieve an account object like so:
88

9-
.. sample:: object_store/v1/account/get.php
9+
.. sample:: objectstore/v1/account/get.php
1010
.. refdoc:: OpenStack/ObjectStore/v1/Service.html#method_getAccount
1111

1212
Get account metadata
1313
--------------------
1414

15-
.. sample:: object_store/v1/account/get_metadata.php
15+
.. sample:: objectstore/v1/account/get_metadata.php
1616
.. refdoc:: OpenStack/ObjectStore/v1/Models/Account.html#method_getMetadata
1717

1818
Replace all metadata with new values
@@ -43,7 +43,7 @@ the metadata of the account will now be:
4343

4444
To merge metadata, you must run:
4545

46-
.. sample:: object_store/v1/account/reset_metadata.php
46+
.. sample:: objectstore/v1/account/reset_metadata.php
4747
.. refdoc:: OpenStack/ObjectStore/v1/Models/Account.html#method_resetMetadata
4848

4949
Merge new metadata values with existing
@@ -75,5 +75,5 @@ the metadata of the account will now be:
7575

7676
To reset metadata, you must run:
7777

78-
.. sample:: object_store/v1/account/merge_metadata.php
78+
.. sample:: objectstore/v1/account/merge_metadata.php
7979
.. refdoc:: OpenStack/ObjectStore/v1/Models/Account.html#method_mergeMetadata

doc/services/object-store/v1/containers.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Containers
44
Show details for a container
55
----------------------------
66

7-
.. sample:: object_store/v1/containers/get.php
7+
.. sample:: objectstore/v1/containers/get.php
88
.. refdoc:: OpenStack/ObjectStore/v1/Service.html#method_getContainer
99

1010
At this point, the object returned is *empty* because we did not execute a HTTP request to receive the state of the
@@ -25,7 +25,7 @@ and all of the local properties will match those of the remote resource.
2525
List containers
2626
---------------
2727

28-
.. sample:: object_store/v1/containers/list.php
28+
.. sample:: objectstore/v1/containers/list.php
2929
.. refdoc:: OpenStack/ObjectStore/v1/Service.html#method_listContainers
3030

3131
When listing containers, you must be aware that not *all* information about a container is returned in a collection.
@@ -46,7 +46,7 @@ container.
4646
Delete container
4747
----------------
4848

49-
.. sample:: object_store/v1/containers/delete.php
49+
.. sample:: objectstore/v1/containers/delete.php
5050
.. refdoc:: OpenStack/ObjectStore/v1/Models/Container.html#method_delete
5151

5252
The API will only accept DELETE requests on containers when they are empty. If you have a container with any objects
@@ -55,7 +55,7 @@ inside, the operation will fail.
5555
Get metadata
5656
------------
5757

58-
.. sample:: object_store/v1/containers/get_metadata.php
58+
.. sample:: objectstore/v1/containers/get_metadata.php
5959
.. refdoc:: OpenStack/ObjectStore/v1/Models/Container.html#method_getMetadata
6060

6161
The returned value will be a standard associative array, or hash, containing arbitrary key/value pairs. These will
@@ -65,7 +65,7 @@ correspond to the values set either when the container was created, or when a pr
6565
Replace all metadata with new values
6666
------------------------------------
6767

68-
.. sample:: object_store/v1/containers/reset_metadata.php
68+
.. sample:: objectstore/v1/containers/reset_metadata.php
6969
.. refdoc:: OpenStack/ObjectStore/v1/Models/Container.html#method_resetMetadata
7070

7171
In order to replace all existing metadata with a set of new values, you can use this operation. Any existing metadata
@@ -95,7 +95,7 @@ the metadata of the account will now be:
9595
Merge new metadata values with existing
9696
---------------------------------------
9797

98-
.. sample:: object_store/v1/containers/merge_metadata.php
98+
.. sample:: objectstore/v1/containers/merge_metadata.php
9999
.. refdoc:: OpenStack/ObjectStore/v1/Models/Container.html#method_mergeMetadata
100100

101101
In order to merge a set of new metadata values with the existing metadata set, you can use this operation. Any existing

doc/services/object-store/v1/objects.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Objects
44
Show details for an object
55
--------------------------
66

7-
.. sample:: object_store/v1/objects/get.php
7+
.. sample:: objectstore/v1/objects/get.php
88
.. refdoc:: OpenStack/ObjectStore/v1/Models/Container.html#method_getObject
99

1010
At this point, the object returned is *empty* because we did not execute a HTTP request to receive the state of the
@@ -26,7 +26,7 @@ of the object's metadata, will not download the object's content. To do this, se
2626
Download an object
2727
------------------
2828

29-
.. sample:: object_store/v1/objects/download.php
29+
.. sample:: objectstore/v1/objects/download.php
3030
.. refdoc:: OpenStack/ObjectStore/v1/Models/StorageObject.html#method_download
3131

3232
As you will notice, a Stream_ object is returned by this call. For more information about dealing with streams, please
@@ -38,7 +38,7 @@ consult `Guzzle's docs`_.
3838
List objects
3939
------------
4040

41-
.. sample:: object_store/v1/objects/list.php
41+
.. sample:: objectstore/v1/objects/list.php
4242
.. refdoc:: OpenStack/ObjectStore/v1/Models/Container.html#method_listObjects
4343

4444
When listing objects, you must be aware that not *all* information about a container is returned in a collection.
@@ -61,13 +61,13 @@ Create an object
6161

6262
When creating an object, you can upload its content according to a string representation:
6363

64-
.. sample:: object_store/v1/objects/create.php
64+
.. sample:: objectstore/v1/objects/create.php
6565
.. refdoc:: OpenStack/ObjectStore/v1/Models/Container.html#method_createObject
6666

6767
If that is not optimal or convenient, you can use a stream instead. Any instance of ``\Psr\Http\Message\StreamInterface``
6868
is acceptable. For example, to use a normal Guzzle stream:
6969

70-
.. sample:: object_store/v1/objects/create_from_stream.php
70+
.. sample:: objectstore/v1/objects/create_from_stream.php
7171

7272
Create a large object (over 5GB)
7373
--------------------------------
@@ -81,25 +81,25 @@ uploading, this is what happens under the hood:
8181

8282
To upload a DLO, you need to call:
8383

84-
.. sample:: object_store/v1/objects/create_large_object.php
84+
.. sample:: objectstore/v1/objects/create_large_object.php
8585
.. refdoc:: OpenStack/ObjectStore/v1/Models/Container.html#method_createLargeObject
8686

8787
Copy object
8888
-----------
8989

90-
.. sample:: object_store/v1/objects/copy.php
90+
.. sample:: objectstore/v1/objects/copy.php
9191
.. refdoc:: OpenStack/ObjectStore/v1/Models/StorageObject.html#method_copy
9292

9393
Delete object
9494
-------------
9595

96-
.. sample:: object_store/v1/objects/delete.php
96+
.. sample:: objectstore/v1/objects/delete.php
9797
.. refdoc:: OpenStack/ObjectStore/v1/Models/StorageObject.html#method_delete
9898

9999
Get metadata
100100
------------
101101

102-
.. sample:: object_store/v1/objects/get_metadata.php
102+
.. sample:: objectstore/v1/objects/get_metadata.php
103103
.. refdoc:: OpenStack/ObjectStore/v1/Models/StorageObject.html#method_getMetadata
104104

105105
The returned value will be a standard associative array, or hash, containing arbitrary key/value pairs. These will
@@ -109,7 +109,7 @@ correspond to the values set either when the object was created, or when a previ
109109
Replace all metadata with new values
110110
------------------------------------
111111

112-
.. sample:: object_store/v1/objects/reset_metadata.php
112+
.. sample:: objectstore/v1/objects/reset_metadata.php
113113
.. refdoc:: OpenStack/ObjectStore/v1/Models/StorageObject.html#method_resetMetadata
114114

115115
In order to replace all existing metadata with a set of new values, you can use this operation. Any existing metadata
@@ -139,7 +139,7 @@ the metadata of the account will now be:
139139
Merge new metadata values with existing
140140
---------------------------------------
141141

142-
.. sample:: object_store/v1/objects/merge_metadata.php
142+
.. sample:: objectstore/v1/objects/merge_metadata.php
143143
.. refdoc:: OpenStack/ObjectStore/v1/Models/StorageObject.html#method_mergeMetadata
144144

145145
In order to merge a set of new metadata values with the existing metadata set, you can use this operation. Any existing

0 commit comments

Comments
 (0)