fake

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessConnectorsServer

type AccessConnectorsServer struct {
	// BeginCreateOrUpdate is the fake for method AccessConnectorsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, connectorName string, parameters armdatabricks.AccessConnector, options *armdatabricks.AccessConnectorsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armdatabricks.AccessConnectorsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method AccessConnectorsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, connectorName string, options *armdatabricks.AccessConnectorsClientBeginDeleteOptions) (resp azfake.PollerResponder[armdatabricks.AccessConnectorsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method AccessConnectorsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, connectorName string, options *armdatabricks.AccessConnectorsClientGetOptions) (resp azfake.Responder[armdatabricks.AccessConnectorsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method AccessConnectorsClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armdatabricks.AccessConnectorsClientListByResourceGroupOptions) (resp azfake.PagerResponder[armdatabricks.AccessConnectorsClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method AccessConnectorsClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armdatabricks.AccessConnectorsClientListBySubscriptionOptions) (resp azfake.PagerResponder[armdatabricks.AccessConnectorsClientListBySubscriptionResponse])

	// BeginUpdate is the fake for method AccessConnectorsClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceGroupName string, connectorName string, parameters armdatabricks.AccessConnectorUpdate, options *armdatabricks.AccessConnectorsClientBeginUpdateOptions) (resp azfake.PollerResponder[armdatabricks.AccessConnectorsClientUpdateResponse], errResp azfake.ErrorResponder)
}

AccessConnectorsServer is a fake server for instances of the armdatabricks.AccessConnectorsClient type.

type AccessConnectorsServerTransport

type AccessConnectorsServerTransport struct {
	// contains filtered or unexported fields
}

AccessConnectorsServerTransport connects instances of armdatabricks.AccessConnectorsClient to instances of AccessConnectorsServer. Don't use this type directly, use NewAccessConnectorsServerTransport instead.

func NewAccessConnectorsServerTransport

func NewAccessConnectorsServerTransport(srv *AccessConnectorsServer) *AccessConnectorsServerTransport

NewAccessConnectorsServerTransport creates a new instance of AccessConnectorsServerTransport with the provided implementation. The returned AccessConnectorsServerTransport instance is connected to an instance of armdatabricks.AccessConnectorsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*AccessConnectorsServerTransport) Do

Do implements the policy.Transporter interface for AccessConnectorsServerTransport.

type OperationsServer

type OperationsServer struct {
	// NewListPager is the fake for method OperationsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armdatabricks.OperationsClientListOptions) (resp azfake.PagerResponder[armdatabricks.OperationsClientListResponse])
}

OperationsServer is a fake server for instances of the armdatabricks.OperationsClient type.

type OperationsServerTransport

type OperationsServerTransport struct {
	// contains filtered or unexported fields
}

OperationsServerTransport connects instances of armdatabricks.OperationsClient to instances of OperationsServer. Don't use this type directly, use NewOperationsServerTransport instead.

func NewOperationsServerTransport

func NewOperationsServerTransport(srv *OperationsServer) *OperationsServerTransport

NewOperationsServerTransport creates a new instance of OperationsServerTransport with the provided implementation. The returned OperationsServerTransport instance is connected to an instance of armdatabricks.OperationsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*OperationsServerTransport) Do

Do implements the policy.Transporter interface for OperationsServerTransport.

type OutboundNetworkDependenciesEndpointsServer

type OutboundNetworkDependenciesEndpointsServer struct {
	// List is the fake for method OutboundNetworkDependenciesEndpointsClient.List
	// HTTP status codes to indicate success: http.StatusOK
	List func(ctx context.Context, resourceGroupName string, workspaceName string, options *armdatabricks.OutboundNetworkDependenciesEndpointsClientListOptions) (resp azfake.Responder[armdatabricks.OutboundNetworkDependenciesEndpointsClientListResponse], errResp azfake.ErrorResponder)
}

OutboundNetworkDependenciesEndpointsServer is a fake server for instances of the armdatabricks.OutboundNetworkDependenciesEndpointsClient type.

type OutboundNetworkDependenciesEndpointsServerTransport

type OutboundNetworkDependenciesEndpointsServerTransport struct {
	// contains filtered or unexported fields
}

OutboundNetworkDependenciesEndpointsServerTransport connects instances of armdatabricks.OutboundNetworkDependenciesEndpointsClient to instances of OutboundNetworkDependenciesEndpointsServer. Don't use this type directly, use NewOutboundNetworkDependenciesEndpointsServerTransport instead.

func NewOutboundNetworkDependenciesEndpointsServerTransport

func NewOutboundNetworkDependenciesEndpointsServerTransport(srv *OutboundNetworkDependenciesEndpointsServer) *OutboundNetworkDependenciesEndpointsServerTransport

NewOutboundNetworkDependenciesEndpointsServerTransport creates a new instance of OutboundNetworkDependenciesEndpointsServerTransport with the provided implementation. The returned OutboundNetworkDependenciesEndpointsServerTransport instance is connected to an instance of armdatabricks.OutboundNetworkDependenciesEndpointsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*OutboundNetworkDependenciesEndpointsServerTransport) Do

Do implements the policy.Transporter interface for OutboundNetworkDependenciesEndpointsServerTransport.

type PrivateEndpointConnectionsServer

type PrivateEndpointConnectionsServer struct {
	// BeginCreate is the fake for method PrivateEndpointConnectionsClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginCreate func(ctx context.Context, resourceGroupName string, workspaceName string, privateEndpointConnectionName string, privateEndpointConnection armdatabricks.PrivateEndpointConnection, options *armdatabricks.PrivateEndpointConnectionsClientBeginCreateOptions) (resp azfake.PollerResponder[armdatabricks.PrivateEndpointConnectionsClientCreateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method PrivateEndpointConnectionsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, workspaceName string, privateEndpointConnectionName string, options *armdatabricks.PrivateEndpointConnectionsClientBeginDeleteOptions) (resp azfake.PollerResponder[armdatabricks.PrivateEndpointConnectionsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method PrivateEndpointConnectionsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, workspaceName string, privateEndpointConnectionName string, options *armdatabricks.PrivateEndpointConnectionsClientGetOptions) (resp azfake.Responder[armdatabricks.PrivateEndpointConnectionsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method PrivateEndpointConnectionsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, workspaceName string, options *armdatabricks.PrivateEndpointConnectionsClientListOptions) (resp azfake.PagerResponder[armdatabricks.PrivateEndpointConnectionsClientListResponse])
}

PrivateEndpointConnectionsServer is a fake server for instances of the armdatabricks.PrivateEndpointConnectionsClient type.

type PrivateEndpointConnectionsServerTransport

type PrivateEndpointConnectionsServerTransport struct {
	// contains filtered or unexported fields
}

PrivateEndpointConnectionsServerTransport connects instances of armdatabricks.PrivateEndpointConnectionsClient to instances of PrivateEndpointConnectionsServer. Don't use this type directly, use NewPrivateEndpointConnectionsServerTransport instead.

func NewPrivateEndpointConnectionsServerTransport

func NewPrivateEndpointConnectionsServerTransport(srv *PrivateEndpointConnectionsServer) *PrivateEndpointConnectionsServerTransport

NewPrivateEndpointConnectionsServerTransport creates a new instance of PrivateEndpointConnectionsServerTransport with the provided implementation. The returned PrivateEndpointConnectionsServerTransport instance is connected to an instance of armdatabricks.PrivateEndpointConnectionsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*PrivateEndpointConnectionsServerTransport) Do

Do implements the policy.Transporter interface for PrivateEndpointConnectionsServerTransport.

type PrivateLinkResourcesServer

type PrivateLinkResourcesServer struct {
	// Get is the fake for method PrivateLinkResourcesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, workspaceName string, groupID string, options *armdatabricks.PrivateLinkResourcesClientGetOptions) (resp azfake.Responder[armdatabricks.PrivateLinkResourcesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method PrivateLinkResourcesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, workspaceName string, options *armdatabricks.PrivateLinkResourcesClientListOptions) (resp azfake.PagerResponder[armdatabricks.PrivateLinkResourcesClientListResponse])
}

PrivateLinkResourcesServer is a fake server for instances of the armdatabricks.PrivateLinkResourcesClient type.

type PrivateLinkResourcesServerTransport

type PrivateLinkResourcesServerTransport struct {
	// contains filtered or unexported fields
}

PrivateLinkResourcesServerTransport connects instances of armdatabricks.PrivateLinkResourcesClient to instances of PrivateLinkResourcesServer. Don't use this type directly, use NewPrivateLinkResourcesServerTransport instead.

func NewPrivateLinkResourcesServerTransport

func NewPrivateLinkResourcesServerTransport(srv *PrivateLinkResourcesServer) *PrivateLinkResourcesServerTransport

NewPrivateLinkResourcesServerTransport creates a new instance of PrivateLinkResourcesServerTransport with the provided implementation. The returned PrivateLinkResourcesServerTransport instance is connected to an instance of armdatabricks.PrivateLinkResourcesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*PrivateLinkResourcesServerTransport) Do

Do implements the policy.Transporter interface for PrivateLinkResourcesServerTransport.

type ServerFactory

type ServerFactory struct {
	AccessConnectorsServer                     AccessConnectorsServer
	OperationsServer                           OperationsServer
	OutboundNetworkDependenciesEndpointsServer OutboundNetworkDependenciesEndpointsServer
	PrivateEndpointConnectionsServer           PrivateEndpointConnectionsServer
	PrivateLinkResourcesServer                 PrivateLinkResourcesServer
	VNetPeeringServer                          VNetPeeringServer
	WorkspacesServer                           WorkspacesServer
}

ServerFactory is a fake server for instances of the armdatabricks.ClientFactory type.

type ServerFactoryTransport

type ServerFactoryTransport struct {
	// contains filtered or unexported fields
}

ServerFactoryTransport connects instances of armdatabricks.ClientFactory to instances of ServerFactory. Don't use this type directly, use NewServerFactoryTransport instead.

func NewServerFactoryTransport

func NewServerFactoryTransport(srv *ServerFactory) *ServerFactoryTransport

NewServerFactoryTransport creates a new instance of ServerFactoryTransport with the provided implementation. The returned ServerFactoryTransport instance is connected to an instance of armdatabricks.ClientFactory via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ServerFactoryTransport) Do

Do implements the policy.Transporter interface for ServerFactoryTransport.

type VNetPeeringServer

type VNetPeeringServer struct {
	// BeginCreateOrUpdate is the fake for method VNetPeeringClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, workspaceName string, peeringName string, virtualNetworkPeeringParameters armdatabricks.VirtualNetworkPeering, options *armdatabricks.VNetPeeringClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armdatabricks.VNetPeeringClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method VNetPeeringClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, workspaceName string, peeringName string, options *armdatabricks.VNetPeeringClientBeginDeleteOptions) (resp azfake.PollerResponder[armdatabricks.VNetPeeringClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method VNetPeeringClient.Get
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Get func(ctx context.Context, resourceGroupName string, workspaceName string, peeringName string, options *armdatabricks.VNetPeeringClientGetOptions) (resp azfake.Responder[armdatabricks.VNetPeeringClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByWorkspacePager is the fake for method VNetPeeringClient.NewListByWorkspacePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByWorkspacePager func(resourceGroupName string, workspaceName string, options *armdatabricks.VNetPeeringClientListByWorkspaceOptions) (resp azfake.PagerResponder[armdatabricks.VNetPeeringClientListByWorkspaceResponse])
}

VNetPeeringServer is a fake server for instances of the armdatabricks.VNetPeeringClient type.

type VNetPeeringServerTransport

type VNetPeeringServerTransport struct {
	// contains filtered or unexported fields
}

VNetPeeringServerTransport connects instances of armdatabricks.VNetPeeringClient to instances of VNetPeeringServer. Don't use this type directly, use NewVNetPeeringServerTransport instead.

func NewVNetPeeringServerTransport

func NewVNetPeeringServerTransport(srv *VNetPeeringServer) *VNetPeeringServerTransport

NewVNetPeeringServerTransport creates a new instance of VNetPeeringServerTransport with the provided implementation. The returned VNetPeeringServerTransport instance is connected to an instance of armdatabricks.VNetPeeringClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*VNetPeeringServerTransport) Do

Do implements the policy.Transporter interface for VNetPeeringServerTransport.

type WorkspacesServer

type WorkspacesServer struct {
	// BeginCreateOrUpdate is the fake for method WorkspacesClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, workspaceName string, parameters armdatabricks.Workspace, options *armdatabricks.WorkspacesClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armdatabricks.WorkspacesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method WorkspacesClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, workspaceName string, options *armdatabricks.WorkspacesClientBeginDeleteOptions) (resp azfake.PollerResponder[armdatabricks.WorkspacesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method WorkspacesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, workspaceName string, options *armdatabricks.WorkspacesClientGetOptions) (resp azfake.Responder[armdatabricks.WorkspacesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method WorkspacesClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armdatabricks.WorkspacesClientListByResourceGroupOptions) (resp azfake.PagerResponder[armdatabricks.WorkspacesClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method WorkspacesClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armdatabricks.WorkspacesClientListBySubscriptionOptions) (resp azfake.PagerResponder[armdatabricks.WorkspacesClientListBySubscriptionResponse])

	// BeginUpdate is the fake for method WorkspacesClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceGroupName string, workspaceName string, parameters armdatabricks.WorkspaceUpdate, options *armdatabricks.WorkspacesClientBeginUpdateOptions) (resp azfake.PollerResponder[armdatabricks.WorkspacesClientUpdateResponse], errResp azfake.ErrorResponder)
}

WorkspacesServer is a fake server for instances of the armdatabricks.WorkspacesClient type.

type WorkspacesServerTransport

type WorkspacesServerTransport struct {
	// contains filtered or unexported fields
}

WorkspacesServerTransport connects instances of armdatabricks.WorkspacesClient to instances of WorkspacesServer. Don't use this type directly, use NewWorkspacesServerTransport instead.

func NewWorkspacesServerTransport

func NewWorkspacesServerTransport(srv *WorkspacesServer) *WorkspacesServerTransport

NewWorkspacesServerTransport creates a new instance of WorkspacesServerTransport with the provided implementation. The returned WorkspacesServerTransport instance is connected to an instance of armdatabricks.WorkspacesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*WorkspacesServerTransport) Do

Do implements the policy.Transporter interface for WorkspacesServerTransport.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL