Skip to content

Commit 6627561

Browse files
authored
Update service version to 2020-08-04 and add markdown directives (#288)
1 parent c166691 commit 6627561

15 files changed

+1233
-12666
lines changed

azblob/url_append_blob.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ func (ab AppendBlobURL) Create(ctx context.Context, h BlobHTTPHeaders, metadata
6868
nil, // Blob ifTags
6969
nil,
7070
blobTagsString, // Blob tags
71+
// immutability policy
72+
nil, BlobImmutabilityPolicyModeNone, nil,
7173
)
7274
}
7375

azblob/url_blob.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ package azblob
22

33
import (
44
"context"
5-
"github.com/Azure/azure-pipeline-go/pipeline"
65
"net/url"
76
"strings"
7+
8+
"github.com/Azure/azure-pipeline-go/pipeline"
89
)
910

1011
// A BlobURL represents a URL to an Azure Storage blob; the blob may be a block blob, append blob, or page blob.
@@ -310,7 +311,10 @@ func (b BlobURL) StartCopyFromURL(ctx context.Context, source url.URL, metadata
310311
dstLeaseID,
311312
nil,
312313
blobTagsString, // Blob tags
313-
nil)
314+
nil,
315+
// immutability policy
316+
nil, BlobImmutabilityPolicyModeNone, nil,
317+
)
314318
}
315319

316320
// AbortCopyFromURL stops a pending copy that was previously started and leaves a destination blob with 0 length and metadata.

azblob/url_block_blob.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ func (bb BlockBlobURL) Upload(ctx context.Context, body io.ReadSeeker, h BlobHTT
8080
nil, // Blob ifTags
8181
nil,
8282
blobTagsString, // Blob tags
83+
// immutability policy
84+
nil, BlobImmutabilityPolicyModeNone, nil,
8385
)
8486
}
8587

@@ -127,6 +129,8 @@ func (bb BlockBlobURL) CommitBlockList(ctx context.Context, base64BlockIDs []str
127129
nil, // Blob ifTags
128130
nil,
129131
blobTagsString, // Blob tags
132+
// immutability policy
133+
nil, BlobImmutabilityPolicyModeNone, nil,
130134
)
131135
}
132136

@@ -154,6 +158,8 @@ func (bb BlockBlobURL) CopyFromURL(ctx context.Context, source url.URL, metadata
154158
nil, // Blob ifTags
155159
dstLeaseID, nil, srcContentMD5,
156160
blobTagsString, // Blob tags
161+
// immutability policy
162+
nil, BlobImmutabilityPolicyModeNone, nil,
157163
)
158164
}
159165

azblob/url_page_blob.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ func (pb PageBlobURL) Create(ctx context.Context, size int64, sequenceNumber int
7070
nil, // Blob tags
7171
&sequenceNumber, nil,
7272
blobTagsString, // Blob tags
73+
// immutability policy
74+
nil, BlobImmutabilityPolicyModeNone, nil,
7375
)
7476
}
7577

azblob/zz_generated_append_blob.go

Lines changed: 15 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)