vendor: update all dependencies to latest versions
This commit is contained in:
+158
-32
@@ -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"
|
||||
)
|
||||
|
||||
// AndroidClient is the microsoft.Intune Resource provider Api features in the
|
||||
// swagger-2.0 specification
|
||||
// AndroidClient is the microsoft.Intune Resource provider Api features in the swagger-2.0 specification
|
||||
type AndroidClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
@@ -43,9 +41,8 @@ func NewAndroidClientWithBaseURI(baseURI string) AndroidClient {
|
||||
|
||||
// AddAppForMAMPolicy add app to an AndroidMAMPolicy.
|
||||
//
|
||||
// hostName is location hostName for the tenant policyName is unique name for
|
||||
// the policy appName is application unique Name 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 appName is application unique
|
||||
// Name parameters is parameters supplied to the Create or update app to an android policy operation.
|
||||
func (client AndroidClient) 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 AndroidClient) AddAppForMAMPolicyResponder(resp *http.Response) (re
|
||||
|
||||
// AddGroupForMAMPolicy add group to an AndroidMAMPolicy.
|
||||
//
|
||||
// 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 AndroidClient) 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 AndroidClient) AddGroupForMAMPolicyResponder(resp *http.Response) (
|
||||
|
||||
// CreateOrUpdateMAMPolicy creates or updates AndroidMAMPolicy.
|
||||
//
|
||||
// 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 AndroidClient) CreateOrUpdateMAMPolicy(hostName string, policyName string, parameters AndroidMAMPolicy) (result AndroidMAMPolicy, err error) {
|
||||
req, err := client.CreateOrUpdateMAMPolicyPreparer(hostName, policyName, parameters)
|
||||
if err != nil {
|
||||
@@ -261,8 +256,8 @@ func (client AndroidClient) CreateOrUpdateMAMPolicyResponder(resp *http.Response
|
||||
|
||||
// DeleteAppForMAMPolicy delete App for Android 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 AndroidClient) 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 AndroidClient) DeleteAppForMAMPolicyResponder(resp *http.Response)
|
||||
|
||||
// DeleteGroupForMAMPolicy delete Group for Android 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 AndroidClient) 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 AndroidClient) DeleteGroupForMAMPolicyResponder(resp *http.Response
|
||||
|
||||
// DeleteMAMPolicy delete Android 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 AndroidClient) 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 AndroidClient) DeleteMAMPolicyResponder(resp *http.Response) (resul
|
||||
|
||||
// GetAppForMAMPolicy get apps for an AndroidMAMPolicy.
|
||||
//
|
||||
// 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 AndroidClient) 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 AndroidClient) GetAppForMAMPolicyNextResults(lastResults Applicatio
|
||||
return
|
||||
}
|
||||
|
||||
// GetAppForMAMPolicyComplete gets all elements from the list without paging.
|
||||
func (client AndroidClient) 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 AndroidMAMPolicy.
|
||||
//
|
||||
// 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 AndroidClient) GetGroupsForMAMPolicy(hostName string, policyName string) (result GroupsCollection, err error) {
|
||||
req, err := client.GetGroupsForMAMPolicyPreparer(hostName, policyName)
|
||||
if err != nil {
|
||||
@@ -641,10 +678,55 @@ func (client AndroidClient) GetGroupsForMAMPolicyNextResults(lastResults GroupsC
|
||||
return
|
||||
}
|
||||
|
||||
// GetGroupsForMAMPolicyComplete gets all elements from the list without paging.
|
||||
func (client AndroidClient) 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 Android policies.
|
||||
//
|
||||
// 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 AndroidClient) GetMAMPolicies(hostName string, filter string, top *int32, selectParameter string) (result AndroidMAMPolicyCollection, err error) {
|
||||
req, err := client.GetMAMPoliciesPreparer(hostName, filter, top, selectParameter)
|
||||
if err != nil {
|
||||
@@ -738,10 +820,55 @@ func (client AndroidClient) GetMAMPoliciesNextResults(lastResults AndroidMAMPoli
|
||||
return
|
||||
}
|
||||
|
||||
// GetMAMPoliciesComplete gets all elements from the list without paging.
|
||||
func (client AndroidClient) GetMAMPoliciesComplete(hostName string, filter string, top *int32, selectParameter string, cancel <-chan struct{}) (<-chan AndroidMAMPolicy, <-chan error) {
|
||||
resultChan := make(chan AndroidMAMPolicy)
|
||||
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 AndroidMAMPolicy with given name.
|
||||
//
|
||||
// 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 AndroidClient) GetMAMPolicyByName(hostName string, policyName string, selectParameter string) (result AndroidMAMPolicy, err error) {
|
||||
req, err := client.GetMAMPolicyByNamePreparer(hostName, policyName, selectParameter)
|
||||
if err != nil {
|
||||
@@ -808,9 +935,8 @@ func (client AndroidClient) GetMAMPolicyByNameResponder(resp *http.Response) (re
|
||||
|
||||
// PatchMAMPolicy patch AndroidMAMPolicy.
|
||||
//
|
||||
// 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 AndroidClient) PatchMAMPolicy(hostName string, policyName string, parameters AndroidMAMPolicy) (result AndroidMAMPolicy, err error) {
|
||||
req, err := client.PatchMAMPolicyPreparer(hostName, policyName, parameters)
|
||||
if err != nil {
|
||||
|
||||
+290
-28
@@ -1,8 +1,6 @@
|
||||
// Package intune implements the Azure ARM Intune service API version
|
||||
// 2015-01-14-preview.
|
||||
// Package intune implements the Azure ARM Intune service API version 2015-01-14-preview.
|
||||
//
|
||||
// Microsoft.Intune Resource provider Api features in the swagger-2.0
|
||||
// specification
|
||||
// Microsoft.Intune Resource provider Api features in the swagger-2.0 specification
|
||||
package intune
|
||||
|
||||
// Copyright (c) Microsoft and contributors. All rights reserved.
|
||||
@@ -19,9 +17,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"
|
||||
@@ -55,8 +52,8 @@ func NewWithBaseURI(baseURI string) ManagementClient {
|
||||
|
||||
// GetApps returns Intune Manageable apps.
|
||||
//
|
||||
// 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 ManagementClient) GetApps(hostName string, filter string, top *int32, selectParameter string) (result ApplicationCollection, err error) {
|
||||
req, err := client.GetAppsPreparer(hostName, filter, top, selectParameter)
|
||||
if err != nil {
|
||||
@@ -150,6 +147,51 @@ func (client ManagementClient) GetAppsNextResults(lastResults ApplicationCollect
|
||||
return
|
||||
}
|
||||
|
||||
// GetAppsComplete gets all elements from the list without paging.
|
||||
func (client ManagementClient) GetAppsComplete(hostName 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.GetApps(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.GetAppsNextResults(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
|
||||
}
|
||||
|
||||
// GetLocationByHostName returns location for given tenant.
|
||||
func (client ManagementClient) GetLocationByHostName() (result Location, err error) {
|
||||
req, err := client.GetLocationByHostNamePreparer()
|
||||
@@ -288,10 +330,55 @@ func (client ManagementClient) GetLocationsNextResults(lastResults LocationColle
|
||||
return
|
||||
}
|
||||
|
||||
// GetLocationsComplete gets all elements from the list without paging.
|
||||
func (client ManagementClient) GetLocationsComplete(cancel <-chan struct{}) (<-chan Location, <-chan error) {
|
||||
resultChan := make(chan Location)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.GetLocations()
|
||||
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.GetLocationsNextResults(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
|
||||
}
|
||||
|
||||
// GetMAMFlaggedUserByName returns Intune flagged user details
|
||||
//
|
||||
// hostName is location hostName for the tenant userName is flagged userName
|
||||
// selectParameter is select specific fields in entity.
|
||||
// hostName is location hostName for the tenant userName is flagged userName selectParameter is select specific fields
|
||||
// in entity.
|
||||
func (client ManagementClient) GetMAMFlaggedUserByName(hostName string, userName string, selectParameter string) (result FlaggedUser, err error) {
|
||||
req, err := client.GetMAMFlaggedUserByNamePreparer(hostName, userName, selectParameter)
|
||||
if err != nil {
|
||||
@@ -358,8 +445,8 @@ func (client ManagementClient) GetMAMFlaggedUserByNameResponder(resp *http.Respo
|
||||
|
||||
// GetMAMFlaggedUsers returns Intune flagged user collection
|
||||
//
|
||||
// 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 ManagementClient) GetMAMFlaggedUsers(hostName string, filter string, top *int32, selectParameter string) (result FlaggedUserCollection, err error) {
|
||||
req, err := client.GetMAMFlaggedUsersPreparer(hostName, filter, top, selectParameter)
|
||||
if err != nil {
|
||||
@@ -453,6 +540,51 @@ func (client ManagementClient) GetMAMFlaggedUsersNextResults(lastResults Flagged
|
||||
return
|
||||
}
|
||||
|
||||
// GetMAMFlaggedUsersComplete gets all elements from the list without paging.
|
||||
func (client ManagementClient) GetMAMFlaggedUsersComplete(hostName string, filter string, top *int32, selectParameter string, cancel <-chan struct{}) (<-chan FlaggedUser, <-chan error) {
|
||||
resultChan := make(chan FlaggedUser)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.GetMAMFlaggedUsers(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.GetMAMFlaggedUsersNextResults(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
|
||||
}
|
||||
|
||||
// GetMAMStatuses returns Intune Tenant level statuses.
|
||||
//
|
||||
// hostName is location hostName for the tenant
|
||||
@@ -542,9 +674,8 @@ func (client ManagementClient) GetMAMStatusesNextResults(lastResults StatusesDef
|
||||
|
||||
// GetMAMUserDeviceByDeviceName get a unique device for a user.
|
||||
//
|
||||
// hostName is location hostName for the tenant userName is unique user name
|
||||
// deviceName is device name selectParameter is select specific fields in
|
||||
// entity.
|
||||
// hostName is location hostName for the tenant userName is unique user name deviceName is device name selectParameter
|
||||
// is select specific fields in entity.
|
||||
func (client ManagementClient) GetMAMUserDeviceByDeviceName(hostName string, userName string, deviceName string, selectParameter string) (result Device, err error) {
|
||||
req, err := client.GetMAMUserDeviceByDeviceNamePreparer(hostName, userName, deviceName, selectParameter)
|
||||
if err != nil {
|
||||
@@ -612,9 +743,8 @@ func (client ManagementClient) GetMAMUserDeviceByDeviceNameResponder(resp *http.
|
||||
|
||||
// GetMAMUserDevices get devices for a user.
|
||||
//
|
||||
// hostName is location hostName for the tenant userName is user unique Name
|
||||
// filter is the filter to apply on the operation. selectParameter is select
|
||||
// specific fields in entity.
|
||||
// hostName is location hostName for the tenant userName is user unique Name filter is the filter to apply on the
|
||||
// operation. selectParameter is select specific fields in entity.
|
||||
func (client ManagementClient) GetMAMUserDevices(hostName string, userName string, filter string, top *int32, selectParameter string) (result DeviceCollection, err error) {
|
||||
req, err := client.GetMAMUserDevicesPreparer(hostName, userName, filter, top, selectParameter)
|
||||
if err != nil {
|
||||
@@ -709,12 +839,55 @@ func (client ManagementClient) GetMAMUserDevicesNextResults(lastResults DeviceCo
|
||||
return
|
||||
}
|
||||
|
||||
// GetMAMUserFlaggedEnrolledApps returns Intune flagged enrolled app collection
|
||||
// for the User
|
||||
// GetMAMUserDevicesComplete gets all elements from the list without paging.
|
||||
func (client ManagementClient) GetMAMUserDevicesComplete(hostName string, userName string, filter string, top *int32, selectParameter string, cancel <-chan struct{}) (<-chan Device, <-chan error) {
|
||||
resultChan := make(chan Device)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.GetMAMUserDevices(hostName, userName, 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.GetMAMUserDevicesNextResults(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
|
||||
}
|
||||
|
||||
// GetMAMUserFlaggedEnrolledApps returns Intune flagged enrolled app collection for the User
|
||||
//
|
||||
// hostName is location hostName for the tenant userName is user name 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 userName is user name for the tenant filter is the filter to apply on
|
||||
// the operation. selectParameter is select specific fields in entity.
|
||||
func (client ManagementClient) GetMAMUserFlaggedEnrolledApps(hostName string, userName string, filter string, top *int32, selectParameter string) (result FlaggedEnrolledAppCollection, err error) {
|
||||
req, err := client.GetMAMUserFlaggedEnrolledAppsPreparer(hostName, userName, filter, top, selectParameter)
|
||||
if err != nil {
|
||||
@@ -809,10 +982,55 @@ func (client ManagementClient) GetMAMUserFlaggedEnrolledAppsNextResults(lastResu
|
||||
return
|
||||
}
|
||||
|
||||
// GetMAMUserFlaggedEnrolledAppsComplete gets all elements from the list without paging.
|
||||
func (client ManagementClient) GetMAMUserFlaggedEnrolledAppsComplete(hostName string, userName string, filter string, top *int32, selectParameter string, cancel <-chan struct{}) (<-chan FlaggedEnrolledApp, <-chan error) {
|
||||
resultChan := make(chan FlaggedEnrolledApp)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.GetMAMUserFlaggedEnrolledApps(hostName, userName, 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.GetMAMUserFlaggedEnrolledAppsNextResults(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
|
||||
}
|
||||
|
||||
// GetOperationResults returns operationResults.
|
||||
//
|
||||
// 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 ManagementClient) GetOperationResults(hostName string, filter string, top *int32, selectParameter string) (result OperationResultCollection, err error) {
|
||||
req, err := client.GetOperationResultsPreparer(hostName, filter, top, selectParameter)
|
||||
if err != nil {
|
||||
@@ -906,10 +1124,54 @@ func (client ManagementClient) GetOperationResultsNextResults(lastResults Operat
|
||||
return
|
||||
}
|
||||
|
||||
// GetOperationResultsComplete gets all elements from the list without paging.
|
||||
func (client ManagementClient) GetOperationResultsComplete(hostName string, filter string, top *int32, selectParameter string, cancel <-chan struct{}) (<-chan OperationResult, <-chan error) {
|
||||
resultChan := make(chan OperationResult)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.GetOperationResults(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.GetOperationResultsNextResults(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
|
||||
}
|
||||
|
||||
// WipeMAMUserDevice wipe a device for a user.
|
||||
//
|
||||
// hostName is location hostName for the tenant userName is unique user name
|
||||
// deviceName is device name
|
||||
// hostName is location hostName for the tenant userName is unique user name deviceName is device name
|
||||
func (client ManagementClient) WipeMAMUserDevice(hostName string, userName string, deviceName string) (result WipeDeviceOperationResult, err error) {
|
||||
req, err := client.WipeMAMUserDevicePreparer(hostName, userName, deviceName)
|
||||
if err != nil {
|
||||
|
||||
+158
-32
@@ -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 {
|
||||
|
||||
+28
-50
@@ -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"
|
||||
@@ -33,8 +32,7 @@ const (
|
||||
AllApps AppSharingFromLevel = "allApps"
|
||||
// None specifies the none state for app sharing from level.
|
||||
None AppSharingFromLevel = "none"
|
||||
// PolicyManagedApps specifies the policy managed apps state for app
|
||||
// sharing from level.
|
||||
// PolicyManagedApps specifies the policy managed apps state for app sharing from level.
|
||||
PolicyManagedApps AppSharingFromLevel = "policyManagedApps"
|
||||
)
|
||||
|
||||
@@ -42,14 +40,12 @@ const (
|
||||
type AppSharingToLevel string
|
||||
|
||||
const (
|
||||
// AppSharingToLevelAllApps specifies the app sharing to level all apps
|
||||
// state for app sharing to level.
|
||||
// AppSharingToLevelAllApps specifies the app sharing to level all apps state for app sharing to level.
|
||||
AppSharingToLevelAllApps AppSharingToLevel = "allApps"
|
||||
// AppSharingToLevelNone specifies the app sharing to level none state for
|
||||
// app sharing to level.
|
||||
// AppSharingToLevelNone specifies the app sharing to level none state for app sharing to level.
|
||||
AppSharingToLevelNone AppSharingToLevel = "none"
|
||||
// AppSharingToLevelPolicyManagedApps specifies the app sharing to level
|
||||
// policy managed apps state for app sharing to level.
|
||||
// AppSharingToLevelPolicyManagedApps specifies the app sharing to level policy managed apps state for app sharing to
|
||||
// level.
|
||||
AppSharingToLevelPolicyManagedApps AppSharingToLevel = "policyManagedApps"
|
||||
)
|
||||
|
||||
@@ -67,18 +63,15 @@ const (
|
||||
type ClipboardSharingLevel string
|
||||
|
||||
const (
|
||||
// ClipboardSharingLevelAllApps specifies the clipboard sharing level all
|
||||
// apps state for clipboard sharing level.
|
||||
// ClipboardSharingLevelAllApps specifies the clipboard sharing level all apps state for clipboard sharing level.
|
||||
ClipboardSharingLevelAllApps ClipboardSharingLevel = "allApps"
|
||||
// ClipboardSharingLevelBlocked specifies the clipboard sharing level
|
||||
// blocked state for clipboard sharing level.
|
||||
// ClipboardSharingLevelBlocked specifies the clipboard sharing level blocked state for clipboard sharing level.
|
||||
ClipboardSharingLevelBlocked ClipboardSharingLevel = "blocked"
|
||||
// ClipboardSharingLevelPolicyManagedApps specifies the clipboard sharing
|
||||
// level policy managed apps state for clipboard sharing level.
|
||||
// ClipboardSharingLevelPolicyManagedApps specifies the clipboard sharing level policy managed apps state for clipboard
|
||||
// sharing level.
|
||||
ClipboardSharingLevelPolicyManagedApps ClipboardSharingLevel = "policyManagedApps"
|
||||
// ClipboardSharingLevelPolicyManagedAppsWithPasteIn specifies the
|
||||
// clipboard sharing level policy managed apps with paste in state for
|
||||
// clipboard sharing level.
|
||||
// ClipboardSharingLevelPolicyManagedAppsWithPasteIn specifies the clipboard sharing level policy managed apps with
|
||||
// paste in state for clipboard sharing level.
|
||||
ClipboardSharingLevelPolicyManagedAppsWithPasteIn ClipboardSharingLevel = "policyManagedAppsWithPasteIn"
|
||||
)
|
||||
|
||||
@@ -106,11 +99,9 @@ const (
|
||||
type FileEncryption string
|
||||
|
||||
const (
|
||||
// FileEncryptionNotRequired specifies the file encryption not required
|
||||
// state for file encryption.
|
||||
// FileEncryptionNotRequired specifies the file encryption not required state for file encryption.
|
||||
FileEncryptionNotRequired FileEncryption = "notRequired"
|
||||
// FileEncryptionRequired specifies the file encryption required state for
|
||||
// file encryption.
|
||||
// FileEncryptionRequired specifies the file encryption required state for file encryption.
|
||||
FileEncryptionRequired FileEncryption = "required"
|
||||
)
|
||||
|
||||
@@ -118,17 +109,13 @@ const (
|
||||
type FileEncryptionLevel string
|
||||
|
||||
const (
|
||||
// AfterDeviceRestart specifies the after device restart state for file
|
||||
// encryption level.
|
||||
// AfterDeviceRestart specifies the after device restart state for file encryption level.
|
||||
AfterDeviceRestart FileEncryptionLevel = "afterDeviceRestart"
|
||||
// DeviceLocked specifies the device locked state for file encryption
|
||||
// level.
|
||||
// DeviceLocked specifies the device locked state for file encryption level.
|
||||
DeviceLocked FileEncryptionLevel = "deviceLocked"
|
||||
// DeviceLockedExceptFilesOpen specifies the device locked except files
|
||||
// open state for file encryption level.
|
||||
// DeviceLockedExceptFilesOpen specifies the device locked except files open state for file encryption level.
|
||||
DeviceLockedExceptFilesOpen FileEncryptionLevel = "deviceLockedExceptFilesOpen"
|
||||
// UseDeviceSettings specifies the use device settings state for file
|
||||
// encryption level.
|
||||
// UseDeviceSettings specifies the use device settings state for file encryption level.
|
||||
UseDeviceSettings FileEncryptionLevel = "useDeviceSettings"
|
||||
)
|
||||
|
||||
@@ -136,11 +123,9 @@ const (
|
||||
type FileSharingSaveAs string
|
||||
|
||||
const (
|
||||
// FileSharingSaveAsAllow specifies the file sharing save as allow state
|
||||
// for file sharing save as.
|
||||
// FileSharingSaveAsAllow specifies the file sharing save as allow state for file sharing save as.
|
||||
FileSharingSaveAsAllow FileSharingSaveAs = "allow"
|
||||
// FileSharingSaveAsBlock specifies the file sharing save as block state
|
||||
// for file sharing save as.
|
||||
// FileSharingSaveAsBlock specifies the file sharing save as block state for file sharing save as.
|
||||
FileSharingSaveAsBlock FileSharingSaveAs = "block"
|
||||
)
|
||||
|
||||
@@ -158,11 +143,9 @@ const (
|
||||
type ManagedBrowser string
|
||||
|
||||
const (
|
||||
// ManagedBrowserNotRequired specifies the managed browser not required
|
||||
// state for managed browser.
|
||||
// ManagedBrowserNotRequired specifies the managed browser not required state for managed browser.
|
||||
ManagedBrowserNotRequired ManagedBrowser = "notRequired"
|
||||
// ManagedBrowserRequired specifies the managed browser required state for
|
||||
// managed browser.
|
||||
// ManagedBrowserRequired specifies the managed browser required state for managed browser.
|
||||
ManagedBrowserRequired ManagedBrowser = "required"
|
||||
)
|
||||
|
||||
@@ -192,11 +175,9 @@ const (
|
||||
type ScreenCapture string
|
||||
|
||||
const (
|
||||
// ScreenCaptureAllow specifies the screen capture allow state for screen
|
||||
// capture.
|
||||
// ScreenCaptureAllow specifies the screen capture allow state for screen capture.
|
||||
ScreenCaptureAllow ScreenCapture = "allow"
|
||||
// ScreenCaptureBlock specifies the screen capture block state for screen
|
||||
// capture.
|
||||
// ScreenCaptureBlock specifies the screen capture block state for screen capture.
|
||||
ScreenCaptureBlock ScreenCapture = "block"
|
||||
)
|
||||
|
||||
@@ -355,8 +336,7 @@ type FlaggedEnrolledApp struct {
|
||||
*FlaggedEnrolledAppProperties `json:"properties,omitempty"`
|
||||
}
|
||||
|
||||
// FlaggedEnrolledAppCollection is flagged Enrolled App collection for the
|
||||
// given tenant.
|
||||
// FlaggedEnrolledAppCollection is flagged Enrolled App collection for the given tenant.
|
||||
type FlaggedEnrolledAppCollection struct {
|
||||
autorest.Response `json:"-"`
|
||||
Value *[]FlaggedEnrolledApp `json:"value,omitempty"`
|
||||
@@ -549,14 +529,12 @@ type LocationProperties struct {
|
||||
HostName *string `json:"hostName,omitempty"`
|
||||
}
|
||||
|
||||
// MAMPolicyAppIDOrGroupIDPayload is mAM Policy request body for properties
|
||||
// Intune MAM.
|
||||
// MAMPolicyAppIDOrGroupIDPayload is MAM Policy request body for properties Intune MAM.
|
||||
type MAMPolicyAppIDOrGroupIDPayload struct {
|
||||
Properties *MAMPolicyAppOrGroupIDProperties `json:"properties,omitempty"`
|
||||
}
|
||||
|
||||
// MAMPolicyAppOrGroupIDProperties is android Policy request body for Intune
|
||||
// MAM.
|
||||
// MAMPolicyAppOrGroupIDProperties is android Policy request body for Intune MAM.
|
||||
type MAMPolicyAppOrGroupIDProperties struct {
|
||||
URL *string `json:"url,omitempty"`
|
||||
}
|
||||
|
||||
+4
-5
@@ -14,16 +14,15 @@ 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.
|
||||
|
||||
// UserAgent returns the UserAgent string to use when sending http.Requests.
|
||||
func UserAgent() string {
|
||||
return "Azure-SDK-For-Go/v10.1.0-beta arm-intune/2015-01-14-preview"
|
||||
return "Azure-SDK-For-Go/v11.0.0-beta arm-intune/2015-01-14-preview"
|
||||
}
|
||||
|
||||
// Version returns the semantic version (see http://semver.org) of the client.
|
||||
func Version() string {
|
||||
return "v10.1.0-beta"
|
||||
return "v11.0.0-beta"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user