-
Notifications
You must be signed in to change notification settings - Fork 803
/
interfaces.go
121 lines (99 loc) · 7 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
package peeringapi
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// 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/preview/peering/mgmt/2019-09-01-preview/peering"
"github.com/Azure/go-autorest/autorest"
)
// BaseClientAPI contains the set of methods on the BaseClient type.
type BaseClientAPI interface {
CheckServiceProviderAvailability(ctx context.Context, checkServiceProviderAvailabilityInput peering.CheckServiceProviderAvailabilityInput) (result peering.String, err error)
}
var _ BaseClientAPI = (*peering.BaseClient)(nil)
// LegacyPeeringsClientAPI contains the set of methods on the LegacyPeeringsClient type.
type LegacyPeeringsClientAPI interface {
List(ctx context.Context, peeringLocation string, kind string) (result peering.ListResultPage, err error)
ListComplete(ctx context.Context, peeringLocation string, kind string) (result peering.ListResultIterator, err error)
}
var _ LegacyPeeringsClientAPI = (*peering.LegacyPeeringsClient)(nil)
// OperationsClientAPI contains the set of methods on the OperationsClient type.
type OperationsClientAPI interface {
List(ctx context.Context) (result peering.OperationListResultPage, err error)
ListComplete(ctx context.Context) (result peering.OperationListResultIterator, err error)
}
var _ OperationsClientAPI = (*peering.OperationsClient)(nil)
// PeerAsnsClientAPI contains the set of methods on the PeerAsnsClient type.
type PeerAsnsClientAPI interface {
CreateOrUpdate(ctx context.Context, peerAsnName string, peerAsn peering.PeerAsn) (result peering.PeerAsn, err error)
Delete(ctx context.Context, peerAsnName string) (result autorest.Response, err error)
Get(ctx context.Context, peerAsnName string) (result peering.PeerAsn, err error)
ListBySubscription(ctx context.Context) (result peering.PeerAsnListResultPage, err error)
ListBySubscriptionComplete(ctx context.Context) (result peering.PeerAsnListResultIterator, err error)
}
var _ PeerAsnsClientAPI = (*peering.PeerAsnsClient)(nil)
// LocationsClientAPI contains the set of methods on the LocationsClient type.
type LocationsClientAPI interface {
List(ctx context.Context, kind string, directPeeringType string) (result peering.LocationListResultPage, err error)
ListComplete(ctx context.Context, kind string, directPeeringType string) (result peering.LocationListResultIterator, err error)
}
var _ LocationsClientAPI = (*peering.LocationsClient)(nil)
// PeeringsClientAPI contains the set of methods on the PeeringsClient type.
type PeeringsClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, peeringName string, peering peering.Model) (result peering.Model, err error)
Delete(ctx context.Context, resourceGroupName string, peeringName string) (result autorest.Response, err error)
Get(ctx context.Context, resourceGroupName string, peeringName string) (result peering.Model, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result peering.ListResultPage, err error)
ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result peering.ListResultIterator, err error)
ListBySubscription(ctx context.Context) (result peering.ListResultPage, err error)
ListBySubscriptionComplete(ctx context.Context) (result peering.ListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, peeringName string, tags peering.ResourceTags) (result peering.Model, err error)
}
var _ PeeringsClientAPI = (*peering.PeeringsClient)(nil)
// ServiceLocationsClientAPI contains the set of methods on the ServiceLocationsClient type.
type ServiceLocationsClientAPI interface {
List(ctx context.Context) (result peering.ServiceLocationListResultPage, err error)
ListComplete(ctx context.Context) (result peering.ServiceLocationListResultIterator, err error)
}
var _ ServiceLocationsClientAPI = (*peering.ServiceLocationsClient)(nil)
// PrefixesClientAPI contains the set of methods on the PrefixesClient type.
type PrefixesClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, peeringServiceName string, prefixName string, peeringServicePrefix peering.ServicePrefix) (result peering.ServicePrefix, err error)
Delete(ctx context.Context, resourceGroupName string, peeringServiceName string, prefixName string) (result autorest.Response, err error)
Get(ctx context.Context, resourceGroupName string, peeringServiceName string, prefixName string, expand string) (result peering.ServicePrefix, err error)
ListByPeeringService(ctx context.Context, resourceGroupName string, peeringServiceName string, expand string) (result peering.ServicePrefixListResultPage, err error)
ListByPeeringServiceComplete(ctx context.Context, resourceGroupName string, peeringServiceName string, expand string) (result peering.ServicePrefixListResultIterator, err error)
}
var _ PrefixesClientAPI = (*peering.PrefixesClient)(nil)
// ServiceProvidersClientAPI contains the set of methods on the ServiceProvidersClient type.
type ServiceProvidersClientAPI interface {
List(ctx context.Context) (result peering.ServiceProviderListResultPage, err error)
ListComplete(ctx context.Context) (result peering.ServiceProviderListResultIterator, err error)
}
var _ ServiceProvidersClientAPI = (*peering.ServiceProvidersClient)(nil)
// ServicesClientAPI contains the set of methods on the ServicesClient type.
type ServicesClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, peeringServiceName string, peeringService peering.Service) (result peering.Service, err error)
Delete(ctx context.Context, resourceGroupName string, peeringServiceName string) (result autorest.Response, err error)
Get(ctx context.Context, resourceGroupName string, peeringServiceName string) (result peering.Service, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result peering.ServiceListResultPage, err error)
ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result peering.ServiceListResultIterator, err error)
ListBySubscription(ctx context.Context) (result peering.ServiceListResultPage, err error)
ListBySubscriptionComplete(ctx context.Context) (result peering.ServiceListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, peeringServiceName string, tags peering.ResourceTags) (result peering.Service, err error)
}
var _ ServicesClientAPI = (*peering.ServicesClient)(nil)