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
+158 -32
View File
@@ -14,9 +14,8 @@ package intune
// 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"
)
// IosClient is the microsoft.Intune Resource provider Api features in the
// swagger-2.0 specification
// IosClient is the microsoft.Intune Resource provider Api features in the swagger-2.0 specification
type IosClient struct {
ManagementClient
}
@@ -43,9 +41,8 @@ func NewIosClientWithBaseURI(baseURI string) IosClient {
// AddAppForMAMPolicy add app to an iOSMAMPolicy.
//
// hostName is location hostName for the tenant policyName is unique name for
// the policy appName is application unique Name parameters is parameters
// supplied to add an app to an ios policy.
// hostName is location hostName for the tenant policyName is unique name for the policy appName is application unique
// Name parameters is parameters supplied to add an app to an ios policy.
func (client IosClient) AddAppForMAMPolicy(hostName string, policyName string, appName string, parameters MAMPolicyAppIDOrGroupIDPayload) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: parameters,
@@ -118,9 +115,8 @@ func (client IosClient) AddAppForMAMPolicyResponder(resp *http.Response) (result
// AddGroupForMAMPolicy add group to an iOSMAMPolicy.
//
// hostName is location hostName for the tenant policyName is unique name for
// the policy groupID is group Id parameters is parameters supplied to the
// Create or update app to an android policy operation.
// hostName is location hostName for the tenant policyName is unique name for the policy groupID is group Id parameters
// is parameters supplied to the Create or update app to an android policy operation.
func (client IosClient) AddGroupForMAMPolicy(hostName string, policyName string, groupID string, parameters MAMPolicyAppIDOrGroupIDPayload) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: parameters,
@@ -193,9 +189,8 @@ func (client IosClient) AddGroupForMAMPolicyResponder(resp *http.Response) (resu
// CreateOrUpdateMAMPolicy creates or updates iOSMAMPolicy.
//
// hostName is location hostName for the tenant policyName is unique name for
// the policy parameters is parameters supplied to the Create or update an
// android policy operation.
// hostName is location hostName for the tenant policyName is unique name for the policy parameters is parameters
// supplied to the Create or update an android policy operation.
func (client IosClient) CreateOrUpdateMAMPolicy(hostName string, policyName string, parameters IOSMAMPolicy) (result IOSMAMPolicy, err error) {
req, err := client.CreateOrUpdateMAMPolicyPreparer(hostName, policyName, parameters)
if err != nil {
@@ -261,8 +256,8 @@ func (client IosClient) CreateOrUpdateMAMPolicyResponder(resp *http.Response) (r
// DeleteAppForMAMPolicy delete App for Ios Policy
//
// hostName is location hostName for the tenant policyName is unique name for
// the policy appName is application unique Name
// hostName is location hostName for the tenant policyName is unique name for the policy appName is application unique
// Name
func (client IosClient) DeleteAppForMAMPolicy(hostName string, policyName string, appName string) (result autorest.Response, err error) {
req, err := client.DeleteAppForMAMPolicyPreparer(hostName, policyName, appName)
if err != nil {
@@ -326,8 +321,8 @@ func (client IosClient) DeleteAppForMAMPolicyResponder(resp *http.Response) (res
// DeleteGroupForMAMPolicy delete Group for iOS Policy
//
// hostName is location hostName for the tenant policyName is unique name for
// the policy groupID is application unique Name
// hostName is location hostName for the tenant policyName is unique name for the policy groupID is application unique
// Name
func (client IosClient) DeleteGroupForMAMPolicy(hostName string, policyName string, groupID string) (result autorest.Response, err error) {
req, err := client.DeleteGroupForMAMPolicyPreparer(hostName, policyName, groupID)
if err != nil {
@@ -391,8 +386,7 @@ func (client IosClient) DeleteGroupForMAMPolicyResponder(resp *http.Response) (r
// DeleteMAMPolicy delete Ios Policy
//
// hostName is location hostName for the tenant policyName is unique name for
// the policy
// hostName is location hostName for the tenant policyName is unique name for the policy
func (client IosClient) DeleteMAMPolicy(hostName string, policyName string) (result autorest.Response, err error) {
req, err := client.DeleteMAMPolicyPreparer(hostName, policyName)
if err != nil {
@@ -455,9 +449,8 @@ func (client IosClient) DeleteMAMPolicyResponder(resp *http.Response) (result au
// GetAppForMAMPolicy get apps for an iOSMAMPolicy.
//
// hostName is location hostName for the tenant policyName is unique name for
// the policy filter is the filter to apply on the operation. selectParameter
// is select specific fields in entity.
// hostName is location hostName for the tenant policyName is unique name for the policy filter is the filter to apply
// on the operation. selectParameter is select specific fields in entity.
func (client IosClient) GetAppForMAMPolicy(hostName string, policyName string, filter string, top *int32, selectParameter string) (result ApplicationCollection, err error) {
req, err := client.GetAppForMAMPolicyPreparer(hostName, policyName, filter, top, selectParameter)
if err != nil {
@@ -552,10 +545,54 @@ func (client IosClient) GetAppForMAMPolicyNextResults(lastResults ApplicationCol
return
}
// GetAppForMAMPolicyComplete gets all elements from the list without paging.
func (client IosClient) GetAppForMAMPolicyComplete(hostName string, policyName string, filter string, top *int32, selectParameter 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.GetAppForMAMPolicy(hostName, policyName, filter, top, selectParameter)
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.Nextlink != nil {
list, err = client.GetAppForMAMPolicyNextResults(list)
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
}
// GetGroupsForMAMPolicy returns groups for a given iOSMAMPolicy.
//
// hostName is location hostName for the tenant policyName is policy name for
// the tenant
// hostName is location hostName for the tenant policyName is policy name for the tenant
func (client IosClient) GetGroupsForMAMPolicy(hostName string, policyName string) (result GroupsCollection, err error) {
req, err := client.GetGroupsForMAMPolicyPreparer(hostName, policyName)
if err != nil {
@@ -641,10 +678,55 @@ func (client IosClient) GetGroupsForMAMPolicyNextResults(lastResults GroupsColle
return
}
// GetGroupsForMAMPolicyComplete gets all elements from the list without paging.
func (client IosClient) GetGroupsForMAMPolicyComplete(hostName string, policyName string, cancel <-chan struct{}) (<-chan GroupItem, <-chan error) {
resultChan := make(chan GroupItem)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.GetGroupsForMAMPolicy(hostName, policyName)
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.Nextlink != nil {
list, err = client.GetGroupsForMAMPolicyNextResults(list)
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
}
// GetMAMPolicies returns Intune iOSPolicies.
//
// hostName is location hostName for the tenant filter is the filter to apply
// on the operation. selectParameter is select specific fields in entity.
// hostName is location hostName for the tenant filter is the filter to apply on the operation. selectParameter is
// select specific fields in entity.
func (client IosClient) GetMAMPolicies(hostName string, filter string, top *int32, selectParameter string) (result IOSMAMPolicyCollection, err error) {
req, err := client.GetMAMPoliciesPreparer(hostName, filter, top, selectParameter)
if err != nil {
@@ -738,10 +820,55 @@ func (client IosClient) GetMAMPoliciesNextResults(lastResults IOSMAMPolicyCollec
return
}
// GetMAMPoliciesComplete gets all elements from the list without paging.
func (client IosClient) GetMAMPoliciesComplete(hostName string, filter string, top *int32, selectParameter string, cancel <-chan struct{}) (<-chan IOSMAMPolicy, <-chan error) {
resultChan := make(chan IOSMAMPolicy)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.GetMAMPolicies(hostName, filter, top, selectParameter)
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.Nextlink != nil {
list, err = client.GetMAMPoliciesNextResults(list)
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
}
// GetMAMPolicyByName returns Intune iOS policies.
//
// hostName is location hostName for the tenant policyName is unique name for
// the policy selectParameter is select specific fields in entity.
// hostName is location hostName for the tenant policyName is unique name for the policy selectParameter is select
// specific fields in entity.
func (client IosClient) GetMAMPolicyByName(hostName string, policyName string, selectParameter string) (result IOSMAMPolicy, err error) {
req, err := client.GetMAMPolicyByNamePreparer(hostName, policyName, selectParameter)
if err != nil {
@@ -808,9 +935,8 @@ func (client IosClient) GetMAMPolicyByNameResponder(resp *http.Response) (result
// PatchMAMPolicy patch an iOSMAMPolicy.
//
// hostName is location hostName for the tenant policyName is unique name for
// the policy parameters is parameters supplied to the Create or update an
// android policy operation.
// hostName is location hostName for the tenant policyName is unique name for the policy parameters is parameters
// supplied to the Create or update an android policy operation.
func (client IosClient) PatchMAMPolicy(hostName string, policyName string, parameters IOSMAMPolicy) (result IOSMAMPolicy, err error) {
req, err := client.PatchMAMPolicyPreparer(hostName, policyName, parameters)
if err != nil {