com.azure.resourcemanager.automation.implementation.NodeReportsImpl 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.PagedIterable;
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.NodeReportsClient;
import com.azure.resourcemanager.automation.fluent.models.DscNodeReportInner;
import com.azure.resourcemanager.automation.models.DscNodeReport;
import com.azure.resourcemanager.automation.models.NodeReports;
public final class NodeReportsImpl implements NodeReports {
private static final ClientLogger LOGGER = new ClientLogger(NodeReportsImpl.class);
private final NodeReportsClient innerClient;
private final com.azure.resourcemanager.automation.AutomationManager serviceManager;
public NodeReportsImpl(NodeReportsClient innerClient,
com.azure.resourcemanager.automation.AutomationManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
}
public PagedIterable listByNode(String resourceGroupName, String automationAccountName,
String nodeId) {
PagedIterable inner
= this.serviceClient().listByNode(resourceGroupName, automationAccountName, nodeId);
return ResourceManagerUtils.mapPage(inner, inner1 -> new DscNodeReportImpl(inner1, this.manager()));
}
public PagedIterable listByNode(String resourceGroupName, String automationAccountName,
String nodeId, String filter, Context context) {
PagedIterable inner
= this.serviceClient().listByNode(resourceGroupName, automationAccountName, nodeId, filter, context);
return ResourceManagerUtils.mapPage(inner, inner1 -> new DscNodeReportImpl(inner1, this.manager()));
}
public Response getWithResponse(String resourceGroupName, String automationAccountName,
String nodeId, String reportId, Context context) {
Response inner
= this.serviceClient().getWithResponse(resourceGroupName, automationAccountName, nodeId, reportId, context);
if (inner != null) {
return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
new DscNodeReportImpl(inner.getValue(), this.manager()));
} else {
return null;
}
}
public DscNodeReport get(String resourceGroupName, String automationAccountName, String nodeId, String reportId) {
DscNodeReportInner inner = this.serviceClient().get(resourceGroupName, automationAccountName, nodeId, reportId);
if (inner != null) {
return new DscNodeReportImpl(inner, this.manager());
} else {
return null;
}
}
public Response