fake

package
v1.2.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 AccountsServer

type AccountsServer struct {
	// AddRootCollectionAdmin is the fake for method AccountsClient.AddRootCollectionAdmin
	// HTTP status codes to indicate success: http.StatusOK
	AddRootCollectionAdmin func(ctx context.Context, resourceGroupName string, accountName string, collectionAdminUpdate armpurview.CollectionAdminUpdate, options *armpurview.AccountsClientAddRootCollectionAdminOptions) (resp azfake.Responder[armpurview.AccountsClientAddRootCollectionAdminResponse], errResp azfake.ErrorResponder)

	// CheckNameAvailability is the fake for method AccountsClient.CheckNameAvailability
	// HTTP status codes to indicate success: http.StatusOK
	CheckNameAvailability func(ctx context.Context, checkNameAvailabilityRequest armpurview.CheckNameAvailabilityRequest, options *armpurview.AccountsClientCheckNameAvailabilityOptions) (resp azfake.Responder[armpurview.AccountsClientCheckNameAvailabilityResponse], errResp azfake.ErrorResponder)

	// BeginCreateOrUpdate is the fake for method AccountsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, accountName string, account armpurview.Account, options *armpurview.AccountsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armpurview.AccountsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method AccountsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, accountName string, options *armpurview.AccountsClientBeginDeleteOptions) (resp azfake.PollerResponder[armpurview.AccountsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method AccountsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, accountName string, options *armpurview.AccountsClientGetOptions) (resp azfake.Responder[armpurview.AccountsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method AccountsClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armpurview.AccountsClientListByResourceGroupOptions) (resp azfake.PagerResponder[armpurview.AccountsClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method AccountsClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armpurview.AccountsClientListBySubscriptionOptions) (resp azfake.PagerResponder[armpurview.AccountsClientListBySubscriptionResponse])

	// ListKeys is the fake for method AccountsClient.ListKeys
	// HTTP status codes to indicate success: http.StatusOK
	ListKeys func(ctx context.Context, resourceGroupName string, accountName string, options *armpurview.AccountsClientListKeysOptions) (resp azfake.Responder[armpurview.AccountsClientListKeysResponse], errResp azfake.ErrorResponder)

	// BeginUpdate is the fake for method AccountsClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceGroupName string, accountName string, accountUpdateParameters armpurview.AccountUpdateParameters, options *armpurview.AccountsClientBeginUpdateOptions) (resp azfake.PollerResponder[armpurview.AccountsClientUpdateResponse], errResp azfake.ErrorResponder)
}

AccountsServer is a fake server for instances of the armpurview.AccountsClient type.

type AccountsServerTransport

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

AccountsServerTransport connects instances of armpurview.AccountsClient to instances of AccountsServer. Don't use this type directly, use NewAccountsServerTransport instead.

func NewAccountsServerTransport

func NewAccountsServerTransport(srv *AccountsServer) *AccountsServerTransport

NewAccountsServerTransport creates a new instance of AccountsServerTransport with the provided implementation. The returned AccountsServerTransport instance is connected to an instance of armpurview.AccountsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*AccountsServerTransport) Do

Do implements the policy.Transporter interface for AccountsServerTransport.

type DefaultAccountsServer

type DefaultAccountsServer struct {
	// Get is the fake for method DefaultAccountsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, scopeTenantID string, scopeType armpurview.ScopeType, options *armpurview.DefaultAccountsClientGetOptions) (resp azfake.Responder[armpurview.DefaultAccountsClientGetResponse], errResp azfake.ErrorResponder)

	// Remove is the fake for method DefaultAccountsClient.Remove
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Remove func(ctx context.Context, scopeTenantID string, scopeType armpurview.ScopeType, options *armpurview.DefaultAccountsClientRemoveOptions) (resp azfake.Responder[armpurview.DefaultAccountsClientRemoveResponse], errResp azfake.ErrorResponder)

	// Set is the fake for method DefaultAccountsClient.Set
	// HTTP status codes to indicate success: http.StatusOK
	Set func(ctx context.Context, defaultAccountPayload armpurview.DefaultAccountPayload, options *armpurview.DefaultAccountsClientSetOptions) (resp azfake.Responder[armpurview.DefaultAccountsClientSetResponse], errResp azfake.ErrorResponder)
}

DefaultAccountsServer is a fake server for instances of the armpurview.DefaultAccountsClient type.

type DefaultAccountsServerTransport

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

DefaultAccountsServerTransport connects instances of armpurview.DefaultAccountsClient to instances of DefaultAccountsServer. Don't use this type directly, use NewDefaultAccountsServerTransport instead.

func NewDefaultAccountsServerTransport

func NewDefaultAccountsServerTransport(srv *DefaultAccountsServer) *DefaultAccountsServerTransport

NewDefaultAccountsServerTransport creates a new instance of DefaultAccountsServerTransport with the provided implementation. The returned DefaultAccountsServerTransport instance is connected to an instance of armpurview.DefaultAccountsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*DefaultAccountsServerTransport) Do

Do implements the policy.Transporter interface for DefaultAccountsServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armpurview.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 armpurview.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 PrivateEndpointConnectionsServer

type PrivateEndpointConnectionsServer struct {
	// BeginCreateOrUpdate is the fake for method PrivateEndpointConnectionsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string, request armpurview.PrivateEndpointConnection, options *armpurview.PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armpurview.PrivateEndpointConnectionsClientCreateOrUpdateResponse], 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, accountName string, privateEndpointConnectionName string, options *armpurview.PrivateEndpointConnectionsClientBeginDeleteOptions) (resp azfake.PollerResponder[armpurview.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, accountName string, privateEndpointConnectionName string, options *armpurview.PrivateEndpointConnectionsClientGetOptions) (resp azfake.Responder[armpurview.PrivateEndpointConnectionsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByAccountPager is the fake for method PrivateEndpointConnectionsClient.NewListByAccountPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByAccountPager func(resourceGroupName string, accountName string, options *armpurview.PrivateEndpointConnectionsClientListByAccountOptions) (resp azfake.PagerResponder[armpurview.PrivateEndpointConnectionsClientListByAccountResponse])
}

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

type PrivateEndpointConnectionsServerTransport

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

PrivateEndpointConnectionsServerTransport connects instances of armpurview.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 armpurview.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 {
	// GetByGroupID is the fake for method PrivateLinkResourcesClient.GetByGroupID
	// HTTP status codes to indicate success: http.StatusOK
	GetByGroupID func(ctx context.Context, resourceGroupName string, accountName string, groupID string, options *armpurview.PrivateLinkResourcesClientGetByGroupIDOptions) (resp azfake.Responder[armpurview.PrivateLinkResourcesClientGetByGroupIDResponse], errResp azfake.ErrorResponder)

	// NewListByAccountPager is the fake for method PrivateLinkResourcesClient.NewListByAccountPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByAccountPager func(resourceGroupName string, accountName string, options *armpurview.PrivateLinkResourcesClientListByAccountOptions) (resp azfake.PagerResponder[armpurview.PrivateLinkResourcesClientListByAccountResponse])
}

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

type PrivateLinkResourcesServerTransport

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

PrivateLinkResourcesServerTransport connects instances of armpurview.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 armpurview.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 {
	AccountsServer                   AccountsServer
	DefaultAccountsServer            DefaultAccountsServer
	OperationsServer                 OperationsServer
	PrivateEndpointConnectionsServer PrivateEndpointConnectionsServer
	PrivateLinkResourcesServer       PrivateLinkResourcesServer
}

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

type ServerFactoryTransport

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

ServerFactoryTransport connects instances of armpurview.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 armpurview.ClientFactory via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ServerFactoryTransport) Do

Do implements the policy.Transporter interface for ServerFactoryTransport.

Jump to

Keyboard shortcuts

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