fake

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 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 OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of arminformaticadatamgmt.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 arminformaticadatamgmt.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 {
	// BeginCreateOrUpdate is the fake for method OrganizationsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, organizationName string, resource arminformaticadatamgmt.InformaticaOrganizationResource, options *arminformaticadatamgmt.OrganizationsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[arminformaticadatamgmt.OrganizationsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method OrganizationsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, organizationName string, options *arminformaticadatamgmt.OrganizationsClientBeginDeleteOptions) (resp azfake.PollerResponder[arminformaticadatamgmt.OrganizationsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method OrganizationsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, organizationName string, options *arminformaticadatamgmt.OrganizationsClientGetOptions) (resp azfake.Responder[arminformaticadatamgmt.OrganizationsClientGetResponse], errResp azfake.ErrorResponder)

	// GetAllServerlessRuntimes is the fake for method OrganizationsClient.GetAllServerlessRuntimes
	// HTTP status codes to indicate success: http.StatusOK
	GetAllServerlessRuntimes func(ctx context.Context, resourceGroupName string, organizationName string, options *arminformaticadatamgmt.OrganizationsClientGetAllServerlessRuntimesOptions) (resp azfake.Responder[arminformaticadatamgmt.OrganizationsClientGetAllServerlessRuntimesResponse], errResp azfake.ErrorResponder)

	// GetServerlessMetadata is the fake for method OrganizationsClient.GetServerlessMetadata
	// HTTP status codes to indicate success: http.StatusOK
	GetServerlessMetadata func(ctx context.Context, resourceGroupName string, organizationName string, options *arminformaticadatamgmt.OrganizationsClientGetServerlessMetadataOptions) (resp azfake.Responder[arminformaticadatamgmt.OrganizationsClientGetServerlessMetadataResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method OrganizationsClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *arminformaticadatamgmt.OrganizationsClientListByResourceGroupOptions) (resp azfake.PagerResponder[arminformaticadatamgmt.OrganizationsClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method OrganizationsClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *arminformaticadatamgmt.OrganizationsClientListBySubscriptionOptions) (resp azfake.PagerResponder[arminformaticadatamgmt.OrganizationsClientListBySubscriptionResponse])

	// Update is the fake for method OrganizationsClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, organizationName string, properties arminformaticadatamgmt.InformaticaOrganizationResourceUpdate, options *arminformaticadatamgmt.OrganizationsClientUpdateOptions) (resp azfake.Responder[arminformaticadatamgmt.OrganizationsClientUpdateResponse], errResp azfake.ErrorResponder)
}

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

type OrganizationsServerTransport

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

OrganizationsServerTransport connects instances of arminformaticadatamgmt.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 arminformaticadatamgmt.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 ServerFactory

type ServerFactory struct {
	OperationsServer         OperationsServer
	OrganizationsServer      OrganizationsServer
	ServerlessRuntimesServer ServerlessRuntimesServer
}

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

type ServerFactoryTransport

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

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

type ServerlessRuntimesServer struct {
	// CheckDependencies is the fake for method ServerlessRuntimesClient.CheckDependencies
	// HTTP status codes to indicate success: http.StatusOK
	CheckDependencies func(ctx context.Context, resourceGroupName string, organizationName string, serverlessRuntimeName string, options *arminformaticadatamgmt.ServerlessRuntimesClientCheckDependenciesOptions) (resp azfake.Responder[arminformaticadatamgmt.ServerlessRuntimesClientCheckDependenciesResponse], errResp azfake.ErrorResponder)

	// BeginCreateOrUpdate is the fake for method ServerlessRuntimesClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, organizationName string, serverlessRuntimeName string, resource arminformaticadatamgmt.InformaticaServerlessRuntimeResource, options *arminformaticadatamgmt.ServerlessRuntimesClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[arminformaticadatamgmt.ServerlessRuntimesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method ServerlessRuntimesClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, organizationName string, serverlessRuntimeName string, options *arminformaticadatamgmt.ServerlessRuntimesClientBeginDeleteOptions) (resp azfake.PollerResponder[arminformaticadatamgmt.ServerlessRuntimesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ServerlessRuntimesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, organizationName string, serverlessRuntimeName string, options *arminformaticadatamgmt.ServerlessRuntimesClientGetOptions) (resp azfake.Responder[arminformaticadatamgmt.ServerlessRuntimesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByInformaticaOrganizationResourcePager is the fake for method ServerlessRuntimesClient.NewListByInformaticaOrganizationResourcePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByInformaticaOrganizationResourcePager func(resourceGroupName string, organizationName string, options *arminformaticadatamgmt.ServerlessRuntimesClientListByInformaticaOrganizationResourceOptions) (resp azfake.PagerResponder[arminformaticadatamgmt.ServerlessRuntimesClientListByInformaticaOrganizationResourceResponse])

	// ServerlessResourceByID is the fake for method ServerlessRuntimesClient.ServerlessResourceByID
	// HTTP status codes to indicate success: http.StatusOK
	ServerlessResourceByID func(ctx context.Context, resourceGroupName string, organizationName string, serverlessRuntimeName string, options *arminformaticadatamgmt.ServerlessRuntimesClientServerlessResourceByIDOptions) (resp azfake.Responder[arminformaticadatamgmt.ServerlessRuntimesClientServerlessResourceByIDResponse], errResp azfake.ErrorResponder)

	// StartFailedServerlessRuntime is the fake for method ServerlessRuntimesClient.StartFailedServerlessRuntime
	// HTTP status codes to indicate success: http.StatusNoContent
	StartFailedServerlessRuntime func(ctx context.Context, resourceGroupName string, organizationName string, serverlessRuntimeName string, options *arminformaticadatamgmt.ServerlessRuntimesClientStartFailedServerlessRuntimeOptions) (resp azfake.Responder[arminformaticadatamgmt.ServerlessRuntimesClientStartFailedServerlessRuntimeResponse], errResp azfake.ErrorResponder)

	// Update is the fake for method ServerlessRuntimesClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, organizationName string, serverlessRuntimeName string, properties arminformaticadatamgmt.InformaticaServerlessRuntimeResourceUpdate, options *arminformaticadatamgmt.ServerlessRuntimesClientUpdateOptions) (resp azfake.Responder[arminformaticadatamgmt.ServerlessRuntimesClientUpdateResponse], errResp azfake.ErrorResponder)
}

ServerlessRuntimesServer is a fake server for instances of the arminformaticadatamgmt.ServerlessRuntimesClient type.

type ServerlessRuntimesServerTransport

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

ServerlessRuntimesServerTransport connects instances of arminformaticadatamgmt.ServerlessRuntimesClient to instances of ServerlessRuntimesServer. Don't use this type directly, use NewServerlessRuntimesServerTransport instead.

func NewServerlessRuntimesServerTransport

func NewServerlessRuntimesServerTransport(srv *ServerlessRuntimesServer) *ServerlessRuntimesServerTransport

NewServerlessRuntimesServerTransport creates a new instance of ServerlessRuntimesServerTransport with the provided implementation. The returned ServerlessRuntimesServerTransport instance is connected to an instance of arminformaticadatamgmt.ServerlessRuntimesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ServerlessRuntimesServerTransport) Do

Do implements the policy.Transporter interface for ServerlessRuntimesServerTransport.

Jump to

Keyboard shortcuts

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