Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NamespacesServer ¶
type NamespacesServer struct {
// CheckAvailability is the fake for method NamespacesClient.CheckAvailability
// HTTP status codes to indicate success: http.StatusOK
CheckAvailability func(ctx context.Context, parameters armnotificationhubs.CheckAvailabilityParameters, options *armnotificationhubs.NamespacesClientCheckAvailabilityOptions) (resp azfake.Responder[armnotificationhubs.NamespacesClientCheckAvailabilityResponse], errResp azfake.ErrorResponder)
// BeginCreateOrUpdate is the fake for method NamespacesClient.BeginCreateOrUpdate
// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, namespaceName string, parameters armnotificationhubs.NamespaceResource, options *armnotificationhubs.NamespacesClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armnotificationhubs.NamespacesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)
// CreateOrUpdateAuthorizationRule is the fake for method NamespacesClient.CreateOrUpdateAuthorizationRule
// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
CreateOrUpdateAuthorizationRule func(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string, parameters armnotificationhubs.SharedAccessAuthorizationRuleResource, options *armnotificationhubs.NamespacesClientCreateOrUpdateAuthorizationRuleOptions) (resp azfake.Responder[armnotificationhubs.NamespacesClientCreateOrUpdateAuthorizationRuleResponse], errResp azfake.ErrorResponder)
// Delete is the fake for method NamespacesClient.Delete
// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
Delete func(ctx context.Context, resourceGroupName string, namespaceName string, options *armnotificationhubs.NamespacesClientDeleteOptions) (resp azfake.Responder[armnotificationhubs.NamespacesClientDeleteResponse], errResp azfake.ErrorResponder)
// DeleteAuthorizationRule is the fake for method NamespacesClient.DeleteAuthorizationRule
// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
DeleteAuthorizationRule func(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string, options *armnotificationhubs.NamespacesClientDeleteAuthorizationRuleOptions) (resp azfake.Responder[armnotificationhubs.NamespacesClientDeleteAuthorizationRuleResponse], errResp azfake.ErrorResponder)
// Get is the fake for method NamespacesClient.Get
// HTTP status codes to indicate success: http.StatusOK
Get func(ctx context.Context, resourceGroupName string, namespaceName string, options *armnotificationhubs.NamespacesClientGetOptions) (resp azfake.Responder[armnotificationhubs.NamespacesClientGetResponse], errResp azfake.ErrorResponder)
// GetAuthorizationRule is the fake for method NamespacesClient.GetAuthorizationRule
// HTTP status codes to indicate success: http.StatusOK
GetAuthorizationRule func(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string, options *armnotificationhubs.NamespacesClientGetAuthorizationRuleOptions) (resp azfake.Responder[armnotificationhubs.NamespacesClientGetAuthorizationRuleResponse], errResp azfake.ErrorResponder)
// GetPnsCredentials is the fake for method NamespacesClient.GetPnsCredentials
// HTTP status codes to indicate success: http.StatusOK
GetPnsCredentials func(ctx context.Context, resourceGroupName string, namespaceName string, options *armnotificationhubs.NamespacesClientGetPnsCredentialsOptions) (resp azfake.Responder[armnotificationhubs.NamespacesClientGetPnsCredentialsResponse], errResp azfake.ErrorResponder)
// NewListPager is the fake for method NamespacesClient.NewListPager
// HTTP status codes to indicate success: http.StatusOK
NewListPager func(resourceGroupName string, options *armnotificationhubs.NamespacesClientListOptions) (resp azfake.PagerResponder[armnotificationhubs.NamespacesClientListResponse])
// NewListAllPager is the fake for method NamespacesClient.NewListAllPager
// HTTP status codes to indicate success: http.StatusOK
NewListAllPager func(options *armnotificationhubs.NamespacesClientListAllOptions) (resp azfake.PagerResponder[armnotificationhubs.NamespacesClientListAllResponse])
// NewListAuthorizationRulesPager is the fake for method NamespacesClient.NewListAuthorizationRulesPager
// HTTP status codes to indicate success: http.StatusOK
NewListAuthorizationRulesPager func(resourceGroupName string, namespaceName string, options *armnotificationhubs.NamespacesClientListAuthorizationRulesOptions) (resp azfake.PagerResponder[armnotificationhubs.NamespacesClientListAuthorizationRulesResponse])
// ListKeys is the fake for method NamespacesClient.ListKeys
// HTTP status codes to indicate success: http.StatusOK
ListKeys func(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string, options *armnotificationhubs.NamespacesClientListKeysOptions) (resp azfake.Responder[armnotificationhubs.NamespacesClientListKeysResponse], errResp azfake.ErrorResponder)
// RegenerateKeys is the fake for method NamespacesClient.RegenerateKeys
// HTTP status codes to indicate success: http.StatusOK
RegenerateKeys func(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string, parameters armnotificationhubs.PolicyKeyResource, options *armnotificationhubs.NamespacesClientRegenerateKeysOptions) (resp azfake.Responder[armnotificationhubs.NamespacesClientRegenerateKeysResponse], errResp azfake.ErrorResponder)
// Update is the fake for method NamespacesClient.Update
// HTTP status codes to indicate success: http.StatusOK
Update func(ctx context.Context, resourceGroupName string, namespaceName string, parameters armnotificationhubs.NamespacePatchParameters, options *armnotificationhubs.NamespacesClientUpdateOptions) (resp azfake.Responder[armnotificationhubs.NamespacesClientUpdateResponse], errResp azfake.ErrorResponder)
}
NamespacesServer is a fake server for instances of the armnotificationhubs.NamespacesClient type.
type NamespacesServerTransport ¶
type NamespacesServerTransport struct {
// contains filtered or unexported fields
}
NamespacesServerTransport connects instances of armnotificationhubs.NamespacesClient to instances of NamespacesServer. Don't use this type directly, use NewNamespacesServerTransport instead.
func NewNamespacesServerTransport ¶
func NewNamespacesServerTransport(srv *NamespacesServer) *NamespacesServerTransport
NewNamespacesServerTransport creates a new instance of NamespacesServerTransport with the provided implementation. The returned NamespacesServerTransport instance is connected to an instance of armnotificationhubs.NamespacesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.
type OperationsServer ¶
type OperationsServer struct {
// NewListPager is the fake for method OperationsClient.NewListPager
// HTTP status codes to indicate success: http.StatusOK
NewListPager func(options *armnotificationhubs.OperationsClientListOptions) (resp azfake.PagerResponder[armnotificationhubs.OperationsClientListResponse])
}
OperationsServer is a fake server for instances of the armnotificationhubs.OperationsClient type.
type OperationsServerTransport ¶
type OperationsServerTransport struct {
// contains filtered or unexported fields
}
OperationsServerTransport connects instances of armnotificationhubs.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 armnotificationhubs.OperationsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.
type PrivateEndpointConnectionsServer ¶
type PrivateEndpointConnectionsServer struct {
// BeginDelete is the fake for method PrivateEndpointConnectionsClient.BeginDelete
// HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent
BeginDelete func(ctx context.Context, resourceGroupName string, namespaceName string, privateEndpointConnectionName string, options *armnotificationhubs.PrivateEndpointConnectionsClientBeginDeleteOptions) (resp azfake.PollerResponder[armnotificationhubs.PrivateEndpointConnectionsClientDeleteResponse], errResp azfake.ErrorResponder)
// Get is the fake for method PrivateEndpointConnectionsClient.Get
// HTTP status codes to indicate success: http.StatusOK
Get func(ctx context.Context, resourceGroupName string, namespaceName string, privateEndpointConnectionName string, options *armnotificationhubs.PrivateEndpointConnectionsClientGetOptions) (resp azfake.Responder[armnotificationhubs.PrivateEndpointConnectionsClientGetResponse], errResp azfake.ErrorResponder)
// GetGroupID is the fake for method PrivateEndpointConnectionsClient.GetGroupID
// HTTP status codes to indicate success: http.StatusOK
GetGroupID func(ctx context.Context, resourceGroupName string, namespaceName string, subResourceName string, options *armnotificationhubs.PrivateEndpointConnectionsClientGetGroupIDOptions) (resp azfake.Responder[armnotificationhubs.PrivateEndpointConnectionsClientGetGroupIDResponse], errResp azfake.ErrorResponder)
// NewListPager is the fake for method PrivateEndpointConnectionsClient.NewListPager
// HTTP status codes to indicate success: http.StatusOK
NewListPager func(resourceGroupName string, namespaceName string, options *armnotificationhubs.PrivateEndpointConnectionsClientListOptions) (resp azfake.PagerResponder[armnotificationhubs.PrivateEndpointConnectionsClientListResponse])
// NewListGroupIDsPager is the fake for method PrivateEndpointConnectionsClient.NewListGroupIDsPager
// HTTP status codes to indicate success: http.StatusOK
NewListGroupIDsPager func(resourceGroupName string, namespaceName string, options *armnotificationhubs.PrivateEndpointConnectionsClientListGroupIDsOptions) (resp azfake.PagerResponder[armnotificationhubs.PrivateEndpointConnectionsClientListGroupIDsResponse])
// BeginUpdate is the fake for method PrivateEndpointConnectionsClient.BeginUpdate
// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
BeginUpdate func(ctx context.Context, resourceGroupName string, namespaceName string, privateEndpointConnectionName string, parameters armnotificationhubs.PrivateEndpointConnectionResource, options *armnotificationhubs.PrivateEndpointConnectionsClientBeginUpdateOptions) (resp azfake.PollerResponder[armnotificationhubs.PrivateEndpointConnectionsClientUpdateResponse], errResp azfake.ErrorResponder)
}
PrivateEndpointConnectionsServer is a fake server for instances of the armnotificationhubs.PrivateEndpointConnectionsClient type.
type PrivateEndpointConnectionsServerTransport ¶
type PrivateEndpointConnectionsServerTransport struct {
// contains filtered or unexported fields
}
PrivateEndpointConnectionsServerTransport connects instances of armnotificationhubs.PrivateEndpointConnectionsClient to instances of PrivateEndpointConnectionsServer. Don't use this type directly, use NewPrivateEndpointConnectionsServerTransport instead.
func NewPrivateEndpointConnectionsServerTransport ¶
func NewPrivateEndpointConnectionsServerTransport(srv *PrivateEndpointConnectionsServer) *PrivateEndpointConnectionsServerTransport
NewPrivateEndpointConnectionsServerTransport creates a new instance of PrivateEndpointConnectionsServerTransport with the provided implementation. The returned PrivateEndpointConnectionsServerTransport instance is connected to an instance of armnotificationhubs.PrivateEndpointConnectionsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.
type Server ¶
type Server struct {
// CheckNotificationHubAvailability is the fake for method Client.CheckNotificationHubAvailability
// HTTP status codes to indicate success: http.StatusOK
CheckNotificationHubAvailability func(ctx context.Context, resourceGroupName string, namespaceName string, parameters armnotificationhubs.CheckAvailabilityParameters, options *armnotificationhubs.ClientCheckNotificationHubAvailabilityOptions) (resp azfake.Responder[armnotificationhubs.ClientCheckNotificationHubAvailabilityResponse], errResp azfake.ErrorResponder)
// CreateOrUpdate is the fake for method Client.CreateOrUpdate
// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
CreateOrUpdate func(ctx context.Context, resourceGroupName string, namespaceName string, notificationHubName string, parameters armnotificationhubs.NotificationHubResource, options *armnotificationhubs.ClientCreateOrUpdateOptions) (resp azfake.Responder[armnotificationhubs.ClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)
// CreateOrUpdateAuthorizationRule is the fake for method Client.CreateOrUpdateAuthorizationRule
// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
CreateOrUpdateAuthorizationRule func(ctx context.Context, resourceGroupName string, namespaceName string, notificationHubName string, authorizationRuleName string, parameters armnotificationhubs.SharedAccessAuthorizationRuleResource, options *armnotificationhubs.ClientCreateOrUpdateAuthorizationRuleOptions) (resp azfake.Responder[armnotificationhubs.ClientCreateOrUpdateAuthorizationRuleResponse], errResp azfake.ErrorResponder)
// DebugSend is the fake for method Client.DebugSend
// HTTP status codes to indicate success: http.StatusOK
DebugSend func(ctx context.Context, resourceGroupName string, namespaceName string, notificationHubName string, options *armnotificationhubs.ClientDebugSendOptions) (resp azfake.Responder[armnotificationhubs.ClientDebugSendResponse], errResp azfake.ErrorResponder)
// Delete is the fake for method Client.Delete
// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
Delete func(ctx context.Context, resourceGroupName string, namespaceName string, notificationHubName string, options *armnotificationhubs.ClientDeleteOptions) (resp azfake.Responder[armnotificationhubs.ClientDeleteResponse], errResp azfake.ErrorResponder)
// DeleteAuthorizationRule is the fake for method Client.DeleteAuthorizationRule
// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
DeleteAuthorizationRule func(ctx context.Context, resourceGroupName string, namespaceName string, notificationHubName string, authorizationRuleName string, options *armnotificationhubs.ClientDeleteAuthorizationRuleOptions) (resp azfake.Responder[armnotificationhubs.ClientDeleteAuthorizationRuleResponse], errResp azfake.ErrorResponder)
// Get is the fake for method Client.Get
// HTTP status codes to indicate success: http.StatusOK
Get func(ctx context.Context, resourceGroupName string, namespaceName string, notificationHubName string, options *armnotificationhubs.ClientGetOptions) (resp azfake.Responder[armnotificationhubs.ClientGetResponse], errResp azfake.ErrorResponder)
// GetAuthorizationRule is the fake for method Client.GetAuthorizationRule
// HTTP status codes to indicate success: http.StatusOK
GetAuthorizationRule func(ctx context.Context, resourceGroupName string, namespaceName string, notificationHubName string, authorizationRuleName string, options *armnotificationhubs.ClientGetAuthorizationRuleOptions) (resp azfake.Responder[armnotificationhubs.ClientGetAuthorizationRuleResponse], errResp azfake.ErrorResponder)
// GetPnsCredentials is the fake for method Client.GetPnsCredentials
// HTTP status codes to indicate success: http.StatusOK
GetPnsCredentials func(ctx context.Context, resourceGroupName string, namespaceName string, notificationHubName string, options *armnotificationhubs.ClientGetPnsCredentialsOptions) (resp azfake.Responder[armnotificationhubs.ClientGetPnsCredentialsResponse], errResp azfake.ErrorResponder)
// NewListPager is the fake for method Client.NewListPager
// HTTP status codes to indicate success: http.StatusOK
NewListPager func(resourceGroupName string, namespaceName string, options *armnotificationhubs.ClientListOptions) (resp azfake.PagerResponder[armnotificationhubs.ClientListResponse])
// NewListAuthorizationRulesPager is the fake for method Client.NewListAuthorizationRulesPager
// HTTP status codes to indicate success: http.StatusOK
NewListAuthorizationRulesPager func(resourceGroupName string, namespaceName string, notificationHubName string, options *armnotificationhubs.ClientListAuthorizationRulesOptions) (resp azfake.PagerResponder[armnotificationhubs.ClientListAuthorizationRulesResponse])
// ListKeys is the fake for method Client.ListKeys
// HTTP status codes to indicate success: http.StatusOK
ListKeys func(ctx context.Context, resourceGroupName string, namespaceName string, notificationHubName string, authorizationRuleName string, options *armnotificationhubs.ClientListKeysOptions) (resp azfake.Responder[armnotificationhubs.ClientListKeysResponse], errResp azfake.ErrorResponder)
// RegenerateKeys is the fake for method Client.RegenerateKeys
// HTTP status codes to indicate success: http.StatusOK
RegenerateKeys func(ctx context.Context, resourceGroupName string, namespaceName string, notificationHubName string, authorizationRuleName string, parameters armnotificationhubs.PolicyKeyResource, options *armnotificationhubs.ClientRegenerateKeysOptions) (resp azfake.Responder[armnotificationhubs.ClientRegenerateKeysResponse], errResp azfake.ErrorResponder)
// Update is the fake for method Client.Update
// HTTP status codes to indicate success: http.StatusOK
Update func(ctx context.Context, resourceGroupName string, namespaceName string, notificationHubName string, parameters armnotificationhubs.NotificationHubPatchParameters, options *armnotificationhubs.ClientUpdateOptions) (resp azfake.Responder[armnotificationhubs.ClientUpdateResponse], errResp azfake.ErrorResponder)
}
Server is a fake server for instances of the armnotificationhubs.Client type.
type ServerFactory ¶
type ServerFactory struct {
Server Server
NamespacesServer NamespacesServer
OperationsServer OperationsServer
PrivateEndpointConnectionsServer PrivateEndpointConnectionsServer
}
ServerFactory is a fake server for instances of the armnotificationhubs.ClientFactory type.
type ServerFactoryTransport ¶
type ServerFactoryTransport struct {
// contains filtered or unexported fields
}
ServerFactoryTransport connects instances of armnotificationhubs.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 armnotificationhubs.ClientFactory via the azcore.ClientOptions.Transporter field in the client's constructor parameters.
type ServerTransport ¶
type ServerTransport struct {
// contains filtered or unexported fields
}
ServerTransport connects instances of armnotificationhubs.Client to instances of Server. Don't use this type directly, use NewServerTransport instead.
func NewServerTransport ¶
func NewServerTransport(srv *Server) *ServerTransport
NewServerTransport creates a new instance of ServerTransport with the provided implementation. The returned ServerTransport instance is connected to an instance of armnotificationhubs.Client via the azcore.ClientOptions.Transporter field in the client's constructor parameters.