-
Notifications
You must be signed in to change notification settings - Fork 802
/
interfaces.go
68 lines (56 loc) · 4.89 KB
/
interfaces.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package purviewapi
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"context"
"github.com/Azure/azure-sdk-for-go/services/purview/mgmt/2021-07-01/purview"
"github.com/Azure/go-autorest/autorest"
"github.com/gofrs/uuid"
)
// AccountsClientAPI contains the set of methods on the AccountsClient type.
type AccountsClientAPI interface {
AddRootCollectionAdmin(ctx context.Context, resourceGroupName string, accountName string, collectionAdminUpdate purview.CollectionAdminUpdate) (result autorest.Response, err error)
CheckNameAvailability(ctx context.Context, checkNameAvailabilityRequest purview.CheckNameAvailabilityRequest) (result purview.CheckNameAvailabilityResult, err error)
CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, account purview.Account) (result purview.AccountsCreateOrUpdateFuture, err error)
Delete(ctx context.Context, resourceGroupName string, accountName string) (result purview.AccountsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, accountName string) (result purview.Account, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string, skipToken string) (result purview.AccountListPage, err error)
ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, skipToken string) (result purview.AccountListIterator, err error)
ListBySubscription(ctx context.Context, skipToken string) (result purview.AccountListPage, err error)
ListBySubscriptionComplete(ctx context.Context, skipToken string) (result purview.AccountListIterator, err error)
ListKeys(ctx context.Context, resourceGroupName string, accountName string) (result purview.AccessKeys, err error)
Update(ctx context.Context, resourceGroupName string, accountName string, accountUpdateParameters purview.AccountUpdateParameters) (result purview.AccountsUpdateFuture, err error)
}
var _ AccountsClientAPI = (*purview.AccountsClient)(nil)
// DefaultAccountsClientAPI contains the set of methods on the DefaultAccountsClient type.
type DefaultAccountsClientAPI interface {
Get(ctx context.Context, scopeTenantID uuid.UUID, scopeType purview.ScopeType, scope string) (result purview.DefaultAccountPayload, err error)
Remove(ctx context.Context, scopeTenantID uuid.UUID, scopeType purview.ScopeType, scope string) (result autorest.Response, err error)
Set(ctx context.Context, defaultAccountPayload purview.DefaultAccountPayload) (result purview.DefaultAccountPayload, err error)
}
var _ DefaultAccountsClientAPI = (*purview.DefaultAccountsClient)(nil)
// OperationsClientAPI contains the set of methods on the OperationsClient type.
type OperationsClientAPI interface {
List(ctx context.Context) (result purview.OperationListPage, err error)
ListComplete(ctx context.Context) (result purview.OperationListIterator, err error)
}
var _ OperationsClientAPI = (*purview.OperationsClient)(nil)
// PrivateEndpointConnectionsClientAPI contains the set of methods on the PrivateEndpointConnectionsClient type.
type PrivateEndpointConnectionsClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string, request purview.PrivateEndpointConnection) (result purview.PrivateEndpointConnectionsCreateOrUpdateFuture, err error)
Delete(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string) (result purview.PrivateEndpointConnectionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string) (result purview.PrivateEndpointConnection, err error)
ListByAccount(ctx context.Context, resourceGroupName string, accountName string, skipToken string) (result purview.PrivateEndpointConnectionListPage, err error)
ListByAccountComplete(ctx context.Context, resourceGroupName string, accountName string, skipToken string) (result purview.PrivateEndpointConnectionListIterator, err error)
}
var _ PrivateEndpointConnectionsClientAPI = (*purview.PrivateEndpointConnectionsClient)(nil)
// PrivateLinkResourcesClientAPI contains the set of methods on the PrivateLinkResourcesClient type.
type PrivateLinkResourcesClientAPI interface {
GetByGroupID(ctx context.Context, resourceGroupName string, accountName string, groupID string) (result purview.PrivateLinkResource, err error)
ListByAccount(ctx context.Context, resourceGroupName string, accountName string) (result purview.PrivateLinkResourceListPage, err error)
ListByAccountComplete(ctx context.Context, resourceGroupName string, accountName string) (result purview.PrivateLinkResourceListIterator, err error)
}
var _ PrivateLinkResourcesClientAPI = (*purview.PrivateLinkResourcesClient)(nil)