fake

package
v2.1.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: 18 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 *armbillingbenefits.OperationsClientListOptions) (resp azfake.PagerResponder[armbillingbenefits.OperationsClientListResponse])
}

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armbillingbenefits.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 armbillingbenefits.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 RPServer

type RPServer struct {
	// ValidatePurchase is the fake for method RPClient.ValidatePurchase
	// HTTP status codes to indicate success: http.StatusOK
	ValidatePurchase func(ctx context.Context, body armbillingbenefits.SavingsPlanPurchaseValidateRequest, options *armbillingbenefits.RPClientValidatePurchaseOptions) (resp azfake.Responder[armbillingbenefits.RPClientValidatePurchaseResponse], errResp azfake.ErrorResponder)
}

RPServer is a fake server for instances of the armbillingbenefits.RPClient type.

type RPServerTransport

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

RPServerTransport connects instances of armbillingbenefits.RPClient to instances of RPServer. Don't use this type directly, use NewRPServerTransport instead.

func NewRPServerTransport

func NewRPServerTransport(srv *RPServer) *RPServerTransport

NewRPServerTransport creates a new instance of RPServerTransport with the provided implementation. The returned RPServerTransport instance is connected to an instance of armbillingbenefits.RPClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*RPServerTransport) Do

func (r *RPServerTransport) Do(req *http.Request) (*http.Response, error)

Do implements the policy.Transporter interface for RPServerTransport.

type ReservationOrderAliasServer

type ReservationOrderAliasServer struct {
	// BeginCreate is the fake for method ReservationOrderAliasClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, reservationOrderAliasName string, body armbillingbenefits.ReservationOrderAliasRequest, options *armbillingbenefits.ReservationOrderAliasClientBeginCreateOptions) (resp azfake.PollerResponder[armbillingbenefits.ReservationOrderAliasClientCreateResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ReservationOrderAliasClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, reservationOrderAliasName string, options *armbillingbenefits.ReservationOrderAliasClientGetOptions) (resp azfake.Responder[armbillingbenefits.ReservationOrderAliasClientGetResponse], errResp azfake.ErrorResponder)
}

ReservationOrderAliasServer is a fake server for instances of the armbillingbenefits.ReservationOrderAliasClient type.

type ReservationOrderAliasServerTransport

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

ReservationOrderAliasServerTransport connects instances of armbillingbenefits.ReservationOrderAliasClient to instances of ReservationOrderAliasServer. Don't use this type directly, use NewReservationOrderAliasServerTransport instead.

func NewReservationOrderAliasServerTransport

func NewReservationOrderAliasServerTransport(srv *ReservationOrderAliasServer) *ReservationOrderAliasServerTransport

NewReservationOrderAliasServerTransport creates a new instance of ReservationOrderAliasServerTransport with the provided implementation. The returned ReservationOrderAliasServerTransport instance is connected to an instance of armbillingbenefits.ReservationOrderAliasClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ReservationOrderAliasServerTransport) Do

Do implements the policy.Transporter interface for ReservationOrderAliasServerTransport.

type SavingsPlanOrderAliasServer

type SavingsPlanOrderAliasServer struct {
	// BeginCreate is the fake for method SavingsPlanOrderAliasClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, savingsPlanOrderAliasName string, body armbillingbenefits.SavingsPlanOrderAliasModel, options *armbillingbenefits.SavingsPlanOrderAliasClientBeginCreateOptions) (resp azfake.PollerResponder[armbillingbenefits.SavingsPlanOrderAliasClientCreateResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method SavingsPlanOrderAliasClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, savingsPlanOrderAliasName string, options *armbillingbenefits.SavingsPlanOrderAliasClientGetOptions) (resp azfake.Responder[armbillingbenefits.SavingsPlanOrderAliasClientGetResponse], errResp azfake.ErrorResponder)
}

SavingsPlanOrderAliasServer is a fake server for instances of the armbillingbenefits.SavingsPlanOrderAliasClient type.

type SavingsPlanOrderAliasServerTransport

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

SavingsPlanOrderAliasServerTransport connects instances of armbillingbenefits.SavingsPlanOrderAliasClient to instances of SavingsPlanOrderAliasServer. Don't use this type directly, use NewSavingsPlanOrderAliasServerTransport instead.

func NewSavingsPlanOrderAliasServerTransport

func NewSavingsPlanOrderAliasServerTransport(srv *SavingsPlanOrderAliasServer) *SavingsPlanOrderAliasServerTransport

NewSavingsPlanOrderAliasServerTransport creates a new instance of SavingsPlanOrderAliasServerTransport with the provided implementation. The returned SavingsPlanOrderAliasServerTransport instance is connected to an instance of armbillingbenefits.SavingsPlanOrderAliasClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SavingsPlanOrderAliasServerTransport) Do

Do implements the policy.Transporter interface for SavingsPlanOrderAliasServerTransport.

type SavingsPlanOrderServer

type SavingsPlanOrderServer struct {
	// Elevate is the fake for method SavingsPlanOrderClient.Elevate
	// HTTP status codes to indicate success: http.StatusOK
	Elevate func(ctx context.Context, savingsPlanOrderID string, options *armbillingbenefits.SavingsPlanOrderClientElevateOptions) (resp azfake.Responder[armbillingbenefits.SavingsPlanOrderClientElevateResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method SavingsPlanOrderClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, savingsPlanOrderID string, options *armbillingbenefits.SavingsPlanOrderClientGetOptions) (resp azfake.Responder[armbillingbenefits.SavingsPlanOrderClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method SavingsPlanOrderClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armbillingbenefits.SavingsPlanOrderClientListOptions) (resp azfake.PagerResponder[armbillingbenefits.SavingsPlanOrderClientListResponse])
}

SavingsPlanOrderServer is a fake server for instances of the armbillingbenefits.SavingsPlanOrderClient type.

type SavingsPlanOrderServerTransport

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

SavingsPlanOrderServerTransport connects instances of armbillingbenefits.SavingsPlanOrderClient to instances of SavingsPlanOrderServer. Don't use this type directly, use NewSavingsPlanOrderServerTransport instead.

func NewSavingsPlanOrderServerTransport

func NewSavingsPlanOrderServerTransport(srv *SavingsPlanOrderServer) *SavingsPlanOrderServerTransport

NewSavingsPlanOrderServerTransport creates a new instance of SavingsPlanOrderServerTransport with the provided implementation. The returned SavingsPlanOrderServerTransport instance is connected to an instance of armbillingbenefits.SavingsPlanOrderClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SavingsPlanOrderServerTransport) Do

Do implements the policy.Transporter interface for SavingsPlanOrderServerTransport.

type SavingsPlanServer

type SavingsPlanServer struct {
	// Get is the fake for method SavingsPlanClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, savingsPlanOrderID string, savingsPlanID string, options *armbillingbenefits.SavingsPlanClientGetOptions) (resp azfake.Responder[armbillingbenefits.SavingsPlanClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method SavingsPlanClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(savingsPlanOrderID string, options *armbillingbenefits.SavingsPlanClientListOptions) (resp azfake.PagerResponder[armbillingbenefits.SavingsPlanClientListResponse])

	// NewListAllPager is the fake for method SavingsPlanClient.NewListAllPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListAllPager func(options *armbillingbenefits.SavingsPlanClientListAllOptions) (resp azfake.PagerResponder[armbillingbenefits.SavingsPlanClientListAllResponse])

	// Update is the fake for method SavingsPlanClient.Update
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	Update func(ctx context.Context, savingsPlanOrderID string, savingsPlanID string, body armbillingbenefits.SavingsPlanUpdateRequest, options *armbillingbenefits.SavingsPlanClientUpdateOptions) (resp azfake.Responder[armbillingbenefits.SavingsPlanClientUpdateResponse], errResp azfake.ErrorResponder)

	// ValidateUpdate is the fake for method SavingsPlanClient.ValidateUpdate
	// HTTP status codes to indicate success: http.StatusOK
	ValidateUpdate func(ctx context.Context, savingsPlanOrderID string, savingsPlanID string, body armbillingbenefits.SavingsPlanUpdateValidateRequest, options *armbillingbenefits.SavingsPlanClientValidateUpdateOptions) (resp azfake.Responder[armbillingbenefits.SavingsPlanClientValidateUpdateResponse], errResp azfake.ErrorResponder)
}

SavingsPlanServer is a fake server for instances of the armbillingbenefits.SavingsPlanClient type.

type SavingsPlanServerTransport

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

SavingsPlanServerTransport connects instances of armbillingbenefits.SavingsPlanClient to instances of SavingsPlanServer. Don't use this type directly, use NewSavingsPlanServerTransport instead.

func NewSavingsPlanServerTransport

func NewSavingsPlanServerTransport(srv *SavingsPlanServer) *SavingsPlanServerTransport

NewSavingsPlanServerTransport creates a new instance of SavingsPlanServerTransport with the provided implementation. The returned SavingsPlanServerTransport instance is connected to an instance of armbillingbenefits.SavingsPlanClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SavingsPlanServerTransport) Do

Do implements the policy.Transporter interface for SavingsPlanServerTransport.

type ServerFactory

type ServerFactory struct {
	OperationsServer            OperationsServer
	RPServer                    RPServer
	ReservationOrderAliasServer ReservationOrderAliasServer
	SavingsPlanServer           SavingsPlanServer
	SavingsPlanOrderAliasServer SavingsPlanOrderAliasServer
	SavingsPlanOrderServer      SavingsPlanOrderServer
}

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

type ServerFactoryTransport

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

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