1package blockchainapi
2
3// Copyright (c) Microsoft and contributors.  All rights reserved.
4//
5// Licensed under the Apache License, Version 2.0 (the "License");
6// you may not use this file except in compliance with the License.
7// You may obtain a copy of the License at
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13//
14// See the License for the specific language governing permissions and
15// limitations under the License.
16//
17// Code generated by Microsoft (R) AutoRest Code Generator.
18// Changes may cause incorrect behavior and will be lost if the code is regenerated.
19
20import (
21	"context"
22	"github.com/Azure/azure-sdk-for-go/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain"
23)
24
25// MembersClientAPI contains the set of methods on the MembersClient type.
26type MembersClientAPI interface {
27	Create(ctx context.Context, blockchainMemberName string, resourceGroupName string, blockchainMember *blockchain.Member) (result blockchain.MembersCreateFuture, err error)
28	Delete(ctx context.Context, blockchainMemberName string, resourceGroupName string) (result blockchain.MembersDeleteFuture, err error)
29	Get(ctx context.Context, blockchainMemberName string, resourceGroupName string) (result blockchain.Member, err error)
30	List(ctx context.Context, resourceGroupName string) (result blockchain.MemberCollectionPage, err error)
31	ListAll(ctx context.Context) (result blockchain.MemberCollectionPage, err error)
32	ListAPIKeys(ctx context.Context, blockchainMemberName string, resourceGroupName string) (result blockchain.APIKeyCollection, err error)
33	ListConsortiumMembers(ctx context.Context, blockchainMemberName string, resourceGroupName string) (result blockchain.ConsortiumMemberCollectionPage, err error)
34	ListRegenerateAPIKeys(ctx context.Context, blockchainMemberName string, resourceGroupName string, APIKey *blockchain.APIKey) (result blockchain.APIKeyCollection, err error)
35	Update(ctx context.Context, blockchainMemberName string, resourceGroupName string, blockchainMember *blockchain.MemberUpdate) (result blockchain.Member, err error)
36}
37
38var _ MembersClientAPI = (*blockchain.MembersClient)(nil)
39
40// MemberOperationResultsClientAPI contains the set of methods on the MemberOperationResultsClient type.
41type MemberOperationResultsClientAPI interface {
42	Get(ctx context.Context, locationName string, operationID string) (result blockchain.OperationResult, err error)
43}
44
45var _ MemberOperationResultsClientAPI = (*blockchain.MemberOperationResultsClient)(nil)
46
47// LocationsClientAPI contains the set of methods on the LocationsClient type.
48type LocationsClientAPI interface {
49	CheckNameAvailability(ctx context.Context, locationName string, nameAvailabilityRequest *blockchain.NameAvailabilityRequest) (result blockchain.NameAvailability, err error)
50	ListConsortiums(ctx context.Context, locationName string) (result blockchain.ConsortiumCollection, err error)
51}
52
53var _ LocationsClientAPI = (*blockchain.LocationsClient)(nil)
54
55// OperationsClientAPI contains the set of methods on the OperationsClient type.
56type OperationsClientAPI interface {
57	List(ctx context.Context) (result blockchain.ResourceProviderOperationCollectionPage, err error)
58}
59
60var _ OperationsClientAPI = (*blockchain.OperationsClient)(nil)
61
62// SkusClientAPI contains the set of methods on the SkusClient type.
63type SkusClientAPI interface {
64	List(ctx context.Context) (result blockchain.ResourceTypeSkuCollection, err error)
65}
66
67var _ SkusClientAPI = (*blockchain.SkusClient)(nil)
68
69// TransactionNodesClientAPI contains the set of methods on the TransactionNodesClient type.
70type TransactionNodesClientAPI interface {
71	Create(ctx context.Context, blockchainMemberName string, transactionNodeName string, resourceGroupName string, transactionNode *blockchain.TransactionNode) (result blockchain.TransactionNodesCreateFuture, err error)
72	Delete(ctx context.Context, blockchainMemberName string, transactionNodeName string, resourceGroupName string) (result blockchain.TransactionNodesDeleteFuture, err error)
73	Get(ctx context.Context, blockchainMemberName string, transactionNodeName string, resourceGroupName string) (result blockchain.TransactionNode, err error)
74	List(ctx context.Context, blockchainMemberName string, resourceGroupName string) (result blockchain.TransactionNodeCollectionPage, err error)
75	ListAPIKeys(ctx context.Context, blockchainMemberName string, transactionNodeName string, resourceGroupName string) (result blockchain.APIKeyCollection, err error)
76	ListRegenerateAPIKeys(ctx context.Context, blockchainMemberName string, transactionNodeName string, resourceGroupName string, APIKey *blockchain.APIKey) (result blockchain.APIKeyCollection, err error)
77	Update(ctx context.Context, blockchainMemberName string, transactionNodeName string, resourceGroupName string, transactionNode *blockchain.TransactionNodeUpdate) (result blockchain.TransactionNode, err error)
78}
79
80var _ TransactionNodesClientAPI = (*blockchain.TransactionNodesClient)(nil)
81