fake

package
v1.2.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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armanalysisservices.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 armanalysisservices.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 ServerFactory

type ServerFactory struct {
	OperationsServer OperationsServer
	ServersServer    ServersServer
}

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

type ServerFactoryTransport

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

ServerFactoryTransport connects instances of armanalysisservices.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 armanalysisservices.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 ServersServer

type ServersServer struct {
	// CheckNameAvailability is the fake for method ServersClient.CheckNameAvailability
	// HTTP status codes to indicate success: http.StatusOK
	CheckNameAvailability func(ctx context.Context, location string, serverParameters armanalysisservices.CheckServerNameAvailabilityParameters, options *armanalysisservices.ServersClientCheckNameAvailabilityOptions) (resp azfake.Responder[armanalysisservices.ServersClientCheckNameAvailabilityResponse], errResp azfake.ErrorResponder)

	// BeginCreate is the fake for method ServersClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated, http.StatusAccepted
	BeginCreate func(ctx context.Context, resourceGroupName string, serverName string, serverParameters armanalysisservices.Server, options *armanalysisservices.ServersClientBeginCreateOptions) (resp azfake.PollerResponder[armanalysisservices.ServersClientCreateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method ServersClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, serverName string, options *armanalysisservices.ServersClientBeginDeleteOptions) (resp azfake.PollerResponder[armanalysisservices.ServersClientDeleteResponse], errResp azfake.ErrorResponder)

	// DissociateGateway is the fake for method ServersClient.DissociateGateway
	// HTTP status codes to indicate success: http.StatusOK
	DissociateGateway func(ctx context.Context, resourceGroupName string, serverName string, options *armanalysisservices.ServersClientDissociateGatewayOptions) (resp azfake.Responder[armanalysisservices.ServersClientDissociateGatewayResponse], errResp azfake.ErrorResponder)

	// GetDetails is the fake for method ServersClient.GetDetails
	// HTTP status codes to indicate success: http.StatusOK
	GetDetails func(ctx context.Context, resourceGroupName string, serverName string, options *armanalysisservices.ServersClientGetDetailsOptions) (resp azfake.Responder[armanalysisservices.ServersClientGetDetailsResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method ServersClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armanalysisservices.ServersClientListOptions) (resp azfake.PagerResponder[armanalysisservices.ServersClientListResponse])

	// NewListByResourceGroupPager is the fake for method ServersClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armanalysisservices.ServersClientListByResourceGroupOptions) (resp azfake.PagerResponder[armanalysisservices.ServersClientListByResourceGroupResponse])

	// ListGatewayStatus is the fake for method ServersClient.ListGatewayStatus
	// HTTP status codes to indicate success: http.StatusOK
	ListGatewayStatus func(ctx context.Context, resourceGroupName string, serverName string, options *armanalysisservices.ServersClientListGatewayStatusOptions) (resp azfake.Responder[armanalysisservices.ServersClientListGatewayStatusResponse], errResp azfake.ErrorResponder)

	// ListOperationResults is the fake for method ServersClient.ListOperationResults
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	ListOperationResults func(ctx context.Context, location string, operationID string, options *armanalysisservices.ServersClientListOperationResultsOptions) (resp azfake.Responder[armanalysisservices.ServersClientListOperationResultsResponse], errResp azfake.ErrorResponder)

	// ListOperationStatuses is the fake for method ServersClient.ListOperationStatuses
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	ListOperationStatuses func(ctx context.Context, location string, operationID string, options *armanalysisservices.ServersClientListOperationStatusesOptions) (resp azfake.Responder[armanalysisservices.ServersClientListOperationStatusesResponse], errResp azfake.ErrorResponder)

	// ListSKUsForExisting is the fake for method ServersClient.ListSKUsForExisting
	// HTTP status codes to indicate success: http.StatusOK
	ListSKUsForExisting func(ctx context.Context, resourceGroupName string, serverName string, options *armanalysisservices.ServersClientListSKUsForExistingOptions) (resp azfake.Responder[armanalysisservices.ServersClientListSKUsForExistingResponse], errResp azfake.ErrorResponder)

	// ListSKUsForNew is the fake for method ServersClient.ListSKUsForNew
	// HTTP status codes to indicate success: http.StatusOK
	ListSKUsForNew func(ctx context.Context, options *armanalysisservices.ServersClientListSKUsForNewOptions) (resp azfake.Responder[armanalysisservices.ServersClientListSKUsForNewResponse], errResp azfake.ErrorResponder)

	// BeginResume is the fake for method ServersClient.BeginResume
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginResume func(ctx context.Context, resourceGroupName string, serverName string, options *armanalysisservices.ServersClientBeginResumeOptions) (resp azfake.PollerResponder[armanalysisservices.ServersClientResumeResponse], errResp azfake.ErrorResponder)

	// BeginSuspend is the fake for method ServersClient.BeginSuspend
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginSuspend func(ctx context.Context, resourceGroupName string, serverName string, options *armanalysisservices.ServersClientBeginSuspendOptions) (resp azfake.PollerResponder[armanalysisservices.ServersClientSuspendResponse], errResp azfake.ErrorResponder)

	// BeginUpdate is the fake for method ServersClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceGroupName string, serverName string, serverUpdateParameters armanalysisservices.ServerUpdateParameters, options *armanalysisservices.ServersClientBeginUpdateOptions) (resp azfake.PollerResponder[armanalysisservices.ServersClientUpdateResponse], errResp azfake.ErrorResponder)
}

ServersServer is a fake server for instances of the armanalysisservices.ServersClient type.

type ServersServerTransport

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

ServersServerTransport connects instances of armanalysisservices.ServersClient to instances of ServersServer. Don't use this type directly, use NewServersServerTransport instead.

func NewServersServerTransport

func NewServersServerTransport(srv *ServersServer) *ServersServerTransport

NewServersServerTransport creates a new instance of ServersServerTransport with the provided implementation. The returned ServersServerTransport instance is connected to an instance of armanalysisservices.ServersClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ServersServerTransport) Do

Do implements the policy.Transporter interface for ServersServerTransport.

Jump to

Keyboard shortcuts

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