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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssignmentReportsServer

type AssignmentReportsServer struct {
	// Get is the fake for method AssignmentReportsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, guestConfigurationAssignmentName string, reportID string, vmName string, options *armguestconfiguration.AssignmentReportsClientGetOptions) (resp azfake.Responder[armguestconfiguration.AssignmentReportsClientGetResponse], errResp azfake.ErrorResponder)

	// List is the fake for method AssignmentReportsClient.List
	// HTTP status codes to indicate success: http.StatusOK
	List func(ctx context.Context, resourceGroupName string, guestConfigurationAssignmentName string, vmName string, options *armguestconfiguration.AssignmentReportsClientListOptions) (resp azfake.Responder[armguestconfiguration.AssignmentReportsClientListResponse], errResp azfake.ErrorResponder)
}

AssignmentReportsServer is a fake server for instances of the armguestconfiguration.AssignmentReportsClient type.

type AssignmentReportsServerTransport

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

AssignmentReportsServerTransport connects instances of armguestconfiguration.AssignmentReportsClient to instances of AssignmentReportsServer. Don't use this type directly, use NewAssignmentReportsServerTransport instead.

func NewAssignmentReportsServerTransport

func NewAssignmentReportsServerTransport(srv *AssignmentReportsServer) *AssignmentReportsServerTransport

NewAssignmentReportsServerTransport creates a new instance of AssignmentReportsServerTransport with the provided implementation. The returned AssignmentReportsServerTransport instance is connected to an instance of armguestconfiguration.AssignmentReportsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*AssignmentReportsServerTransport) Do

Do implements the policy.Transporter interface for AssignmentReportsServerTransport.

type AssignmentReportsVMSSServer

type AssignmentReportsVMSSServer struct {
	// Get is the fake for method AssignmentReportsVMSSClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, vmssName string, name string, id string, options *armguestconfiguration.AssignmentReportsVMSSClientGetOptions) (resp azfake.Responder[armguestconfiguration.AssignmentReportsVMSSClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method AssignmentReportsVMSSClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, vmssName string, name string, options *armguestconfiguration.AssignmentReportsVMSSClientListOptions) (resp azfake.PagerResponder[armguestconfiguration.AssignmentReportsVMSSClientListResponse])
}

AssignmentReportsVMSSServer is a fake server for instances of the armguestconfiguration.AssignmentReportsVMSSClient type.

type AssignmentReportsVMSSServerTransport

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

AssignmentReportsVMSSServerTransport connects instances of armguestconfiguration.AssignmentReportsVMSSClient to instances of AssignmentReportsVMSSServer. Don't use this type directly, use NewAssignmentReportsVMSSServerTransport instead.

func NewAssignmentReportsVMSSServerTransport

func NewAssignmentReportsVMSSServerTransport(srv *AssignmentReportsVMSSServer) *AssignmentReportsVMSSServerTransport

NewAssignmentReportsVMSSServerTransport creates a new instance of AssignmentReportsVMSSServerTransport with the provided implementation. The returned AssignmentReportsVMSSServerTransport instance is connected to an instance of armguestconfiguration.AssignmentReportsVMSSClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*AssignmentReportsVMSSServerTransport) Do

Do implements the policy.Transporter interface for AssignmentReportsVMSSServerTransport.

type AssignmentsServer

type AssignmentsServer struct {
	// CreateOrUpdate is the fake for method AssignmentsClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	CreateOrUpdate func(ctx context.Context, guestConfigurationAssignmentName string, resourceGroupName string, vmName string, parameters armguestconfiguration.Assignment, options *armguestconfiguration.AssignmentsClientCreateOrUpdateOptions) (resp azfake.Responder[armguestconfiguration.AssignmentsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method AssignmentsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK
	Delete func(ctx context.Context, resourceGroupName string, guestConfigurationAssignmentName string, vmName string, options *armguestconfiguration.AssignmentsClientDeleteOptions) (resp azfake.Responder[armguestconfiguration.AssignmentsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method AssignmentsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, guestConfigurationAssignmentName string, vmName string, options *armguestconfiguration.AssignmentsClientGetOptions) (resp azfake.Responder[armguestconfiguration.AssignmentsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method AssignmentsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, vmName string, options *armguestconfiguration.AssignmentsClientListOptions) (resp azfake.PagerResponder[armguestconfiguration.AssignmentsClientListResponse])

	// NewRGListPager is the fake for method AssignmentsClient.NewRGListPager
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	NewRGListPager func(resourceGroupName string, options *armguestconfiguration.AssignmentsClientRGListOptions) (resp azfake.PagerResponder[armguestconfiguration.AssignmentsClientRGListResponse])

	// NewSubscriptionListPager is the fake for method AssignmentsClient.NewSubscriptionListPager
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	NewSubscriptionListPager func(options *armguestconfiguration.AssignmentsClientSubscriptionListOptions) (resp azfake.PagerResponder[armguestconfiguration.AssignmentsClientSubscriptionListResponse])
}

AssignmentsServer is a fake server for instances of the armguestconfiguration.AssignmentsClient type.

type AssignmentsServerTransport

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

AssignmentsServerTransport connects instances of armguestconfiguration.AssignmentsClient to instances of AssignmentsServer. Don't use this type directly, use NewAssignmentsServerTransport instead.

func NewAssignmentsServerTransport

func NewAssignmentsServerTransport(srv *AssignmentsServer) *AssignmentsServerTransport

NewAssignmentsServerTransport creates a new instance of AssignmentsServerTransport with the provided implementation. The returned AssignmentsServerTransport instance is connected to an instance of armguestconfiguration.AssignmentsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*AssignmentsServerTransport) Do

Do implements the policy.Transporter interface for AssignmentsServerTransport.

type AssignmentsVMSSServer

type AssignmentsVMSSServer struct {
	// Delete is the fake for method AssignmentsVMSSClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, vmssName string, name string, options *armguestconfiguration.AssignmentsVMSSClientDeleteOptions) (resp azfake.Responder[armguestconfiguration.AssignmentsVMSSClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method AssignmentsVMSSClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, vmssName string, name string, options *armguestconfiguration.AssignmentsVMSSClientGetOptions) (resp azfake.Responder[armguestconfiguration.AssignmentsVMSSClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method AssignmentsVMSSClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, vmssName string, options *armguestconfiguration.AssignmentsVMSSClientListOptions) (resp azfake.PagerResponder[armguestconfiguration.AssignmentsVMSSClientListResponse])
}

AssignmentsVMSSServer is a fake server for instances of the armguestconfiguration.AssignmentsVMSSClient type.

type AssignmentsVMSSServerTransport

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

AssignmentsVMSSServerTransport connects instances of armguestconfiguration.AssignmentsVMSSClient to instances of AssignmentsVMSSServer. Don't use this type directly, use NewAssignmentsVMSSServerTransport instead.

func NewAssignmentsVMSSServerTransport

func NewAssignmentsVMSSServerTransport(srv *AssignmentsVMSSServer) *AssignmentsVMSSServerTransport

NewAssignmentsVMSSServerTransport creates a new instance of AssignmentsVMSSServerTransport with the provided implementation. The returned AssignmentsVMSSServerTransport instance is connected to an instance of armguestconfiguration.AssignmentsVMSSClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*AssignmentsVMSSServerTransport) Do

Do implements the policy.Transporter interface for AssignmentsVMSSServerTransport.

type HCRPAssignmentReportsServer

type HCRPAssignmentReportsServer struct {
	// Get is the fake for method HCRPAssignmentReportsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, guestConfigurationAssignmentName string, reportID string, machineName string, options *armguestconfiguration.HCRPAssignmentReportsClientGetOptions) (resp azfake.Responder[armguestconfiguration.HCRPAssignmentReportsClientGetResponse], errResp azfake.ErrorResponder)

	// List is the fake for method HCRPAssignmentReportsClient.List
	// HTTP status codes to indicate success: http.StatusOK
	List func(ctx context.Context, resourceGroupName string, guestConfigurationAssignmentName string, machineName string, options *armguestconfiguration.HCRPAssignmentReportsClientListOptions) (resp azfake.Responder[armguestconfiguration.HCRPAssignmentReportsClientListResponse], errResp azfake.ErrorResponder)
}

HCRPAssignmentReportsServer is a fake server for instances of the armguestconfiguration.HCRPAssignmentReportsClient type.

type HCRPAssignmentReportsServerTransport

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

HCRPAssignmentReportsServerTransport connects instances of armguestconfiguration.HCRPAssignmentReportsClient to instances of HCRPAssignmentReportsServer. Don't use this type directly, use NewHCRPAssignmentReportsServerTransport instead.

func NewHCRPAssignmentReportsServerTransport

func NewHCRPAssignmentReportsServerTransport(srv *HCRPAssignmentReportsServer) *HCRPAssignmentReportsServerTransport

NewHCRPAssignmentReportsServerTransport creates a new instance of HCRPAssignmentReportsServerTransport with the provided implementation. The returned HCRPAssignmentReportsServerTransport instance is connected to an instance of armguestconfiguration.HCRPAssignmentReportsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*HCRPAssignmentReportsServerTransport) Do

Do implements the policy.Transporter interface for HCRPAssignmentReportsServerTransport.

type HCRPAssignmentsServer

type HCRPAssignmentsServer struct {
	// CreateOrUpdate is the fake for method HCRPAssignmentsClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	CreateOrUpdate func(ctx context.Context, guestConfigurationAssignmentName string, resourceGroupName string, machineName string, parameters armguestconfiguration.Assignment, options *armguestconfiguration.HCRPAssignmentsClientCreateOrUpdateOptions) (resp azfake.Responder[armguestconfiguration.HCRPAssignmentsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method HCRPAssignmentsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK
	Delete func(ctx context.Context, resourceGroupName string, guestConfigurationAssignmentName string, machineName string, options *armguestconfiguration.HCRPAssignmentsClientDeleteOptions) (resp azfake.Responder[armguestconfiguration.HCRPAssignmentsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method HCRPAssignmentsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, guestConfigurationAssignmentName string, machineName string, options *armguestconfiguration.HCRPAssignmentsClientGetOptions) (resp azfake.Responder[armguestconfiguration.HCRPAssignmentsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method HCRPAssignmentsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, machineName string, options *armguestconfiguration.HCRPAssignmentsClientListOptions) (resp azfake.PagerResponder[armguestconfiguration.HCRPAssignmentsClientListResponse])
}

HCRPAssignmentsServer is a fake server for instances of the armguestconfiguration.HCRPAssignmentsClient type.

type HCRPAssignmentsServerTransport

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

HCRPAssignmentsServerTransport connects instances of armguestconfiguration.HCRPAssignmentsClient to instances of HCRPAssignmentsServer. Don't use this type directly, use NewHCRPAssignmentsServerTransport instead.

func NewHCRPAssignmentsServerTransport

func NewHCRPAssignmentsServerTransport(srv *HCRPAssignmentsServer) *HCRPAssignmentsServerTransport

NewHCRPAssignmentsServerTransport creates a new instance of HCRPAssignmentsServerTransport with the provided implementation. The returned HCRPAssignmentsServerTransport instance is connected to an instance of armguestconfiguration.HCRPAssignmentsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*HCRPAssignmentsServerTransport) Do

Do implements the policy.Transporter interface for HCRPAssignmentsServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armguestconfiguration.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 armguestconfiguration.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 ServerFactory

type ServerFactory struct {
	AssignmentReportsServer     AssignmentReportsServer
	AssignmentReportsVMSSServer AssignmentReportsVMSSServer
	AssignmentsServer           AssignmentsServer
	AssignmentsVMSSServer       AssignmentsVMSSServer
	HCRPAssignmentReportsServer HCRPAssignmentReportsServer
	HCRPAssignmentsServer       HCRPAssignmentsServer
	OperationsServer            OperationsServer
}

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

type ServerFactoryTransport

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

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