vendor: update all dependencies to latest versions

This commit is contained in:
Nick Craig-Wood
2017-09-30 15:27:27 +01:00
parent 911d121bb9
commit b017fcfe9a
3048 changed files with 537055 additions and 189679 deletions
+59 -24
View File
@@ -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,20 +24,17 @@ import (
"net/http"
)
// ServicePrincipalsClient is the composite Swagger specification for Azure
// Active Directory Graph RBAC management client.
// ServicePrincipalsClient is the the Graph RBAC Management Client
type ServicePrincipalsClient struct {
ManagementClient
}
// NewServicePrincipalsClient creates an instance of the
// ServicePrincipalsClient client.
// NewServicePrincipalsClient creates an instance of the ServicePrincipalsClient client.
func NewServicePrincipalsClient(tenantID string) ServicePrincipalsClient {
return NewServicePrincipalsClientWithBaseURI(DefaultBaseURI, tenantID)
}
// NewServicePrincipalsClientWithBaseURI creates an instance of the
// ServicePrincipalsClient client.
// NewServicePrincipalsClientWithBaseURI creates an instance of the ServicePrincipalsClient client.
func NewServicePrincipalsClientWithBaseURI(baseURI string, tenantID string) ServicePrincipalsClient {
return ServicePrincipalsClient{NewWithBaseURI(baseURI, tenantID)}
}
@@ -308,11 +304,54 @@ func (client ServicePrincipalsClient) ListResponder(resp *http.Response) (result
return
}
// ListKeyCredentials get the keyCredentials associated with the specified
// service principal.
// ListComplete gets all elements from the list without paging.
func (client ServicePrincipalsClient) ListComplete(filter string, cancel <-chan struct{}) (<-chan ServicePrincipal, <-chan error) {
resultChan := make(chan ServicePrincipal)
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
}
// ListKeyCredentials get the keyCredentials associated with the specified service principal.
//
// objectID is the object ID of the service principal for which to get
// keyCredentials.
// objectID is the object ID of the service principal for which to get keyCredentials.
func (client ServicePrincipalsClient) ListKeyCredentials(objectID string) (result KeyCredentialListResult, err error) {
req, err := client.ListKeyCredentialsPreparer(objectID)
if err != nil {
@@ -438,8 +477,7 @@ func (client ServicePrincipalsClient) ListNextResponder(resp *http.Response) (re
return
}
// ListPasswordCredentials gets the passwordCredentials associated with a
// service principal.
// ListPasswordCredentials gets the passwordCredentials associated with a service principal.
//
// objectID is the object ID of the service principal.
func (client ServicePrincipalsClient) ListPasswordCredentials(objectID string) (result PasswordCredentialListResult, err error) {
@@ -503,12 +541,10 @@ func (client ServicePrincipalsClient) ListPasswordCredentialsResponder(resp *htt
return
}
// UpdateKeyCredentials update the keyCredentials associated with a service
// principal.
// UpdateKeyCredentials update the keyCredentials associated with a service principal.
//
// objectID is the object ID for which to get service principal information.
// parameters is parameters to update the keyCredentials of an existing service
// principal.
// objectID is the object ID for which to get service principal information. parameters is parameters to update the
// keyCredentials of an existing service principal.
func (client ServicePrincipalsClient) UpdateKeyCredentials(objectID string, parameters KeyCredentialsUpdateParameters) (result autorest.Response, err error) {
req, err := client.UpdateKeyCredentialsPreparer(objectID, parameters)
if err != nil {
@@ -571,11 +607,10 @@ func (client ServicePrincipalsClient) UpdateKeyCredentialsResponder(resp *http.R
return
}
// UpdatePasswordCredentials updates the passwordCredentials associated with a
// service principal.
// UpdatePasswordCredentials updates the passwordCredentials associated with a service principal.
//
// objectID is the object ID of the service principal. parameters is parameters
// to update the passwordCredentials of an existing service principal.
// objectID is the object ID of the service principal. parameters is parameters to update the passwordCredentials of an
// existing service principal.
func (client ServicePrincipalsClient) UpdatePasswordCredentials(objectID string, parameters PasswordCredentialsUpdateParameters) (result autorest.Response, err error) {
req, err := client.UpdatePasswordCredentialsPreparer(objectID, parameters)
if err != nil {