vendor: update all dependencies to latest versions
This commit is contained in:
+100
-15
@@ -14,9 +14,8 @@ package graphrbac
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
import (
|
||||
"github.com/Azure/go-autorest/autorest"
|
||||
@@ -25,8 +24,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// GroupsClient is the composite Swagger specification for Azure Active
|
||||
// Directory Graph RBAC management client.
|
||||
// GroupsClient is the the Graph RBAC Management Client
|
||||
type GroupsClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
@@ -43,8 +41,8 @@ func NewGroupsClientWithBaseURI(baseURI string, tenantID string) GroupsClient {
|
||||
|
||||
// AddMember add a member to a group.
|
||||
//
|
||||
// groupObjectID is the object ID of the group to which to add the member.
|
||||
// parameters is the URL of the member object, such as
|
||||
// groupObjectID is the object ID of the group to which to add the member. parameters is the URL of the member object,
|
||||
// such as
|
||||
// https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd.
|
||||
func (client GroupsClient) AddMember(groupObjectID string, parameters GroupAddMemberParameters) (result autorest.Response, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
@@ -379,6 +377,51 @@ func (client GroupsClient) GetGroupMembersResponder(resp *http.Response) (result
|
||||
return
|
||||
}
|
||||
|
||||
// GetGroupMembersComplete gets all elements from the list without paging.
|
||||
func (client GroupsClient) GetGroupMembersComplete(objectID string, cancel <-chan struct{}) (<-chan AADObject, <-chan error) {
|
||||
resultChan := make(chan AADObject)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.GetGroupMembers(objectID)
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
if list.Value != nil {
|
||||
for _, item := range *list.Value {
|
||||
select {
|
||||
case <-cancel:
|
||||
return
|
||||
case resultChan <- item:
|
||||
// Intentionally left blank
|
||||
}
|
||||
}
|
||||
}
|
||||
for list.OdataNextLink != nil {
|
||||
list, err = client.GetGroupMembersNext(*list.OdataNextLink)
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
if list.Value != nil {
|
||||
for _, item := range *list.Value {
|
||||
select {
|
||||
case <-cancel:
|
||||
return
|
||||
case resultChan <- item:
|
||||
// Intentionally left blank
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}()
|
||||
return resultChan, errChan
|
||||
}
|
||||
|
||||
// GetGroupMembersNext gets the members of a group.
|
||||
//
|
||||
// nextLink is next link for the list operation.
|
||||
@@ -443,11 +486,9 @@ func (client GroupsClient) GetGroupMembersNextResponder(resp *http.Response) (re
|
||||
return
|
||||
}
|
||||
|
||||
// GetMemberGroups gets a collection of object IDs of groups of which the
|
||||
// specified group is a member.
|
||||
// GetMemberGroups gets a collection of object IDs of groups of which the specified group is a member.
|
||||
//
|
||||
// objectID is the object ID of the group for which to get group membership.
|
||||
// parameters is group filtering parameters.
|
||||
// objectID is the object ID of the group for which to get group membership. parameters is group filtering parameters.
|
||||
func (client GroupsClient) GetMemberGroups(objectID string, parameters GroupGetMemberGroupsParameters) (result GroupGetMemberGroupsResult, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: parameters,
|
||||
@@ -517,8 +558,8 @@ func (client GroupsClient) GetMemberGroupsResponder(resp *http.Response) (result
|
||||
return
|
||||
}
|
||||
|
||||
// IsMemberOf checks whether the specified user, group, contact, or service
|
||||
// principal is a direct or transitive member of the specified group.
|
||||
// IsMemberOf checks whether the specified user, group, contact, or service principal is a direct or transitive member
|
||||
// of the specified group.
|
||||
//
|
||||
// parameters is the check group membership parameters.
|
||||
func (client GroupsClient) IsMemberOf(parameters CheckGroupMembershipParameters) (result CheckGroupMembershipResult, err error) {
|
||||
@@ -656,6 +697,51 @@ func (client GroupsClient) ListResponder(resp *http.Response) (result GroupListR
|
||||
return
|
||||
}
|
||||
|
||||
// ListComplete gets all elements from the list without paging.
|
||||
func (client GroupsClient) ListComplete(filter string, cancel <-chan struct{}) (<-chan ADGroup, <-chan error) {
|
||||
resultChan := make(chan ADGroup)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.List(filter)
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
if list.Value != nil {
|
||||
for _, item := range *list.Value {
|
||||
select {
|
||||
case <-cancel:
|
||||
return
|
||||
case resultChan <- item:
|
||||
// Intentionally left blank
|
||||
}
|
||||
}
|
||||
}
|
||||
for list.OdataNextLink != nil {
|
||||
list, err = client.ListNext(*list.OdataNextLink)
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
if list.Value != nil {
|
||||
for _, item := range *list.Value {
|
||||
select {
|
||||
case <-cancel:
|
||||
return
|
||||
case resultChan <- item:
|
||||
// Intentionally left blank
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}()
|
||||
return resultChan, errChan
|
||||
}
|
||||
|
||||
// ListNext gets a list of groups for the current tenant.
|
||||
//
|
||||
// nextLink is next link for the list operation.
|
||||
@@ -722,8 +808,7 @@ func (client GroupsClient) ListNextResponder(resp *http.Response) (result GroupL
|
||||
|
||||
// RemoveMember remove a member from a group.
|
||||
//
|
||||
// groupObjectID is the object ID of the group from which to remove the member.
|
||||
// memberObjectID is member object id
|
||||
// groupObjectID is the object ID of the group from which to remove the member. memberObjectID is member object id
|
||||
func (client GroupsClient) RemoveMember(groupObjectID string, memberObjectID string) (result autorest.Response, err error) {
|
||||
req, err := client.RemoveMemberPreparer(groupObjectID, memberObjectID)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user