1package databricksapi
2
3// Copyright (c) Microsoft Corporation. All rights reserved.
4// Licensed under the MIT License. See License.txt in the project root for license information.
5//
6// Code generated by Microsoft (R) AutoRest Code Generator.
7// Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
9import (
10	"context"
11	"github.com/Azure/azure-sdk-for-go/services/preview/databricks/mgmt/2021-04-01-preview/databricks"
12)
13
14// WorkspacesClientAPI contains the set of methods on the WorkspacesClient type.
15type WorkspacesClientAPI interface {
16	CreateOrUpdate(ctx context.Context, parameters databricks.Workspace, resourceGroupName string, workspaceName string) (result databricks.WorkspacesCreateOrUpdateFuture, err error)
17	Delete(ctx context.Context, resourceGroupName string, workspaceName string) (result databricks.WorkspacesDeleteFuture, err error)
18	Get(ctx context.Context, resourceGroupName string, workspaceName string) (result databricks.Workspace, err error)
19	ListByResourceGroup(ctx context.Context, resourceGroupName string) (result databricks.WorkspaceListResultPage, err error)
20	ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result databricks.WorkspaceListResultIterator, err error)
21	ListBySubscription(ctx context.Context) (result databricks.WorkspaceListResultPage, err error)
22	ListBySubscriptionComplete(ctx context.Context) (result databricks.WorkspaceListResultIterator, err error)
23	Update(ctx context.Context, parameters databricks.WorkspaceUpdate, resourceGroupName string, workspaceName string) (result databricks.WorkspacesUpdateFuture, err error)
24}
25
26var _ WorkspacesClientAPI = (*databricks.WorkspacesClient)(nil)
27
28// OperationsClientAPI contains the set of methods on the OperationsClient type.
29type OperationsClientAPI interface {
30	List(ctx context.Context) (result databricks.OperationListResultPage, err error)
31	ListComplete(ctx context.Context) (result databricks.OperationListResultIterator, err error)
32}
33
34var _ OperationsClientAPI = (*databricks.OperationsClient)(nil)
35
36// PrivateLinkResourcesClientAPI contains the set of methods on the PrivateLinkResourcesClient type.
37type PrivateLinkResourcesClientAPI interface {
38	Get(ctx context.Context, resourceGroupName string, workspaceName string, groupID string) (result databricks.GroupIDInformation, err error)
39	List(ctx context.Context, resourceGroupName string, workspaceName string) (result databricks.PrivateLinkResourcesListPage, err error)
40	ListComplete(ctx context.Context, resourceGroupName string, workspaceName string) (result databricks.PrivateLinkResourcesListIterator, err error)
41}
42
43var _ PrivateLinkResourcesClientAPI = (*databricks.PrivateLinkResourcesClient)(nil)
44
45// PrivateEndpointConnectionsClientAPI contains the set of methods on the PrivateEndpointConnectionsClient type.
46type PrivateEndpointConnectionsClientAPI interface {
47	Create(ctx context.Context, resourceGroupName string, workspaceName string, privateEndpointConnectionName string, privateEndpointConnection databricks.PrivateEndpointConnection) (result databricks.PrivateEndpointConnectionsCreateFuture, err error)
48	Delete(ctx context.Context, resourceGroupName string, workspaceName string, privateEndpointConnectionName string) (result databricks.PrivateEndpointConnectionsDeleteFuture, err error)
49	Get(ctx context.Context, resourceGroupName string, workspaceName string, privateEndpointConnectionName string) (result databricks.PrivateEndpointConnection, err error)
50	List(ctx context.Context, resourceGroupName string, workspaceName string) (result databricks.PrivateEndpointConnectionsListPage, err error)
51	ListComplete(ctx context.Context, resourceGroupName string, workspaceName string) (result databricks.PrivateEndpointConnectionsListIterator, err error)
52}
53
54var _ PrivateEndpointConnectionsClientAPI = (*databricks.PrivateEndpointConnectionsClient)(nil)
55
56// VNetPeeringClientAPI contains the set of methods on the VNetPeeringClient type.
57type VNetPeeringClientAPI interface {
58	CreateOrUpdate(ctx context.Context, virtualNetworkPeeringParameters databricks.VirtualNetworkPeering, resourceGroupName string, workspaceName string, peeringName string) (result databricks.VNetPeeringCreateOrUpdateFuture, err error)
59	Delete(ctx context.Context, resourceGroupName string, workspaceName string, peeringName string) (result databricks.VNetPeeringDeleteFuture, err error)
60	Get(ctx context.Context, resourceGroupName string, workspaceName string, peeringName string) (result databricks.VirtualNetworkPeering, err error)
61	ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string) (result databricks.VirtualNetworkPeeringListPage, err error)
62	ListByWorkspaceComplete(ctx context.Context, resourceGroupName string, workspaceName string) (result databricks.VirtualNetworkPeeringListIterator, err error)
63}
64
65var _ VNetPeeringClientAPI = (*databricks.VNetPeeringClient)(nil)
66