Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Storage - Blobs Samples Issue #36704

Merged
merged 2 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading