fake

package
v1.3.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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreationSupportedServer

type CreationSupportedServer struct {
	// Get is the fake for method CreationSupportedClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, datadogOrganizationID string, options *armdatadog.CreationSupportedClientGetOptions) (resp azfake.Responder[armdatadog.CreationSupportedClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method CreationSupportedClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(datadogOrganizationID string, options *armdatadog.CreationSupportedClientListOptions) (resp azfake.PagerResponder[armdatadog.CreationSupportedClientListResponse])
}

CreationSupportedServer is a fake server for instances of the armdatadog.CreationSupportedClient type.

type CreationSupportedServerTransport

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

CreationSupportedServerTransport connects instances of armdatadog.CreationSupportedClient to instances of CreationSupportedServer. Don't use this type directly, use NewCreationSupportedServerTransport instead.

func NewCreationSupportedServerTransport

func NewCreationSupportedServerTransport(srv *CreationSupportedServer) *CreationSupportedServerTransport

NewCreationSupportedServerTransport creates a new instance of CreationSupportedServerTransport with the provided implementation. The returned CreationSupportedServerTransport instance is connected to an instance of armdatadog.CreationSupportedClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*CreationSupportedServerTransport) Do

Do implements the policy.Transporter interface for CreationSupportedServerTransport.

type MarketplaceAgreementsServer

type MarketplaceAgreementsServer struct {
	// CreateOrUpdate is the fake for method MarketplaceAgreementsClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK
	CreateOrUpdate func(ctx context.Context, options *armdatadog.MarketplaceAgreementsClientCreateOrUpdateOptions) (resp azfake.Responder[armdatadog.MarketplaceAgreementsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method MarketplaceAgreementsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armdatadog.MarketplaceAgreementsClientListOptions) (resp azfake.PagerResponder[armdatadog.MarketplaceAgreementsClientListResponse])
}

MarketplaceAgreementsServer is a fake server for instances of the armdatadog.MarketplaceAgreementsClient type.

type MarketplaceAgreementsServerTransport

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

MarketplaceAgreementsServerTransport connects instances of armdatadog.MarketplaceAgreementsClient to instances of MarketplaceAgreementsServer. Don't use this type directly, use NewMarketplaceAgreementsServerTransport instead.

func NewMarketplaceAgreementsServerTransport

func NewMarketplaceAgreementsServerTransport(srv *MarketplaceAgreementsServer) *MarketplaceAgreementsServerTransport

NewMarketplaceAgreementsServerTransport creates a new instance of MarketplaceAgreementsServerTransport with the provided implementation. The returned MarketplaceAgreementsServerTransport instance is connected to an instance of armdatadog.MarketplaceAgreementsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*MarketplaceAgreementsServerTransport) Do

Do implements the policy.Transporter interface for MarketplaceAgreementsServerTransport.

type MonitoredSubscriptionsServer

type MonitoredSubscriptionsServer struct {
	// BeginCreateorUpdate is the fake for method MonitoredSubscriptionsClient.BeginCreateorUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated, http.StatusAccepted
	BeginCreateorUpdate func(ctx context.Context, resourceGroupName string, monitorName string, configurationName string, options *armdatadog.MonitoredSubscriptionsClientBeginCreateorUpdateOptions) (resp azfake.PollerResponder[armdatadog.MonitoredSubscriptionsClientCreateorUpdateResponse], errResp azfake.ErrorResponder)

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

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

	// NewListPager is the fake for method MonitoredSubscriptionsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, monitorName string, options *armdatadog.MonitoredSubscriptionsClientListOptions) (resp azfake.PagerResponder[armdatadog.MonitoredSubscriptionsClientListResponse])

	// BeginUpdate is the fake for method MonitoredSubscriptionsClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceGroupName string, monitorName string, configurationName string, options *armdatadog.MonitoredSubscriptionsClientBeginUpdateOptions) (resp azfake.PollerResponder[armdatadog.MonitoredSubscriptionsClientUpdateResponse], errResp azfake.ErrorResponder)
}

MonitoredSubscriptionsServer is a fake server for instances of the armdatadog.MonitoredSubscriptionsClient type.

type MonitoredSubscriptionsServerTransport

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

MonitoredSubscriptionsServerTransport connects instances of armdatadog.MonitoredSubscriptionsClient to instances of MonitoredSubscriptionsServer. Don't use this type directly, use NewMonitoredSubscriptionsServerTransport instead.

func NewMonitoredSubscriptionsServerTransport

func NewMonitoredSubscriptionsServerTransport(srv *MonitoredSubscriptionsServer) *MonitoredSubscriptionsServerTransport

NewMonitoredSubscriptionsServerTransport creates a new instance of MonitoredSubscriptionsServerTransport with the provided implementation. The returned MonitoredSubscriptionsServerTransport instance is connected to an instance of armdatadog.MonitoredSubscriptionsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*MonitoredSubscriptionsServerTransport) Do

Do implements the policy.Transporter interface for MonitoredSubscriptionsServerTransport.

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 *armdatadog.MonitorsClientBeginCreateOptions) (resp azfake.PollerResponder[armdatadog.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 *armdatadog.MonitorsClientBeginDeleteOptions) (resp azfake.PollerResponder[armdatadog.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 *armdatadog.MonitorsClientGetOptions) (resp azfake.Responder[armdatadog.MonitorsClientGetResponse], errResp azfake.ErrorResponder)

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

	// NewListPager is the fake for method MonitorsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armdatadog.MonitorsClientListOptions) (resp azfake.PagerResponder[armdatadog.MonitorsClientListResponse])

	// NewListAPIKeysPager is the fake for method MonitorsClient.NewListAPIKeysPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListAPIKeysPager func(resourceGroupName string, monitorName string, options *armdatadog.MonitorsClientListAPIKeysOptions) (resp azfake.PagerResponder[armdatadog.MonitorsClientListAPIKeysResponse])

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

	// NewListHostsPager is the fake for method MonitorsClient.NewListHostsPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListHostsPager func(resourceGroupName string, monitorName string, options *armdatadog.MonitorsClientListHostsOptions) (resp azfake.PagerResponder[armdatadog.MonitorsClientListHostsResponse])

	// NewListLinkedResourcesPager is the fake for method MonitorsClient.NewListLinkedResourcesPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListLinkedResourcesPager func(resourceGroupName string, monitorName string, options *armdatadog.MonitorsClientListLinkedResourcesOptions) (resp azfake.PagerResponder[armdatadog.MonitorsClientListLinkedResourcesResponse])

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

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

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

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

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

type MonitorsServerTransport

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

MonitorsServerTransport connects instances of armdatadog.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 armdatadog.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 *armdatadog.OperationsClientListOptions) (resp azfake.PagerResponder[armdatadog.OperationsClientListResponse])
}

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armdatadog.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 armdatadog.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 {
	CreationSupportedServer          CreationSupportedServer
	MarketplaceAgreementsServer      MarketplaceAgreementsServer
	MonitoredSubscriptionsServer     MonitoredSubscriptionsServer
	MonitorsServer                   MonitorsServer
	OperationsServer                 OperationsServer
	SingleSignOnConfigurationsServer SingleSignOnConfigurationsServer
	TagRulesServer                   TagRulesServer
}

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

type ServerFactoryTransport

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

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

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

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

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

SingleSignOnConfigurationsServer is a fake server for instances of the armdatadog.SingleSignOnConfigurationsClient type.

type SingleSignOnConfigurationsServerTransport

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

SingleSignOnConfigurationsServerTransport connects instances of armdatadog.SingleSignOnConfigurationsClient to instances of SingleSignOnConfigurationsServer. Don't use this type directly, use NewSingleSignOnConfigurationsServerTransport instead.

func NewSingleSignOnConfigurationsServerTransport

func NewSingleSignOnConfigurationsServerTransport(srv *SingleSignOnConfigurationsServer) *SingleSignOnConfigurationsServerTransport

NewSingleSignOnConfigurationsServerTransport creates a new instance of SingleSignOnConfigurationsServerTransport with the provided implementation. The returned SingleSignOnConfigurationsServerTransport instance is connected to an instance of armdatadog.SingleSignOnConfigurationsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SingleSignOnConfigurationsServerTransport) Do

Do implements the policy.Transporter interface for SingleSignOnConfigurationsServerTransport.

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 *armdatadog.TagRulesClientCreateOrUpdateOptions) (resp azfake.Responder[armdatadog.TagRulesClientCreateOrUpdateResponse], 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 *armdatadog.TagRulesClientGetOptions) (resp azfake.Responder[armdatadog.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 *armdatadog.TagRulesClientListOptions) (resp azfake.PagerResponder[armdatadog.TagRulesClientListResponse])
}

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

type TagRulesServerTransport

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

TagRulesServerTransport connects instances of armdatadog.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 armdatadog.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