Skip to content

Commit

Permalink
CodeGen from PR 17002 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge abaf8f142d1187d2d9e8f691894ff2804f64a953 into 52f9379c7709eb53f15b875b7de9b1abfa17f298
  • Loading branch information
SDKAuto committed Dec 10, 2021
1 parent 4ef8007 commit c56c6b6
Show file tree
Hide file tree
Showing 14 changed files with 45 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.5 (Unreleased)
## 1.0.0-beta.1 (2021-12-10)

- Azure Resource Manager Video Analyzer client library for Java. This package contains Microsoft Azure SDK for Video Analyzer Management SDK. Azure Video Analyzer provides a platform for you to build intelligent video applications that span the edge and the cloud. Package tag package-preview-2021-11. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-videoanalyzer</artifactId>
<version>1.0.0-beta.4</version>
<version>1.0.0-beta.5</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.azure.core.http.HttpClient;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpPipelineBuilder;
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
Expand Down Expand Up @@ -61,6 +62,7 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;

/**
* Entry point to VideoAnalyzerManager. Azure Video Analyzer provides a platform for you to build intelligent video
Expand Down Expand Up @@ -237,7 +239,7 @@ public VideoAnalyzerManager authenticate(TokenCredential credential, AzureProfil
.append("-")
.append("com.azure.resourcemanager.videoanalyzer")
.append("/")
.append("1.0.0-beta.4");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand All @@ -260,11 +262,24 @@ public VideoAnalyzerManager authenticate(TokenCredential credential, AzureProfil
List<HttpPipelinePolicy> policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
policies.add(new RequestIdPolicy());
policies
.addAll(
this
.policies
.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
.collect(Collectors.toList()));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.addAll(this.policies);
policies
.addAll(
this
.policies
.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
.collect(Collectors.toList()));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
HttpPipeline httpPipeline =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public void deleteById(String id) {
String
.format("The resource ID '%s' is not valid. Missing path segment 'accessPolicies'.", id)));
}
this.deleteWithResponse(resourceGroupName, accountName, accessPolicyName, Context.NONE).getValue();
this.deleteWithResponse(resourceGroupName, accountName, accessPolicyName, Context.NONE);
}

public Response<Void> deleteByIdWithResponse(String id, Context context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public void deleteById(String id) {
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'edgeModules'.", id)));
}
this.deleteWithResponse(resourceGroupName, accountName, edgeModuleName, Context.NONE).getValue();
this.deleteWithResponse(resourceGroupName, accountName, edgeModuleName, Context.NONE);
}

public Response<Void> deleteByIdWithResponse(String id, Context context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,8 @@ private PollerFlux<PollResult<Void>, Void> beginActivateAsync(
activateWithResponseAsync(resourceGroupName, accountName, livePipelineName);
return this
.client
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
.<Void, Void>getLroResult(
mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}

/**
Expand Down Expand Up @@ -1523,7 +1524,8 @@ private PollerFlux<PollResult<Void>, Void> beginDeactivateAsync(
deactivateWithResponseAsync(resourceGroupName, accountName, livePipelineName);
return this
.client
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
.<Void, Void>getLroResult(
mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public void deleteById(String id) {
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'livePipelines'.", id)));
}
this.deleteWithResponse(resourceGroupName, accountName, livePipelineName, Context.NONE).getValue();
this.deleteWithResponse(resourceGroupName, accountName, livePipelineName, Context.NONE);
}

public Response<Void> deleteByIdWithResponse(String id, Context context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1248,7 +1248,8 @@ private PollerFlux<PollResult<Void>, Void> beginCancelAsync(
cancelWithResponseAsync(resourceGroupName, accountName, pipelineJobName);
return this
.client
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
.<Void, Void>getLroResult(
mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public void deleteById(String id) {
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'pipelineJobs'.", id)));
}
this.deleteWithResponse(resourceGroupName, accountName, pipelineJobName, Context.NONE).getValue();
this.deleteWithResponse(resourceGroupName, accountName, pipelineJobName, Context.NONE);
}

public Response<Void> deleteByIdWithResponse(String id, Context context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public void deleteById(String id) {
.format(
"The resource ID '%s' is not valid. Missing path segment 'pipelineTopologies'.", id)));
}
this.deleteWithResponse(resourceGroupName, accountName, pipelineTopologyName, Context.NONE).getValue();
this.deleteWithResponse(resourceGroupName, accountName, pipelineTopologyName, Context.NONE);
}

public Response<Void> deleteByIdWithResponse(String id, Context context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public void deleteById(String id) {
"The resource ID '%s' is not valid. Missing path segment 'privateEndpointConnections'.",
id)));
}
this.deleteWithResponse(resourceGroupName, accountName, name, Context.NONE).getValue();
this.deleteWithResponse(resourceGroupName, accountName, name, Context.NONE);
}

public Response<Void> deleteByIdWithResponse(String id, Context context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,11 @@ private PollerFlux<PollResult<VideoAnalyzerInner>, VideoAnalyzerInner> beginCrea
return this
.client
.<VideoAnalyzerInner, VideoAnalyzerInner>getLroResult(
mono, this.client.getHttpPipeline(), VideoAnalyzerInner.class, VideoAnalyzerInner.class, Context.NONE);
mono,
this.client.getHttpPipeline(),
VideoAnalyzerInner.class,
VideoAnalyzerInner.class,
this.client.getContext());
}

/**
Expand Down Expand Up @@ -963,7 +967,11 @@ private PollerFlux<PollResult<VideoAnalyzerInner>, VideoAnalyzerInner> beginUpda
return this
.client
.<VideoAnalyzerInner, VideoAnalyzerInner>getLroResult(
mono, this.client.getHttpPipeline(), VideoAnalyzerInner.class, VideoAnalyzerInner.class, Context.NONE);
mono,
this.client.getHttpPipeline(),
VideoAnalyzerInner.class,
VideoAnalyzerInner.class,
this.client.getContext());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public void deleteById(String id) {
String
.format("The resource ID '%s' is not valid. Missing path segment 'videoAnalyzers'.", id)));
}
this.deleteWithResponse(resourceGroupName, accountName, Context.NONE).getValue();
this.deleteWithResponse(resourceGroupName, accountName, Context.NONE);
}

public Response<Void> deleteByIdWithResponse(String id, Context context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public void deleteById(String id) {
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'videos'.", id)));
}
this.deleteWithResponse(resourceGroupName, accountName, videoName, Context.NONE).getValue();
this.deleteWithResponse(resourceGroupName, accountName, videoName, Context.NONE);
}

public Response<Void> deleteByIdWithResponse(String id, Context context) {
Expand Down

0 comments on commit c56c6b6

Please sign in to comment.