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

package com.azure.resourcemanager.synapse.implementation;

import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.synapse.fluent.IntegrationRuntimeCredentialsClient;
import com.azure.resourcemanager.synapse.models.IntegrationRuntimeCredentials;

public final class IntegrationRuntimeCredentialsImpl implements IntegrationRuntimeCredentials {
    private static final ClientLogger LOGGER = new ClientLogger(IntegrationRuntimeCredentialsImpl.class);

    private final IntegrationRuntimeCredentialsClient innerClient;

    private final com.azure.resourcemanager.synapse.SynapseManager serviceManager;

    public IntegrationRuntimeCredentialsImpl(
        IntegrationRuntimeCredentialsClient innerClient,
        com.azure.resourcemanager.synapse.SynapseManager serviceManager) {
        this.innerClient = innerClient;
        this.serviceManager = serviceManager;
    }

    public Response<Void> syncWithResponse(
        String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) {
        return this.serviceClient().syncWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, context);
    }

    public void sync(String resourceGroupName, String workspaceName, String integrationRuntimeName) {
        this.serviceClient().sync(resourceGroupName, workspaceName, integrationRuntimeName);
    }

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

    private com.azure.resourcemanager.synapse.SynapseManager manager() {
        return this.serviceManager;
    }
}
