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 MonitorServer

type MonitorServer struct {
	// NewListVMHostUpdatePager is the fake for method MonitorClient.NewListVMHostUpdatePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListVMHostUpdatePager func(resourceGroupName string, monitorName string, options *armlogz.MonitorClientListVMHostUpdateOptions) (resp azfake.PagerResponder[armlogz.MonitorClientListVMHostUpdateResponse])

	// NewListVMHostsPager is the fake for method MonitorClient.NewListVMHostsPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListVMHostsPager func(resourceGroupName string, monitorName string, options *armlogz.MonitorClientListVMHostsOptions) (resp azfake.PagerResponder[armlogz.MonitorClientListVMHostsResponse])

	// VMHostPayload is the fake for method MonitorClient.VMHostPayload
	// HTTP status codes to indicate success: http.StatusOK
	VMHostPayload func(ctx context.Context, resourceGroupName string, monitorName string, options *armlogz.MonitorClientVMHostPayloadOptions) (resp azfake.Responder[armlogz.MonitorClientVMHostPayloadResponse], errResp azfake.ErrorResponder)
}

MonitorServer is a fake server for instances of the armlogz.MonitorClient type.

type MonitorServerTransport

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

MonitorServerTransport connects instances of armlogz.MonitorClient to instances of MonitorServer. Don't use this type directly, use NewMonitorServerTransport instead.

func NewMonitorServerTransport

func NewMonitorServerTransport(srv *MonitorServer) *MonitorServerTransport

NewMonitorServerTransport creates a new instance of MonitorServerTransport with the provided implementation. The returned MonitorServerTransport instance is connected to an instance of armlogz.MonitorClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*MonitorServerTransport) Do

Do implements the policy.Transporter interface for MonitorServerTransport.

type MonitorsServer

type MonitorsServer struct {
	// BeginCreate is the fake for method MonitorsClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, resourceGroupName string, monitorName string, options *armlogz.MonitorsClientBeginCreateOptions) (resp azfake.PollerResponder[armlogz.MonitorsClientCreateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method MonitorsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, monitorName string, options *armlogz.MonitorsClientBeginDeleteOptions) (resp azfake.PollerResponder[armlogz.MonitorsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method MonitorsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, monitorName string, options *armlogz.MonitorsClientGetOptions) (resp azfake.Responder[armlogz.MonitorsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method MonitorsClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armlogz.MonitorsClientListByResourceGroupOptions) (resp azfake.PagerResponder[armlogz.MonitorsClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method MonitorsClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armlogz.MonitorsClientListBySubscriptionOptions) (resp azfake.PagerResponder[armlogz.MonitorsClientListBySubscriptionResponse])

	// NewListMonitoredResourcesPager is the fake for method MonitorsClient.NewListMonitoredResourcesPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListMonitoredResourcesPager func(resourceGroupName string, monitorName string, options *armlogz.MonitorsClientListMonitoredResourcesOptions) (resp azfake.PagerResponder[armlogz.MonitorsClientListMonitoredResourcesResponse])

	// NewListUserRolesPager is the fake for method MonitorsClient.NewListUserRolesPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListUserRolesPager func(resourceGroupName string, monitorName string, options *armlogz.MonitorsClientListUserRolesOptions) (resp azfake.PagerResponder[armlogz.MonitorsClientListUserRolesResponse])

	// Update is the fake for method MonitorsClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, monitorName string, options *armlogz.MonitorsClientUpdateOptions) (resp azfake.Responder[armlogz.MonitorsClientUpdateResponse], errResp azfake.ErrorResponder)
}

MonitorsServer is a fake server for instances of the armlogz.MonitorsClient type.

type MonitorsServerTransport

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

MonitorsServerTransport connects instances of armlogz.MonitorsClient to instances of MonitorsServer. Don't use this type directly, use NewMonitorsServerTransport instead.

func NewMonitorsServerTransport

func NewMonitorsServerTransport(srv *MonitorsServer) *MonitorsServerTransport

NewMonitorsServerTransport creates a new instance of MonitorsServerTransport with the provided implementation. The returned MonitorsServerTransport instance is connected to an instance of armlogz.MonitorsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*MonitorsServerTransport) Do

Do implements the policy.Transporter interface for MonitorsServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armlogz.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 armlogz.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 {
	MonitorServer            MonitorServer
	MonitorsServer           MonitorsServer
	OperationsServer         OperationsServer
	SingleSignOnServer       SingleSignOnServer
	SubAccountServer         SubAccountServer
	SubAccountTagRulesServer SubAccountTagRulesServer
	TagRulesServer           TagRulesServer
}

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

type ServerFactoryTransport

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

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

type SingleSignOnServer struct {
	// BeginCreateOrUpdate is the fake for method SingleSignOnClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, monitorName string, configurationName string, options *armlogz.SingleSignOnClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armlogz.SingleSignOnClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method SingleSignOnClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, monitorName string, configurationName string, options *armlogz.SingleSignOnClientGetOptions) (resp azfake.Responder[armlogz.SingleSignOnClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method SingleSignOnClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, monitorName string, options *armlogz.SingleSignOnClientListOptions) (resp azfake.PagerResponder[armlogz.SingleSignOnClientListResponse])
}

SingleSignOnServer is a fake server for instances of the armlogz.SingleSignOnClient type.

type SingleSignOnServerTransport

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

SingleSignOnServerTransport connects instances of armlogz.SingleSignOnClient to instances of SingleSignOnServer. Don't use this type directly, use NewSingleSignOnServerTransport instead.

func NewSingleSignOnServerTransport

func NewSingleSignOnServerTransport(srv *SingleSignOnServer) *SingleSignOnServerTransport

NewSingleSignOnServerTransport creates a new instance of SingleSignOnServerTransport with the provided implementation. The returned SingleSignOnServerTransport instance is connected to an instance of armlogz.SingleSignOnClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SingleSignOnServerTransport) Do

Do implements the policy.Transporter interface for SingleSignOnServerTransport.

type SubAccountServer

type SubAccountServer struct {
	// BeginCreate is the fake for method SubAccountClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string, options *armlogz.SubAccountClientBeginCreateOptions) (resp azfake.PollerResponder[armlogz.SubAccountClientCreateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method SubAccountClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string, options *armlogz.SubAccountClientBeginDeleteOptions) (resp azfake.PollerResponder[armlogz.SubAccountClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method SubAccountClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string, options *armlogz.SubAccountClientGetOptions) (resp azfake.Responder[armlogz.SubAccountClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method SubAccountClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, monitorName string, options *armlogz.SubAccountClientListOptions) (resp azfake.PagerResponder[armlogz.SubAccountClientListResponse])

	// NewListMonitoredResourcesPager is the fake for method SubAccountClient.NewListMonitoredResourcesPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListMonitoredResourcesPager func(resourceGroupName string, monitorName string, subAccountName string, options *armlogz.SubAccountClientListMonitoredResourcesOptions) (resp azfake.PagerResponder[armlogz.SubAccountClientListMonitoredResourcesResponse])

	// NewListVMHostUpdatePager is the fake for method SubAccountClient.NewListVMHostUpdatePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListVMHostUpdatePager func(resourceGroupName string, monitorName string, subAccountName string, options *armlogz.SubAccountClientListVMHostUpdateOptions) (resp azfake.PagerResponder[armlogz.SubAccountClientListVMHostUpdateResponse])

	// NewListVMHostsPager is the fake for method SubAccountClient.NewListVMHostsPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListVMHostsPager func(resourceGroupName string, monitorName string, subAccountName string, options *armlogz.SubAccountClientListVMHostsOptions) (resp azfake.PagerResponder[armlogz.SubAccountClientListVMHostsResponse])

	// Update is the fake for method SubAccountClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string, options *armlogz.SubAccountClientUpdateOptions) (resp azfake.Responder[armlogz.SubAccountClientUpdateResponse], errResp azfake.ErrorResponder)

	// VMHostPayload is the fake for method SubAccountClient.VMHostPayload
	// HTTP status codes to indicate success: http.StatusOK
	VMHostPayload func(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string, options *armlogz.SubAccountClientVMHostPayloadOptions) (resp azfake.Responder[armlogz.SubAccountClientVMHostPayloadResponse], errResp azfake.ErrorResponder)
}

SubAccountServer is a fake server for instances of the armlogz.SubAccountClient type.

type SubAccountServerTransport

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

SubAccountServerTransport connects instances of armlogz.SubAccountClient to instances of SubAccountServer. Don't use this type directly, use NewSubAccountServerTransport instead.

func NewSubAccountServerTransport

func NewSubAccountServerTransport(srv *SubAccountServer) *SubAccountServerTransport

NewSubAccountServerTransport creates a new instance of SubAccountServerTransport with the provided implementation. The returned SubAccountServerTransport instance is connected to an instance of armlogz.SubAccountClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SubAccountServerTransport) Do

Do implements the policy.Transporter interface for SubAccountServerTransport.

type SubAccountTagRulesServer

type SubAccountTagRulesServer struct {
	// CreateOrUpdate is the fake for method SubAccountTagRulesClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string, ruleSetName string, options *armlogz.SubAccountTagRulesClientCreateOrUpdateOptions) (resp azfake.Responder[armlogz.SubAccountTagRulesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method SubAccountTagRulesClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string, ruleSetName string, options *armlogz.SubAccountTagRulesClientDeleteOptions) (resp azfake.Responder[armlogz.SubAccountTagRulesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method SubAccountTagRulesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, monitorName string, subAccountName string, ruleSetName string, options *armlogz.SubAccountTagRulesClientGetOptions) (resp azfake.Responder[armlogz.SubAccountTagRulesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method SubAccountTagRulesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, monitorName string, subAccountName string, options *armlogz.SubAccountTagRulesClientListOptions) (resp azfake.PagerResponder[armlogz.SubAccountTagRulesClientListResponse])
}

SubAccountTagRulesServer is a fake server for instances of the armlogz.SubAccountTagRulesClient type.

type SubAccountTagRulesServerTransport

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

SubAccountTagRulesServerTransport connects instances of armlogz.SubAccountTagRulesClient to instances of SubAccountTagRulesServer. Don't use this type directly, use NewSubAccountTagRulesServerTransport instead.

func NewSubAccountTagRulesServerTransport

func NewSubAccountTagRulesServerTransport(srv *SubAccountTagRulesServer) *SubAccountTagRulesServerTransport

NewSubAccountTagRulesServerTransport creates a new instance of SubAccountTagRulesServerTransport with the provided implementation. The returned SubAccountTagRulesServerTransport instance is connected to an instance of armlogz.SubAccountTagRulesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SubAccountTagRulesServerTransport) Do

Do implements the policy.Transporter interface for SubAccountTagRulesServerTransport.

type TagRulesServer

type TagRulesServer struct {
	// CreateOrUpdate is the fake for method TagRulesClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string, options *armlogz.TagRulesClientCreateOrUpdateOptions) (resp azfake.Responder[armlogz.TagRulesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method TagRulesClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string, options *armlogz.TagRulesClientDeleteOptions) (resp azfake.Responder[armlogz.TagRulesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method TagRulesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string, options *armlogz.TagRulesClientGetOptions) (resp azfake.Responder[armlogz.TagRulesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method TagRulesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, monitorName string, options *armlogz.TagRulesClientListOptions) (resp azfake.PagerResponder[armlogz.TagRulesClientListResponse])
}

TagRulesServer is a fake server for instances of the armlogz.TagRulesClient type.

type TagRulesServerTransport

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

TagRulesServerTransport connects instances of armlogz.TagRulesClient to instances of TagRulesServer. Don't use this type directly, use NewTagRulesServerTransport instead.

func NewTagRulesServerTransport

func NewTagRulesServerTransport(srv *TagRulesServer) *TagRulesServerTransport

NewTagRulesServerTransport creates a new instance of TagRulesServerTransport with the provided implementation. The returned TagRulesServerTransport instance is connected to an instance of armlogz.TagRulesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*TagRulesServerTransport) Do

Do implements the policy.Transporter interface for TagRulesServerTransport.

Jump to

Keyboard shortcuts

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