forked from Azure/azure-sdk-for-go
/
interfaces.go
65 lines (55 loc) · 4.53 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
package digitaltwinsapi
// 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/digitaltwins/2020-05-31-preview/digitaltwins"
"github.com/Azure/go-autorest/autorest"
)
// ModelsClientAPI contains the set of methods on the ModelsClient type.
type ModelsClientAPI interface {
Add(ctx context.Context, models []interface{}) (result digitaltwins.ListModelData, err error)
Delete(ctx context.Context, ID string) (result autorest.Response, err error)
GetByID(ctx context.Context, ID string, includeModelDefinition *bool) (result digitaltwins.ModelData, err error)
List(ctx context.Context, dependenciesFor []string, includeModelDefinition *bool, maxItemCount *int32) (result digitaltwins.PagedModelDataCollectionPage, err error)
ListComplete(ctx context.Context, dependenciesFor []string, includeModelDefinition *bool, maxItemCount *int32) (result digitaltwins.PagedModelDataCollectionIterator, err error)
Update(ctx context.Context, ID string, updateModel []interface{}) (result autorest.Response, err error)
}
var _ ModelsClientAPI = (*digitaltwins.ModelsClient)(nil)
// QueryClientAPI contains the set of methods on the QueryClient type.
type QueryClientAPI interface {
QueryTwins(ctx context.Context, querySpecification digitaltwins.QuerySpecification) (result digitaltwins.QueryResult, err error)
}
var _ QueryClientAPI = (*digitaltwins.QueryClient)(nil)
// ClientAPI contains the set of methods on the Client type.
type ClientAPI interface {
Add(ctx context.Context, ID string, twin interface{}, ifNoneMatch string) (result digitaltwins.SetObject, err error)
AddRelationship(ctx context.Context, ID string, relationshipID string, relationship *interface{}, ifNoneMatch string) (result digitaltwins.SetObject, err error)
Delete(ctx context.Context, ID string, ifMatch string) (result autorest.Response, err error)
DeleteRelationship(ctx context.Context, ID string, relationshipID string, ifMatch string) (result autorest.Response, err error)
GetByID(ctx context.Context, ID string) (result digitaltwins.SetObject, err error)
GetComponent(ctx context.Context, ID string, componentPath string) (result digitaltwins.SetObject, err error)
GetRelationshipByID(ctx context.Context, ID string, relationshipID string) (result digitaltwins.SetObject, err error)
ListIncomingRelationships(ctx context.Context, ID string) (result digitaltwins.IncomingRelationshipCollectionPage, err error)
ListIncomingRelationshipsComplete(ctx context.Context, ID string) (result digitaltwins.IncomingRelationshipCollectionIterator, err error)
ListRelationships(ctx context.Context, ID string, relationshipName string) (result digitaltwins.RelationshipCollectionPage, err error)
ListRelationshipsComplete(ctx context.Context, ID string, relationshipName string) (result digitaltwins.RelationshipCollectionIterator, err error)
SendComponentTelemetry(ctx context.Context, ID string, componentPath string, telemetry interface{}, dtID string, dtTimestamp string) (result autorest.Response, err error)
SendTelemetry(ctx context.Context, ID string, telemetry interface{}, dtID string, dtTimestamp string) (result autorest.Response, err error)
Update(ctx context.Context, ID string, patchDocument []interface{}, ifMatch string) (result autorest.Response, err error)
UpdateComponent(ctx context.Context, ID string, componentPath string, patchDocument []interface{}, ifMatch string) (result autorest.Response, err error)
UpdateRelationship(ctx context.Context, ID string, relationshipID string, patchDocument []interface{}, ifMatch string) (result autorest.Response, err error)
}
var _ ClientAPI = (*digitaltwins.Client)(nil)
// EventRoutesClientAPI contains the set of methods on the EventRoutesClient type.
type EventRoutesClientAPI interface {
Add(ctx context.Context, ID string, eventRoute *digitaltwins.EventRoute) (result autorest.Response, err error)
Delete(ctx context.Context, ID string) (result autorest.Response, err error)
GetByID(ctx context.Context, ID string) (result digitaltwins.EventRoute, err error)
List(ctx context.Context, maxItemCount *int32) (result digitaltwins.EventRouteCollectionPage, err error)
ListComplete(ctx context.Context, maxItemCount *int32) (result digitaltwins.EventRouteCollectionIterator, err error)
}
var _ EventRoutesClientAPI = (*digitaltwins.EventRoutesClient)(nil)