vendor: update all dependencies to latest versions
This commit is contained in:
+57
-19
@@ -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"
|
||||
)
|
||||
|
||||
// ApplicationsClient is the composite Swagger specification for Azure Active
|
||||
// Directory Graph RBAC management client.
|
||||
// ApplicationsClient is the the Graph RBAC Management Client
|
||||
type ApplicationsClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
@@ -36,8 +34,7 @@ func NewApplicationsClient(tenantID string) ApplicationsClient {
|
||||
return NewApplicationsClientWithBaseURI(DefaultBaseURI, tenantID)
|
||||
}
|
||||
|
||||
// NewApplicationsClientWithBaseURI creates an instance of the
|
||||
// ApplicationsClient client.
|
||||
// NewApplicationsClientWithBaseURI creates an instance of the ApplicationsClient client.
|
||||
func NewApplicationsClientWithBaseURI(baseURI string, tenantID string) ApplicationsClient {
|
||||
return ApplicationsClient{NewWithBaseURI(baseURI, tenantID)}
|
||||
}
|
||||
@@ -308,6 +305,51 @@ func (client ApplicationsClient) ListResponder(resp *http.Response) (result Appl
|
||||
return
|
||||
}
|
||||
|
||||
// ListComplete gets all elements from the list without paging.
|
||||
func (client ApplicationsClient) ListComplete(filter string, cancel <-chan struct{}) (<-chan Application, <-chan error) {
|
||||
resultChan := make(chan Application)
|
||||
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 an application.
|
||||
//
|
||||
// applicationObjectID is application object ID.
|
||||
@@ -436,8 +478,7 @@ func (client ApplicationsClient) ListNextResponder(resp *http.Response) (result
|
||||
return
|
||||
}
|
||||
|
||||
// ListPasswordCredentials get the passwordCredentials associated with an
|
||||
// application.
|
||||
// ListPasswordCredentials get the passwordCredentials associated with an application.
|
||||
//
|
||||
// applicationObjectID is application object ID.
|
||||
func (client ApplicationsClient) ListPasswordCredentials(applicationObjectID string) (result PasswordCredentialListResult, err error) {
|
||||
@@ -503,8 +544,7 @@ func (client ApplicationsClient) ListPasswordCredentialsResponder(resp *http.Res
|
||||
|
||||
// Patch update an existing application.
|
||||
//
|
||||
// applicationObjectID is application object ID. parameters is parameters to
|
||||
// update an existing application.
|
||||
// applicationObjectID is application object ID. parameters is parameters to update an existing application.
|
||||
func (client ApplicationsClient) Patch(applicationObjectID string, parameters ApplicationUpdateParameters) (result autorest.Response, err error) {
|
||||
req, err := client.PatchPreparer(applicationObjectID, parameters)
|
||||
if err != nil {
|
||||
@@ -567,11 +607,10 @@ func (client ApplicationsClient) PatchResponder(resp *http.Response) (result aut
|
||||
return
|
||||
}
|
||||
|
||||
// UpdateKeyCredentials update the keyCredentials associated with an
|
||||
// application.
|
||||
// UpdateKeyCredentials update the keyCredentials associated with an application.
|
||||
//
|
||||
// applicationObjectID is application object ID. parameters is parameters to
|
||||
// update the keyCredentials of an existing application.
|
||||
// applicationObjectID is application object ID. parameters is parameters to update the keyCredentials of an existing
|
||||
// application.
|
||||
func (client ApplicationsClient) UpdateKeyCredentials(applicationObjectID string, parameters KeyCredentialsUpdateParameters) (result autorest.Response, err error) {
|
||||
req, err := client.UpdateKeyCredentialsPreparer(applicationObjectID, parameters)
|
||||
if err != nil {
|
||||
@@ -634,11 +673,10 @@ func (client ApplicationsClient) UpdateKeyCredentialsResponder(resp *http.Respon
|
||||
return
|
||||
}
|
||||
|
||||
// UpdatePasswordCredentials update passwordCredentials associated with an
|
||||
// application.
|
||||
// UpdatePasswordCredentials update passwordCredentials associated with an application.
|
||||
//
|
||||
// applicationObjectID is application object ID. parameters is parameters to
|
||||
// update passwordCredentials of an existing application.
|
||||
// applicationObjectID is application object ID. parameters is parameters to update passwordCredentials of an existing
|
||||
// application.
|
||||
func (client ApplicationsClient) UpdatePasswordCredentials(applicationObjectID string, parameters PasswordCredentialsUpdateParameters) (result autorest.Response, err error) {
|
||||
req, err := client.UpdatePasswordCredentialsPreparer(applicationObjectID, parameters)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user