fake

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 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 AvailabilityGroupListenersServer

type AvailabilityGroupListenersServer struct {
	// BeginCreateOrUpdate is the fake for method AvailabilityGroupListenersClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, sqlVirtualMachineGroupName string, availabilityGroupListenerName string, parameters armsqlvirtualmachine.AvailabilityGroupListener, options *armsqlvirtualmachine.AvailabilityGroupListenersClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armsqlvirtualmachine.AvailabilityGroupListenersClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method AvailabilityGroupListenersClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, sqlVirtualMachineGroupName string, availabilityGroupListenerName string, options *armsqlvirtualmachine.AvailabilityGroupListenersClientBeginDeleteOptions) (resp azfake.PollerResponder[armsqlvirtualmachine.AvailabilityGroupListenersClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method AvailabilityGroupListenersClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, sqlVirtualMachineGroupName string, availabilityGroupListenerName string, options *armsqlvirtualmachine.AvailabilityGroupListenersClientGetOptions) (resp azfake.Responder[armsqlvirtualmachine.AvailabilityGroupListenersClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByGroupPager is the fake for method AvailabilityGroupListenersClient.NewListByGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByGroupPager func(resourceGroupName string, sqlVirtualMachineGroupName string, options *armsqlvirtualmachine.AvailabilityGroupListenersClientListByGroupOptions) (resp azfake.PagerResponder[armsqlvirtualmachine.AvailabilityGroupListenersClientListByGroupResponse])
}

AvailabilityGroupListenersServer is a fake server for instances of the armsqlvirtualmachine.AvailabilityGroupListenersClient type.

type AvailabilityGroupListenersServerTransport

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

AvailabilityGroupListenersServerTransport connects instances of armsqlvirtualmachine.AvailabilityGroupListenersClient to instances of AvailabilityGroupListenersServer. Don't use this type directly, use NewAvailabilityGroupListenersServerTransport instead.

func NewAvailabilityGroupListenersServerTransport

func NewAvailabilityGroupListenersServerTransport(srv *AvailabilityGroupListenersServer) *AvailabilityGroupListenersServerTransport

NewAvailabilityGroupListenersServerTransport creates a new instance of AvailabilityGroupListenersServerTransport with the provided implementation. The returned AvailabilityGroupListenersServerTransport instance is connected to an instance of armsqlvirtualmachine.AvailabilityGroupListenersClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*AvailabilityGroupListenersServerTransport) Do

Do implements the policy.Transporter interface for AvailabilityGroupListenersServerTransport.

type GroupsServer

type GroupsServer struct {
	// BeginCreateOrUpdate is the fake for method GroupsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, sqlVirtualMachineGroupName string, parameters armsqlvirtualmachine.Group, options *armsqlvirtualmachine.GroupsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armsqlvirtualmachine.GroupsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method GroupsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, sqlVirtualMachineGroupName string, options *armsqlvirtualmachine.GroupsClientBeginDeleteOptions) (resp azfake.PollerResponder[armsqlvirtualmachine.GroupsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method GroupsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, sqlVirtualMachineGroupName string, options *armsqlvirtualmachine.GroupsClientGetOptions) (resp azfake.Responder[armsqlvirtualmachine.GroupsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method GroupsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armsqlvirtualmachine.GroupsClientListOptions) (resp azfake.PagerResponder[armsqlvirtualmachine.GroupsClientListResponse])

	// NewListByResourceGroupPager is the fake for method GroupsClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armsqlvirtualmachine.GroupsClientListByResourceGroupOptions) (resp azfake.PagerResponder[armsqlvirtualmachine.GroupsClientListByResourceGroupResponse])

	// BeginUpdate is the fake for method GroupsClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK
	BeginUpdate func(ctx context.Context, resourceGroupName string, sqlVirtualMachineGroupName string, parameters armsqlvirtualmachine.GroupUpdate, options *armsqlvirtualmachine.GroupsClientBeginUpdateOptions) (resp azfake.PollerResponder[armsqlvirtualmachine.GroupsClientUpdateResponse], errResp azfake.ErrorResponder)
}

GroupsServer is a fake server for instances of the armsqlvirtualmachine.GroupsClient type.

type GroupsServerTransport

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

GroupsServerTransport connects instances of armsqlvirtualmachine.GroupsClient to instances of GroupsServer. Don't use this type directly, use NewGroupsServerTransport instead.

func NewGroupsServerTransport

func NewGroupsServerTransport(srv *GroupsServer) *GroupsServerTransport

NewGroupsServerTransport creates a new instance of GroupsServerTransport with the provided implementation. The returned GroupsServerTransport instance is connected to an instance of armsqlvirtualmachine.GroupsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*GroupsServerTransport) Do

Do implements the policy.Transporter interface for GroupsServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armsqlvirtualmachine.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 armsqlvirtualmachine.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 SQLVirtualMachinesServer

type SQLVirtualMachinesServer struct {
	// BeginCreateOrUpdate is the fake for method SQLVirtualMachinesClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, sqlVirtualMachineName string, parameters armsqlvirtualmachine.SQLVirtualMachine, options *armsqlvirtualmachine.SQLVirtualMachinesClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armsqlvirtualmachine.SQLVirtualMachinesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method SQLVirtualMachinesClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, sqlVirtualMachineName string, options *armsqlvirtualmachine.SQLVirtualMachinesClientBeginDeleteOptions) (resp azfake.PollerResponder[armsqlvirtualmachine.SQLVirtualMachinesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method SQLVirtualMachinesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, sqlVirtualMachineName string, options *armsqlvirtualmachine.SQLVirtualMachinesClientGetOptions) (resp azfake.Responder[armsqlvirtualmachine.SQLVirtualMachinesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method SQLVirtualMachinesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armsqlvirtualmachine.SQLVirtualMachinesClientListOptions) (resp azfake.PagerResponder[armsqlvirtualmachine.SQLVirtualMachinesClientListResponse])

	// NewListByResourceGroupPager is the fake for method SQLVirtualMachinesClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armsqlvirtualmachine.SQLVirtualMachinesClientListByResourceGroupOptions) (resp azfake.PagerResponder[armsqlvirtualmachine.SQLVirtualMachinesClientListByResourceGroupResponse])

	// NewListBySQLVMGroupPager is the fake for method SQLVirtualMachinesClient.NewListBySQLVMGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySQLVMGroupPager func(resourceGroupName string, sqlVirtualMachineGroupName string, options *armsqlvirtualmachine.SQLVirtualMachinesClientListBySQLVMGroupOptions) (resp azfake.PagerResponder[armsqlvirtualmachine.SQLVirtualMachinesClientListBySQLVMGroupResponse])

	// BeginRedeploy is the fake for method SQLVirtualMachinesClient.BeginRedeploy
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginRedeploy func(ctx context.Context, resourceGroupName string, sqlVirtualMachineName string, options *armsqlvirtualmachine.SQLVirtualMachinesClientBeginRedeployOptions) (resp azfake.PollerResponder[armsqlvirtualmachine.SQLVirtualMachinesClientRedeployResponse], errResp azfake.ErrorResponder)

	// BeginStartAssessment is the fake for method SQLVirtualMachinesClient.BeginStartAssessment
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginStartAssessment func(ctx context.Context, resourceGroupName string, sqlVirtualMachineName string, options *armsqlvirtualmachine.SQLVirtualMachinesClientBeginStartAssessmentOptions) (resp azfake.PollerResponder[armsqlvirtualmachine.SQLVirtualMachinesClientStartAssessmentResponse], errResp azfake.ErrorResponder)

	// BeginUpdate is the fake for method SQLVirtualMachinesClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK
	BeginUpdate func(ctx context.Context, resourceGroupName string, sqlVirtualMachineName string, parameters armsqlvirtualmachine.Update, options *armsqlvirtualmachine.SQLVirtualMachinesClientBeginUpdateOptions) (resp azfake.PollerResponder[armsqlvirtualmachine.SQLVirtualMachinesClientUpdateResponse], errResp azfake.ErrorResponder)
}

SQLVirtualMachinesServer is a fake server for instances of the armsqlvirtualmachine.SQLVirtualMachinesClient type.

type SQLVirtualMachinesServerTransport

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

SQLVirtualMachinesServerTransport connects instances of armsqlvirtualmachine.SQLVirtualMachinesClient to instances of SQLVirtualMachinesServer. Don't use this type directly, use NewSQLVirtualMachinesServerTransport instead.

func NewSQLVirtualMachinesServerTransport

func NewSQLVirtualMachinesServerTransport(srv *SQLVirtualMachinesServer) *SQLVirtualMachinesServerTransport

NewSQLVirtualMachinesServerTransport creates a new instance of SQLVirtualMachinesServerTransport with the provided implementation. The returned SQLVirtualMachinesServerTransport instance is connected to an instance of armsqlvirtualmachine.SQLVirtualMachinesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SQLVirtualMachinesServerTransport) Do

Do implements the policy.Transporter interface for SQLVirtualMachinesServerTransport.

type ServerFactory

type ServerFactory struct {
	AvailabilityGroupListenersServer AvailabilityGroupListenersServer
	GroupsServer                     GroupsServer
	OperationsServer                 OperationsServer
	SQLVirtualMachinesServer         SQLVirtualMachinesServer
	TroubleshootServer               TroubleshootServer
}

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

type ServerFactoryTransport

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

ServerFactoryTransport connects instances of armsqlvirtualmachine.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 armsqlvirtualmachine.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 TroubleshootServer

type TroubleshootServer struct {
	// BeginTroubleshoot is the fake for method TroubleshootClient.BeginTroubleshoot
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginTroubleshoot func(ctx context.Context, resourceGroupName string, sqlVirtualMachineName string, parameters armsqlvirtualmachine.SQLVMTroubleshooting, options *armsqlvirtualmachine.TroubleshootClientBeginTroubleshootOptions) (resp azfake.PollerResponder[armsqlvirtualmachine.TroubleshootClientTroubleshootResponse], errResp azfake.ErrorResponder)
}

TroubleshootServer is a fake server for instances of the armsqlvirtualmachine.TroubleshootClient type.

type TroubleshootServerTransport

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

TroubleshootServerTransport connects instances of armsqlvirtualmachine.TroubleshootClient to instances of TroubleshootServer. Don't use this type directly, use NewTroubleshootServerTransport instead.

func NewTroubleshootServerTransport

func NewTroubleshootServerTransport(srv *TroubleshootServer) *TroubleshootServerTransport

NewTroubleshootServerTransport creates a new instance of TroubleshootServerTransport with the provided implementation. The returned TroubleshootServerTransport instance is connected to an instance of armsqlvirtualmachine.TroubleshootClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*TroubleshootServerTransport) Do

Do implements the policy.Transporter interface for TroubleshootServerTransport.

Jump to

Keyboard shortcuts

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