com.azure.resourcemanager.videoanalyzer.implementation.OperationsImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-videoanalyzer Show documentation
Show all versions of azure-resourcemanager-videoanalyzer Show documentation
We’re retiring the Azure Video Analyzer preview service; you're advised to transition your applications off of Video Analyzer by 01 December 2022. This SDK is no longer maintained and won’t work after the service is retired. To learn how to transition off, please refer to: https://aka.ms/azsdk/videoanalyzer/transitionoffguidance This package contains Microsoft Azure SDK for Video Analyzer Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. 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.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.videoanalyzer.implementation;
import com.azure.core.http.rest.Response;
import com.azure.core.http.rest.SimpleResponse;
import com.azure.core.util.Context;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.videoanalyzer.fluent.OperationsClient;
import com.azure.resourcemanager.videoanalyzer.fluent.models.OperationCollectionInner;
import com.azure.resourcemanager.videoanalyzer.models.OperationCollection;
import com.azure.resourcemanager.videoanalyzer.models.Operations;
import com.fasterxml.jackson.annotation.JsonIgnore;
public final class OperationsImpl implements Operations {
@JsonIgnore private final ClientLogger logger = new ClientLogger(OperationsImpl.class);
private final OperationsClient innerClient;
private final com.azure.resourcemanager.videoanalyzer.VideoAnalyzerManager serviceManager;
public OperationsImpl(
OperationsClient innerClient, com.azure.resourcemanager.videoanalyzer.VideoAnalyzerManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
}
public OperationCollection list() {
OperationCollectionInner inner = this.serviceClient().list();
if (inner != null) {
return new OperationCollectionImpl(inner, this.manager());
} else {
return null;
}
}
public Response listWithResponse(Context context) {
Response inner = this.serviceClient().listWithResponse(context);
if (inner != null) {
return new SimpleResponse<>(
inner.getRequest(),
inner.getStatusCode(),
inner.getHeaders(),
new OperationCollectionImpl(inner.getValue(), this.manager()));
} else {
return null;
}
}
private OperationsClient serviceClient() {
return this.innerClient;
}
private com.azure.resourcemanager.videoanalyzer.VideoAnalyzerManager manager() {
return this.serviceManager;
}
}