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

com.azure.resourcemanager.recoveryservicesbackup.implementation.ResourceGuardProxiesImpl Maven / Gradle / Ivy

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.recoveryservicesbackup.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.recoveryservicesbackup.fluent.ResourceGuardProxiesClient;
import com.azure.resourcemanager.recoveryservicesbackup.fluent.models.ResourceGuardProxyBaseResourceInner;
import com.azure.resourcemanager.recoveryservicesbackup.models.ResourceGuardProxies;
import com.azure.resourcemanager.recoveryservicesbackup.models.ResourceGuardProxyBaseResource;

public final class ResourceGuardProxiesImpl implements ResourceGuardProxies {
    private static final ClientLogger LOGGER = new ClientLogger(ResourceGuardProxiesImpl.class);

    private final ResourceGuardProxiesClient innerClient;

    private final com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager serviceManager;

    public ResourceGuardProxiesImpl(ResourceGuardProxiesClient innerClient,
        com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager serviceManager) {
        this.innerClient = innerClient;
        this.serviceManager = serviceManager;
    }

    public PagedIterable get(String vaultName, String resourceGroupName) {
        PagedIterable inner
            = this.serviceClient().get(vaultName, resourceGroupName);
        return ResourceManagerUtils.mapPage(inner,
            inner1 -> new ResourceGuardProxyBaseResourceImpl(inner1, this.manager()));
    }

    public PagedIterable get(String vaultName, String resourceGroupName,
        Context context) {
        PagedIterable inner
            = this.serviceClient().get(vaultName, resourceGroupName, context);
        return ResourceManagerUtils.mapPage(inner,
            inner1 -> new ResourceGuardProxyBaseResourceImpl(inner1, this.manager()));
    }

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

    private com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager manager() {
        return this.serviceManager;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy