forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
interfaces.go
136 lines (116 loc) · 8.96 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
package graphrbacapi
// 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/graphrbac/1.6/graphrbac"
"github.com/Azure/go-autorest/autorest"
)
// SignedInUserClientAPI contains the set of methods on the SignedInUserClient type.
type SignedInUserClientAPI interface {
Get(ctx context.Context) (result graphrbac.User, err error)
ListOwnedObjects(ctx context.Context) (result graphrbac.DirectoryObjectListResultPage, err error)
ListOwnedObjectsNext(ctx context.Context, nextLink string) (result graphrbac.DirectoryObjectListResult, err error)
}
var _ SignedInUserClientAPI = (*graphrbac.SignedInUserClient)(nil)
// ApplicationsClientAPI contains the set of methods on the ApplicationsClient type.
type ApplicationsClientAPI interface {
AddOwner(ctx context.Context, applicationObjectID string, parameters graphrbac.AddOwnerParameters) (result autorest.Response, err error)
Create(ctx context.Context, parameters graphrbac.ApplicationCreateParameters) (result graphrbac.Application, err error)
Delete(ctx context.Context, applicationObjectID string) (result autorest.Response, err error)
Get(ctx context.Context, applicationObjectID string) (result graphrbac.Application, err error)
List(ctx context.Context, filter string) (result graphrbac.ApplicationListResultPage, err error)
ListKeyCredentials(ctx context.Context, applicationObjectID string) (result graphrbac.KeyCredentialListResult, err error)
ListNext(ctx context.Context, nextLink string) (result graphrbac.ApplicationListResult, err error)
ListOwners(ctx context.Context, applicationObjectID string) (result graphrbac.DirectoryObjectListResultPage, err error)
ListPasswordCredentials(ctx context.Context, applicationObjectID string) (result graphrbac.PasswordCredentialListResult, err error)
Patch(ctx context.Context, applicationObjectID string, parameters graphrbac.ApplicationUpdateParameters) (result autorest.Response, err error)
RemoveOwner(ctx context.Context, applicationObjectID string, ownerObjectID string) (result autorest.Response, err error)
UpdateKeyCredentials(ctx context.Context, applicationObjectID string, parameters graphrbac.KeyCredentialsUpdateParameters) (result autorest.Response, err error)
UpdatePasswordCredentials(ctx context.Context, applicationObjectID string, parameters graphrbac.PasswordCredentialsUpdateParameters) (result autorest.Response, err error)
}
var _ ApplicationsClientAPI = (*graphrbac.ApplicationsClient)(nil)
// DeletedApplicationsClientAPI contains the set of methods on the DeletedApplicationsClient type.
type DeletedApplicationsClientAPI interface {
HardDelete(ctx context.Context, applicationObjectID string) (result autorest.Response, err error)
List(ctx context.Context, filter string) (result graphrbac.ApplicationListResultPage, err error)
ListNext(ctx context.Context, nextLink string) (result graphrbac.ApplicationListResult, err error)
Restore(ctx context.Context, objectID string) (result graphrbac.Application, err error)
}
var _ DeletedApplicationsClientAPI = (*graphrbac.DeletedApplicationsClient)(nil)
// GroupsClientAPI contains the set of methods on the GroupsClient type.
type GroupsClientAPI interface {
AddMember(ctx context.Context, groupObjectID string, parameters graphrbac.GroupAddMemberParameters) (result autorest.Response, err error)
AddOwner(ctx context.Context, objectID string, parameters graphrbac.AddOwnerParameters) (result autorest.Response, err error)
Create(ctx context.Context, parameters graphrbac.GroupCreateParameters) (result graphrbac.ADGroup, err error)
Delete(ctx context.Context, objectID string) (result autorest.Response, err error)
Get(ctx context.Context, objectID string) (result graphrbac.ADGroup, err error)
GetGroupMembers(ctx context.Context, objectID string) (result graphrbac.DirectoryObjectListResultPage, err error)
GetGroupMembersNext(ctx context.Context, nextLink string) (result graphrbac.DirectoryObjectListResult, err error)
GetMemberGroups(ctx context.Context, objectID string, parameters graphrbac.GroupGetMemberGroupsParameters) (result graphrbac.GroupGetMemberGroupsResult, err error)
IsMemberOf(ctx context.Context, parameters graphrbac.CheckGroupMembershipParameters) (result graphrbac.CheckGroupMembershipResult, err error)
List(ctx context.Context, filter string) (result graphrbac.GroupListResultPage, err error)
ListNext(ctx context.Context, nextLink string) (result graphrbac.GroupListResult, err error)
ListOwners(ctx context.Context, objectID string) (result graphrbac.DirectoryObjectListResultPage, err error)
RemoveMember(ctx context.Context, groupObjectID string, memberObjectID string) (result autorest.Response, err error)
RemoveOwner(ctx context.Context, objectID string, ownerObjectID string) (result autorest.Response, err error)
}
var _ GroupsClientAPI = (*graphrbac.GroupsClient)(nil)
// ServicePrincipalsClientAPI contains the set of methods on the ServicePrincipalsClient type.
type ServicePrincipalsClientAPI interface {
Create(ctx context.Context, parameters graphrbac.ServicePrincipalCreateParameters) (result graphrbac.ServicePrincipal, err error)
Delete(ctx context.Context, objectID string) (result autorest.Response, err error)
Get(ctx context.Context, objectID string) (result graphrbac.ServicePrincipal, err error)
List(ctx context.Context, filter string) (result graphrbac.ServicePrincipalListResultPage, err error)
ListKeyCredentials(ctx context.Context, objectID string) (result graphrbac.KeyCredentialListResult, err error)
ListNext(ctx context.Context, nextLink string) (result graphrbac.ServicePrincipalListResult, err error)
ListOwners(ctx context.Context, objectID string) (result graphrbac.DirectoryObjectListResultPage, err error)
ListPasswordCredentials(ctx context.Context, objectID string) (result graphrbac.PasswordCredentialListResult, err error)
Update(ctx context.Context, objectID string, parameters graphrbac.ServicePrincipalUpdateParameters) (result autorest.Response, err error)
UpdateKeyCredentials(ctx context.Context, objectID string, parameters graphrbac.KeyCredentialsUpdateParameters) (result autorest.Response, err error)
UpdatePasswordCredentials(ctx context.Context, objectID string, parameters graphrbac.PasswordCredentialsUpdateParameters) (result autorest.Response, err error)
}
var _ ServicePrincipalsClientAPI = (*graphrbac.ServicePrincipalsClient)(nil)
// UsersClientAPI contains the set of methods on the UsersClient type.
type UsersClientAPI interface {
Create(ctx context.Context, parameters graphrbac.UserCreateParameters) (result graphrbac.User, err error)
Delete(ctx context.Context, upnOrObjectID string) (result autorest.Response, err error)
Get(ctx context.Context, upnOrObjectID string) (result graphrbac.User, err error)
GetMemberGroups(ctx context.Context, objectID string, parameters graphrbac.UserGetMemberGroupsParameters) (result graphrbac.UserGetMemberGroupsResult, err error)
List(ctx context.Context, filter string) (result graphrbac.UserListResultPage, err error)
ListNext(ctx context.Context, nextLink string) (result graphrbac.UserListResult, err error)
Update(ctx context.Context, upnOrObjectID string, parameters graphrbac.UserUpdateParameters) (result autorest.Response, err error)
}
var _ UsersClientAPI = (*graphrbac.UsersClient)(nil)
// ObjectsClientAPI contains the set of methods on the ObjectsClient type.
type ObjectsClientAPI interface {
GetObjectsByObjectIds(ctx context.Context, parameters graphrbac.GetObjectsParameters) (result graphrbac.DirectoryObjectListResultPage, err error)
GetObjectsByObjectIdsNext(ctx context.Context, nextLink string) (result graphrbac.DirectoryObjectListResult, err error)
}
var _ ObjectsClientAPI = (*graphrbac.ObjectsClient)(nil)
// DomainsClientAPI contains the set of methods on the DomainsClient type.
type DomainsClientAPI interface {
Get(ctx context.Context, domainName string) (result graphrbac.Domain, err error)
List(ctx context.Context, filter string) (result graphrbac.DomainListResult, err error)
}
var _ DomainsClientAPI = (*graphrbac.DomainsClient)(nil)
// OAuth2ClientAPI contains the set of methods on the OAuth2Client type.
type OAuth2ClientAPI interface {
Get(ctx context.Context, filter string) (result graphrbac.Permissions, err error)
Grant(ctx context.Context, body *graphrbac.Permissions) (result graphrbac.Permissions, err error)
}
var _ OAuth2ClientAPI = (*graphrbac.OAuth2Client)(nil)