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 OperationsServer

type OperationsServer struct {
	// List is the fake for method OperationsClient.List
	// HTTP status codes to indicate success: http.StatusOK
	List func(ctx context.Context, options *armmarketplace.OperationsClientListOptions) (resp azfake.Responder[armmarketplace.OperationsClientListResponse], errResp azfake.ErrorResponder)
}

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armmarketplace.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 armmarketplace.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 PrivateStoreCollectionOfferServer

type PrivateStoreCollectionOfferServer struct {
	// CreateOrUpdate is the fake for method PrivateStoreCollectionOfferClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK
	CreateOrUpdate func(ctx context.Context, privateStoreID string, offerID string, collectionID string, options *armmarketplace.PrivateStoreCollectionOfferClientCreateOrUpdateOptions) (resp azfake.Responder[armmarketplace.PrivateStoreCollectionOfferClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method PrivateStoreCollectionOfferClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, privateStoreID string, offerID string, collectionID string, options *armmarketplace.PrivateStoreCollectionOfferClientDeleteOptions) (resp azfake.Responder[armmarketplace.PrivateStoreCollectionOfferClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method PrivateStoreCollectionOfferClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, privateStoreID string, offerID string, collectionID string, options *armmarketplace.PrivateStoreCollectionOfferClientGetOptions) (resp azfake.Responder[armmarketplace.PrivateStoreCollectionOfferClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method PrivateStoreCollectionOfferClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(privateStoreID string, collectionID string, options *armmarketplace.PrivateStoreCollectionOfferClientListOptions) (resp azfake.PagerResponder[armmarketplace.PrivateStoreCollectionOfferClientListResponse])

	// Post is the fake for method PrivateStoreCollectionOfferClient.Post
	// HTTP status codes to indicate success: http.StatusOK
	Post func(ctx context.Context, privateStoreID string, offerID string, collectionID string, options *armmarketplace.PrivateStoreCollectionOfferClientPostOptions) (resp azfake.Responder[armmarketplace.PrivateStoreCollectionOfferClientPostResponse], errResp azfake.ErrorResponder)
}

PrivateStoreCollectionOfferServer is a fake server for instances of the armmarketplace.PrivateStoreCollectionOfferClient type.

type PrivateStoreCollectionOfferServerTransport

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

PrivateStoreCollectionOfferServerTransport connects instances of armmarketplace.PrivateStoreCollectionOfferClient to instances of PrivateStoreCollectionOfferServer. Don't use this type directly, use NewPrivateStoreCollectionOfferServerTransport instead.

func NewPrivateStoreCollectionOfferServerTransport

func NewPrivateStoreCollectionOfferServerTransport(srv *PrivateStoreCollectionOfferServer) *PrivateStoreCollectionOfferServerTransport

NewPrivateStoreCollectionOfferServerTransport creates a new instance of PrivateStoreCollectionOfferServerTransport with the provided implementation. The returned PrivateStoreCollectionOfferServerTransport instance is connected to an instance of armmarketplace.PrivateStoreCollectionOfferClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*PrivateStoreCollectionOfferServerTransport) Do

Do implements the policy.Transporter interface for PrivateStoreCollectionOfferServerTransport.

type PrivateStoreCollectionServer

type PrivateStoreCollectionServer struct {
	// CreateOrUpdate is the fake for method PrivateStoreCollectionClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK
	CreateOrUpdate func(ctx context.Context, privateStoreID string, collectionID string, options *armmarketplace.PrivateStoreCollectionClientCreateOrUpdateOptions) (resp azfake.Responder[armmarketplace.PrivateStoreCollectionClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method PrivateStoreCollectionClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, privateStoreID string, collectionID string, options *armmarketplace.PrivateStoreCollectionClientDeleteOptions) (resp azfake.Responder[armmarketplace.PrivateStoreCollectionClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method PrivateStoreCollectionClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, privateStoreID string, collectionID string, options *armmarketplace.PrivateStoreCollectionClientGetOptions) (resp azfake.Responder[armmarketplace.PrivateStoreCollectionClientGetResponse], errResp azfake.ErrorResponder)

	// List is the fake for method PrivateStoreCollectionClient.List
	// HTTP status codes to indicate success: http.StatusOK
	List func(ctx context.Context, privateStoreID string, options *armmarketplace.PrivateStoreCollectionClientListOptions) (resp azfake.Responder[armmarketplace.PrivateStoreCollectionClientListResponse], errResp azfake.ErrorResponder)

	// Post is the fake for method PrivateStoreCollectionClient.Post
	// HTTP status codes to indicate success: http.StatusOK
	Post func(ctx context.Context, privateStoreID string, collectionID string, options *armmarketplace.PrivateStoreCollectionClientPostOptions) (resp azfake.Responder[armmarketplace.PrivateStoreCollectionClientPostResponse], errResp azfake.ErrorResponder)

	// TransferOffers is the fake for method PrivateStoreCollectionClient.TransferOffers
	// HTTP status codes to indicate success: http.StatusOK
	TransferOffers func(ctx context.Context, privateStoreID string, collectionID string, options *armmarketplace.PrivateStoreCollectionClientTransferOffersOptions) (resp azfake.Responder[armmarketplace.PrivateStoreCollectionClientTransferOffersResponse], errResp azfake.ErrorResponder)
}

PrivateStoreCollectionServer is a fake server for instances of the armmarketplace.PrivateStoreCollectionClient type.

type PrivateStoreCollectionServerTransport

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

PrivateStoreCollectionServerTransport connects instances of armmarketplace.PrivateStoreCollectionClient to instances of PrivateStoreCollectionServer. Don't use this type directly, use NewPrivateStoreCollectionServerTransport instead.

func NewPrivateStoreCollectionServerTransport

func NewPrivateStoreCollectionServerTransport(srv *PrivateStoreCollectionServer) *PrivateStoreCollectionServerTransport

NewPrivateStoreCollectionServerTransport creates a new instance of PrivateStoreCollectionServerTransport with the provided implementation. The returned PrivateStoreCollectionServerTransport instance is connected to an instance of armmarketplace.PrivateStoreCollectionClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*PrivateStoreCollectionServerTransport) Do

Do implements the policy.Transporter interface for PrivateStoreCollectionServerTransport.

type PrivateStoreServer

type PrivateStoreServer struct {
	// AcknowledgeOfferNotification is the fake for method PrivateStoreClient.AcknowledgeOfferNotification
	// HTTP status codes to indicate success: http.StatusOK
	AcknowledgeOfferNotification func(ctx context.Context, privateStoreID string, offerID string, options *armmarketplace.PrivateStoreClientAcknowledgeOfferNotificationOptions) (resp azfake.Responder[armmarketplace.PrivateStoreClientAcknowledgeOfferNotificationResponse], errResp azfake.ErrorResponder)

	// AdminRequestApprovalsList is the fake for method PrivateStoreClient.AdminRequestApprovalsList
	// HTTP status codes to indicate success: http.StatusOK
	AdminRequestApprovalsList func(ctx context.Context, privateStoreID string, options *armmarketplace.PrivateStoreClientAdminRequestApprovalsListOptions) (resp azfake.Responder[armmarketplace.PrivateStoreClientAdminRequestApprovalsListResponse], errResp azfake.ErrorResponder)

	// BillingAccounts is the fake for method PrivateStoreClient.BillingAccounts
	// HTTP status codes to indicate success: http.StatusOK
	BillingAccounts func(ctx context.Context, privateStoreID string, options *armmarketplace.PrivateStoreClientBillingAccountsOptions) (resp azfake.Responder[armmarketplace.PrivateStoreClientBillingAccountsResponse], errResp azfake.ErrorResponder)

	// BulkCollectionsAction is the fake for method PrivateStoreClient.BulkCollectionsAction
	// HTTP status codes to indicate success: http.StatusOK
	BulkCollectionsAction func(ctx context.Context, privateStoreID string, options *armmarketplace.PrivateStoreClientBulkCollectionsActionOptions) (resp azfake.Responder[armmarketplace.PrivateStoreClientBulkCollectionsActionResponse], errResp azfake.ErrorResponder)

	// CollectionsToSubscriptionsMapping is the fake for method PrivateStoreClient.CollectionsToSubscriptionsMapping
	// HTTP status codes to indicate success: http.StatusOK
	CollectionsToSubscriptionsMapping func(ctx context.Context, privateStoreID string, options *armmarketplace.PrivateStoreClientCollectionsToSubscriptionsMappingOptions) (resp azfake.Responder[armmarketplace.PrivateStoreClientCollectionsToSubscriptionsMappingResponse], errResp azfake.ErrorResponder)

	// CreateApprovalRequest is the fake for method PrivateStoreClient.CreateApprovalRequest
	// HTTP status codes to indicate success: http.StatusOK
	CreateApprovalRequest func(ctx context.Context, privateStoreID string, requestApprovalID string, options *armmarketplace.PrivateStoreClientCreateApprovalRequestOptions) (resp azfake.Responder[armmarketplace.PrivateStoreClientCreateApprovalRequestResponse], errResp azfake.ErrorResponder)

	// CreateOrUpdate is the fake for method PrivateStoreClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK
	CreateOrUpdate func(ctx context.Context, privateStoreID string, options *armmarketplace.PrivateStoreClientCreateOrUpdateOptions) (resp azfake.Responder[armmarketplace.PrivateStoreClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method PrivateStoreClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, privateStoreID string, options *armmarketplace.PrivateStoreClientDeleteOptions) (resp azfake.Responder[armmarketplace.PrivateStoreClientDeleteResponse], errResp azfake.ErrorResponder)

	// FetchAllSubscriptionsInTenant is the fake for method PrivateStoreClient.FetchAllSubscriptionsInTenant
	// HTTP status codes to indicate success: http.StatusOK
	FetchAllSubscriptionsInTenant func(ctx context.Context, privateStoreID string, options *armmarketplace.PrivateStoreClientFetchAllSubscriptionsInTenantOptions) (resp azfake.Responder[armmarketplace.PrivateStoreClientFetchAllSubscriptionsInTenantResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method PrivateStoreClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, privateStoreID string, options *armmarketplace.PrivateStoreClientGetOptions) (resp azfake.Responder[armmarketplace.PrivateStoreClientGetResponse], errResp azfake.ErrorResponder)

	// GetAdminRequestApproval is the fake for method PrivateStoreClient.GetAdminRequestApproval
	// HTTP status codes to indicate success: http.StatusOK
	GetAdminRequestApproval func(ctx context.Context, privateStoreID string, adminRequestApprovalID string, publisherID string, options *armmarketplace.PrivateStoreClientGetAdminRequestApprovalOptions) (resp azfake.Responder[armmarketplace.PrivateStoreClientGetAdminRequestApprovalResponse], errResp azfake.ErrorResponder)

	// GetApprovalRequestsList is the fake for method PrivateStoreClient.GetApprovalRequestsList
	// HTTP status codes to indicate success: http.StatusOK
	GetApprovalRequestsList func(ctx context.Context, privateStoreID string, options *armmarketplace.PrivateStoreClientGetApprovalRequestsListOptions) (resp azfake.Responder[armmarketplace.PrivateStoreClientGetApprovalRequestsListResponse], errResp azfake.ErrorResponder)

	// GetRequestApproval is the fake for method PrivateStoreClient.GetRequestApproval
	// HTTP status codes to indicate success: http.StatusOK
	GetRequestApproval func(ctx context.Context, privateStoreID string, requestApprovalID string, options *armmarketplace.PrivateStoreClientGetRequestApprovalOptions) (resp azfake.Responder[armmarketplace.PrivateStoreClientGetRequestApprovalResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method PrivateStoreClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armmarketplace.PrivateStoreClientListOptions) (resp azfake.PagerResponder[armmarketplace.PrivateStoreClientListResponse])

	// ListNewPlansNotifications is the fake for method PrivateStoreClient.ListNewPlansNotifications
	// HTTP status codes to indicate success: http.StatusOK
	ListNewPlansNotifications func(ctx context.Context, privateStoreID string, options *armmarketplace.PrivateStoreClientListNewPlansNotificationsOptions) (resp azfake.Responder[armmarketplace.PrivateStoreClientListNewPlansNotificationsResponse], errResp azfake.ErrorResponder)

	// ListStopSellOffersPlansNotifications is the fake for method PrivateStoreClient.ListStopSellOffersPlansNotifications
	// HTTP status codes to indicate success: http.StatusOK
	ListStopSellOffersPlansNotifications func(ctx context.Context, privateStoreID string, options *armmarketplace.PrivateStoreClientListStopSellOffersPlansNotificationsOptions) (resp azfake.Responder[armmarketplace.PrivateStoreClientListStopSellOffersPlansNotificationsResponse], errResp azfake.ErrorResponder)

	// ListSubscriptionsContext is the fake for method PrivateStoreClient.ListSubscriptionsContext
	// HTTP status codes to indicate success: http.StatusOK
	ListSubscriptionsContext func(ctx context.Context, privateStoreID string, options *armmarketplace.PrivateStoreClientListSubscriptionsContextOptions) (resp azfake.Responder[armmarketplace.PrivateStoreClientListSubscriptionsContextResponse], errResp azfake.ErrorResponder)

	// QueryApprovedPlans is the fake for method PrivateStoreClient.QueryApprovedPlans
	// HTTP status codes to indicate success: http.StatusOK
	QueryApprovedPlans func(ctx context.Context, privateStoreID string, options *armmarketplace.PrivateStoreClientQueryApprovedPlansOptions) (resp azfake.Responder[armmarketplace.PrivateStoreClientQueryApprovedPlansResponse], errResp azfake.ErrorResponder)

	// QueryNotificationsState is the fake for method PrivateStoreClient.QueryNotificationsState
	// HTTP status codes to indicate success: http.StatusOK
	QueryNotificationsState func(ctx context.Context, privateStoreID string, options *armmarketplace.PrivateStoreClientQueryNotificationsStateOptions) (resp azfake.Responder[armmarketplace.PrivateStoreClientQueryNotificationsStateResponse], errResp azfake.ErrorResponder)

	// QueryOffers is the fake for method PrivateStoreClient.QueryOffers
	// HTTP status codes to indicate success: http.StatusOK
	QueryOffers func(ctx context.Context, privateStoreID string, options *armmarketplace.PrivateStoreClientQueryOffersOptions) (resp azfake.Responder[armmarketplace.PrivateStoreClientQueryOffersResponse], errResp azfake.ErrorResponder)

	// QueryRequestApproval is the fake for method PrivateStoreClient.QueryRequestApproval
	// HTTP status codes to indicate success: http.StatusOK
	QueryRequestApproval func(ctx context.Context, privateStoreID string, requestApprovalID string, options *armmarketplace.PrivateStoreClientQueryRequestApprovalOptions) (resp azfake.Responder[armmarketplace.PrivateStoreClientQueryRequestApprovalResponse], errResp azfake.ErrorResponder)

	// UpdateAdminRequestApproval is the fake for method PrivateStoreClient.UpdateAdminRequestApproval
	// HTTP status codes to indicate success: http.StatusOK
	UpdateAdminRequestApproval func(ctx context.Context, privateStoreID string, adminRequestApprovalID string, options *armmarketplace.PrivateStoreClientUpdateAdminRequestApprovalOptions) (resp azfake.Responder[armmarketplace.PrivateStoreClientUpdateAdminRequestApprovalResponse], errResp azfake.ErrorResponder)

	// WithdrawPlan is the fake for method PrivateStoreClient.WithdrawPlan
	// HTTP status codes to indicate success: http.StatusOK
	WithdrawPlan func(ctx context.Context, privateStoreID string, requestApprovalID string, options *armmarketplace.PrivateStoreClientWithdrawPlanOptions) (resp azfake.Responder[armmarketplace.PrivateStoreClientWithdrawPlanResponse], errResp azfake.ErrorResponder)
}

PrivateStoreServer is a fake server for instances of the armmarketplace.PrivateStoreClient type.

type PrivateStoreServerTransport

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

PrivateStoreServerTransport connects instances of armmarketplace.PrivateStoreClient to instances of PrivateStoreServer. Don't use this type directly, use NewPrivateStoreServerTransport instead.

func NewPrivateStoreServerTransport

func NewPrivateStoreServerTransport(srv *PrivateStoreServer) *PrivateStoreServerTransport

NewPrivateStoreServerTransport creates a new instance of PrivateStoreServerTransport with the provided implementation. The returned PrivateStoreServerTransport instance is connected to an instance of armmarketplace.PrivateStoreClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*PrivateStoreServerTransport) Do

Do implements the policy.Transporter interface for PrivateStoreServerTransport.

type ServerFactory

type ServerFactory struct {
	OperationsServer                  OperationsServer
	PrivateStoreServer                PrivateStoreServer
	PrivateStoreCollectionServer      PrivateStoreCollectionServer
	PrivateStoreCollectionOfferServer PrivateStoreCollectionOfferServer
}

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

type ServerFactoryTransport

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

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