All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.resourcemanager.automation.implementation.FieldsImpl Maven / Gradle / Ivy

Go to download

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.util.Context;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.automation.fluent.FieldsClient;
import com.azure.resourcemanager.automation.fluent.models.TypeFieldInner;
import com.azure.resourcemanager.automation.models.Fields;
import com.azure.resourcemanager.automation.models.TypeField;

public final class FieldsImpl implements Fields {
    private static final ClientLogger LOGGER = new ClientLogger(FieldsImpl.class);

    private final FieldsClient innerClient;

    private final com.azure.resourcemanager.automation.AutomationManager serviceManager;

    public FieldsImpl(FieldsClient innerClient, com.azure.resourcemanager.automation.AutomationManager serviceManager) {
        this.innerClient = innerClient;
        this.serviceManager = serviceManager;
    }

    public PagedIterable listByType(String resourceGroupName, String automationAccountName,
        String moduleName, String typeName) {
        PagedIterable inner
            = this.serviceClient().listByType(resourceGroupName, automationAccountName, moduleName, typeName);
        return ResourceManagerUtils.mapPage(inner, inner1 -> new TypeFieldImpl(inner1, this.manager()));
    }

    public PagedIterable listByType(String resourceGroupName, String automationAccountName,
        String moduleName, String typeName, Context context) {
        PagedIterable inner
            = this.serviceClient().listByType(resourceGroupName, automationAccountName, moduleName, typeName, context);
        return ResourceManagerUtils.mapPage(inner, inner1 -> new TypeFieldImpl(inner1, this.manager()));
    }

    private FieldsClient serviceClient() {
        return this.innerClient;
    }

    private com.azure.resourcemanager.automation.AutomationManager manager() {
        return this.serviceManager;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy