
com.azure.resourcemanager.mysqlflexibleserver.implementation.ReplicasImpl 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.mysqlflexibleserver.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.mysqlflexibleserver.fluent.ReplicasClient;
import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.ServerInner;
import com.azure.resourcemanager.mysqlflexibleserver.models.Replicas;
import com.azure.resourcemanager.mysqlflexibleserver.models.Server;
public final class ReplicasImpl implements Replicas {
private static final ClientLogger LOGGER = new ClientLogger(ReplicasImpl.class);
private final ReplicasClient innerClient;
private final com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager;
public ReplicasImpl(ReplicasClient innerClient,
com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
}
public PagedIterable listByServer(String resourceGroupName, String serverName) {
PagedIterable inner = this.serviceClient().listByServer(resourceGroupName, serverName);
return ResourceManagerUtils.mapPage(inner, inner1 -> new ServerImpl(inner1, this.manager()));
}
public PagedIterable listByServer(String resourceGroupName, String serverName, Context context) {
PagedIterable inner = this.serviceClient().listByServer(resourceGroupName, serverName, context);
return ResourceManagerUtils.mapPage(inner, inner1 -> new ServerImpl(inner1, this.manager()));
}
private ReplicasClient serviceClient() {
return this.innerClient;
}
private com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager() {
return this.serviceManager;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy