fake

package
v2.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 OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armpowerbiprivatelinks.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 armpowerbiprivatelinks.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 PowerBIResourcesServer

type PowerBIResourcesServer struct {
	// Create is the fake for method PowerBIResourcesClient.Create
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	Create func(ctx context.Context, resourceGroupName string, azureResourceName string, body armpowerbiprivatelinks.TenantResource, options *armpowerbiprivatelinks.PowerBIResourcesClientCreateOptions) (resp azfake.Responder[armpowerbiprivatelinks.PowerBIResourcesClientCreateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method PowerBIResourcesClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, azureResourceName string, options *armpowerbiprivatelinks.PowerBIResourcesClientDeleteOptions) (resp azfake.Responder[armpowerbiprivatelinks.PowerBIResourcesClientDeleteResponse], errResp azfake.ErrorResponder)

	// ListByResourceName is the fake for method PowerBIResourcesClient.ListByResourceName
	// HTTP status codes to indicate success: http.StatusOK
	ListByResourceName func(ctx context.Context, resourceGroupName string, azureResourceName string, options *armpowerbiprivatelinks.PowerBIResourcesClientListByResourceNameOptions) (resp azfake.Responder[armpowerbiprivatelinks.PowerBIResourcesClientListByResourceNameResponse], errResp azfake.ErrorResponder)

	// Update is the fake for method PowerBIResourcesClient.Update
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	Update func(ctx context.Context, resourceGroupName string, azureResourceName string, body armpowerbiprivatelinks.TenantResource, options *armpowerbiprivatelinks.PowerBIResourcesClientUpdateOptions) (resp azfake.Responder[armpowerbiprivatelinks.PowerBIResourcesClientUpdateResponse], errResp azfake.ErrorResponder)
}

PowerBIResourcesServer is a fake server for instances of the armpowerbiprivatelinks.PowerBIResourcesClient type.

type PowerBIResourcesServerTransport

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

PowerBIResourcesServerTransport connects instances of armpowerbiprivatelinks.PowerBIResourcesClient to instances of PowerBIResourcesServer. Don't use this type directly, use NewPowerBIResourcesServerTransport instead.

func NewPowerBIResourcesServerTransport

func NewPowerBIResourcesServerTransport(srv *PowerBIResourcesServer) *PowerBIResourcesServerTransport

NewPowerBIResourcesServerTransport creates a new instance of PowerBIResourcesServerTransport with the provided implementation. The returned PowerBIResourcesServerTransport instance is connected to an instance of armpowerbiprivatelinks.PowerBIResourcesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*PowerBIResourcesServerTransport) Do

Do implements the policy.Transporter interface for PowerBIResourcesServerTransport.

type PrivateEndpointConnectionsServer

type PrivateEndpointConnectionsServer struct {
	// Create is the fake for method PrivateEndpointConnectionsClient.Create
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	Create func(ctx context.Context, resourceGroupName string, azureResourceName string, privateEndpointName string, privateEndpointConnection armpowerbiprivatelinks.PrivateEndpointConnection, options *armpowerbiprivatelinks.PrivateEndpointConnectionsClientCreateOptions) (resp azfake.Responder[armpowerbiprivatelinks.PrivateEndpointConnectionsClientCreateResponse], 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, azureResourceName string, privateEndpointName string, options *armpowerbiprivatelinks.PrivateEndpointConnectionsClientBeginDeleteOptions) (resp azfake.PollerResponder[armpowerbiprivatelinks.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, azureResourceName string, privateEndpointName string, options *armpowerbiprivatelinks.PrivateEndpointConnectionsClientGetOptions) (resp azfake.Responder[armpowerbiprivatelinks.PrivateEndpointConnectionsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourcePager is the fake for method PrivateEndpointConnectionsClient.NewListByResourcePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourcePager func(resourceGroupName string, azureResourceName string, options *armpowerbiprivatelinks.PrivateEndpointConnectionsClientListByResourceOptions) (resp azfake.PagerResponder[armpowerbiprivatelinks.PrivateEndpointConnectionsClientListByResourceResponse])
}

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

type PrivateEndpointConnectionsServerTransport

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

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

	// NewListByResourcePager is the fake for method PrivateLinkResourcesClient.NewListByResourcePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourcePager func(resourceGroupName string, azureResourceName string, options *armpowerbiprivatelinks.PrivateLinkResourcesClientListByResourceOptions) (resp azfake.PagerResponder[armpowerbiprivatelinks.PrivateLinkResourcesClientListByResourceResponse])
}

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

type PrivateLinkResourcesServerTransport

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

PrivateLinkResourcesServerTransport connects instances of armpowerbiprivatelinks.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 armpowerbiprivatelinks.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 PrivateLinkServiceResourceOperationResultsServer

type PrivateLinkServiceResourceOperationResultsServer struct {
	// BeginGet is the fake for method PrivateLinkServiceResourceOperationResultsClient.BeginGet
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginGet func(ctx context.Context, operationID string, options *armpowerbiprivatelinks.PrivateLinkServiceResourceOperationResultsClientBeginGetOptions) (resp azfake.PollerResponder[armpowerbiprivatelinks.PrivateLinkServiceResourceOperationResultsClientGetResponse], errResp azfake.ErrorResponder)
}

PrivateLinkServiceResourceOperationResultsServer is a fake server for instances of the armpowerbiprivatelinks.PrivateLinkServiceResourceOperationResultsClient type.

type PrivateLinkServiceResourceOperationResultsServerTransport

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

PrivateLinkServiceResourceOperationResultsServerTransport connects instances of armpowerbiprivatelinks.PrivateLinkServiceResourceOperationResultsClient to instances of PrivateLinkServiceResourceOperationResultsServer. Don't use this type directly, use NewPrivateLinkServiceResourceOperationResultsServerTransport instead.

func NewPrivateLinkServiceResourceOperationResultsServerTransport

func NewPrivateLinkServiceResourceOperationResultsServerTransport(srv *PrivateLinkServiceResourceOperationResultsServer) *PrivateLinkServiceResourceOperationResultsServerTransport

NewPrivateLinkServiceResourceOperationResultsServerTransport creates a new instance of PrivateLinkServiceResourceOperationResultsServerTransport with the provided implementation. The returned PrivateLinkServiceResourceOperationResultsServerTransport instance is connected to an instance of armpowerbiprivatelinks.PrivateLinkServiceResourceOperationResultsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*PrivateLinkServiceResourceOperationResultsServerTransport) Do

Do implements the policy.Transporter interface for PrivateLinkServiceResourceOperationResultsServerTransport.

type PrivateLinkServicesForPowerBIServer

type PrivateLinkServicesForPowerBIServer struct {
	// ListBySubscriptionID is the fake for method PrivateLinkServicesForPowerBIClient.ListBySubscriptionID
	// HTTP status codes to indicate success: http.StatusOK
	ListBySubscriptionID func(ctx context.Context, options *armpowerbiprivatelinks.PrivateLinkServicesForPowerBIClientListBySubscriptionIDOptions) (resp azfake.Responder[armpowerbiprivatelinks.PrivateLinkServicesForPowerBIClientListBySubscriptionIDResponse], errResp azfake.ErrorResponder)
}

PrivateLinkServicesForPowerBIServer is a fake server for instances of the armpowerbiprivatelinks.PrivateLinkServicesForPowerBIClient type.

type PrivateLinkServicesForPowerBIServerTransport

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

PrivateLinkServicesForPowerBIServerTransport connects instances of armpowerbiprivatelinks.PrivateLinkServicesForPowerBIClient to instances of PrivateLinkServicesForPowerBIServer. Don't use this type directly, use NewPrivateLinkServicesForPowerBIServerTransport instead.

func NewPrivateLinkServicesForPowerBIServerTransport

func NewPrivateLinkServicesForPowerBIServerTransport(srv *PrivateLinkServicesForPowerBIServer) *PrivateLinkServicesForPowerBIServerTransport

NewPrivateLinkServicesForPowerBIServerTransport creates a new instance of PrivateLinkServicesForPowerBIServerTransport with the provided implementation. The returned PrivateLinkServicesForPowerBIServerTransport instance is connected to an instance of armpowerbiprivatelinks.PrivateLinkServicesForPowerBIClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*PrivateLinkServicesForPowerBIServerTransport) Do

Do implements the policy.Transporter interface for PrivateLinkServicesForPowerBIServerTransport.

type PrivateLinkServicesServer

type PrivateLinkServicesServer struct {
	// ListByResourceGroup is the fake for method PrivateLinkServicesClient.ListByResourceGroup
	// HTTP status codes to indicate success: http.StatusOK
	ListByResourceGroup func(ctx context.Context, resourceGroupName string, options *armpowerbiprivatelinks.PrivateLinkServicesClientListByResourceGroupOptions) (resp azfake.Responder[armpowerbiprivatelinks.PrivateLinkServicesClientListByResourceGroupResponse], errResp azfake.ErrorResponder)
}

PrivateLinkServicesServer is a fake server for instances of the armpowerbiprivatelinks.PrivateLinkServicesClient type.

type PrivateLinkServicesServerTransport

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

PrivateLinkServicesServerTransport connects instances of armpowerbiprivatelinks.PrivateLinkServicesClient to instances of PrivateLinkServicesServer. Don't use this type directly, use NewPrivateLinkServicesServerTransport instead.

func NewPrivateLinkServicesServerTransport

func NewPrivateLinkServicesServerTransport(srv *PrivateLinkServicesServer) *PrivateLinkServicesServerTransport

NewPrivateLinkServicesServerTransport creates a new instance of PrivateLinkServicesServerTransport with the provided implementation. The returned PrivateLinkServicesServerTransport instance is connected to an instance of armpowerbiprivatelinks.PrivateLinkServicesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*PrivateLinkServicesServerTransport) Do

Do implements the policy.Transporter interface for PrivateLinkServicesServerTransport.

type ServerFactory

type ServerFactory struct {
	OperationsServer                                 OperationsServer
	PowerBIResourcesServer                           PowerBIResourcesServer
	PrivateEndpointConnectionsServer                 PrivateEndpointConnectionsServer
	PrivateLinkResourcesServer                       PrivateLinkResourcesServer
	PrivateLinkServiceResourceOperationResultsServer PrivateLinkServiceResourceOperationResultsServer
	PrivateLinkServicesServer                        PrivateLinkServicesServer
	PrivateLinkServicesForPowerBIServer              PrivateLinkServicesForPowerBIServer
}

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

type ServerFactoryTransport

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

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