Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit 0955a91

Browse files
committed
Merge pull request #34 from zhimingyuan/patch-5
Update Microsoft Azure Storage Client Library for C++ 2.0.0.md
2 parents c11374a + 76557b3 commit 0955a91

File tree

1 file changed

+101
-24
lines changed

1 file changed

+101
-24
lines changed

documentation/Microsoft Azure Storage Client Library for C++ 2.0.0.md

Lines changed: 101 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ The following sample code shows the use of Append Blob.
4848
append_blob.delete_blob();
4949

5050
// Delete the blob container
51-
// Return value is true if the container did exist and was successfully deleted
5251
container.delete_container_if_exists();
5352
}
5453
catch (const azure::storage::storage_exception& e)
@@ -96,7 +95,7 @@ With version 2.0.0, you can also use a range-based for-loop to list blobs.
9695
}
9796
else
9897
{
99-
process_directory(item.as_blob_directory());
98+
process_directory(item.as_directory());
10099
}
101100
}
102101

@@ -106,31 +105,109 @@ For more details about listing APIs of the C++ client library, visit [Efficientl
106105

107106
With versions earlier than 2.0.0, the C++ client library will *keep* only the following parameters and ignore the others when handling the Azure Storage resource URI:
108107

109-
sas_version
110-
sas_resource
111-
sas_table_name
112-
sas_start
113-
sas_expiry
114-
sas_permissions
115-
sas_start_partition_key
116-
sas_start_row_key
117-
sas_end_partition_key
118-
sas_end_row_key
119-
sas_identifier
120-
sas_cache_control
121-
sas_content_disposition
122-
sas_content_encoding
123-
sas_content_language
124-
sas_content_type
125-
sas_signature
126-
sas_api_version
108+
<table>
109+
<tr>
110+
<td><b>Field Name</b></td>
111+
<td><b>Query Parameter</b></td>
112+
</tr>
113+
<tr>
114+
<td>signedversion</td>
115+
<td>sv</td>
116+
</tr>
117+
<tr>
118+
<td>signedresource</td>
119+
<td>sr</td>
120+
</tr>
121+
<tr>
122+
<td>tablename</td>
123+
<td>tn</td>
124+
</tr>
125+
<tr>
126+
<td>signedstart</td>
127+
<td>st</td>
128+
</tr>
129+
<tr>
130+
<td>signedexpiry</td>
131+
<td>se</td>
132+
</tr>
133+
<tr>
134+
<td>signedpermissions</td>
135+
<td>sp</td>
136+
</tr>
137+
<tr>
138+
<td>startpk</td>
139+
<td>spk</td>
140+
</tr>
141+
<tr>
142+
<td>startrk</td>
143+
<td>srk</td>
144+
</tr>
145+
<tr>
146+
<td>endpk</td>
147+
<td>epk</td>
148+
</tr>
149+
<tr>
150+
<td>endrk</td>
151+
<td>erk</td>
152+
</tr>
153+
<tr>
154+
<td>signedidentifier</td>
155+
<td>si</td>
156+
</tr>
157+
<tr>
158+
<td>Cache-Control</td>
159+
<td>rscc</td>
160+
</tr>
161+
<tr>
162+
<td>Content-Disposition</td>
163+
<td>rscd</td>
164+
</tr>
165+
<tr>
166+
<td>Content-Encoding</td>
167+
<td>rsce</td>
168+
</tr>
169+
<tr>
170+
<td>Content-Language</td>
171+
<td>rscl</td>
172+
</tr>
173+
<tr>
174+
<td>Content-Type</td>
175+
<td>rsct</td>
176+
</tr>
177+
<tr>
178+
<td>signature</td>
179+
<td>sig</td>
180+
</tr>
181+
<tr>
182+
<td>api-version</td>
183+
<td>api-version</td>
184+
</tr>
185+
</table>
127186

128187
With version 2.0.0, the C++ client library will ignore only the following parameters:
129188

130-
resource_type
131-
component
132-
snapshot
133-
sas_api_version
189+
<table>
190+
<tr>
191+
<td><b>Field Name</b></td>
192+
<td><b>Query Parameter</b></td>
193+
</tr>
194+
<tr>
195+
<td>resoucetype</td>
196+
<td>restype</td>
197+
</tr>
198+
<tr>
199+
<td>component</td>
200+
<td>comp</td>
201+
</tr>
202+
<tr>
203+
<td>snapshot</td>
204+
<td>snapshot</td>
205+
</tr>
206+
<tr>
207+
<td>api-version</td>
208+
<td>api-version</td>
209+
</tr>
210+
</table>
134211

135212
As a result of this change, you can write code like this:
136213

0 commit comments

Comments
 (0)