// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) Go Code Generator. DO NOT EDIT.

package armrecoveryservicesdatareplication

import (
	"github.com/Azure/azure-sdk-for-go/sdk/azcore"
	"github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
)

// ClientFactory is a client factory used to create any client in this module.
// Don't use this type directly, use NewClientFactory instead.
type ClientFactory struct {
	subscriptionID string
	internal       *arm.Client
}

// NewClientFactory creates a new instance of ClientFactory with the specified values.
// The parameter values will be propagated to any client created from this factory.
//   - subscriptionID - The ID of the target subscription. The value must be an UUID.
//   - credential - used to authorize requests. Usually a credential from azidentity.
//   - options - pass nil to accept the default values.
func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error) {
	internal, err := arm.NewClient(moduleName, moduleVersion, credential, options)
	if err != nil {
		return nil, err
	}
	return &ClientFactory{
		subscriptionID: subscriptionID,
		internal:       internal,
	}, nil
}

// NewCheckNameAvailabilityClient creates a new instance of CheckNameAvailabilityClient.
func (c *ClientFactory) NewCheckNameAvailabilityClient() *CheckNameAvailabilityClient {
	return &CheckNameAvailabilityClient{
		subscriptionID: c.subscriptionID,
		internal:       c.internal,
	}
}

// NewDeploymentPreflightClient creates a new instance of DeploymentPreflightClient.
func (c *ClientFactory) NewDeploymentPreflightClient() *DeploymentPreflightClient {
	return &DeploymentPreflightClient{
		subscriptionID: c.subscriptionID,
		internal:       c.internal,
	}
}

// NewEmailConfigurationClient creates a new instance of EmailConfigurationClient.
func (c *ClientFactory) NewEmailConfigurationClient() *EmailConfigurationClient {
	return &EmailConfigurationClient{
		subscriptionID: c.subscriptionID,
		internal:       c.internal,
	}
}

// NewEventClient creates a new instance of EventClient.
func (c *ClientFactory) NewEventClient() *EventClient {
	return &EventClient{
		subscriptionID: c.subscriptionID,
		internal:       c.internal,
	}
}

// NewFabricAgentClient creates a new instance of FabricAgentClient.
func (c *ClientFactory) NewFabricAgentClient() *FabricAgentClient {
	return &FabricAgentClient{
		subscriptionID: c.subscriptionID,
		internal:       c.internal,
	}
}

// NewFabricClient creates a new instance of FabricClient.
func (c *ClientFactory) NewFabricClient() *FabricClient {
	return &FabricClient{
		subscriptionID: c.subscriptionID,
		internal:       c.internal,
	}
}

// NewJobClient creates a new instance of JobClient.
func (c *ClientFactory) NewJobClient() *JobClient {
	return &JobClient{
		subscriptionID: c.subscriptionID,
		internal:       c.internal,
	}
}

// NewLocationBasedOperationResultsClient creates a new instance of LocationBasedOperationResultsClient.
func (c *ClientFactory) NewLocationBasedOperationResultsClient() *LocationBasedOperationResultsClient {
	return &LocationBasedOperationResultsClient{
		subscriptionID: c.subscriptionID,
		internal:       c.internal,
	}
}

// NewOperationResultsClient creates a new instance of OperationResultsClient.
func (c *ClientFactory) NewOperationResultsClient() *OperationResultsClient {
	return &OperationResultsClient{
		subscriptionID: c.subscriptionID,
		internal:       c.internal,
	}
}

// NewOperationsClient creates a new instance of OperationsClient.
func (c *ClientFactory) NewOperationsClient() *OperationsClient {
	return &OperationsClient{
		internal: c.internal,
	}
}

// NewPolicyClient creates a new instance of PolicyClient.
func (c *ClientFactory) NewPolicyClient() *PolicyClient {
	return &PolicyClient{
		subscriptionID: c.subscriptionID,
		internal:       c.internal,
	}
}

// NewPrivateEndpointConnectionProxiesClient creates a new instance of PrivateEndpointConnectionProxiesClient.
func (c *ClientFactory) NewPrivateEndpointConnectionProxiesClient() *PrivateEndpointConnectionProxiesClient {
	return &PrivateEndpointConnectionProxiesClient{
		subscriptionID: c.subscriptionID,
		internal:       c.internal,
	}
}

// NewPrivateEndpointConnectionsClient creates a new instance of PrivateEndpointConnectionsClient.
func (c *ClientFactory) NewPrivateEndpointConnectionsClient() *PrivateEndpointConnectionsClient {
	return &PrivateEndpointConnectionsClient{
		subscriptionID: c.subscriptionID,
		internal:       c.internal,
	}
}

// NewPrivateLinkResourcesClient creates a new instance of PrivateLinkResourcesClient.
func (c *ClientFactory) NewPrivateLinkResourcesClient() *PrivateLinkResourcesClient {
	return &PrivateLinkResourcesClient{
		subscriptionID: c.subscriptionID,
		internal:       c.internal,
	}
}

// NewProtectedItemClient creates a new instance of ProtectedItemClient.
func (c *ClientFactory) NewProtectedItemClient() *ProtectedItemClient {
	return &ProtectedItemClient{
		subscriptionID: c.subscriptionID,
		internal:       c.internal,
	}
}

// NewRecoveryPointClient creates a new instance of RecoveryPointClient.
func (c *ClientFactory) NewRecoveryPointClient() *RecoveryPointClient {
	return &RecoveryPointClient{
		subscriptionID: c.subscriptionID,
		internal:       c.internal,
	}
}

// NewReplicationExtensionClient creates a new instance of ReplicationExtensionClient.
func (c *ClientFactory) NewReplicationExtensionClient() *ReplicationExtensionClient {
	return &ReplicationExtensionClient{
		subscriptionID: c.subscriptionID,
		internal:       c.internal,
	}
}

// NewVaultClient creates a new instance of VaultClient.
func (c *ClientFactory) NewVaultClient() *VaultClient {
	return &VaultClient{
		subscriptionID: c.subscriptionID,
		internal:       c.internal,
	}
}
