-
Notifications
You must be signed in to change notification settings - Fork 821
/
interfaces.go
151 lines (123 loc) · 9.36 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
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/2020-01-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, asn *int32) (result peering.ListResultPage, err error)
ListComplete(ctx context.Context, peeringLocation string, kind string, asn *int32) (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)
// RegisteredAsnsClientAPI contains the set of methods on the RegisteredAsnsClient type.
type RegisteredAsnsClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, peeringName string, registeredAsnName string, registeredAsn peering.RegisteredAsn) (result peering.RegisteredAsn, err error)
Delete(ctx context.Context, resourceGroupName string, peeringName string, registeredAsnName string) (result autorest.Response, err error)
Get(ctx context.Context, resourceGroupName string, peeringName string, registeredAsnName string) (result peering.RegisteredAsn, err error)
ListByPeering(ctx context.Context, resourceGroupName string, peeringName string) (result peering.RegisteredAsnListResultPage, err error)
ListByPeeringComplete(ctx context.Context, resourceGroupName string, peeringName string) (result peering.RegisteredAsnListResultIterator, err error)
}
var _ RegisteredAsnsClientAPI = (*peering.RegisteredAsnsClient)(nil)
// RegisteredPrefixesClientAPI contains the set of methods on the RegisteredPrefixesClient type.
type RegisteredPrefixesClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, peeringName string, registeredPrefixName string, registeredPrefix peering.RegisteredPrefix) (result peering.RegisteredPrefix, err error)
Delete(ctx context.Context, resourceGroupName string, peeringName string, registeredPrefixName string) (result autorest.Response, err error)
Get(ctx context.Context, resourceGroupName string, peeringName string, registeredPrefixName string) (result peering.RegisteredPrefix, err error)
ListByPeering(ctx context.Context, resourceGroupName string, peeringName string) (result peering.RegisteredPrefixListResultPage, err error)
ListByPeeringComplete(ctx context.Context, resourceGroupName string, peeringName string) (result peering.RegisteredPrefixListResultIterator, err error)
}
var _ RegisteredPrefixesClientAPI = (*peering.RegisteredPrefixesClient)(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)
// ServiceCountriesClientAPI contains the set of methods on the ServiceCountriesClient type.
type ServiceCountriesClientAPI interface {
List(ctx context.Context) (result peering.ServiceCountryListResultPage, err error)
ListComplete(ctx context.Context) (result peering.ServiceCountryListResultIterator, err error)
}
var _ ServiceCountriesClientAPI = (*peering.ServiceCountriesClient)(nil)
// ServiceLocationsClientAPI contains the set of methods on the ServiceLocationsClient type.
type ServiceLocationsClientAPI interface {
List(ctx context.Context, country string) (result peering.ServiceLocationListResultPage, err error)
ListComplete(ctx context.Context, country string) (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)