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 ImagesServer

type ImagesServer struct {
	// CreateOrUpdate is the fake for method ImagesClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, labPlanName string, imageName string, body armlabservices.Image, options *armlabservices.ImagesClientCreateOrUpdateOptions) (resp azfake.Responder[armlabservices.ImagesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ImagesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, labPlanName string, imageName string, options *armlabservices.ImagesClientGetOptions) (resp azfake.Responder[armlabservices.ImagesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByLabPlanPager is the fake for method ImagesClient.NewListByLabPlanPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByLabPlanPager func(resourceGroupName string, labPlanName string, options *armlabservices.ImagesClientListByLabPlanOptions) (resp azfake.PagerResponder[armlabservices.ImagesClientListByLabPlanResponse])

	// Update is the fake for method ImagesClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, labPlanName string, imageName string, body armlabservices.ImageUpdate, options *armlabservices.ImagesClientUpdateOptions) (resp azfake.Responder[armlabservices.ImagesClientUpdateResponse], errResp azfake.ErrorResponder)
}

ImagesServer is a fake server for instances of the armlabservices.ImagesClient type.

type ImagesServerTransport

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

ImagesServerTransport connects instances of armlabservices.ImagesClient to instances of ImagesServer. Don't use this type directly, use NewImagesServerTransport instead.

func NewImagesServerTransport

func NewImagesServerTransport(srv *ImagesServer) *ImagesServerTransport

NewImagesServerTransport creates a new instance of ImagesServerTransport with the provided implementation. The returned ImagesServerTransport instance is connected to an instance of armlabservices.ImagesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ImagesServerTransport) Do

Do implements the policy.Transporter interface for ImagesServerTransport.

type LabPlansServer

type LabPlansServer struct {
	// BeginCreateOrUpdate is the fake for method LabPlansClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated, http.StatusAccepted
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, labPlanName string, body armlabservices.LabPlan, options *armlabservices.LabPlansClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armlabservices.LabPlansClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method LabPlansClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, labPlanName string, options *armlabservices.LabPlansClientBeginDeleteOptions) (resp azfake.PollerResponder[armlabservices.LabPlansClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method LabPlansClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, labPlanName string, options *armlabservices.LabPlansClientGetOptions) (resp azfake.Responder[armlabservices.LabPlansClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method LabPlansClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armlabservices.LabPlansClientListByResourceGroupOptions) (resp azfake.PagerResponder[armlabservices.LabPlansClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method LabPlansClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armlabservices.LabPlansClientListBySubscriptionOptions) (resp azfake.PagerResponder[armlabservices.LabPlansClientListBySubscriptionResponse])

	// BeginSaveImage is the fake for method LabPlansClient.BeginSaveImage
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginSaveImage func(ctx context.Context, resourceGroupName string, labPlanName string, body armlabservices.SaveImageBody, options *armlabservices.LabPlansClientBeginSaveImageOptions) (resp azfake.PollerResponder[armlabservices.LabPlansClientSaveImageResponse], errResp azfake.ErrorResponder)

	// BeginUpdate is the fake for method LabPlansClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceGroupName string, labPlanName string, body armlabservices.LabPlanUpdate, options *armlabservices.LabPlansClientBeginUpdateOptions) (resp azfake.PollerResponder[armlabservices.LabPlansClientUpdateResponse], errResp azfake.ErrorResponder)
}

LabPlansServer is a fake server for instances of the armlabservices.LabPlansClient type.

type LabPlansServerTransport

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

LabPlansServerTransport connects instances of armlabservices.LabPlansClient to instances of LabPlansServer. Don't use this type directly, use NewLabPlansServerTransport instead.

func NewLabPlansServerTransport

func NewLabPlansServerTransport(srv *LabPlansServer) *LabPlansServerTransport

NewLabPlansServerTransport creates a new instance of LabPlansServerTransport with the provided implementation. The returned LabPlansServerTransport instance is connected to an instance of armlabservices.LabPlansClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*LabPlansServerTransport) Do

Do implements the policy.Transporter interface for LabPlansServerTransport.

type LabsServer

type LabsServer struct {
	// BeginCreateOrUpdate is the fake for method LabsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated, http.StatusAccepted
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, labName string, body armlabservices.Lab, options *armlabservices.LabsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armlabservices.LabsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method LabsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, labName string, options *armlabservices.LabsClientBeginDeleteOptions) (resp azfake.PollerResponder[armlabservices.LabsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method LabsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, labName string, options *armlabservices.LabsClientGetOptions) (resp azfake.Responder[armlabservices.LabsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method LabsClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armlabservices.LabsClientListByResourceGroupOptions) (resp azfake.PagerResponder[armlabservices.LabsClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method LabsClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armlabservices.LabsClientListBySubscriptionOptions) (resp azfake.PagerResponder[armlabservices.LabsClientListBySubscriptionResponse])

	// BeginPublish is the fake for method LabsClient.BeginPublish
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginPublish func(ctx context.Context, resourceGroupName string, labName string, options *armlabservices.LabsClientBeginPublishOptions) (resp azfake.PollerResponder[armlabservices.LabsClientPublishResponse], errResp azfake.ErrorResponder)

	// BeginSyncGroup is the fake for method LabsClient.BeginSyncGroup
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginSyncGroup func(ctx context.Context, resourceGroupName string, labName string, options *armlabservices.LabsClientBeginSyncGroupOptions) (resp azfake.PollerResponder[armlabservices.LabsClientSyncGroupResponse], errResp azfake.ErrorResponder)

	// BeginUpdate is the fake for method LabsClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceGroupName string, labName string, body armlabservices.LabUpdate, options *armlabservices.LabsClientBeginUpdateOptions) (resp azfake.PollerResponder[armlabservices.LabsClientUpdateResponse], errResp azfake.ErrorResponder)
}

LabsServer is a fake server for instances of the armlabservices.LabsClient type.

type LabsServerTransport

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

LabsServerTransport connects instances of armlabservices.LabsClient to instances of LabsServer. Don't use this type directly, use NewLabsServerTransport instead.

func NewLabsServerTransport

func NewLabsServerTransport(srv *LabsServer) *LabsServerTransport

NewLabsServerTransport creates a new instance of LabsServerTransport with the provided implementation. The returned LabsServerTransport instance is connected to an instance of armlabservices.LabsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*LabsServerTransport) Do

Do implements the policy.Transporter interface for LabsServerTransport.

type OperationResultsServer

type OperationResultsServer struct {
	// Get is the fake for method OperationResultsClient.Get
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Get func(ctx context.Context, operationResultID string, options *armlabservices.OperationResultsClientGetOptions) (resp azfake.Responder[armlabservices.OperationResultsClientGetResponse], errResp azfake.ErrorResponder)
}

OperationResultsServer is a fake server for instances of the armlabservices.OperationResultsClient type.

type OperationResultsServerTransport

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

OperationResultsServerTransport connects instances of armlabservices.OperationResultsClient to instances of OperationResultsServer. Don't use this type directly, use NewOperationResultsServerTransport instead.

func NewOperationResultsServerTransport

func NewOperationResultsServerTransport(srv *OperationResultsServer) *OperationResultsServerTransport

NewOperationResultsServerTransport creates a new instance of OperationResultsServerTransport with the provided implementation. The returned OperationResultsServerTransport instance is connected to an instance of armlabservices.OperationResultsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*OperationResultsServerTransport) Do

Do implements the policy.Transporter interface for OperationResultsServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armlabservices.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 armlabservices.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 SKUsServer

type SKUsServer struct {
	// NewListPager is the fake for method SKUsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armlabservices.SKUsClientListOptions) (resp azfake.PagerResponder[armlabservices.SKUsClientListResponse])
}

SKUsServer is a fake server for instances of the armlabservices.SKUsClient type.

type SKUsServerTransport

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

SKUsServerTransport connects instances of armlabservices.SKUsClient to instances of SKUsServer. Don't use this type directly, use NewSKUsServerTransport instead.

func NewSKUsServerTransport

func NewSKUsServerTransport(srv *SKUsServer) *SKUsServerTransport

NewSKUsServerTransport creates a new instance of SKUsServerTransport with the provided implementation. The returned SKUsServerTransport instance is connected to an instance of armlabservices.SKUsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SKUsServerTransport) Do

Do implements the policy.Transporter interface for SKUsServerTransport.

type SchedulesServer

type SchedulesServer struct {
	// CreateOrUpdate is the fake for method SchedulesClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, labName string, scheduleName string, body armlabservices.Schedule, options *armlabservices.SchedulesClientCreateOrUpdateOptions) (resp azfake.Responder[armlabservices.SchedulesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method SchedulesClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, labName string, scheduleName string, options *armlabservices.SchedulesClientBeginDeleteOptions) (resp azfake.PollerResponder[armlabservices.SchedulesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method SchedulesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, labName string, scheduleName string, options *armlabservices.SchedulesClientGetOptions) (resp azfake.Responder[armlabservices.SchedulesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByLabPager is the fake for method SchedulesClient.NewListByLabPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByLabPager func(resourceGroupName string, labName string, options *armlabservices.SchedulesClientListByLabOptions) (resp azfake.PagerResponder[armlabservices.SchedulesClientListByLabResponse])

	// Update is the fake for method SchedulesClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, labName string, scheduleName string, body armlabservices.ScheduleUpdate, options *armlabservices.SchedulesClientUpdateOptions) (resp azfake.Responder[armlabservices.SchedulesClientUpdateResponse], errResp azfake.ErrorResponder)
}

SchedulesServer is a fake server for instances of the armlabservices.SchedulesClient type.

type SchedulesServerTransport

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

SchedulesServerTransport connects instances of armlabservices.SchedulesClient to instances of SchedulesServer. Don't use this type directly, use NewSchedulesServerTransport instead.

func NewSchedulesServerTransport

func NewSchedulesServerTransport(srv *SchedulesServer) *SchedulesServerTransport

NewSchedulesServerTransport creates a new instance of SchedulesServerTransport with the provided implementation. The returned SchedulesServerTransport instance is connected to an instance of armlabservices.SchedulesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SchedulesServerTransport) Do

Do implements the policy.Transporter interface for SchedulesServerTransport.

type ServerFactory

type ServerFactory struct {
	ImagesServer           ImagesServer
	LabPlansServer         LabPlansServer
	LabsServer             LabsServer
	OperationResultsServer OperationResultsServer
	OperationsServer       OperationsServer
	SKUsServer             SKUsServer
	SchedulesServer        SchedulesServer
	UsagesServer           UsagesServer
	UsersServer            UsersServer
	VirtualMachinesServer  VirtualMachinesServer
}

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

type ServerFactoryTransport

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

ServerFactoryTransport connects instances of armlabservices.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 armlabservices.ClientFactory via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ServerFactoryTransport) Do

Do implements the policy.Transporter interface for ServerFactoryTransport.

type UsagesServer

type UsagesServer struct {
	// NewListByLocationPager is the fake for method UsagesClient.NewListByLocationPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByLocationPager func(location string, options *armlabservices.UsagesClientListByLocationOptions) (resp azfake.PagerResponder[armlabservices.UsagesClientListByLocationResponse])
}

UsagesServer is a fake server for instances of the armlabservices.UsagesClient type.

type UsagesServerTransport

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

UsagesServerTransport connects instances of armlabservices.UsagesClient to instances of UsagesServer. Don't use this type directly, use NewUsagesServerTransport instead.

func NewUsagesServerTransport

func NewUsagesServerTransport(srv *UsagesServer) *UsagesServerTransport

NewUsagesServerTransport creates a new instance of UsagesServerTransport with the provided implementation. The returned UsagesServerTransport instance is connected to an instance of armlabservices.UsagesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*UsagesServerTransport) Do

Do implements the policy.Transporter interface for UsagesServerTransport.

type UsersServer

type UsersServer struct {
	// BeginCreateOrUpdate is the fake for method UsersClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated, http.StatusAccepted
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, labName string, userName string, body armlabservices.User, options *armlabservices.UsersClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armlabservices.UsersClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method UsersClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, labName string, userName string, options *armlabservices.UsersClientBeginDeleteOptions) (resp azfake.PollerResponder[armlabservices.UsersClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method UsersClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, labName string, userName string, options *armlabservices.UsersClientGetOptions) (resp azfake.Responder[armlabservices.UsersClientGetResponse], errResp azfake.ErrorResponder)

	// BeginInvite is the fake for method UsersClient.BeginInvite
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginInvite func(ctx context.Context, resourceGroupName string, labName string, userName string, body armlabservices.InviteBody, options *armlabservices.UsersClientBeginInviteOptions) (resp azfake.PollerResponder[armlabservices.UsersClientInviteResponse], errResp azfake.ErrorResponder)

	// NewListByLabPager is the fake for method UsersClient.NewListByLabPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByLabPager func(resourceGroupName string, labName string, options *armlabservices.UsersClientListByLabOptions) (resp azfake.PagerResponder[armlabservices.UsersClientListByLabResponse])

	// BeginUpdate is the fake for method UsersClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceGroupName string, labName string, userName string, body armlabservices.UserUpdate, options *armlabservices.UsersClientBeginUpdateOptions) (resp azfake.PollerResponder[armlabservices.UsersClientUpdateResponse], errResp azfake.ErrorResponder)
}

UsersServer is a fake server for instances of the armlabservices.UsersClient type.

type UsersServerTransport

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

UsersServerTransport connects instances of armlabservices.UsersClient to instances of UsersServer. Don't use this type directly, use NewUsersServerTransport instead.

func NewUsersServerTransport

func NewUsersServerTransport(srv *UsersServer) *UsersServerTransport

NewUsersServerTransport creates a new instance of UsersServerTransport with the provided implementation. The returned UsersServerTransport instance is connected to an instance of armlabservices.UsersClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*UsersServerTransport) Do

Do implements the policy.Transporter interface for UsersServerTransport.

type VirtualMachinesServer

type VirtualMachinesServer struct {
	// Get is the fake for method VirtualMachinesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, labName string, virtualMachineName string, options *armlabservices.VirtualMachinesClientGetOptions) (resp azfake.Responder[armlabservices.VirtualMachinesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByLabPager is the fake for method VirtualMachinesClient.NewListByLabPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByLabPager func(resourceGroupName string, labName string, options *armlabservices.VirtualMachinesClientListByLabOptions) (resp azfake.PagerResponder[armlabservices.VirtualMachinesClientListByLabResponse])

	// BeginRedeploy is the fake for method VirtualMachinesClient.BeginRedeploy
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginRedeploy func(ctx context.Context, resourceGroupName string, labName string, virtualMachineName string, options *armlabservices.VirtualMachinesClientBeginRedeployOptions) (resp azfake.PollerResponder[armlabservices.VirtualMachinesClientRedeployResponse], errResp azfake.ErrorResponder)

	// BeginReimage is the fake for method VirtualMachinesClient.BeginReimage
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginReimage func(ctx context.Context, resourceGroupName string, labName string, virtualMachineName string, options *armlabservices.VirtualMachinesClientBeginReimageOptions) (resp azfake.PollerResponder[armlabservices.VirtualMachinesClientReimageResponse], errResp azfake.ErrorResponder)

	// BeginResetPassword is the fake for method VirtualMachinesClient.BeginResetPassword
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginResetPassword func(ctx context.Context, resourceGroupName string, labName string, virtualMachineName string, body armlabservices.ResetPasswordBody, options *armlabservices.VirtualMachinesClientBeginResetPasswordOptions) (resp azfake.PollerResponder[armlabservices.VirtualMachinesClientResetPasswordResponse], errResp azfake.ErrorResponder)

	// BeginStart is the fake for method VirtualMachinesClient.BeginStart
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginStart func(ctx context.Context, resourceGroupName string, labName string, virtualMachineName string, options *armlabservices.VirtualMachinesClientBeginStartOptions) (resp azfake.PollerResponder[armlabservices.VirtualMachinesClientStartResponse], errResp azfake.ErrorResponder)

	// BeginStop is the fake for method VirtualMachinesClient.BeginStop
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginStop func(ctx context.Context, resourceGroupName string, labName string, virtualMachineName string, options *armlabservices.VirtualMachinesClientBeginStopOptions) (resp azfake.PollerResponder[armlabservices.VirtualMachinesClientStopResponse], errResp azfake.ErrorResponder)
}

VirtualMachinesServer is a fake server for instances of the armlabservices.VirtualMachinesClient type.

type VirtualMachinesServerTransport

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

VirtualMachinesServerTransport connects instances of armlabservices.VirtualMachinesClient to instances of VirtualMachinesServer. Don't use this type directly, use NewVirtualMachinesServerTransport instead.

func NewVirtualMachinesServerTransport

func NewVirtualMachinesServerTransport(srv *VirtualMachinesServer) *VirtualMachinesServerTransport

NewVirtualMachinesServerTransport creates a new instance of VirtualMachinesServerTransport with the provided implementation. The returned VirtualMachinesServerTransport instance is connected to an instance of armlabservices.VirtualMachinesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*VirtualMachinesServerTransport) Do

Do implements the policy.Transporter interface for VirtualMachinesServerTransport.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL