devicemanagement

package
v0.20241029.1112340 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2024 License: MPL-2.0 Imports: 9 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/devicemanagement/beta/devicemanagement Documentation

The devicemanagement SDK allows for interaction with Microsoft Graph devicemanagement (API Version beta).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/microsoft-graph/devicemanagement/beta/devicemanagement"

Client Initialization

client := devicemanagement.NewDeviceManagementClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: DeviceManagementClient.EnableAndroidDeviceAdministratorEnrollment

ctx := context.TODO()


read, err := client.EnableAndroidDeviceAdministratorEnrollment(ctx, devicemanagement.DefaultEnableAndroidDeviceAdministratorEnrollmentOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: DeviceManagementClient.EnableLegacyPcManagement

ctx := context.TODO()


read, err := client.EnableLegacyPcManagement(ctx, devicemanagement.DefaultEnableLegacyPcManagementOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: DeviceManagementClient.EnableUnlicensedAdminstrators

ctx := context.TODO()


read, err := client.EnableUnlicensedAdminstrators(ctx, devicemanagement.DefaultEnableUnlicensedAdminstratorsOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: DeviceManagementClient.EvaluateAssignmentFilter

ctx := context.TODO()

payload := devicemanagement.EvaluateAssignmentFilterRequest{
	// ...
}


read, err := client.EvaluateAssignmentFilter(ctx, payload, devicemanagement.DefaultEvaluateAssignmentFilterOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: DeviceManagementClient.GetAssignmentFiltersStatusDetails

ctx := context.TODO()

payload := devicemanagement.GetAssignmentFiltersStatusDetailsRequest{
	// ...
}


read, err := client.GetAssignmentFiltersStatusDetails(ctx, payload, devicemanagement.DefaultGetAssignmentFiltersStatusDetailsOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: DeviceManagementClient.GetDeviceManagement

ctx := context.TODO()


read, err := client.GetDeviceManagement(ctx, devicemanagement.DefaultGetDeviceManagementOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: DeviceManagementClient.SendCustomNotificationToCompanyPortal

ctx := context.TODO()

payload := devicemanagement.SendCustomNotificationToCompanyPortalRequest{
	// ...
}


read, err := client.SendCustomNotificationToCompanyPortal(ctx, payload, devicemanagement.DefaultSendCustomNotificationToCompanyPortalOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: DeviceManagementClient.UpdateDeviceManagement

ctx := context.TODO()

payload := devicemanagement.DeviceManagement{
	// ...
}


read, err := client.UpdateDeviceManagement(ctx, payload, devicemanagement.DefaultUpdateDeviceManagementOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceManagementClient

type DeviceManagementClient struct {
	Client *msgraph.Client
}

func NewDeviceManagementClientWithBaseURI

func NewDeviceManagementClientWithBaseURI(sdkApi sdkEnv.Api) (*DeviceManagementClient, error)

func (DeviceManagementClient) EnableAndroidDeviceAdministratorEnrollment

EnableAndroidDeviceAdministratorEnrollment - Invoke action enableAndroidDeviceAdministratorEnrollment

func (DeviceManagementClient) EnableLegacyPcManagement

EnableLegacyPcManagement - Invoke action enableLegacyPcManagement

func (DeviceManagementClient) EnableUnlicensedAdminstrators

EnableUnlicensedAdminstrators - Invoke action enableUnlicensedAdminstrators. Upon enabling, users assigned as administrators via Role Assignment Memberships will no longer require an assigned Intune license. You are limited to 350 unlicensed direct members for each AAD security group in a role assignment, but you can assign multiple AAD security groups to a role if you need to support more than 350 unlicensed administrators. Licensed administrators will continue to function as-is in that transitive memberships apply and are not subject to the 350 member limit.

func (DeviceManagementClient) EvaluateAssignmentFilter

EvaluateAssignmentFilter - Invoke action evaluateAssignmentFilter

func (DeviceManagementClient) GetAssignmentFiltersStatusDetails

GetAssignmentFiltersStatusDetails - Invoke action getAssignmentFiltersStatusDetails

func (DeviceManagementClient) GetDeviceManagement

GetDeviceManagement - Get deviceManagement

func (DeviceManagementClient) SendCustomNotificationToCompanyPortal

SendCustomNotificationToCompanyPortal - Invoke action sendCustomNotificationToCompanyPortal

func (DeviceManagementClient) UpdateDeviceManagement

UpdateDeviceManagement - Update deviceManagement

type EnableAndroidDeviceAdministratorEnrollmentOperationOptions

type EnableAndroidDeviceAdministratorEnrollmentOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func (EnableAndroidDeviceAdministratorEnrollmentOperationOptions) ToHeaders

func (EnableAndroidDeviceAdministratorEnrollmentOperationOptions) ToOData

func (EnableAndroidDeviceAdministratorEnrollmentOperationOptions) ToQuery

type EnableAndroidDeviceAdministratorEnrollmentOperationResponse

type EnableAndroidDeviceAdministratorEnrollmentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type EnableLegacyPcManagementOperationOptions

type EnableLegacyPcManagementOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultEnableLegacyPcManagementOperationOptions

func DefaultEnableLegacyPcManagementOperationOptions() EnableLegacyPcManagementOperationOptions

func (EnableLegacyPcManagementOperationOptions) ToHeaders

func (EnableLegacyPcManagementOperationOptions) ToOData

func (EnableLegacyPcManagementOperationOptions) ToQuery

type EnableLegacyPcManagementOperationResponse

type EnableLegacyPcManagementOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type EnableUnlicensedAdminstratorsOperationOptions

type EnableUnlicensedAdminstratorsOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultEnableUnlicensedAdminstratorsOperationOptions

func DefaultEnableUnlicensedAdminstratorsOperationOptions() EnableUnlicensedAdminstratorsOperationOptions

func (EnableUnlicensedAdminstratorsOperationOptions) ToHeaders

func (EnableUnlicensedAdminstratorsOperationOptions) ToOData

func (EnableUnlicensedAdminstratorsOperationOptions) ToQuery

type EnableUnlicensedAdminstratorsOperationResponse

type EnableUnlicensedAdminstratorsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type EvaluateAssignmentFilterOperationOptions

type EvaluateAssignmentFilterOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultEvaluateAssignmentFilterOperationOptions

func DefaultEvaluateAssignmentFilterOperationOptions() EvaluateAssignmentFilterOperationOptions

func (EvaluateAssignmentFilterOperationOptions) ToHeaders

func (EvaluateAssignmentFilterOperationOptions) ToOData

func (EvaluateAssignmentFilterOperationOptions) ToQuery

type EvaluateAssignmentFilterOperationResponse

type EvaluateAssignmentFilterOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]byte
}

type EvaluateAssignmentFilterRequest

type EvaluateAssignmentFilterRequest struct {
	Data *beta.AssignmentFilterEvaluateRequest `json:"data,omitempty"`
}

type GetAssignmentFiltersStatusDetailsOperationOptions

type GetAssignmentFiltersStatusDetailsOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultGetAssignmentFiltersStatusDetailsOperationOptions

func DefaultGetAssignmentFiltersStatusDetailsOperationOptions() GetAssignmentFiltersStatusDetailsOperationOptions

func (GetAssignmentFiltersStatusDetailsOperationOptions) ToHeaders

func (GetAssignmentFiltersStatusDetailsOperationOptions) ToOData

func (GetAssignmentFiltersStatusDetailsOperationOptions) ToQuery

type GetAssignmentFiltersStatusDetailsOperationResponse

type GetAssignmentFiltersStatusDetailsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.AssignmentFilterStatusDetails
}

type GetAssignmentFiltersStatusDetailsRequest

type GetAssignmentFiltersStatusDetailsRequest struct {
	AssignmentFilterIds *[]string             `json:"assignmentFilterIds,omitempty"`
	ManagedDeviceId     nullable.Type[string] `json:"managedDeviceId,omitempty"`
	PayloadId           nullable.Type[string] `json:"payloadId,omitempty"`
	Skip                nullable.Type[int64]  `json:"skip,omitempty"`
	Top                 nullable.Type[int64]  `json:"top,omitempty"`
	UserId              nullable.Type[string] `json:"userId,omitempty"`
}

type GetDeviceManagementOperationOptions

type GetDeviceManagementOperationOptions struct {
	Expand    *odata.Expand
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Select    *[]string
}

func DefaultGetDeviceManagementOperationOptions

func DefaultGetDeviceManagementOperationOptions() GetDeviceManagementOperationOptions

func (GetDeviceManagementOperationOptions) ToHeaders

func (GetDeviceManagementOperationOptions) ToOData

func (GetDeviceManagementOperationOptions) ToQuery

type GetDeviceManagementOperationResponse

type GetDeviceManagementOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.DeviceManagement
}

type SendCustomNotificationToCompanyPortalOperationOptions

type SendCustomNotificationToCompanyPortalOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultSendCustomNotificationToCompanyPortalOperationOptions

func DefaultSendCustomNotificationToCompanyPortalOperationOptions() SendCustomNotificationToCompanyPortalOperationOptions

func (SendCustomNotificationToCompanyPortalOperationOptions) ToHeaders

func (SendCustomNotificationToCompanyPortalOperationOptions) ToOData

func (SendCustomNotificationToCompanyPortalOperationOptions) ToQuery

type SendCustomNotificationToCompanyPortalOperationResponse

type SendCustomNotificationToCompanyPortalOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type SendCustomNotificationToCompanyPortalRequest

type SendCustomNotificationToCompanyPortalRequest struct {
	GroupsToNotify    *[]string             `json:"groupsToNotify,omitempty"`
	NotificationBody  nullable.Type[string] `json:"notificationBody,omitempty"`
	NotificationTitle nullable.Type[string] `json:"notificationTitle,omitempty"`
}

type UpdateDeviceManagementOperationOptions

type UpdateDeviceManagementOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultUpdateDeviceManagementOperationOptions

func DefaultUpdateDeviceManagementOperationOptions() UpdateDeviceManagementOperationOptions

func (UpdateDeviceManagementOperationOptions) ToHeaders

func (UpdateDeviceManagementOperationOptions) ToOData

func (UpdateDeviceManagementOperationOptions) ToQuery

type UpdateDeviceManagementOperationResponse

type UpdateDeviceManagementOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL