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

package tsptest.armresourceprovider.implementation;

import com.azure.core.util.Context;
import com.azure.core.util.logging.ClientLogger;
import tsptest.armresourceprovider.fluent.ImmutableResourceModelsClient;
import tsptest.armresourceprovider.models.ImmutableResourceModels;
import tsptest.armresourceprovider.models.NginxConfigurationRequest;
import tsptest.armresourceprovider.models.NginxConfigurationResponse;

public final class ImmutableResourceModelsImpl implements ImmutableResourceModels {
    private static final ClientLogger LOGGER = new ClientLogger(ImmutableResourceModelsImpl.class);

    private final ImmutableResourceModelsClient innerClient;

    private final tsptest.armresourceprovider.ArmResourceProviderManager serviceManager;

    public ImmutableResourceModelsImpl(ImmutableResourceModelsClient innerClient,
        tsptest.armresourceprovider.ArmResourceProviderManager serviceManager) {
        this.innerClient = innerClient;
        this.serviceManager = serviceManager;
    }

    public NginxConfigurationResponse createOrUpdate(String resourceGroupName, String configurationName) {
        return this.serviceClient().createOrUpdate(resourceGroupName, configurationName);
    }

    public NginxConfigurationResponse createOrUpdate(String resourceGroupName, String configurationName,
        NginxConfigurationRequest properties, Context context) {
        return this.serviceClient().createOrUpdate(resourceGroupName, configurationName, properties, context);
    }

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

    private tsptest.armresourceprovider.ArmResourceProviderManager manager() {
        return this.serviceManager;
    }
}
