Skip to content

Commit

Permalink
Fix Storage - Blobs Samples Issue (#36704)
Browse files Browse the repository at this point in the history
  • Loading branch information
Menghua1 authored Oct 24, 2023
1 parent 0bfddf1 commit 1e15727
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -476,12 +476,17 @@ public Response<BlobServiceProperties> getPropertiesWithResponse(Duration timeou
* .setLogging&#40;new BlobAnalyticsLogging&#40;&#41;
* .setWrite&#40;true&#41;
* .setDelete&#40;true&#41;
* .setVersion&#40;&quot;1.0&quot;&#41;
* .setRetentionPolicy&#40;loggingRetentionPolicy&#41;&#41;
* .setHourMetrics&#40;new BlobMetrics&#40;&#41;
* .setEnabled&#40;true&#41;
* .setVersion&#40;&quot;1.0&quot;&#41;
* .setIncludeApis&#40;true&#41;
* .setRetentionPolicy&#40;metricsRetentionPolicy&#41;&#41;
* .setMinuteMetrics&#40;new BlobMetrics&#40;&#41;
* .setEnabled&#40;true&#41;
* .setVersion&#40;&quot;1.0&quot;&#41;
* .setIncludeApis&#40;true&#41;
* .setRetentionPolicy&#40;metricsRetentionPolicy&#41;&#41;;
*
* try &#123;
Expand Down Expand Up @@ -519,12 +524,17 @@ public void setProperties(BlobServiceProperties properties) {
* .setLogging&#40;new BlobAnalyticsLogging&#40;&#41;
* .setWrite&#40;true&#41;
* .setDelete&#40;true&#41;
* .setVersion&#40;&quot;1.0&quot;&#41;
* .setRetentionPolicy&#40;loggingRetentionPolicy&#41;&#41;
* .setHourMetrics&#40;new BlobMetrics&#40;&#41;
* .setEnabled&#40;true&#41;
* .setVersion&#40;&quot;1.0&quot;&#41;
* .setIncludeApis&#40;true&#41;
* .setRetentionPolicy&#40;metricsRetentionPolicy&#41;&#41;
* .setMinuteMetrics&#40;new BlobMetrics&#40;&#41;
* .setEnabled&#40;true&#41;
* .setVersion&#40;&quot;1.0&quot;&#41;
* .setIncludeApis&#40;true&#41;
* .setRetentionPolicy&#40;metricsRetentionPolicy&#41;&#41;;
*
* Context context = new Context&#40;&quot;Key&quot;, &quot;Value&quot;&#41;;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,17 @@ public void setProperties() {
.setLogging(new BlobAnalyticsLogging()
.setWrite(true)
.setDelete(true)
.setVersion("1.0")
.setRetentionPolicy(loggingRetentionPolicy))
.setHourMetrics(new BlobMetrics()
.setEnabled(true)
.setVersion("1.0")
.setIncludeApis(true)
.setRetentionPolicy(metricsRetentionPolicy))
.setMinuteMetrics(new BlobMetrics()
.setEnabled(true)
.setVersion("1.0")
.setIncludeApis(true)
.setRetentionPolicy(metricsRetentionPolicy));

try {
Expand All @@ -195,12 +200,17 @@ public void setPropertiesWithResponse() {
.setLogging(new BlobAnalyticsLogging()
.setWrite(true)
.setDelete(true)
.setVersion("1.0")
.setRetentionPolicy(loggingRetentionPolicy))
.setHourMetrics(new BlobMetrics()
.setEnabled(true)
.setVersion("1.0")
.setIncludeApis(true)
.setRetentionPolicy(metricsRetentionPolicy))
.setMinuteMetrics(new BlobMetrics()
.setEnabled(true)
.setVersion("1.0")
.setIncludeApis(true)
.setRetentionPolicy(metricsRetentionPolicy));

Context context = new Context("Key", "Value");
Expand Down

0 comments on commit 1e15727

Please sign in to comment.