/
interfaces.go
85 lines (69 loc) · 6.1 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
package servicefabricmeshapi
// 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/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh"
"github.com/Azure/go-autorest/autorest"
)
// ApplicationClientAPI contains the set of methods on the ApplicationClient type.
type ApplicationClientAPI interface {
Create(ctx context.Context, resourceGroupName string, applicationName string, applicationResourceDescription servicefabricmesh.ApplicationResourceDescription) (result servicefabricmesh.ApplicationResourceDescription, err error)
Delete(ctx context.Context, resourceGroupName string, applicationName string) (result autorest.Response, err error)
Get(ctx context.Context, resourceGroupName string, applicationName string) (result servicefabricmesh.ApplicationResourceDescription, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result servicefabricmesh.ApplicationResourceDescriptionListPage, err error)
ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result servicefabricmesh.ApplicationResourceDescriptionListIterator, err error)
ListBySubscription(ctx context.Context) (result servicefabricmesh.ApplicationResourceDescriptionListPage, err error)
ListBySubscriptionComplete(ctx context.Context) (result servicefabricmesh.ApplicationResourceDescriptionListIterator, err error)
}
var _ ApplicationClientAPI = (*servicefabricmesh.ApplicationClient)(nil)
// ServiceClientAPI contains the set of methods on the ServiceClient type.
type ServiceClientAPI interface {
Get(ctx context.Context, resourceGroupName string, applicationName string, serviceName string) (result servicefabricmesh.ServiceResourceDescription, err error)
ListByApplicationName(ctx context.Context, resourceGroupName string, applicationName string) (result servicefabricmesh.ServiceListPage, err error)
ListByApplicationNameComplete(ctx context.Context, resourceGroupName string, applicationName string) (result servicefabricmesh.ServiceListIterator, err error)
}
var _ ServiceClientAPI = (*servicefabricmesh.ServiceClient)(nil)
// ReplicaClientAPI contains the set of methods on the ReplicaClient type.
type ReplicaClientAPI interface {
Get(ctx context.Context, resourceGroupName string, applicationName string, serviceName string, replicaName string) (result servicefabricmesh.ServiceReplicaDescription, err error)
ListByServiceName(ctx context.Context, resourceGroupName string, applicationName string, serviceName string) (result servicefabricmesh.ServiceReplicaListPage, err error)
ListByServiceNameComplete(ctx context.Context, resourceGroupName string, applicationName string, serviceName string) (result servicefabricmesh.ServiceReplicaListIterator, err error)
}
var _ ReplicaClientAPI = (*servicefabricmesh.ReplicaClient)(nil)
// CodePackageClientAPI contains the set of methods on the CodePackageClient type.
type CodePackageClientAPI interface {
GetContainerLog(ctx context.Context, resourceGroupName string, applicationName string, serviceName string, replicaName string, codePackageName string, tail *int32) (result servicefabricmesh.ContainerLogs, err error)
}
var _ CodePackageClientAPI = (*servicefabricmesh.CodePackageClient)(nil)
// OperationsClientAPI contains the set of methods on the OperationsClient type.
type OperationsClientAPI interface {
List(ctx context.Context) (result servicefabricmesh.OperationListResultPage, err error)
ListComplete(ctx context.Context) (result servicefabricmesh.OperationListResultIterator, err error)
}
var _ OperationsClientAPI = (*servicefabricmesh.OperationsClient)(nil)
// NetworkClientAPI contains the set of methods on the NetworkClient type.
type NetworkClientAPI interface {
Create(ctx context.Context, resourceGroupName string, networkName string, networkResourceDescription servicefabricmesh.NetworkResourceDescription) (result servicefabricmesh.NetworkResourceDescription, err error)
Delete(ctx context.Context, resourceGroupName string, networkName string) (result autorest.Response, err error)
Get(ctx context.Context, resourceGroupName string, networkName string) (result servicefabricmesh.NetworkResourceDescription, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result servicefabricmesh.NetworkResourceDescriptionListPage, err error)
ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result servicefabricmesh.NetworkResourceDescriptionListIterator, err error)
ListBySubscription(ctx context.Context) (result servicefabricmesh.NetworkResourceDescriptionListPage, err error)
ListBySubscriptionComplete(ctx context.Context) (result servicefabricmesh.NetworkResourceDescriptionListIterator, err error)
}
var _ NetworkClientAPI = (*servicefabricmesh.NetworkClient)(nil)
// VolumeClientAPI contains the set of methods on the VolumeClient type.
type VolumeClientAPI interface {
Create(ctx context.Context, resourceGroupName string, volumeName string, volumeResourceDescription servicefabricmesh.VolumeResourceDescription) (result servicefabricmesh.VolumeResourceDescription, err error)
Delete(ctx context.Context, resourceGroupName string, volumeName string) (result autorest.Response, err error)
Get(ctx context.Context, resourceGroupName string, volumeName string) (result servicefabricmesh.VolumeResourceDescription, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result servicefabricmesh.VolumeResourceDescriptionListPage, err error)
ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result servicefabricmesh.VolumeResourceDescriptionListIterator, err error)
ListBySubscription(ctx context.Context) (result servicefabricmesh.VolumeResourceDescriptionListPage, err error)
ListBySubscriptionComplete(ctx context.Context) (result servicefabricmesh.VolumeResourceDescriptionListIterator, err error)
}
var _ VolumeClientAPI = (*servicefabricmesh.VolumeClient)(nil)