fake

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 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 DomainsServer

type DomainsServer struct {
	// BeginCancelVerification is the fake for method DomainsClient.BeginCancelVerification
	// HTTP status codes to indicate success: http.StatusAccepted
	BeginCancelVerification func(ctx context.Context, resourceGroupName string, emailServiceName string, domainName string, parameters armcommunication.VerificationParameter, options *armcommunication.DomainsClientBeginCancelVerificationOptions) (resp azfake.PollerResponder[armcommunication.DomainsClientCancelVerificationResponse], errResp azfake.ErrorResponder)

	// BeginCreateOrUpdate is the fake for method DomainsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, emailServiceName string, domainName string, parameters armcommunication.DomainResource, options *armcommunication.DomainsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armcommunication.DomainsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method DomainsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, emailServiceName string, domainName string, options *armcommunication.DomainsClientBeginDeleteOptions) (resp azfake.PollerResponder[armcommunication.DomainsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method DomainsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, emailServiceName string, domainName string, options *armcommunication.DomainsClientGetOptions) (resp azfake.Responder[armcommunication.DomainsClientGetResponse], errResp azfake.ErrorResponder)

	// BeginInitiateVerification is the fake for method DomainsClient.BeginInitiateVerification
	// HTTP status codes to indicate success: http.StatusAccepted
	BeginInitiateVerification func(ctx context.Context, resourceGroupName string, emailServiceName string, domainName string, parameters armcommunication.VerificationParameter, options *armcommunication.DomainsClientBeginInitiateVerificationOptions) (resp azfake.PollerResponder[armcommunication.DomainsClientInitiateVerificationResponse], errResp azfake.ErrorResponder)

	// NewListByEmailServiceResourcePager is the fake for method DomainsClient.NewListByEmailServiceResourcePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByEmailServiceResourcePager func(resourceGroupName string, emailServiceName string, options *armcommunication.DomainsClientListByEmailServiceResourceOptions) (resp azfake.PagerResponder[armcommunication.DomainsClientListByEmailServiceResourceResponse])

	// BeginUpdate is the fake for method DomainsClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginUpdate func(ctx context.Context, resourceGroupName string, emailServiceName string, domainName string, parameters armcommunication.UpdateDomainRequestParameters, options *armcommunication.DomainsClientBeginUpdateOptions) (resp azfake.PollerResponder[armcommunication.DomainsClientUpdateResponse], errResp azfake.ErrorResponder)
}

DomainsServer is a fake server for instances of the armcommunication.DomainsClient type.

type DomainsServerTransport

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

DomainsServerTransport connects instances of armcommunication.DomainsClient to instances of DomainsServer. Don't use this type directly, use NewDomainsServerTransport instead.

func NewDomainsServerTransport

func NewDomainsServerTransport(srv *DomainsServer) *DomainsServerTransport

NewDomainsServerTransport creates a new instance of DomainsServerTransport with the provided implementation. The returned DomainsServerTransport instance is connected to an instance of armcommunication.DomainsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*DomainsServerTransport) Do

Do implements the policy.Transporter interface for DomainsServerTransport.

type EmailServicesServer

type EmailServicesServer struct {
	// BeginCreateOrUpdate is the fake for method EmailServicesClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, emailServiceName string, parameters armcommunication.EmailServiceResource, options *armcommunication.EmailServicesClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armcommunication.EmailServicesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method EmailServicesClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, emailServiceName string, options *armcommunication.EmailServicesClientBeginDeleteOptions) (resp azfake.PollerResponder[armcommunication.EmailServicesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method EmailServicesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, emailServiceName string, options *armcommunication.EmailServicesClientGetOptions) (resp azfake.Responder[armcommunication.EmailServicesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method EmailServicesClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armcommunication.EmailServicesClientListByResourceGroupOptions) (resp azfake.PagerResponder[armcommunication.EmailServicesClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method EmailServicesClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armcommunication.EmailServicesClientListBySubscriptionOptions) (resp azfake.PagerResponder[armcommunication.EmailServicesClientListBySubscriptionResponse])

	// ListVerifiedExchangeOnlineDomains is the fake for method EmailServicesClient.ListVerifiedExchangeOnlineDomains
	// HTTP status codes to indicate success: http.StatusOK
	ListVerifiedExchangeOnlineDomains func(ctx context.Context, options *armcommunication.EmailServicesClientListVerifiedExchangeOnlineDomainsOptions) (resp azfake.Responder[armcommunication.EmailServicesClientListVerifiedExchangeOnlineDomainsResponse], errResp azfake.ErrorResponder)

	// BeginUpdate is the fake for method EmailServicesClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginUpdate func(ctx context.Context, resourceGroupName string, emailServiceName string, parameters armcommunication.EmailServiceResourceUpdate, options *armcommunication.EmailServicesClientBeginUpdateOptions) (resp azfake.PollerResponder[armcommunication.EmailServicesClientUpdateResponse], errResp azfake.ErrorResponder)
}

EmailServicesServer is a fake server for instances of the armcommunication.EmailServicesClient type.

type EmailServicesServerTransport

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

EmailServicesServerTransport connects instances of armcommunication.EmailServicesClient to instances of EmailServicesServer. Don't use this type directly, use NewEmailServicesServerTransport instead.

func NewEmailServicesServerTransport

func NewEmailServicesServerTransport(srv *EmailServicesServer) *EmailServicesServerTransport

NewEmailServicesServerTransport creates a new instance of EmailServicesServerTransport with the provided implementation. The returned EmailServicesServerTransport instance is connected to an instance of armcommunication.EmailServicesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*EmailServicesServerTransport) Do

Do implements the policy.Transporter interface for EmailServicesServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armcommunication.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 armcommunication.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 SenderUsernamesServer

type SenderUsernamesServer struct {
	// CreateOrUpdate is the fake for method SenderUsernamesClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, emailServiceName string, domainName string, senderUsername string, parameters armcommunication.SenderUsernameResource, options *armcommunication.SenderUsernamesClientCreateOrUpdateOptions) (resp azfake.Responder[armcommunication.SenderUsernamesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method SenderUsernamesClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, emailServiceName string, domainName string, senderUsername string, options *armcommunication.SenderUsernamesClientDeleteOptions) (resp azfake.Responder[armcommunication.SenderUsernamesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method SenderUsernamesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, emailServiceName string, domainName string, senderUsername string, options *armcommunication.SenderUsernamesClientGetOptions) (resp azfake.Responder[armcommunication.SenderUsernamesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByDomainsPager is the fake for method SenderUsernamesClient.NewListByDomainsPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByDomainsPager func(resourceGroupName string, emailServiceName string, domainName string, options *armcommunication.SenderUsernamesClientListByDomainsOptions) (resp azfake.PagerResponder[armcommunication.SenderUsernamesClientListByDomainsResponse])
}

SenderUsernamesServer is a fake server for instances of the armcommunication.SenderUsernamesClient type.

type SenderUsernamesServerTransport

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

SenderUsernamesServerTransport connects instances of armcommunication.SenderUsernamesClient to instances of SenderUsernamesServer. Don't use this type directly, use NewSenderUsernamesServerTransport instead.

func NewSenderUsernamesServerTransport

func NewSenderUsernamesServerTransport(srv *SenderUsernamesServer) *SenderUsernamesServerTransport

NewSenderUsernamesServerTransport creates a new instance of SenderUsernamesServerTransport with the provided implementation. The returned SenderUsernamesServerTransport instance is connected to an instance of armcommunication.SenderUsernamesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SenderUsernamesServerTransport) Do

Do implements the policy.Transporter interface for SenderUsernamesServerTransport.

type ServerFactory

type ServerFactory struct {
	DomainsServer         DomainsServer
	EmailServicesServer   EmailServicesServer
	OperationsServer      OperationsServer
	SenderUsernamesServer SenderUsernamesServer
	ServicesServer        ServicesServer
}

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

type ServerFactoryTransport

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

ServerFactoryTransport connects instances of armcommunication.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 armcommunication.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 ServicesServer

type ServicesServer struct {
	// CheckNameAvailability is the fake for method ServicesClient.CheckNameAvailability
	// HTTP status codes to indicate success: http.StatusOK
	CheckNameAvailability func(ctx context.Context, nameAvailabilityParameters armcommunication.NameAvailabilityParameters, options *armcommunication.ServicesClientCheckNameAvailabilityOptions) (resp azfake.Responder[armcommunication.ServicesClientCheckNameAvailabilityResponse], errResp azfake.ErrorResponder)

	// BeginCreateOrUpdate is the fake for method ServicesClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, communicationServiceName string, parameters armcommunication.ServiceResource, options *armcommunication.ServicesClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armcommunication.ServicesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method ServicesClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, communicationServiceName string, options *armcommunication.ServicesClientBeginDeleteOptions) (resp azfake.PollerResponder[armcommunication.ServicesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ServicesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, communicationServiceName string, options *armcommunication.ServicesClientGetOptions) (resp azfake.Responder[armcommunication.ServicesClientGetResponse], errResp azfake.ErrorResponder)

	// LinkNotificationHub is the fake for method ServicesClient.LinkNotificationHub
	// HTTP status codes to indicate success: http.StatusOK
	LinkNotificationHub func(ctx context.Context, resourceGroupName string, communicationServiceName string, options *armcommunication.ServicesClientLinkNotificationHubOptions) (resp azfake.Responder[armcommunication.ServicesClientLinkNotificationHubResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method ServicesClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armcommunication.ServicesClientListByResourceGroupOptions) (resp azfake.PagerResponder[armcommunication.ServicesClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method ServicesClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armcommunication.ServicesClientListBySubscriptionOptions) (resp azfake.PagerResponder[armcommunication.ServicesClientListBySubscriptionResponse])

	// ListKeys is the fake for method ServicesClient.ListKeys
	// HTTP status codes to indicate success: http.StatusOK
	ListKeys func(ctx context.Context, resourceGroupName string, communicationServiceName string, options *armcommunication.ServicesClientListKeysOptions) (resp azfake.Responder[armcommunication.ServicesClientListKeysResponse], errResp azfake.ErrorResponder)

	// RegenerateKey is the fake for method ServicesClient.RegenerateKey
	// HTTP status codes to indicate success: http.StatusOK
	RegenerateKey func(ctx context.Context, resourceGroupName string, communicationServiceName string, parameters armcommunication.RegenerateKeyParameters, options *armcommunication.ServicesClientRegenerateKeyOptions) (resp azfake.Responder[armcommunication.ServicesClientRegenerateKeyResponse], errResp azfake.ErrorResponder)

	// Update is the fake for method ServicesClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, communicationServiceName string, parameters armcommunication.ServiceResourceUpdate, options *armcommunication.ServicesClientUpdateOptions) (resp azfake.Responder[armcommunication.ServicesClientUpdateResponse], errResp azfake.ErrorResponder)
}

ServicesServer is a fake server for instances of the armcommunication.ServicesClient type.

type ServicesServerTransport

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

ServicesServerTransport connects instances of armcommunication.ServicesClient to instances of ServicesServer. Don't use this type directly, use NewServicesServerTransport instead.

func NewServicesServerTransport

func NewServicesServerTransport(srv *ServicesServer) *ServicesServerTransport

NewServicesServerTransport creates a new instance of ServicesServerTransport with the provided implementation. The returned ServicesServerTransport instance is connected to an instance of armcommunication.ServicesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ServicesServerTransport) Do

Do implements the policy.Transporter interface for ServicesServerTransport.

Jump to

Keyboard shortcuts

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