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 ApplicationDefinitionsServer

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

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

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

	// DeleteByID is the fake for method ApplicationDefinitionsClient.DeleteByID
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	DeleteByID func(ctx context.Context, resourceGroupName string, applicationDefinitionName string, options *armmanagedapplications.ApplicationDefinitionsClientDeleteByIDOptions) (resp azfake.Responder[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])

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

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

	// UpdateByID is the fake for method ApplicationDefinitionsClient.UpdateByID
	// HTTP status codes to indicate success: http.StatusOK
	UpdateByID func(ctx context.Context, resourceGroupName string, applicationDefinitionName string, parameters armmanagedapplications.ApplicationDefinitionPatchable, options *armmanagedapplications.ApplicationDefinitionsClientUpdateByIDOptions) (resp azfake.Responder[armmanagedapplications.ApplicationDefinitionsClientUpdateByIDResponse], errResp azfake.ErrorResponder)
}

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.StatusOK, 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.StatusOK, 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)

	// ListAllowedUpgradePlans is the fake for method ApplicationsClient.ListAllowedUpgradePlans
	// HTTP status codes to indicate success: http.StatusOK
	ListAllowedUpgradePlans func(ctx context.Context, resourceGroupName string, applicationName string, options *armmanagedapplications.ApplicationsClientListAllowedUpgradePlansOptions) (resp azfake.Responder[armmanagedapplications.ApplicationsClientListAllowedUpgradePlansResponse], 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])

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

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

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

	// BeginUpdateAccess is the fake for method ApplicationsClient.BeginUpdateAccess
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdateAccess func(ctx context.Context, resourceGroupName string, applicationName string, parameters armmanagedapplications.UpdateAccessDefinition, options *armmanagedapplications.ApplicationsClientBeginUpdateAccessOptions) (resp azfake.PollerResponder[armmanagedapplications.ApplicationsClientUpdateAccessResponse], errResp azfake.ErrorResponder)

	// BeginUpdateByID is the fake for method ApplicationsClient.BeginUpdateByID
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdateByID func(ctx context.Context, applicationID string, options *armmanagedapplications.ApplicationsClientBeginUpdateByIDOptions) (resp azfake.PollerResponder[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 JitRequestsServer

type JitRequestsServer struct {
	// BeginCreateOrUpdate is the fake for method JitRequestsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, jitRequestName string, parameters armmanagedapplications.JitRequestDefinition, options *armmanagedapplications.JitRequestsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armmanagedapplications.JitRequestsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method JitRequestsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, jitRequestName string, options *armmanagedapplications.JitRequestsClientDeleteOptions) (resp azfake.Responder[armmanagedapplications.JitRequestsClientDeleteResponse], errResp azfake.ErrorResponder)

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

	// ListByResourceGroup is the fake for method JitRequestsClient.ListByResourceGroup
	// HTTP status codes to indicate success: http.StatusOK
	ListByResourceGroup func(ctx context.Context, resourceGroupName string, options *armmanagedapplications.JitRequestsClientListByResourceGroupOptions) (resp azfake.Responder[armmanagedapplications.JitRequestsClientListByResourceGroupResponse], errResp azfake.ErrorResponder)

	// ListBySubscription is the fake for method JitRequestsClient.ListBySubscription
	// HTTP status codes to indicate success: http.StatusOK
	ListBySubscription func(ctx context.Context, options *armmanagedapplications.JitRequestsClientListBySubscriptionOptions) (resp azfake.Responder[armmanagedapplications.JitRequestsClientListBySubscriptionResponse], errResp azfake.ErrorResponder)

	// Update is the fake for method JitRequestsClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, jitRequestName string, parameters armmanagedapplications.JitRequestPatchable, options *armmanagedapplications.JitRequestsClientUpdateOptions) (resp azfake.Responder[armmanagedapplications.JitRequestsClientUpdateResponse], errResp azfake.ErrorResponder)
}

JitRequestsServer is a fake server for instances of the armmanagedapplications.JitRequestsClient type.

type JitRequestsServerTransport

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

JitRequestsServerTransport connects instances of armmanagedapplications.JitRequestsClient to instances of JitRequestsServer. Don't use this type directly, use NewJitRequestsServerTransport instead.

func NewJitRequestsServerTransport

func NewJitRequestsServerTransport(srv *JitRequestsServer) *JitRequestsServerTransport

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

func (*JitRequestsServerTransport) Do

Do implements the policy.Transporter interface for JitRequestsServerTransport.

type ServerFactory

type ServerFactory struct {
	ApplicationServer            ApplicationServer
	ApplicationDefinitionsServer ApplicationDefinitionsServer
	ApplicationsServer           ApplicationsServer
	JitRequestsServer            JitRequestsServer
}

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