Skip to content

Commit 9dbe1f6

Browse files
Export missing types (Azure#19828)
* Exporting missing types
1 parent 2a983c9 commit 9dbe1f6

File tree

7 files changed

+38
-7
lines changed

7 files changed

+38
-7
lines changed

sdk/storage/azblob/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
### Breaking Changes
88

9+
### Other Changes
10+
11+
* Exported some missing types in the `blob`, `container` and `service` packages. Fixes [#19775](https://github.com/Azure/azure-sdk-for-go/issues/19775).
12+
913
### Bugs Fixed
1014
* Fixed encoding issues seen in FilterBlobs. Fixes [#17421](https://github.com/Azure/azure-sdk-for-go/issues/17421).
1115

sdk/storage/azblob/blob/client.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -387,12 +387,12 @@ func (b *Client) DownloadStream(ctx context.Context, o *DownloadStreamOptions) (
387387
}
388388

389389
return DownloadStreamResponse{
390-
client: b,
391-
BlobClientDownloadResponse: dr,
392-
getInfo: httpGetterInfo{Range: o.Range, ETag: dr.ETag},
393-
ObjectReplicationRules: deserializeORSPolicies(dr.ObjectReplicationRules),
394-
cpkInfo: o.CpkInfo,
395-
cpkScope: o.CpkScopeInfo,
390+
client: b,
391+
DownloadResponse: dr,
392+
getInfo: httpGetterInfo{Range: o.Range, ETag: dr.ETag},
393+
ObjectReplicationRules: deserializeORSPolicies(dr.ObjectReplicationRules),
394+
cpkInfo: o.CpkInfo,
395+
cpkScope: o.CpkScopeInfo,
396396
}, err
397397
}
398398

sdk/storage/azblob/blob/responses.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,13 @@ import (
1313
"github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/internal/generated"
1414
)
1515

16+
// DownloadResponse contains the response from method BlobClient.Download.
17+
type DownloadResponse = generated.BlobClientDownloadResponse
18+
1619
// DownloadStreamResponse contains the response from the DownloadStream method.
1720
// To read from the stream, read from the Body field, or call the NewRetryReader method.
1821
type DownloadStreamResponse struct {
19-
generated.BlobClientDownloadResponse
22+
DownloadResponse
2023
ObjectReplicationRules []ObjectReplicationPolicy
2124

2225
client *Client

sdk/storage/azblob/container/models.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,21 @@ func NewSharedKeyCredential(accountName, accountKey string) (*SharedKeyCredentia
2828
// CpkScopeInfo contains a group of parameters for the ContainerClient.Create method.
2929
type CpkScopeInfo = generated.ContainerCpkScopeInfo
3030

31+
// BlobFlatListSegment - List of BlobItem
32+
type BlobFlatListSegment = generated.BlobFlatListSegment
33+
34+
// BlobHierarchyListSegment - List of BlobItem and BlobPrefix
35+
type BlobHierarchyListSegment = generated.BlobHierarchyListSegment
36+
3137
// BlobProperties - Properties of a blob
3238
type BlobProperties = generated.BlobProperties
3339

3440
// BlobItem - An Azure Storage blob
3541
type BlobItem = generated.BlobItem
3642

43+
// BlobTags - Blob tags
44+
type BlobTags = generated.BlobTags
45+
3746
// BlobPrefix is a blob's prefix when hierarchically listing blobs.
3847
type BlobPrefix = generated.BlobPrefix
3948

sdk/storage/azblob/container/responses.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,15 @@ type GetPropertiesResponse = generated.ContainerClientGetPropertiesResponse
2525
// ListBlobsFlatResponse contains the response from method Client.ListBlobFlatSegment.
2626
type ListBlobsFlatResponse = generated.ContainerClientListBlobFlatSegmentResponse
2727

28+
// ListBlobsFlatSegmentResponse - An enumeration of blobs
29+
type ListBlobsFlatSegmentResponse = generated.ListBlobsFlatSegmentResponse
30+
2831
// ListBlobsHierarchyResponse contains the response from method Client.ListBlobHierarchySegment.
2932
type ListBlobsHierarchyResponse = generated.ContainerClientListBlobHierarchySegmentResponse
3033

34+
// ListBlobsHierarchySegmentResponse - An enumeration of blobs
35+
type ListBlobsHierarchySegmentResponse = generated.ListBlobsHierarchySegmentResponse
36+
3137
// SetMetadataResponse contains the response from method Client.SetMetadata.
3238
type SetMetadataResponse = generated.ContainerClientSetMetadataResponse
3339

sdk/storage/azblob/service/models.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ type RestoreContainerOptions = container.RestoreOptions
7272
// domain) to call APIs in another domain
7373
type CorsRule = generated.CorsRule
7474

75+
// FilterBlobSegment - The result of a Filter Blobs API call
76+
type FilterBlobSegment = generated.FilterBlobSegment
77+
78+
// BlobTags - Blob tags
79+
type BlobTags = generated.BlobTags
80+
7581
// FilterBlobItem - Blob info returned from method Client.FilterBlobs
7682
type FilterBlobItem = generated.FilterBlobItem
7783

sdk/storage/azblob/service/responses.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ type GetAccountInfoResponse = generated.ServiceClientGetAccountInfoResponse
2525
// ListContainersResponse contains the response from method Client.ListContainersSegment.
2626
type ListContainersResponse = generated.ServiceClientListContainersSegmentResponse
2727

28+
// ListContainersSegmentResponse - An enumeration of containers
29+
type ListContainersSegmentResponse = generated.ListContainersSegmentResponse
30+
2831
// GetPropertiesResponse contains the response from method Client.GetProperties.
2932
type GetPropertiesResponse = generated.ServiceClientGetPropertiesResponse
3033

0 commit comments

Comments
 (0)