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

com.azure.resourcemanager.mongocluster.implementation.PrivateLinksImpl Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure SDK for Mongo Cluster Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Microsoft Azure management API provides create, read, update, and delete functionality for Azure Cosmos DB for MongoDB vCore resources including clusters and firewall rules.

The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) TypeSpec Code Generator.

package com.azure.resourcemanager.mongocluster.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.mongocluster.fluent.PrivateLinksClient;
import com.azure.resourcemanager.mongocluster.fluent.models.PrivateLinkResourceInner;
import com.azure.resourcemanager.mongocluster.models.PrivateLinkResource;
import com.azure.resourcemanager.mongocluster.models.PrivateLinks;

public final class PrivateLinksImpl implements PrivateLinks {
    private static final ClientLogger LOGGER = new ClientLogger(PrivateLinksImpl.class);

    private final PrivateLinksClient innerClient;

    private final com.azure.resourcemanager.mongocluster.MongoClusterManager serviceManager;

    public PrivateLinksImpl(PrivateLinksClient innerClient,
        com.azure.resourcemanager.mongocluster.MongoClusterManager serviceManager) {
        this.innerClient = innerClient;
        this.serviceManager = serviceManager;
    }

    public PagedIterable listByMongoCluster(String resourceGroupName, String mongoClusterName) {
        PagedIterable inner
            = this.serviceClient().listByMongoCluster(resourceGroupName, mongoClusterName);
        return ResourceManagerUtils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager()));
    }

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

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

    private com.azure.resourcemanager.mongocluster.MongoClusterManager manager() {
        return this.serviceManager;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy