com.azure.resourcemanager.automation.implementation.ResourceProvidersImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-automation Show documentation
Show all versions of azure-resourcemanager-automation Show documentation
This package contains Microsoft Azure SDK for Automation Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Automation Client. Package tag package-2022-02-22.
The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.automation.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.automation.fluent.ResourceProvidersClient;
import com.azure.resourcemanager.automation.fluent.models.GraphicalRunbookContentInner;
import com.azure.resourcemanager.automation.models.GraphicalRunbookContent;
import com.azure.resourcemanager.automation.models.ResourceProviders;
public final class ResourceProvidersImpl implements ResourceProviders {
private static final ClientLogger LOGGER = new ClientLogger(ResourceProvidersImpl.class);
private final ResourceProvidersClient innerClient;
private final com.azure.resourcemanager.automation.AutomationManager serviceManager;
public ResourceProvidersImpl(ResourceProvidersClient innerClient,
com.azure.resourcemanager.automation.AutomationManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
}
public Response convertGraphRunbookContentWithResponse(String resourceGroupName,
String automationAccountName, GraphicalRunbookContentInner parameters, Context context) {
Response inner = this.serviceClient()
.convertGraphRunbookContentWithResponse(resourceGroupName, automationAccountName, parameters, context);
if (inner != null) {
return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
new GraphicalRunbookContentImpl(inner.getValue(), this.manager()));
} else {
return null;
}
}
public GraphicalRunbookContent convertGraphRunbookContent(String resourceGroupName, String automationAccountName,
GraphicalRunbookContentInner parameters) {
GraphicalRunbookContentInner inner
= this.serviceClient().convertGraphRunbookContent(resourceGroupName, automationAccountName, parameters);
if (inner != null) {
return new GraphicalRunbookContentImpl(inner, this.manager());
} else {
return null;
}
}
private ResourceProvidersClient serviceClient() {
return this.innerClient;
}
private com.azure.resourcemanager.automation.AutomationManager manager() {
return this.serviceManager;
}
}