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

Commit 8058e40

Browse files
authored
Merge pull request #82 from katmsft/dev
0.15.0 Release Pull Request
2 parents 427f248 + 89ccf27 commit 8058e40

File tree

130 files changed

+6343
-4389
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+6343
-4389
lines changed

BreakingChanges.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
1+
Tracking Breaking changes in 0.15.0
2+
3+
All
4+
* Removed `setRequestOptions` for service options, instead, added `middlewares`, `middlewareStack`, `numberOfConcurrency`, `isStreaming`, `locationMode` and `decodeContent` for user to specify the corresponding options.
5+
* Added `MicrosoftAzure\Storage\Common\Middlewares\RetryMiddleware` to support retry from secondary endpoint. Advice to use this instead of Guzzle's retry middleware for secondary endpoint retry support.
6+
* Removed `MicrosoftAzure\Storage\Common\Models\ServiceProperties::getMetrics` and `MicrosoftAzure\Storage\Common\Models\ServiceProperties::setMetrics`. Added following methods to access hour metrics and minute metrics.
7+
```
8+
MicrosoftAzure\Storage\Common\Models\ServiceProperties::getHourMetrics
9+
MicrosoftAzure\Storage\Common\Models\ServiceProperties::setHourMetrics
10+
MicrosoftAzure\Storage\Common\Models\ServiceProperties::getMinuteMetrics
11+
MicrosoftAzure\Storage\Common\Models\ServiceProperties::setMinuteMetrics
12+
```
13+
14+
Blob
15+
* Lease feature parity
16+
- Renamed `LeaseBlobResult` to `LeaseResult` to support container and blob lease.
17+
- Added container lease support - passing `null` to `$blob` parameter of the lease related APIs.
18+
- Added new parameters `$proposedLeaseId` and `$leaseDuration` to `acquireLease` API and changed the `$options` parameter from `AcquireLeaseOptions` to `BlobServiceOptions`.
19+
- Added new parameter `$breakPeriod` to `breakLease` API and removed the `$leaseId` parameter.
20+
21+
* Refactored Options class:
22+
- Exracted `getLeaseId`, `setLeaseId`, `getAccessConditions` and `setAccessConditions` to the base options class `BlobServiceOptions`.
23+
- Refactored the `CreateBlobOptions`, `CommitBlobBlocksOptions` class to remove duplicate options and standardize the content settings related properties like `ContentType`, `ContentMD5`, `ContentEncoding`, `ContentLanguage`, `CacheControl` and `ContentDisposition`.
24+
25+
* Removed the useless API `ctrCrypt` from `Utilities` class.
26+
27+
Table
28+
* Removed `MicrosoftAzure\Storage\Table\Models\BatchError`. When batch operation fails, exception is thrown immediately instead.
29+
130
Tracking Breaking changes in 0.14.0
231

332
* Restructured the classes based on their intended functionality and visiblity. The changes includes:

ChangeLog.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,60 @@
1+
2017.04 - version 0.15.0
2+
3+
All
4+
* Removed `setRequestOptions` for service options, instead, added `middlewares`, `middlewareStack`, `numberOfConcurrency`, `isStreaming`, `locationMode` and `decodeContent` for user to specify the corresponding options.
5+
* Added `MicrosoftAzure\Storage\Common\Middlewares\RetryMiddleware` to support retry from secondary endpoint. Advice to use this instead of Guzzle's retry middleware for secondary endpoint retry support.
6+
* By setting `$locationMode` in `MicrosoftAzure\Storage\Common\Models\ServiceOptions`, user can perform read operations from secondary endpoint.
7+
* Added support for user to use proxies. If `HTTP_PROXY` is set as a system variable, the proxy specified with it will be used for HTTP connections.
8+
* Removed `MicrosoftAzure\Storage\Common\Models\ServiceProperties::getMetrics` and `MicrosoftAzure\Storage\Common\Models\ServiceProperties::setMetrics`. Added following methods to access hour metrics and minute metrics.
9+
```
10+
MicrosoftAzure\Storage\Common\Models\ServiceProperties::getHourMetrics
11+
MicrosoftAzure\Storage\Common\Models\ServiceProperties::setHourMetrics
12+
MicrosoftAzure\Storage\Common\Models\ServiceProperties::getMinuteMetrics
13+
MicrosoftAzure\Storage\Common\Models\ServiceProperties::setMinuteMetrics
14+
```
15+
16+
Blob
17+
* Access condition feature parity:
18+
- Single `AccessCondition` has been changed to multiple `AccessCondition` for the options which support access conditions.
19+
- Added `appendPosition`, `maxBlobSize`, `ifSequenceNumberLessThan`, `ifSequenceNumberEqual` and `ifSequenceNumberLessThanOrEqual` to `AccessCondition` class.
20+
- Added access conditions support for `getContainerProperties`, `setContainerProperties`, `getContainerMetadata` and `setContainerMetadata`.
21+
22+
* Copy blob feature parity:
23+
- Added new API `abortCopy`.
24+
- Added `setIncludeCopy` to `ListBlobsOptions` to support getting copy state information when listing blobs.
25+
- Added properties and getters/setters for `CopyId` and `CopyStatus` to `CopyBlobResult` class.
26+
27+
* Lease feature parity
28+
- Added lease support for `getContainerProperties`, `setContainerProperties`, `getContainerMetadata`, `setContainerMetadata` and `deleteContainer`.
29+
- Renamed `LeaseBlobResult` to `LeaseResult` to support container and blob lease.
30+
- Added container lease support - passing `null` to `$blob` parameter of the lease related APIs.
31+
- Added new parameters `$proposedLeaseId` and `$leaseDuration` to `acquireLease` API and changed the `$options` parameter from `AcquireLeaseOptions` to `BlobServiceOptions`.
32+
- Added the API `changeLease` to support changing lease.
33+
- Added new parameter `$breakPeriod` to `breakLease` API and removed the `$leaseId` parameter.
34+
- Added properties and getters/setters for `LeaseStatus`, `LeaseState` and `LeaseDuration` to `ContainerProperties` class.
35+
36+
* Container/Blob properties feature parity:
37+
- Added properties and getters/setters for `ContentDisposition`, `LeaseState`, `LeaseDuration` and `CopyState` to `BlobProperties` class.
38+
39+
* Refactored Options class:
40+
- Exracted `getLeaseId`, `setLeaseId`, `getAccessConditions` and `setAccessConditions` to the base options class `BlobServiceOptions`.
41+
- Refactored the `CreateBlobOptions`, `CommitBlobBlocksOptions` class to remove duplicate options and standardize the content settings related properties like `ContentType`, `ContentMD5`, `ContentEncoding`, `ContentLanguage`, `CacheControl` and `ContentDisposition`.
42+
43+
* Blob service properties feature parity:
44+
- Added `getDefaultServiceVersion`, `setDefaultServiceVersion`, `getMinuteMetrics` and `setMinuteMetrics` to `ServiceProperties` class.
45+
46+
* Changed the return type of API `commitBlobBlocks` from `void` to `PutBlobResult`.
47+
* Removed the useless API `ctrCrypt` from `Utilities` class.
48+
* Added `getServiceStats` and `getServiceStatsAsync` for user to request service statistics from the server's secondary endpoint.
49+
50+
Table
51+
* Removed `MicrosoftAzure\Storage\Table\Models\BatchError`. When batch operation fails, exception is thrown immediately instead.
52+
* Added `getServiceStats` and `getServiceStatsAsync` for user to request service statistics from the server's secondary endpoint.
53+
54+
Queue
55+
* Added `getServiceStats` and `getServiceStatsAsync` for user to request service statistics from the server's secondary endpoint.
56+
57+
158
2017.04 - version 0.14.0
259

360
ALL

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ implements `MicrosoftAzure\Storage\Common\Internal\IMiddleware`, or a
119119

120120
User can create self-defined middleware that inherits from `MicrosoftAzure\Storage\Common\Internal\Middlewares\MiddlewareBase`.
121121

122+
### Using proxies
123+
To use proxies during HTTP requests, set system variable `HTTP_PROXY` and the proxy will be used.
124+
122125
## Troubleshooting
123126
### Error: Unable to get local issuer certificate
124127
cURL can't verify the validity of Microsoft certificate when trying to issue a request call to Azure Storage Services. You must configure cURL to use a certificate when issuing https requests by the following steps:

0 commit comments

Comments
 (0)