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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationDefinitionsServer

type ApplicationDefinitionsServer struct {
	// BeginCreateOrUpdate is the fake for method ApplicationDefinitionsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, applicationDefinitionName string, parameters armmanagedapplications.ApplicationDefinition, options *armmanagedapplications.ApplicationDefinitionsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armmanagedapplications.ApplicationDefinitionsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginCreateOrUpdateByID is the fake for method ApplicationDefinitionsClient.BeginCreateOrUpdateByID
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdateByID func(ctx context.Context, resourceGroupName string, applicationDefinitionName string, parameters armmanagedapplications.ApplicationDefinition, options *armmanagedapplications.ApplicationDefinitionsClientBeginCreateOrUpdateByIDOptions) (resp azfake.PollerResponder[armmanagedapplications.ApplicationDefinitionsClientCreateOrUpdateByIDResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method ApplicationDefinitionsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, applicationDefinitionName string, options *armmanagedapplications.ApplicationDefinitionsClientBeginDeleteOptions) (resp azfake.PollerResponder[armmanagedapplications.ApplicationDefinitionsClientDeleteResponse], errResp azfake.ErrorResponder)

	// BeginDeleteByID is the fake for method ApplicationDefinitionsClient.BeginDeleteByID
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDeleteByID func(ctx context.Context, resourceGroupName string, applicationDefinitionName string, options *armmanagedapplications.ApplicationDefinitionsClientBeginDeleteByIDOptions) (resp azfake.PollerResponder[armmanagedapplications.ApplicationDefinitionsClientDeleteByIDResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ApplicationDefinitionsClient.Get
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNotFound
	Get func(ctx context.Context, resourceGroupName string, applicationDefinitionName string, options *armmanagedapplications.ApplicationDefinitionsClientGetOptions) (resp azfake.Responder[armmanagedapplications.ApplicationDefinitionsClientGetResponse], errResp azfake.ErrorResponder)

	// GetByID is the fake for method ApplicationDefinitionsClient.GetByID
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNotFound
	GetByID func(ctx context.Context, resourceGroupName string, applicationDefinitionName string, options *armmanagedapplications.ApplicationDefinitionsClientGetByIDOptions) (resp azfake.Responder[armmanagedapplications.ApplicationDefinitionsClientGetByIDResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method ApplicationDefinitionsClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armmanagedapplications.ApplicationDefinitionsClientListByResourceGroupOptions) (resp azfake.PagerResponder[armmanagedapplications.ApplicationDefinitionsClientListByResourceGroupResponse])
}

ApplicationDefinitionsServer is a fake server for instances of the armmanagedapplications.ApplicationDefinitionsClient type.

type ApplicationDefinitionsServerTransport

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

ApplicationDefinitionsServerTransport connects instances of armmanagedapplications.ApplicationDefinitionsClient to instances of ApplicationDefinitionsServer. Don't use this type directly, use NewApplicationDefinitionsServerTransport instead.

func NewApplicationDefinitionsServerTransport

func NewApplicationDefinitionsServerTransport(srv *ApplicationDefinitionsServer) *ApplicationDefinitionsServerTransport

NewApplicationDefinitionsServerTransport creates a new instance of ApplicationDefinitionsServerTransport with the provided implementation. The returned ApplicationDefinitionsServerTransport instance is connected to an instance of armmanagedapplications.ApplicationDefinitionsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ApplicationDefinitionsServerTransport) Do

Do implements the policy.Transporter interface for ApplicationDefinitionsServerTransport.

type ApplicationServer

type ApplicationServer struct {
	// NewListOperationsPager is the fake for method ApplicationClient.NewListOperationsPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListOperationsPager func(options *armmanagedapplications.ApplicationClientListOperationsOptions) (resp azfake.PagerResponder[armmanagedapplications.ApplicationClientListOperationsResponse])
}

ApplicationServer is a fake server for instances of the armmanagedapplications.ApplicationClient type.

type ApplicationServerTransport

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

ApplicationServerTransport connects instances of armmanagedapplications.ApplicationClient to instances of ApplicationServer. Don't use this type directly, use NewApplicationServerTransport instead.

func NewApplicationServerTransport

func NewApplicationServerTransport(srv *ApplicationServer) *ApplicationServerTransport

NewApplicationServerTransport creates a new instance of ApplicationServerTransport with the provided implementation. The returned ApplicationServerTransport instance is connected to an instance of armmanagedapplications.ApplicationClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ApplicationServerTransport) Do

Do implements the policy.Transporter interface for ApplicationServerTransport.

type ApplicationsServer

type ApplicationsServer struct {
	// BeginCreateOrUpdate is the fake for method ApplicationsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, applicationName string, parameters armmanagedapplications.Application, options *armmanagedapplications.ApplicationsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armmanagedapplications.ApplicationsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginCreateOrUpdateByID is the fake for method ApplicationsClient.BeginCreateOrUpdateByID
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdateByID func(ctx context.Context, applicationID string, parameters armmanagedapplications.Application, options *armmanagedapplications.ApplicationsClientBeginCreateOrUpdateByIDOptions) (resp azfake.PollerResponder[armmanagedapplications.ApplicationsClientCreateOrUpdateByIDResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method ApplicationsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, applicationName string, options *armmanagedapplications.ApplicationsClientBeginDeleteOptions) (resp azfake.PollerResponder[armmanagedapplications.ApplicationsClientDeleteResponse], errResp azfake.ErrorResponder)

	// BeginDeleteByID is the fake for method ApplicationsClient.BeginDeleteByID
	// HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent
	BeginDeleteByID func(ctx context.Context, applicationID string, options *armmanagedapplications.ApplicationsClientBeginDeleteByIDOptions) (resp azfake.PollerResponder[armmanagedapplications.ApplicationsClientDeleteByIDResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ApplicationsClient.Get
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNotFound
	Get func(ctx context.Context, resourceGroupName string, applicationName string, options *armmanagedapplications.ApplicationsClientGetOptions) (resp azfake.Responder[armmanagedapplications.ApplicationsClientGetResponse], errResp azfake.ErrorResponder)

	// GetByID is the fake for method ApplicationsClient.GetByID
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNotFound
	GetByID func(ctx context.Context, applicationID string, options *armmanagedapplications.ApplicationsClientGetByIDOptions) (resp azfake.Responder[armmanagedapplications.ApplicationsClientGetByIDResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method ApplicationsClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armmanagedapplications.ApplicationsClientListByResourceGroupOptions) (resp azfake.PagerResponder[armmanagedapplications.ApplicationsClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method ApplicationsClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armmanagedapplications.ApplicationsClientListBySubscriptionOptions) (resp azfake.PagerResponder[armmanagedapplications.ApplicationsClientListBySubscriptionResponse])

	// Update is the fake for method ApplicationsClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, applicationName string, options *armmanagedapplications.ApplicationsClientUpdateOptions) (resp azfake.Responder[armmanagedapplications.ApplicationsClientUpdateResponse], errResp azfake.ErrorResponder)

	// UpdateByID is the fake for method ApplicationsClient.UpdateByID
	// HTTP status codes to indicate success: http.StatusOK
	UpdateByID func(ctx context.Context, applicationID string, options *armmanagedapplications.ApplicationsClientUpdateByIDOptions) (resp azfake.Responder[armmanagedapplications.ApplicationsClientUpdateByIDResponse], errResp azfake.ErrorResponder)
}

ApplicationsServer is a fake server for instances of the armmanagedapplications.ApplicationsClient type.

type ApplicationsServerTransport

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

ApplicationsServerTransport connects instances of armmanagedapplications.ApplicationsClient to instances of ApplicationsServer. Don't use this type directly, use NewApplicationsServerTransport instead.

func NewApplicationsServerTransport

func NewApplicationsServerTransport(srv *ApplicationsServer) *ApplicationsServerTransport

NewApplicationsServerTransport creates a new instance of ApplicationsServerTransport with the provided implementation. The returned ApplicationsServerTransport instance is connected to an instance of armmanagedapplications.ApplicationsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ApplicationsServerTransport) Do

Do implements the policy.Transporter interface for ApplicationsServerTransport.

type ServerFactory

type ServerFactory struct {
	ApplicationServer            ApplicationServer
	ApplicationDefinitionsServer ApplicationDefinitionsServer
	ApplicationsServer           ApplicationsServer
}

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

type ServerFactoryTransport

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

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