Skip to content

Commit f4b3a41

Browse files
[Release] [Storage] Apiview comments resolve - azblob + prep for release (Azure#24600)
* apiview comments resolve * apiview comments resolve
1 parent 24f6859 commit f4b3a41

File tree

10 files changed

+18
-24
lines changed

10 files changed

+18
-24
lines changed

sdk/storage/azblob/CHANGELOG.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
# Release History
22

3-
## 1.6.2-beta.1 (Unreleased)
3+
## 1.6.2-beta.1 (2025-05-08)
44

55
### Features Added
66
* Add support for x-ms-file-request-intent header for blob copy APIs.
77

8-
### Breaking Changes
9-
10-
### Bugs Fixed
11-
12-
### Other Changes
13-
148
## 1.6.1 (2025-04-16)
159

1610
### Bugs Fixed

sdk/storage/azblob/appendblob/client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ func (s *AppendBlobUnrecordedTestsSuite) TestAppendBlockFromURWithLRequestIntent
532532
// Append block from URL.
533533
_, err = destBlob.Create(context.Background(), nil)
534534
_require.NoError(err)
535-
requestIntent := blob.FileShareTokenIntentBackup
535+
requestIntent := blob.FileRequestIntentTypeBackup
536536
appendFromURLResp, err := destBlob.AppendBlockFromURL(context.Background(), srcBlobURLWithSAS, &appendblob.AppendBlockFromURLOptions{
537537
SourceContentValidation: blob.SourceContentValidationTypeMD5(contentMD5[:]),
538538
FileRequestIntent: &requestIntent,

sdk/storage/azblob/appendblob/models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ type AppendBlockFromURLOptions struct {
112112

113113
CPKScopeInfo *blob.CPKScopeInfo
114114

115-
FileRequestIntent *blob.FileShareTokenIntent
115+
FileRequestIntent *blob.FileRequestIntentType
116116

117117
SourceModifiedAccessConditions *blob.SourceModifiedAccessConditions
118118

sdk/storage/azblob/blob/client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ func (s *BlobUnrecordedTestsSuite) TestCopyBlobFromUrlOptions() {
311311
srcBlobParts.SAS = sasQueryParams
312312
srcBlobURLWithSAS := srcBlobParts.String()
313313

314-
requestIntent := blob.FileShareTokenIntentBackup
314+
requestIntent := blob.FileRequestIntentTypeBackup
315315

316316
// Invoke CopyFromURL.
317317
resp, err := destBlob.CopyFromURL(context.Background(), srcBlobURLWithSAS, &blob.CopyFromURLOptions{

sdk/storage/azblob/blob/constants.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -234,16 +234,16 @@ func (SourceContentValidationTypeMD5) notPubliclyImplementable() {}
234234

235235
var _ SourceContentValidationType = (SourceContentValidationTypeMD5)(nil)
236236

237-
// FileShareTokenIntent is file request intent with valid value as Backup
238-
type FileShareTokenIntent = generated.FileShareTokenIntent
237+
// FileRequestIntentType is file request intent with valid value as Backup
238+
type FileRequestIntentType = generated.FileShareTokenIntent
239239

240240
const (
241-
FileShareTokenIntentBackup FileShareTokenIntent = "backup"
241+
FileRequestIntentTypeBackup FileRequestIntentType = "backup"
242242
)
243243

244-
// PossibleFileShareTokenIntentValues returns the possible values for the FileShareTokenIntent const type.
245-
func PossibleFileShareTokenIntentValues() []FileShareTokenIntent {
246-
return []FileShareTokenIntent{
247-
FileShareTokenIntentBackup,
244+
// PossibleFileRequestIntentTypeValues returns the possible values for the FileRequestIntentType const type.
245+
func PossibleFileRequestIntentTypeValues() []FileRequestIntentType {
246+
return []FileRequestIntentType{
247+
FileRequestIntentTypeBackup,
248248
}
249249
}

sdk/storage/azblob/blob/models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ type CopyFromURLOptions struct {
524524
// Only Bearer type is supported. Credentials should be a valid OAuth access token to copy source.
525525
CopySourceAuthorization *string
526526
// File request Intent. Valid value is backup.
527-
FileRequestIntent *FileShareTokenIntent
527+
FileRequestIntent *FileRequestIntentType
528528
// Specifies the date time when the blobs immutability policy is set to expire.
529529
ImmutabilityPolicyExpiry *time.Time
530530
// Specifies the immutability policy mode to set on the blob.

sdk/storage/azblob/blockblob/client_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ func (s *BlockBlobUnrecordedTestsSuite) TestStageBlockFromURLWithRequestIntent()
604604

605605
// Stage blocks from URL.
606606
blockIDs := testcommon.GenerateBlockIDsList(2)
607-
requestIntent := blob.FileShareTokenIntentBackup
607+
requestIntent := blob.FileRequestIntentTypeBackup
608608

609609
opts := blockblob.StageBlockFromURLOptions{
610610
FileRequestIntent: &requestIntent,
@@ -1242,7 +1242,7 @@ func (s *BlockBlobUnrecordedTestsSuite) TestPutBlobFromURLWithIntent() {
12421242
svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil)
12431243
_require.NoError(err)
12441244

1245-
requestIntent := blob.FileShareTokenIntentBackup
1245+
requestIntent := blob.FileRequestIntentTypeBackup
12461246

12471247
containerClient, _, destBlob, srcBlobURLWithSAS, _ := setUpPutBlobFromURLTest(testName, _require, svcClient)
12481248
defer testcommon.DeleteContainer(context.Background(), _require, containerClient)

sdk/storage/azblob/blockblob/models.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ type UploadBlobFromURLOptions struct {
8383
CopySourceAuthorization *string
8484

8585
// Valid value is backup
86-
FileRequestIntent *blob.FileShareTokenIntent
86+
FileRequestIntent *blob.FileRequestIntentType
8787

8888
// Optional, default is true. Indicates if properties from the source blob should be copied.
8989
CopySourceBlobProperties *bool
@@ -169,7 +169,7 @@ type StageBlockFromURLOptions struct {
169169
SourceContentValidation blob.SourceContentValidationType
170170

171171
// File request Intent. Valid value is backup.
172-
FileRequestIntent *blob.FileShareTokenIntent
172+
FileRequestIntent *blob.FileRequestIntentType
173173

174174
// Range specifies a range of bytes. The default value is all bytes.
175175
Range blob.HTTPRange

sdk/storage/azblob/pageblob/client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ func (s *PageBlobUnrecordedTestsSuite) TestUploadPagesFromURLWithRequestIntentHe
534534

535535
// Prepare source pbClient for copy.
536536
offset, _, count := int64(0), int64(contentSize-1), int64(contentSize)
537-
requestIntent := blob.FileShareTokenIntentBackup
537+
requestIntent := blob.FileRequestIntentTypeBackup
538538

539539
_, err = srcBlob.UploadPages(context.Background(), streaming.NopCloser(r), blob.HTTPRange{Offset: offset, Count: count}, nil)
540540
_require.NoError(err)

sdk/storage/azblob/pageblob/models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ type UploadPagesFromURLOptions struct {
120120

121121
CPKScopeInfo *blob.CPKScopeInfo
122122

123-
FileRequestIntent *blob.FileShareTokenIntent
123+
FileRequestIntent *blob.FileRequestIntentType
124124

125125
SequenceNumberAccessConditions *SequenceNumberAccessConditions
126126

0 commit comments

Comments
 (0)