fake

package
v1.1.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 CommunicationsGatewaysServer

type CommunicationsGatewaysServer struct {
	// BeginCreateOrUpdate is the fake for method CommunicationsGatewaysClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, communicationsGatewayName string, resource armvoiceservices.CommunicationsGateway, options *armvoiceservices.CommunicationsGatewaysClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armvoiceservices.CommunicationsGatewaysClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method CommunicationsGatewaysClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, communicationsGatewayName string, options *armvoiceservices.CommunicationsGatewaysClientBeginDeleteOptions) (resp azfake.PollerResponder[armvoiceservices.CommunicationsGatewaysClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method CommunicationsGatewaysClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, communicationsGatewayName string, options *armvoiceservices.CommunicationsGatewaysClientGetOptions) (resp azfake.Responder[armvoiceservices.CommunicationsGatewaysClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method CommunicationsGatewaysClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armvoiceservices.CommunicationsGatewaysClientListByResourceGroupOptions) (resp azfake.PagerResponder[armvoiceservices.CommunicationsGatewaysClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method CommunicationsGatewaysClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armvoiceservices.CommunicationsGatewaysClientListBySubscriptionOptions) (resp azfake.PagerResponder[armvoiceservices.CommunicationsGatewaysClientListBySubscriptionResponse])

	// Update is the fake for method CommunicationsGatewaysClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, communicationsGatewayName string, properties armvoiceservices.CommunicationsGatewayUpdate, options *armvoiceservices.CommunicationsGatewaysClientUpdateOptions) (resp azfake.Responder[armvoiceservices.CommunicationsGatewaysClientUpdateResponse], errResp azfake.ErrorResponder)
}

CommunicationsGatewaysServer is a fake server for instances of the armvoiceservices.CommunicationsGatewaysClient type.

type CommunicationsGatewaysServerTransport

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

CommunicationsGatewaysServerTransport connects instances of armvoiceservices.CommunicationsGatewaysClient to instances of CommunicationsGatewaysServer. Don't use this type directly, use NewCommunicationsGatewaysServerTransport instead.

func NewCommunicationsGatewaysServerTransport

func NewCommunicationsGatewaysServerTransport(srv *CommunicationsGatewaysServer) *CommunicationsGatewaysServerTransport

NewCommunicationsGatewaysServerTransport creates a new instance of CommunicationsGatewaysServerTransport with the provided implementation. The returned CommunicationsGatewaysServerTransport instance is connected to an instance of armvoiceservices.CommunicationsGatewaysClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*CommunicationsGatewaysServerTransport) Do

Do implements the policy.Transporter interface for CommunicationsGatewaysServerTransport.

type NameAvailabilityServer

type NameAvailabilityServer struct {
	// CheckLocal is the fake for method NameAvailabilityClient.CheckLocal
	// HTTP status codes to indicate success: http.StatusOK
	CheckLocal func(ctx context.Context, location string, body armvoiceservices.CheckNameAvailabilityRequest, options *armvoiceservices.NameAvailabilityClientCheckLocalOptions) (resp azfake.Responder[armvoiceservices.NameAvailabilityClientCheckLocalResponse], errResp azfake.ErrorResponder)
}

NameAvailabilityServer is a fake server for instances of the armvoiceservices.NameAvailabilityClient type.

type NameAvailabilityServerTransport

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

NameAvailabilityServerTransport connects instances of armvoiceservices.NameAvailabilityClient to instances of NameAvailabilityServer. Don't use this type directly, use NewNameAvailabilityServerTransport instead.

func NewNameAvailabilityServerTransport

func NewNameAvailabilityServerTransport(srv *NameAvailabilityServer) *NameAvailabilityServerTransport

NewNameAvailabilityServerTransport creates a new instance of NameAvailabilityServerTransport with the provided implementation. The returned NameAvailabilityServerTransport instance is connected to an instance of armvoiceservices.NameAvailabilityClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*NameAvailabilityServerTransport) Do

Do implements the policy.Transporter interface for NameAvailabilityServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armvoiceservices.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 armvoiceservices.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 {
	CommunicationsGatewaysServer CommunicationsGatewaysServer
	NameAvailabilityServer       NameAvailabilityServer
	OperationsServer             OperationsServer
	TestLinesServer              TestLinesServer
}

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

type ServerFactoryTransport

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

ServerFactoryTransport connects instances of armvoiceservices.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 armvoiceservices.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 TestLinesServer

type TestLinesServer struct {
	// BeginCreateOrUpdate is the fake for method TestLinesClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, communicationsGatewayName string, testLineName string, resource armvoiceservices.TestLine, options *armvoiceservices.TestLinesClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armvoiceservices.TestLinesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method TestLinesClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, communicationsGatewayName string, testLineName string, options *armvoiceservices.TestLinesClientBeginDeleteOptions) (resp azfake.PollerResponder[armvoiceservices.TestLinesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method TestLinesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, communicationsGatewayName string, testLineName string, options *armvoiceservices.TestLinesClientGetOptions) (resp azfake.Responder[armvoiceservices.TestLinesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByCommunicationsGatewayPager is the fake for method TestLinesClient.NewListByCommunicationsGatewayPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByCommunicationsGatewayPager func(resourceGroupName string, communicationsGatewayName string, options *armvoiceservices.TestLinesClientListByCommunicationsGatewayOptions) (resp azfake.PagerResponder[armvoiceservices.TestLinesClientListByCommunicationsGatewayResponse])

	// Update is the fake for method TestLinesClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, communicationsGatewayName string, testLineName string, properties armvoiceservices.TestLineUpdate, options *armvoiceservices.TestLinesClientUpdateOptions) (resp azfake.Responder[armvoiceservices.TestLinesClientUpdateResponse], errResp azfake.ErrorResponder)
}

TestLinesServer is a fake server for instances of the armvoiceservices.TestLinesClient type.

type TestLinesServerTransport

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

TestLinesServerTransport connects instances of armvoiceservices.TestLinesClient to instances of TestLinesServer. Don't use this type directly, use NewTestLinesServerTransport instead.

func NewTestLinesServerTransport

func NewTestLinesServerTransport(srv *TestLinesServer) *TestLinesServerTransport

NewTestLinesServerTransport creates a new instance of TestLinesServerTransport with the provided implementation. The returned TestLinesServerTransport instance is connected to an instance of armvoiceservices.TestLinesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*TestLinesServerTransport) Do

Do implements the policy.Transporter interface for TestLinesServerTransport.

Jump to

Keyboard shortcuts

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