azure-storage 0.11.0.preview → 0.11.1.preview

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -69,6 +69,8 @@ module Azure::Storage
69
69
  # and also can be used to attach additional metadata
70
70
  # * +:metadata+ - Hash. Custom metadata values to store with the blob.
71
71
  # * +:timeout+ - Integer. A timeout in seconds.
72
+ # * +:request_id+ - String. Provides a client-generated, opaque value with a 1 KB character limit that is recorded
73
+ # in the analytics logs when storage analytics logging is enabled.
72
74
  # * +:if_modified_since+ - String. A DateTime value. Specify this conditional header to create a new blob
73
75
  # only if the blob has been modified since the specified date/time. If the blob has not been modified,
74
76
  # the Blob service returns status code 412 (Precondition Failed).
@@ -91,7 +93,7 @@ module Azure::Storage
91
93
 
92
94
  uri = blob_uri(container, blob, query)
93
95
 
94
- headers = StorageService.service_properties_headers
96
+ headers = StorageService.common_headers
95
97
 
96
98
  # set x-ms-blob-type to BlockBlob
97
99
  StorageService.with_header headers, 'x-ms-blob-type', 'BlockBlob'
@@ -109,7 +111,7 @@ module Azure::Storage
109
111
  add_blob_conditional_headers options, headers
110
112
 
111
113
  # call PutBlob with empty body
112
- response = call(:put, uri, content, headers)
114
+ response = call(:put, uri, content, headers, options)
113
115
 
114
116
  result = Serialization.blob_from_headers(response.headers)
115
117
  result.name = blob
@@ -132,6 +134,8 @@ module Azure::Storage
132
134
  # Accepted key/value pairs in options parameter are:
133
135
  # * +:content_md5+ - String. Content MD5 for the request contents.
134
136
  # * +:timeout+ - Integer. A timeout in seconds.
137
+ # * +:request_id+ - String. Provides a client-generated, opaque value with a 1 KB character limit that is recorded
138
+ # in the analytics logs when storage analytics logging is enabled.
135
139
  #
136
140
  # See http://msdn.microsoft.com/en-us/library/azure/dd135726.aspx
137
141
  #
@@ -143,10 +147,10 @@ module Azure::Storage
143
147
 
144
148
  uri = blob_uri(container, blob, query)
145
149
 
146
- headers = StorageService.service_properties_headers
150
+ headers = StorageService.common_headers
147
151
  StorageService.with_header headers, 'Content-MD5', options[:content_md5]
148
152
 
149
- response = call(:put, uri, content, headers)
153
+ response = call(:put, uri, content, headers, options)
150
154
  response.headers['Content-MD5']
151
155
  end
152
156
 
@@ -186,6 +190,8 @@ module Azure::Storage
186
190
  # and also can be used to attach additional metadata
187
191
  # * +:metadata+ - Hash. Custom metadata values to store with the blob.
188
192
  # * +:timeout+ - Integer. A timeout in seconds.
193
+ # * +:request_id+ - String. Provides a client-generated, opaque value with a 1 KB character limit that is recorded
194
+ # in the analytics logs when storage analytics logging is enabled.
189
195
  #
190
196
  # This operation also supports the use of conditional headers to commit the block list if a specified condition is met.
191
197
  # For more information, see https://msdn.microsoft.com/en-us/library/azure/dd179371.aspx
@@ -199,7 +205,7 @@ module Azure::Storage
199
205
 
200
206
  uri = blob_uri(container, blob, query)
201
207
 
202
- headers = StorageService.service_properties_headers
208
+ headers = StorageService.common_headers
203
209
  unless options.empty?
204
210
  StorageService.with_header headers, 'Content-MD5', options[:transactional_md5]
205
211
  StorageService.with_header headers, 'x-ms-blob-content-type', options[:content_type]
@@ -214,7 +220,7 @@ module Azure::Storage
214
220
  end
215
221
 
216
222
  body = Serialization.block_list_to_xml(block_list)
217
- call(:put, uri, body, headers)
223
+ call(:put, uri, body, headers, options)
218
224
  nil
219
225
  end
220
226
 
@@ -230,17 +236,19 @@ module Azure::Storage
230
236
  #
231
237
  # ==== Attributes
232
238
  #
233
- # * +container+ - String. The container name.
234
- # * +blob+ - String. The blob name.
235
- # * +options+ - Hash. Optional parameters.
239
+ # * +container+ - String. The container name.
240
+ # * +blob+ - String. The blob name.
241
+ # * +options+ - Hash. Optional parameters.
236
242
  #
237
243
  # ==== Options
238
244
  #
239
245
  # Accepted key/value pairs in options parameter are:
240
- # * +:blocklist_type+ - Symbol. One of :all, :committed, :uncommitted. Defaults to :all (optional)
241
- # * +:snapshot+ - String. An opaque DateTime value that specifies the blob snapshot to
242
- # retrieve information from. (optional)
243
- # * +:timeout+ - Integer. A timeout in seconds.
246
+ # * +:blocklist_type+ - Symbol. One of :all, :committed, :uncommitted. Defaults to :all (optional)
247
+ # * +:snapshot+ - String. An opaque DateTime value that specifies the blob snapshot to
248
+ # retrieve information from. (optional)
249
+ # * +:timeout+ - Integer. A timeout in seconds.
250
+ # * +:request_id+ - String. Provides a client-generated, opaque value with a 1 KB character limit that is recorded
251
+ # in the analytics logs when storage analytics logging is enabled.
244
252
  #
245
253
  # See http://msdn.microsoft.com/en-us/library/azure/dd179400.aspx
246
254
  #
@@ -256,7 +264,7 @@ module Azure::Storage
256
264
 
257
265
  uri = blob_uri(container, blob, query)
258
266
 
259
- response = call(:get, uri)
267
+ response = call(:get, uri, nil, {}, options)
260
268
 
261
269
  Serialization.block_list_from_xml(response.body)
262
270
  end
@@ -44,15 +44,17 @@ module Azure::Storage::Blob
44
44
  #
45
45
  # ==== Attributes
46
46
  #
47
- # * +name+ - String. The name of the container.
48
- # * +options+ - Hash. Optional parameters.
47
+ # * +name+ - String. The name of the container.
48
+ # * +options+ - Hash. Optional parameters.
49
49
  #
50
50
  # ==== Options
51
51
  #
52
52
  # Accepted key/value pairs in options parameter are:
53
- # * +:metadata+ - Hash. User defined metadata for the container (optional).
54
- # * +:public_access_level+ - String. One of "container" or "blob" (optional).
55
- # * +:timeout+ - Integer. A timeout in seconds.
53
+ # * +:metadata+ - Hash. User defined metadata for the container (optional).
54
+ # * +:public_access_level+ - String. One of "container" or "blob" (optional).
55
+ # * +:timeout+ - Integer. A timeout in seconds.
56
+ # * +:request_id+ - String. Provides a client-generated, opaque value with a 1 KB character limit that is recorded
57
+ # in the analytics logs when storage analytics logging is enabled.
56
58
  #
57
59
  # See http://msdn.microsoft.com/en-us/library/azure/dd179468.aspx
58
60
  #
@@ -66,12 +68,12 @@ module Azure::Storage::Blob
66
68
  uri = container_uri(name, query)
67
69
 
68
70
  # Headers
69
- headers = StorageService.service_properties_headers
71
+ headers = StorageService.common_headers
70
72
  StorageService.add_metadata_to_headers(options[:metadata], headers) if options[:metadata]
71
73
  headers['x-ms-blob-public-access'] = options[:public_access_level].to_s if options[:public_access_level]
72
74
 
73
75
  # Call
74
- response = call(:put, uri, nil, headers)
76
+ response = call(:put, uri, nil, headers, options)
75
77
 
76
78
  # result
77
79
  container = Serialization.container_from_headers(response.headers)
@@ -84,13 +86,15 @@ module Azure::Storage::Blob
84
86
  #
85
87
  # ==== Attributes
86
88
  #
87
- # * +name+ - String. The name of the container
88
- # * +options+ - Hash. Optional parameters.
89
+ # * +name+ - String. The name of the container
90
+ # * +options+ - Hash. Optional parameters.
89
91
  #
90
92
  # ==== Options
91
93
  #
92
94
  # Accepted key/value pairs in options parameter are:
93
- # * +:timeout+ - Integer. A timeout in seconds.
95
+ # * +:timeout+ - Integer. A timeout in seconds.
96
+ # * +:request_id+ - String. Provides a client-generated, opaque value with a 1 KB character limit that is recorded
97
+ # in the analytics logs when storage analytics logging is enabled.
94
98
  #
95
99
  # See http://msdn.microsoft.com/en-us/library/azure/dd179370.aspx
96
100
  #
@@ -101,7 +105,7 @@ module Azure::Storage::Blob
101
105
  query['timeout'] = options[:timeout].to_s if options[:timeout]
102
106
 
103
107
  # Call
104
- response = call(:get, container_uri(name, query))
108
+ response = call(:get, container_uri(name, query), nil, {}, options)
105
109
 
106
110
  # result
107
111
  container = Serialization.container_from_headers(response.headers)
@@ -113,13 +117,15 @@ module Azure::Storage::Blob
113
117
  #
114
118
  # ==== Attributes
115
119
  #
116
- # * +name+ - String. The name of the container
117
- # * +options+ - Hash. Optional parameters.
120
+ # * +name+ - String. The name of the container
121
+ # * +options+ - Hash. Optional parameters.
118
122
  #
119
123
  # ==== Options
120
124
  #
121
125
  # Accepted key/value pairs in options parameter are:
122
- # * +:timeout+ - Integer. A timeout in seconds.
126
+ # * +:timeout+ - Integer. A timeout in seconds.
127
+ # * +:request_id+ - String. Provides a client-generated, opaque value with a 1 KB character limit that is recorded
128
+ # in the analytics logs when storage analytics logging is enabled.
123
129
  #
124
130
  # See http://msdn.microsoft.com/en-us/library/azure/ee691976.aspx
125
131
  #
@@ -130,7 +136,7 @@ module Azure::Storage::Blob
130
136
  query['timeout'] = options[:timeout].to_s if options[:timeout]
131
137
 
132
138
  # Call
133
- response = call(:get, container_uri(name, query))
139
+ response = call(:get, container_uri(name, query), nil, {}, options)
134
140
 
135
141
  # result
136
142
  container = Serialization.container_from_headers(response.headers)
@@ -142,14 +148,16 @@ module Azure::Storage::Blob
142
148
  #
143
149
  # ==== Attributes
144
150
  #
145
- # * +name+ - String. The name of the container
146
- # * +metadata+ - Hash. A Hash of the metadata values
147
- # * +options+ - Hash. Optional parameters.
151
+ # * +name+ - String. The name of the container
152
+ # * +metadata+ - Hash. A Hash of the metadata values
153
+ # * +options+ - Hash. Optional parameters.
148
154
  #
149
155
  # ==== Options
150
156
  #
151
157
  # Accepted key/value pairs in options parameter are:
152
- # * +:timeout+ - Integer. A timeout in seconds.
158
+ # * +:timeout+ - Integer. A timeout in seconds.
159
+ # * +:request_id+ - String. Provides a client-generated, opaque value with a 1 KB character limit that is recorded
160
+ # in the analytics logs when storage analytics logging is enabled.
153
161
  #
154
162
  # See http://msdn.microsoft.com/en-us/library/azure/dd179362.aspx
155
163
  #
@@ -160,11 +168,11 @@ module Azure::Storage::Blob
160
168
  query['timeout'] = options[:timeout].to_s if options[:timeout]
161
169
 
162
170
  # Headers
163
- headers = StorageService.service_properties_headers
171
+ headers = StorageService.common_headers
164
172
  StorageService.add_metadata_to_headers(metadata, headers) if metadata
165
173
 
166
174
  # Call
167
- call(:put, container_uri(name, query), nil, headers)
175
+ call(:put, container_uri(name, query), nil, headers, options)
168
176
 
169
177
  # Result
170
178
  nil
@@ -175,13 +183,15 @@ module Azure::Storage::Blob
175
183
  #
176
184
  # ==== Attributes
177
185
  #
178
- # * +name+ - String. The name of the container
179
- # * +options+ - Hash. Optional parameters.
186
+ # * +name+ - String. The name of the container
187
+ # * +options+ - Hash. Optional parameters.
180
188
  #
181
189
  # ==== Options
182
190
  #
183
191
  # Accepted key/value pairs in options parameter are:
184
- # * +:timeout+ - Integer. A timeout in seconds.
192
+ # * +:timeout+ - Integer. A timeout in seconds.
193
+ # * +:request_id+ - String. Provides a client-generated, opaque value with a 1 KB character limit that is recorded
194
+ # in the analytics logs when storage analytics logging is enabled.
185
195
  #
186
196
  # See http://msdn.microsoft.com/en-us/library/azure/dd179469.aspx
187
197
  #
@@ -195,7 +205,7 @@ module Azure::Storage::Blob
195
205
  query['timeout'] = options[:timeout].to_s if options[:timeout]
196
206
 
197
207
  # Call
198
- response = call(:get, container_uri(name, query))
208
+ response = call(:get, container_uri(name, query), nil, {}, options)
199
209
 
200
210
  # Result
201
211
  container = Serialization.container_from_headers(response.headers)
@@ -220,6 +230,8 @@ module Azure::Storage::Blob
220
230
  # Accepted key/value pairs in options parameter are:
221
231
  # * +:signed_identifiers+ - Array. A list of Azure::Storage::Entity::SignedIdentifier instances (optional)
222
232
  # * +:timeout+ - Integer. A timeout in seconds.
233
+ # * +:request_id+ - String. Provides a client-generated, opaque value with a 1 KB character limit that is recorded
234
+ # in the analytics logs when storage analytics logging is enabled.
223
235
  #
224
236
  # See http://msdn.microsoft.com/en-us/library/azure/dd179391.aspx
225
237
  #
@@ -236,7 +248,7 @@ module Azure::Storage::Blob
236
248
  uri = container_uri(name, query)
237
249
 
238
250
  # Headers + body
239
- headers = StorageService.service_properties_headers
251
+ headers = StorageService.common_headers
240
252
  headers['x-ms-blob-public-access'] = public_access_level if public_access_level && public_access_level.to_s.length > 0
241
253
 
242
254
  signed_identifiers = nil
@@ -246,7 +258,7 @@ module Azure::Storage::Blob
246
258
  body = Serialization.signed_identifiers_to_xml(signed_identifiers) if signed_identifiers
247
259
 
248
260
  # Call
249
- response = call(:put, uri, body, headers)
261
+ response = call(:put, uri, body, headers, options)
250
262
 
251
263
  # Result
252
264
  container = Serialization.container_from_headers(response.headers)
@@ -260,13 +272,15 @@ module Azure::Storage::Blob
260
272
  #
261
273
  # ==== Attributes
262
274
  #
263
- # * +name+ - String. The name of the container.
264
- # * +options+ - Hash. Optional parameters.
275
+ # * +name+ - String. The name of the container.
276
+ # * +options+ - Hash. Optional parameters.
265
277
  #
266
278
  # ==== Options
267
279
  #
268
280
  # Accepted key/value pairs in options parameter are:
269
- # * +:timeout+ - Integer. A timeout in seconds.
281
+ # * +:timeout+ - Integer. A timeout in seconds.
282
+ # * +:request_id+ - String. Provides a client-generated, opaque value with a 1 KB character limit that is recorded
283
+ # in the analytics logs when storage analytics logging is enabled.
270
284
  #
271
285
  # See http://msdn.microsoft.com/en-us/library/azure/dd179408.aspx
272
286
  #
@@ -277,7 +291,7 @@ module Azure::Storage::Blob
277
291
  query['timeout'] = options[:timeout].to_s if options[:timeout]
278
292
 
279
293
  # Call
280
- call(:delete, container_uri(name, query))
294
+ call(:delete, container_uri(name, query), nil, {}, options)
281
295
 
282
296
  # result
283
297
  nil
@@ -299,6 +313,8 @@ module Azure::Storage::Blob
299
313
  # * +:proposed_lease_id+ - String. Proposed lease ID, in a GUID string format. The Blob service returns 400 (Invalid request)
300
314
  # if the proposed lease ID is not in the correct format. (optional)
301
315
  # * +:timeout+ - Integer. A timeout in seconds.
316
+ # * +:request_id+ - String. Provides a client-generated, opaque value with a 1 KB character limit that is recorded
317
+ # in the analytics logs when storage analytics logging is enabled.
302
318
  # * +:if_modified_since+ - String. A DateTime value. Specify this conditional header to acquire the lease
303
319
  # only if the container has been modified since the specified date/time. If the container has not been modified,
304
320
  # the Blob service returns status code 412 (Precondition Failed).
@@ -336,6 +352,8 @@ module Azure::Storage::Blob
336
352
  #
337
353
  # Accepted key/value pairs in options parameter are:
338
354
  # * +:timeout+ - Integer. A timeout in seconds.
355
+ # * +:request_id+ - String. Provides a client-generated, opaque value with a 1 KB character limit that is recorded
356
+ # in the analytics logs when storage analytics logging is enabled.
339
357
  # * +:if_modified_since+ - String. A DateTime value. Specify this conditional header to renew the lease
340
358
  # only if the container has been modified since the specified date/time. If the container has not been modified,
341
359
  # the Blob service returns status code 412 (Precondition Failed).
@@ -369,6 +387,8 @@ module Azure::Storage::Blob
369
387
  #
370
388
  # Accepted key/value pairs in options parameter are:
371
389
  # * +:timeout+ - Integer. A timeout in seconds.
390
+ # * +:request_id+ - String. Provides a client-generated, opaque value with a 1 KB character limit that is recorded
391
+ # in the analytics logs when storage analytics logging is enabled.
372
392
  # * +:if_modified_since+ - String. A DateTime value. Specify this conditional header to change the lease
373
393
  # only if the container has been modified since the specified date/time. If the container has not been modified,
374
394
  # the Blob service returns status code 412 (Precondition Failed).
@@ -402,6 +422,8 @@ module Azure::Storage::Blob
402
422
  #
403
423
  # Accepted key/value pairs in options parameter are:
404
424
  # * +:timeout+ - Integer. A timeout in seconds.
425
+ # * +:request_id+ - String. Provides a client-generated, opaque value with a 1 KB character limit that is recorded
426
+ # in the analytics logs when storage analytics logging is enabled.
405
427
  # * +:if_modified_since+ - String. A DateTime value. Specify this conditional header to release the lease
406
428
  # only if the container has been modified since the specified date/time. If the container has not been modified,
407
429
  # the Blob service returns status code 412 (Precondition Failed).
@@ -447,6 +469,8 @@ module Azure::Storage::Blob
447
469
  # If this option is not used, a fixed-duration lease breaks after the remaining lease
448
470
  # period elapses, and an infinite lease breaks immediately.
449
471
  # * +:timeout+ - Integer. A timeout in seconds.
472
+ # * +:request_id+ - String. Provides a client-generated, opaque value with a 1 KB character limit that is recorded
473
+ # in the analytics logs when storage analytics logging is enabled.
450
474
  # * +:if_modified_since+ - String. A DateTime value. Specify this conditional header to break the lease
451
475
  # only if the container has been modified since the specified date/time. If the container has not been modified,
452
476
  # the Blob service returns status code 412 (Precondition Failed).
@@ -508,6 +532,8 @@ module Azure::Storage::Blob
508
532
  # copy_blob operation should be included in the response.
509
533
  # (optional, Default=false)
510
534
  # * +:timeout+ - Integer. A timeout in seconds.
535
+ # * +:request_id+ - String. Provides a client-generated, opaque value with a 1 KB character limit that is recorded
536
+ # in the analytics logs when storage analytics logging is enabled.
511
537
  #
512
538
  # NOTE: Metadata requested with the :metadata parameter must have been stored in
513
539
  # accordance with the naming restrictions imposed by the 2009-09-19 version of the Blob
@@ -542,7 +568,7 @@ module Azure::Storage::Blob
542
568
  uri = container_uri(name, query)
543
569
 
544
570
  # Call
545
- response = call(:get, uri)
571
+ response = call(:get, uri, nil, {}, options)
546
572
 
547
573
  # Result
548
574
  if response.success?
@@ -53,6 +53,8 @@ module Azure::Storage
53
53
  # * +:sequence_number+ - Integer. The sequence number is a user-controlled value that you can use to track requests.
54
54
  # The value of the sequence number must be between 0 and 2^63 - 1.The default value is 0.
55
55
  # * +:timeout+ - Integer. A timeout in seconds.
56
+ # * +:request_id+ - String. Provides a client-generated, opaque value with a 1 KB character limit that is recorded
57
+ # in the analytics logs when storage analytics logging is enabled.
56
58
  # * +:if_modified_since+ - String. A DateTime value. Specify this conditional header to create a new blob
57
59
  # only if the blob has been modified since the specified date/time. If the blob has not been modified,
58
60
  # the Blob service returns status code 412 (Precondition Failed).
@@ -75,7 +77,7 @@ module Azure::Storage
75
77
 
76
78
  uri = blob_uri(container, blob, query)
77
79
 
78
- headers = StorageService.service_properties_headers
80
+ headers = StorageService.common_headers
79
81
 
80
82
  # set x-ms-blob-type to PageBlob
81
83
  StorageService.with_header headers, 'x-ms-blob-type', 'PageBlob'
@@ -100,7 +102,7 @@ module Azure::Storage
100
102
  add_blob_conditional_headers options, headers
101
103
 
102
104
  # call PutBlob with empty body
103
- response = call(:put, uri, nil, headers)
105
+ response = call(:put, uri, nil, headers, options)
104
106
 
105
107
  result = Serialization.blob_from_headers(response.headers)
106
108
  result.name = blob
@@ -141,6 +143,8 @@ module Azure::Storage
141
143
  # the blob's ETag value does not match the value specified. If the values are identical,
142
144
  # the Blob service returns status code 412 (Precondition Failed).
143
145
  # * +:timeout+ - Integer. A timeout in seconds.
146
+ # * +:request_id+ - String. Provides a client-generated, opaque value with a 1 KB character limit that is recorded
147
+ # in the analytics logs when storage analytics logging is enabled.
144
148
  #
145
149
  # See http://msdn.microsoft.com/en-us/library/azure/ee691975.aspx
146
150
  #
@@ -150,7 +154,7 @@ module Azure::Storage
150
154
  StorageService.with_query query, 'timeout', options[:timeout].to_s if options[:timeout]
151
155
 
152
156
  uri = blob_uri(container, blob, query)
153
- headers = StorageService.service_properties_headers
157
+ headers = StorageService.common_headers
154
158
  StorageService.with_header headers, 'x-ms-range', "bytes=#{start_range}-#{end_range}"
155
159
  StorageService.with_header headers, 'x-ms-page-write', 'update'
156
160
 
@@ -162,7 +166,7 @@ module Azure::Storage
162
166
  add_blob_conditional_headers options, headers
163
167
  end
164
168
 
165
- response = call(:put, uri, content, headers)
169
+ response = call(:put, uri, content, headers, options)
166
170
 
167
171
  result = Serialization.blob_from_headers(response.headers)
168
172
  result.name = blob
@@ -184,6 +188,8 @@ module Azure::Storage
184
188
  #
185
189
  # Accepted key/value pairs in options parameter are:
186
190
  # * +:timeout+ - Integer. A timeout in seconds.
191
+ # * +:request_id+ - String. Provides a client-generated, opaque value with a 1 KB character limit that is recorded
192
+ # in the analytics logs when storage analytics logging is enabled.
187
193
  # * +:if_modified_since+ - String. A DateTime value. Specify this conditional header to clear the page only if
188
194
  # the blob has been modified since the specified date/time. If the blob has not been modified,
189
195
  # the Blob service returns status code 412 (Precondition Failed).
@@ -206,7 +212,7 @@ module Azure::Storage
206
212
 
207
213
  uri = blob_uri(container, blob, query)
208
214
 
209
- headers = StorageService.service_properties_headers
215
+ headers = StorageService.common_headers
210
216
  StorageService.with_header headers, 'x-ms-range', "bytes=#{start_range}-#{end_range}"
211
217
  StorageService.with_header headers, 'x-ms-page-write', 'clear'
212
218
 
@@ -218,7 +224,7 @@ module Azure::Storage
218
224
  add_blob_conditional_headers options, headers
219
225
  end
220
226
 
221
- response = call(:put, uri, nil, headers)
227
+ response = call(:put, uri, nil, headers, options)
222
228
 
223
229
  result = Serialization.blob_from_headers(response.headers)
224
230
  result.name = blob
@@ -243,6 +249,8 @@ module Azure::Storage
243
249
  # * +:snapshot+ - String. An opaque DateTime value that specifies the blob snapshot to
244
250
  # retrieve information from. (optional)
245
251
  # * +:timeout+ - Integer. A timeout in seconds.
252
+ # * +:request_id+ - String. Provides a client-generated, opaque value with a 1 KB character limit that is recorded
253
+ # in the analytics logs when storage analytics logging is enabled.
246
254
  # * +:if_modified_since+ - String. A DateTime value. Specify this conditional header to list the pages only if
247
255
  # the blob has been modified since the specified date/time. If the blob has not been modified,
248
256
  # the Blob service returns status code 412 (Precondition Failed).
@@ -271,11 +279,11 @@ module Azure::Storage
271
279
 
272
280
  options[:start_range] = 0 if options[:end_range] and not options[:start_range]
273
281
 
274
- headers = StorageService.service_properties_headers
282
+ headers = StorageService.common_headers
275
283
  StorageService.with_header headers, 'x-ms-range', "bytes=#{options[:start_range]}-#{options[:end_range]}" if options[:start_range]
276
284
  add_blob_conditional_headers options, headers
277
285
 
278
- response = call(:get, uri, nil, headers)
286
+ response = call(:get, uri, nil, headers, options)
279
287
 
280
288
  pagelist = Serialization.page_list_from_xml(response.body)
281
289
  pagelist
@@ -296,6 +304,8 @@ module Azure::Storage
296
304
  #
297
305
  # Accepted key/value pairs in options parameter are:
298
306
  # * +:timeout+ - Integer. A timeout in seconds.
307
+ # * +:request_id+ - String. Provides a client-generated, opaque value with a 1 KB character limit that is recorded
308
+ # in the analytics logs when storage analytics logging is enabled.
299
309
  # * +:if_modified_since+ - String. A DateTime value. Specify this conditional header to set the blob properties
300
310
  # only if the blob has been modified since the specified date/time. If the blob has not been modified,
301
311
  # the Blob service returns status code 412 (Precondition Failed).
@@ -356,6 +366,8 @@ module Azure::Storage
356
366
  #
357
367
  # Accepted key/value pairs in options parameter are:
358
368
  # * +:timeout+ - Integer. A timeout in seconds.
369
+ # * +:request_id+ - String. Provides a client-generated, opaque value with a 1 KB character limit that is recorded
370
+ # in the analytics logs when storage analytics logging is enabled.
359
371
  # * +:if_modified_since+ - String. A DateTime value. Specify this conditional header to set the blob properties
360
372
  # only if the blob has been modified since the specified date/time. If the blob has not been modified,
361
373
  # the Blob service returns status code 412 (Precondition Failed).