vendor: update all dependencies to latest versions
This commit is contained in:
+53
-13
@@ -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"
|
||||
)
|
||||
|
||||
// UsersClient is the composite Swagger specification for Azure Active
|
||||
// Directory Graph RBAC management client.
|
||||
// UsersClient is the the Graph RBAC Management Client
|
||||
type UsersClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
@@ -182,8 +180,7 @@ func (client UsersClient) DeleteResponder(resp *http.Response) (result autorest.
|
||||
|
||||
// Get gets user information from the directory.
|
||||
//
|
||||
// upnOrObjectID is the object ID or principal name of the user for which to
|
||||
// get information.
|
||||
// upnOrObjectID is the object ID or principal name of the user for which to get information.
|
||||
func (client UsersClient) Get(upnOrObjectID string) (result User, err error) {
|
||||
req, err := client.GetPreparer(upnOrObjectID)
|
||||
if err != nil {
|
||||
@@ -245,11 +242,9 @@ func (client UsersClient) GetResponder(resp *http.Response) (result User, err er
|
||||
return
|
||||
}
|
||||
|
||||
// GetMemberGroups gets a collection that contains the object IDs of the groups
|
||||
// of which the user is a member.
|
||||
// GetMemberGroups gets a collection that contains the object IDs of the groups of which the user is a member.
|
||||
//
|
||||
// objectID is the object ID of the user for which to get group membership.
|
||||
// parameters is user filtering parameters.
|
||||
// objectID is the object ID of the user for which to get group membership. parameters is user filtering parameters.
|
||||
func (client UsersClient) GetMemberGroups(objectID string, parameters UserGetMemberGroupsParameters) (result UserGetMemberGroupsResult, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: parameters,
|
||||
@@ -385,6 +380,51 @@ func (client UsersClient) ListResponder(resp *http.Response) (result UserListRes
|
||||
return
|
||||
}
|
||||
|
||||
// ListComplete gets all elements from the list without paging.
|
||||
func (client UsersClient) ListComplete(filter string, cancel <-chan struct{}) (<-chan User, <-chan error) {
|
||||
resultChan := make(chan User)
|
||||
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 users for the current tenant.
|
||||
//
|
||||
// nextLink is next link for the list operation.
|
||||
@@ -451,8 +491,8 @@ func (client UsersClient) ListNextResponder(resp *http.Response) (result UserLis
|
||||
|
||||
// Update updates a user.
|
||||
//
|
||||
// upnOrObjectID is the object ID or principal name of the user to update.
|
||||
// parameters is parameters to update an existing user.
|
||||
// upnOrObjectID is the object ID or principal name of the user to update. parameters is parameters to update an
|
||||
// existing user.
|
||||
func (client UsersClient) Update(upnOrObjectID string, parameters UserUpdateParameters) (result autorest.Response, err error) {
|
||||
req, err := client.UpdatePreparer(upnOrObjectID, parameters)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user