fake

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2024 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 AccountsServer

type AccountsServer struct {
	// NewListPager is the fake for method AccountsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(userEmail string, location string, options *armnewrelicobservability.AccountsClientListOptions) (resp azfake.PagerResponder[armnewrelicobservability.AccountsClientListResponse])
}

AccountsServer is a fake server for instances of the armnewrelicobservability.AccountsClient type.

type AccountsServerTransport

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

AccountsServerTransport connects instances of armnewrelicobservability.AccountsClient to instances of AccountsServer. Don't use this type directly, use NewAccountsServerTransport instead.

func NewAccountsServerTransport

func NewAccountsServerTransport(srv *AccountsServer) *AccountsServerTransport

NewAccountsServerTransport creates a new instance of AccountsServerTransport with the provided implementation. The returned AccountsServerTransport instance is connected to an instance of armnewrelicobservability.AccountsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*AccountsServerTransport) Do

Do implements the policy.Transporter interface for AccountsServerTransport.

type BillingInfoServer added in v1.2.0

type BillingInfoServer struct {
	// Get is the fake for method BillingInfoClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, monitorName string, options *armnewrelicobservability.BillingInfoClientGetOptions) (resp azfake.Responder[armnewrelicobservability.BillingInfoClientGetResponse], errResp azfake.ErrorResponder)
}

BillingInfoServer is a fake server for instances of the armnewrelicobservability.BillingInfoClient type.

type BillingInfoServerTransport added in v1.2.0

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

BillingInfoServerTransport connects instances of armnewrelicobservability.BillingInfoClient to instances of BillingInfoServer. Don't use this type directly, use NewBillingInfoServerTransport instead.

func NewBillingInfoServerTransport added in v1.2.0

func NewBillingInfoServerTransport(srv *BillingInfoServer) *BillingInfoServerTransport

NewBillingInfoServerTransport creates a new instance of BillingInfoServerTransport with the provided implementation. The returned BillingInfoServerTransport instance is connected to an instance of armnewrelicobservability.BillingInfoClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*BillingInfoServerTransport) Do added in v1.2.0

Do implements the policy.Transporter interface for BillingInfoServerTransport.

type ConnectedPartnerResourcesServer added in v1.2.0

type ConnectedPartnerResourcesServer struct {
	// NewListPager is the fake for method ConnectedPartnerResourcesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, monitorName string, options *armnewrelicobservability.ConnectedPartnerResourcesClientListOptions) (resp azfake.PagerResponder[armnewrelicobservability.ConnectedPartnerResourcesClientListResponse])
}

ConnectedPartnerResourcesServer is a fake server for instances of the armnewrelicobservability.ConnectedPartnerResourcesClient type.

type ConnectedPartnerResourcesServerTransport added in v1.2.0

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

ConnectedPartnerResourcesServerTransport connects instances of armnewrelicobservability.ConnectedPartnerResourcesClient to instances of ConnectedPartnerResourcesServer. Don't use this type directly, use NewConnectedPartnerResourcesServerTransport instead.

func NewConnectedPartnerResourcesServerTransport added in v1.2.0

func NewConnectedPartnerResourcesServerTransport(srv *ConnectedPartnerResourcesServer) *ConnectedPartnerResourcesServerTransport

NewConnectedPartnerResourcesServerTransport creates a new instance of ConnectedPartnerResourcesServerTransport with the provided implementation. The returned ConnectedPartnerResourcesServerTransport instance is connected to an instance of armnewrelicobservability.ConnectedPartnerResourcesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ConnectedPartnerResourcesServerTransport) Do added in v1.2.0

Do implements the policy.Transporter interface for ConnectedPartnerResourcesServerTransport.

type MonitoredSubscriptionsServer added in v1.2.0

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

	// BeginDelete is the fake for method MonitoredSubscriptionsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, monitorName string, configurationName armnewrelicobservability.ConfigurationName, options *armnewrelicobservability.MonitoredSubscriptionsClientBeginDeleteOptions) (resp azfake.PollerResponder[armnewrelicobservability.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 armnewrelicobservability.ConfigurationName, options *armnewrelicobservability.MonitoredSubscriptionsClientGetOptions) (resp azfake.Responder[armnewrelicobservability.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 *armnewrelicobservability.MonitoredSubscriptionsClientListOptions) (resp azfake.PagerResponder[armnewrelicobservability.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 armnewrelicobservability.ConfigurationName, body armnewrelicobservability.MonitoredSubscriptionProperties, options *armnewrelicobservability.MonitoredSubscriptionsClientBeginUpdateOptions) (resp azfake.PollerResponder[armnewrelicobservability.MonitoredSubscriptionsClientUpdateResponse], errResp azfake.ErrorResponder)
}

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

type MonitoredSubscriptionsServerTransport added in v1.2.0

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

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

func NewMonitoredSubscriptionsServerTransport added in v1.2.0

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 armnewrelicobservability.MonitoredSubscriptionsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*MonitoredSubscriptionsServerTransport) Do added in v1.2.0

Do implements the policy.Transporter interface for MonitoredSubscriptionsServerTransport.

type MonitorsServer

type MonitorsServer struct {
	// BeginCreateOrUpdate is the fake for method MonitorsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, monitorName string, resource armnewrelicobservability.NewRelicMonitorResource, options *armnewrelicobservability.MonitorsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armnewrelicobservability.MonitorsClientCreateOrUpdateResponse], 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, userEmail string, monitorName string, options *armnewrelicobservability.MonitorsClientBeginDeleteOptions) (resp azfake.PollerResponder[armnewrelicobservability.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 *armnewrelicobservability.MonitorsClientGetOptions) (resp azfake.Responder[armnewrelicobservability.MonitorsClientGetResponse], errResp azfake.ErrorResponder)

	// GetMetricRules is the fake for method MonitorsClient.GetMetricRules
	// HTTP status codes to indicate success: http.StatusOK
	GetMetricRules func(ctx context.Context, resourceGroupName string, monitorName string, request armnewrelicobservability.MetricsRequest, options *armnewrelicobservability.MonitorsClientGetMetricRulesOptions) (resp azfake.Responder[armnewrelicobservability.MonitorsClientGetMetricRulesResponse], errResp azfake.ErrorResponder)

	// GetMetricStatus is the fake for method MonitorsClient.GetMetricStatus
	// HTTP status codes to indicate success: http.StatusOK
	GetMetricStatus func(ctx context.Context, resourceGroupName string, monitorName string, request armnewrelicobservability.MetricsStatusRequest, options *armnewrelicobservability.MonitorsClientGetMetricStatusOptions) (resp azfake.Responder[armnewrelicobservability.MonitorsClientGetMetricStatusResponse], errResp azfake.ErrorResponder)

	// NewListAppServicesPager is the fake for method MonitorsClient.NewListAppServicesPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListAppServicesPager func(resourceGroupName string, monitorName string, request armnewrelicobservability.AppServicesGetRequest, options *armnewrelicobservability.MonitorsClientListAppServicesOptions) (resp azfake.PagerResponder[armnewrelicobservability.MonitorsClientListAppServicesResponse])

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

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

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

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

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

	// SwitchBilling is the fake for method MonitorsClient.SwitchBilling
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	SwitchBilling func(ctx context.Context, resourceGroupName string, monitorName string, request armnewrelicobservability.SwitchBillingRequest, options *armnewrelicobservability.MonitorsClientSwitchBillingOptions) (resp azfake.Responder[armnewrelicobservability.MonitorsClientSwitchBillingResponse], errResp azfake.ErrorResponder)

	// 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, properties armnewrelicobservability.NewRelicMonitorResourceUpdate, options *armnewrelicobservability.MonitorsClientUpdateOptions) (resp azfake.Responder[armnewrelicobservability.MonitorsClientUpdateResponse], errResp azfake.ErrorResponder)

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

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

type MonitorsServerTransport

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

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armnewrelicobservability.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 armnewrelicobservability.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 OrganizationsServer

type OrganizationsServer struct {
	// NewListPager is the fake for method OrganizationsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(userEmail string, location string, options *armnewrelicobservability.OrganizationsClientListOptions) (resp azfake.PagerResponder[armnewrelicobservability.OrganizationsClientListResponse])
}

OrganizationsServer is a fake server for instances of the armnewrelicobservability.OrganizationsClient type.

type OrganizationsServerTransport

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

OrganizationsServerTransport connects instances of armnewrelicobservability.OrganizationsClient to instances of OrganizationsServer. Don't use this type directly, use NewOrganizationsServerTransport instead.

func NewOrganizationsServerTransport

func NewOrganizationsServerTransport(srv *OrganizationsServer) *OrganizationsServerTransport

NewOrganizationsServerTransport creates a new instance of OrganizationsServerTransport with the provided implementation. The returned OrganizationsServerTransport instance is connected to an instance of armnewrelicobservability.OrganizationsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*OrganizationsServerTransport) Do

Do implements the policy.Transporter interface for OrganizationsServerTransport.

type PlansServer

type PlansServer struct {
	// NewListPager is the fake for method PlansClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armnewrelicobservability.PlansClientListOptions) (resp azfake.PagerResponder[armnewrelicobservability.PlansClientListResponse])
}

PlansServer is a fake server for instances of the armnewrelicobservability.PlansClient type.

type PlansServerTransport

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

PlansServerTransport connects instances of armnewrelicobservability.PlansClient to instances of PlansServer. Don't use this type directly, use NewPlansServerTransport instead.

func NewPlansServerTransport

func NewPlansServerTransport(srv *PlansServer) *PlansServerTransport

NewPlansServerTransport creates a new instance of PlansServerTransport with the provided implementation. The returned PlansServerTransport instance is connected to an instance of armnewrelicobservability.PlansClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*PlansServerTransport) Do

Do implements the policy.Transporter interface for PlansServerTransport.

type ServerFactory

type ServerFactory struct {
	AccountsServer                  AccountsServer
	BillingInfoServer               BillingInfoServer
	ConnectedPartnerResourcesServer ConnectedPartnerResourcesServer
	MonitoredSubscriptionsServer    MonitoredSubscriptionsServer
	MonitorsServer                  MonitorsServer
	OperationsServer                OperationsServer
	OrganizationsServer             OrganizationsServer
	PlansServer                     PlansServer
	TagRulesServer                  TagRulesServer
}

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

type ServerFactoryTransport

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

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

type TagRulesServer struct {
	// BeginCreateOrUpdate is the fake for method TagRulesClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string, resource armnewrelicobservability.TagRule, options *armnewrelicobservability.TagRulesClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armnewrelicobservability.TagRulesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method TagRulesClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string, options *armnewrelicobservability.TagRulesClientBeginDeleteOptions) (resp azfake.PollerResponder[armnewrelicobservability.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 *armnewrelicobservability.TagRulesClientGetOptions) (resp azfake.Responder[armnewrelicobservability.TagRulesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByNewRelicMonitorResourcePager is the fake for method TagRulesClient.NewListByNewRelicMonitorResourcePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByNewRelicMonitorResourcePager func(resourceGroupName string, monitorName string, options *armnewrelicobservability.TagRulesClientListByNewRelicMonitorResourceOptions) (resp azfake.PagerResponder[armnewrelicobservability.TagRulesClientListByNewRelicMonitorResourceResponse])

	// Update is the fake for method TagRulesClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, monitorName string, ruleSetName string, properties armnewrelicobservability.TagRuleUpdate, options *armnewrelicobservability.TagRulesClientUpdateOptions) (resp azfake.Responder[armnewrelicobservability.TagRulesClientUpdateResponse], errResp azfake.ErrorResponder)
}

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

type TagRulesServerTransport

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

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