me

package
v0.20240923.1151247 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MPL-2.0 Imports: 10 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me Documentation

The me SDK allows for interaction with Microsoft Graph me (API Version stable).

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/me/stable/me"

Client Initialization

client := me.NewMeClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: MeClient.AssignLicense

ctx := context.TODO()

payload := me.AssignLicenseRequest{
	// ...
}


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

Example Usage: MeClient.ChangePassword

ctx := context.TODO()

payload := me.ChangePasswordRequest{
	// ...
}


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

Example Usage: MeClient.CheckMemberGroups

ctx := context.TODO()

payload := me.CheckMemberGroupsRequest{
	// ...
}


// alternatively `client.CheckMemberGroups(ctx, payload, me.DefaultCheckMemberGroupsOperationOptions())` can be used to do batched pagination
items, err := client.CheckMemberGroupsComplete(ctx, payload, me.DefaultCheckMemberGroupsOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: MeClient.CheckMemberObjects

ctx := context.TODO()

payload := me.CheckMemberObjectsRequest{
	// ...
}


// alternatively `client.CheckMemberObjects(ctx, payload, me.DefaultCheckMemberObjectsOperationOptions())` can be used to do batched pagination
items, err := client.CheckMemberObjectsComplete(ctx, payload, me.DefaultCheckMemberObjectsOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: MeClient.CreateExportPersonalData

ctx := context.TODO()

payload := me.CreateExportPersonalDataRequest{
	// ...
}


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

Example Usage: MeClient.FindMeetingTimes

ctx := context.TODO()

payload := me.FindMeetingTimesRequest{
	// ...
}


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

Example Usage: MeClient.GetMailTips

ctx := context.TODO()

payload := me.GetMailTipsRequest{
	// ...
}


// alternatively `client.GetMailTips(ctx, payload, me.DefaultGetMailTipsOperationOptions())` can be used to do batched pagination
items, err := client.GetMailTipsComplete(ctx, payload, me.DefaultGetMailTipsOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: MeClient.GetMe

ctx := context.TODO()


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

Example Usage: MeClient.GetMemberGroups

ctx := context.TODO()

payload := me.GetMemberGroupsRequest{
	// ...
}


// alternatively `client.GetMemberGroups(ctx, payload, me.DefaultGetMemberGroupsOperationOptions())` can be used to do batched pagination
items, err := client.GetMemberGroupsComplete(ctx, payload, me.DefaultGetMemberGroupsOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: MeClient.GetMemberObjects

ctx := context.TODO()

payload := me.GetMemberObjectsRequest{
	// ...
}


// alternatively `client.GetMemberObjects(ctx, payload, me.DefaultGetMemberObjectsOperationOptions())` can be used to do batched pagination
items, err := client.GetMemberObjectsComplete(ctx, payload, me.DefaultGetMemberObjectsOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: MeClient.RemoveAllDevicesFromManagement

ctx := context.TODO()


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

Example Usage: MeClient.ReprocessLicenseAssignment

ctx := context.TODO()


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

Example Usage: MeClient.Restore

ctx := context.TODO()


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

Example Usage: MeClient.RetryServiceProvisioning

ctx := context.TODO()


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

Example Usage: MeClient.RevokeSignInSessions

ctx := context.TODO()


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

Example Usage: MeClient.SendMail

ctx := context.TODO()

payload := me.SendMailRequest{
	// ...
}


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

Example Usage: MeClient.TranslateExchangeIds

ctx := context.TODO()

payload := me.TranslateExchangeIdsRequest{
	// ...
}


// alternatively `client.TranslateExchangeIds(ctx, payload, me.DefaultTranslateExchangeIdsOperationOptions())` can be used to do batched pagination
items, err := client.TranslateExchangeIdsComplete(ctx, payload, me.DefaultTranslateExchangeIdsOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: MeClient.UpdateMe

ctx := context.TODO()

payload := me.User{
	// ...
}


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

Example Usage: MeClient.WipeManagedAppRegistrationsByDeviceTag

ctx := context.TODO()

payload := me.WipeManagedAppRegistrationsByDeviceTagRequest{
	// ...
}


read, err := client.WipeManagedAppRegistrationsByDeviceTag(ctx, payload, me.DefaultWipeManagedAppRegistrationsByDeviceTagOperationOptions())
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 AssignLicenseOperationOptions

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

func DefaultAssignLicenseOperationOptions

func DefaultAssignLicenseOperationOptions() AssignLicenseOperationOptions

func (AssignLicenseOperationOptions) ToHeaders

func (AssignLicenseOperationOptions) ToOData

func (AssignLicenseOperationOptions) ToQuery

type AssignLicenseOperationResponse

type AssignLicenseOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.User
}

type AssignLicenseRequest

type AssignLicenseRequest struct {
	AddLicenses    *[]stable.AssignedLicense `json:"addLicenses,omitempty"`
	RemoveLicenses *[]string                 `json:"removeLicenses,omitempty"`
}

type ChangePasswordOperationOptions

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

func DefaultChangePasswordOperationOptions

func DefaultChangePasswordOperationOptions() ChangePasswordOperationOptions

func (ChangePasswordOperationOptions) ToHeaders

func (ChangePasswordOperationOptions) ToOData

func (ChangePasswordOperationOptions) ToQuery

type ChangePasswordOperationResponse

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

type ChangePasswordRequest

type ChangePasswordRequest struct {
	CurrentPassword nullable.Type[string] `json:"currentPassword,omitempty"`
	NewPassword     nullable.Type[string] `json:"newPassword,omitempty"`
}

type CheckMemberGroupsCompleteResult

type CheckMemberGroupsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []string
}

type CheckMemberGroupsCustomPager

type CheckMemberGroupsCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
func (p *CheckMemberGroupsCustomPager) NextPageLink() *odata.Link

type CheckMemberGroupsOperationOptions

type CheckMemberGroupsOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Skip      *int64
	Top       *int64
}

func DefaultCheckMemberGroupsOperationOptions

func DefaultCheckMemberGroupsOperationOptions() CheckMemberGroupsOperationOptions

func (CheckMemberGroupsOperationOptions) ToHeaders

func (CheckMemberGroupsOperationOptions) ToOData

func (CheckMemberGroupsOperationOptions) ToQuery

type CheckMemberGroupsOperationResponse

type CheckMemberGroupsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]string
}

type CheckMemberGroupsRequest

type CheckMemberGroupsRequest struct {
	GroupIds *[]string `json:"groupIds,omitempty"`
}

type CheckMemberObjectsCompleteResult

type CheckMemberObjectsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []string
}

type CheckMemberObjectsCustomPager

type CheckMemberObjectsCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
func (p *CheckMemberObjectsCustomPager) NextPageLink() *odata.Link

type CheckMemberObjectsOperationOptions

type CheckMemberObjectsOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Skip      *int64
	Top       *int64
}

func DefaultCheckMemberObjectsOperationOptions

func DefaultCheckMemberObjectsOperationOptions() CheckMemberObjectsOperationOptions

func (CheckMemberObjectsOperationOptions) ToHeaders

func (CheckMemberObjectsOperationOptions) ToOData

func (CheckMemberObjectsOperationOptions) ToQuery

type CheckMemberObjectsOperationResponse

type CheckMemberObjectsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]string
}

type CheckMemberObjectsRequest

type CheckMemberObjectsRequest struct {
	Ids *[]string `json:"ids,omitempty"`
}

type ConvertIdResultOperationPredicate

type ConvertIdResultOperationPredicate struct {
}

func (ConvertIdResultOperationPredicate) Matches

type CreateExportPersonalDataOperationOptions

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

func DefaultCreateExportPersonalDataOperationOptions

func DefaultCreateExportPersonalDataOperationOptions() CreateExportPersonalDataOperationOptions

func (CreateExportPersonalDataOperationOptions) ToHeaders

func (CreateExportPersonalDataOperationOptions) ToOData

func (CreateExportPersonalDataOperationOptions) ToQuery

type CreateExportPersonalDataOperationResponse

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

type CreateExportPersonalDataRequest

type CreateExportPersonalDataRequest struct {
	StorageLocation nullable.Type[string] `json:"storageLocation,omitempty"`
}

type FindMeetingTimesOperationOptions

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

func DefaultFindMeetingTimesOperationOptions

func DefaultFindMeetingTimesOperationOptions() FindMeetingTimesOperationOptions

func (FindMeetingTimesOperationOptions) ToHeaders

func (FindMeetingTimesOperationOptions) ToOData

func (FindMeetingTimesOperationOptions) ToQuery

type FindMeetingTimesOperationResponse

type FindMeetingTimesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.MeetingTimeSuggestionsResult
}

type FindMeetingTimesRequest

type FindMeetingTimesRequest struct {
	Attendees               *[]stable.AttendeeBase     `json:"attendees,omitempty"`
	IsOrganizerOptional     nullable.Type[bool]        `json:"isOrganizerOptional,omitempty"`
	LocationConstraint      *stable.LocationConstraint `json:"locationConstraint,omitempty"`
	MaxCandidates           nullable.Type[int64]       `json:"maxCandidates,omitempty"`
	MeetingDuration         nullable.Type[string]      `json:"meetingDuration,omitempty"`
	ReturnSuggestionReasons nullable.Type[bool]        `json:"returnSuggestionReasons,omitempty"`
	TimeConstraint          *stable.TimeConstraint     `json:"timeConstraint,omitempty"`
}

type GetMailTipsCompleteResult

type GetMailTipsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []stable.MailTips
}

type GetMailTipsCustomPager

type GetMailTipsCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
func (p *GetMailTipsCustomPager) NextPageLink() *odata.Link

type GetMailTipsOperationOptions

type GetMailTipsOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Skip      *int64
	Top       *int64
}

func DefaultGetMailTipsOperationOptions

func DefaultGetMailTipsOperationOptions() GetMailTipsOperationOptions

func (GetMailTipsOperationOptions) ToHeaders

func (GetMailTipsOperationOptions) ToOData

func (GetMailTipsOperationOptions) ToQuery

type GetMailTipsOperationResponse

type GetMailTipsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]stable.MailTips
}

type GetMailTipsRequest

type GetMailTipsRequest struct {
	EmailAddresses  *[]string            `json:"EmailAddresses,omitempty"`
	MailTipsOptions *stable.MailTipsType `json:"MailTipsOptions,omitempty"`
}

type GetMeOperationOptions

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

func DefaultGetMeOperationOptions

func DefaultGetMeOperationOptions() GetMeOperationOptions

func (GetMeOperationOptions) ToHeaders

func (o GetMeOperationOptions) ToHeaders() *client.Headers

func (GetMeOperationOptions) ToOData

func (o GetMeOperationOptions) ToOData() *odata.Query

func (GetMeOperationOptions) ToQuery

type GetMeOperationResponse

type GetMeOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.User
}

type GetMemberGroupsCompleteResult

type GetMemberGroupsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []string
}

type GetMemberGroupsCustomPager

type GetMemberGroupsCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
func (p *GetMemberGroupsCustomPager) NextPageLink() *odata.Link

type GetMemberGroupsOperationOptions

type GetMemberGroupsOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Skip      *int64
	Top       *int64
}

func DefaultGetMemberGroupsOperationOptions

func DefaultGetMemberGroupsOperationOptions() GetMemberGroupsOperationOptions

func (GetMemberGroupsOperationOptions) ToHeaders

func (GetMemberGroupsOperationOptions) ToOData

func (GetMemberGroupsOperationOptions) ToQuery

type GetMemberGroupsOperationResponse

type GetMemberGroupsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]string
}

type GetMemberGroupsRequest

type GetMemberGroupsRequest struct {
	SecurityEnabledOnly nullable.Type[bool] `json:"securityEnabledOnly,omitempty"`
}

type GetMemberObjectsCompleteResult

type GetMemberObjectsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []string
}

type GetMemberObjectsCustomPager

type GetMemberObjectsCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
func (p *GetMemberObjectsCustomPager) NextPageLink() *odata.Link

type GetMemberObjectsOperationOptions

type GetMemberObjectsOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Skip      *int64
	Top       *int64
}

func DefaultGetMemberObjectsOperationOptions

func DefaultGetMemberObjectsOperationOptions() GetMemberObjectsOperationOptions

func (GetMemberObjectsOperationOptions) ToHeaders

func (GetMemberObjectsOperationOptions) ToOData

func (GetMemberObjectsOperationOptions) ToQuery

type GetMemberObjectsOperationResponse

type GetMemberObjectsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]string
}

type GetMemberObjectsRequest

type GetMemberObjectsRequest struct {
	SecurityEnabledOnly nullable.Type[bool] `json:"securityEnabledOnly,omitempty"`
}

type MailTipsOperationPredicate

type MailTipsOperationPredicate struct {
}

func (MailTipsOperationPredicate) Matches

type MeClient

type MeClient struct {
	Client *msgraph.Client
}

func NewMeClientWithBaseURI

func NewMeClientWithBaseURI(sdkApi sdkEnv.Api) (*MeClient, error)

func (MeClient) AssignLicense

AssignLicense - Invoke action assignLicense. Add or remove licenses for the user to enable or disable their use of Microsoft cloud offerings that the company has licenses to. For example, an organization can have a Microsoft 365 Enterprise E3 subscription with 100 licenses, and this request assigns one of those licenses to a specific user. You can also enable and disable specific plans associated with a subscription.

func (MeClient) ChangePassword

ChangePassword - Invoke action changePassword. Enable the user to update their password. Any user can update their password without belonging to any administrator role.

func (MeClient) CheckMemberGroups

CheckMemberGroups - Invoke action checkMemberGroups. Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.

func (MeClient) CheckMemberGroupsComplete

func (c MeClient) CheckMemberGroupsComplete(ctx context.Context, input CheckMemberGroupsRequest, options CheckMemberGroupsOperationOptions) (result CheckMemberGroupsCompleteResult, err error)

CheckMemberGroupsComplete retrieves all the results into a single object

func (MeClient) CheckMemberObjects

CheckMemberObjects - Invoke action checkMemberObjects. Check for membership in a list of group IDs, administrative unit IDs, or directory role IDs, for the IDs of the specified user, group, service principal, organizational contact, device, or directory object. This method is transitive.

func (MeClient) CheckMemberObjectsComplete

func (c MeClient) CheckMemberObjectsComplete(ctx context.Context, input CheckMemberObjectsRequest, options CheckMemberObjectsOperationOptions) (result CheckMemberObjectsCompleteResult, err error)

CheckMemberObjectsComplete retrieves all the results into a single object

func (MeClient) CreateExportPersonalData

CreateExportPersonalData - Invoke action exportPersonalData. Submit a data policy operation request from a company administrator or an application to export an organizational user's data. This data includes the user's data stored in OneDrive and their activity reports. For more information about exporting data while complying with regulations, see Data Subject Requests and the GDPR and CCPA.

func (MeClient) FindMeetingTimes

FindMeetingTimes - Invoke action findMeetingTimes. Suggest meeting times and locations based on organizer and attendee availability, and time or location constraints specified as parameters. If findMeetingTimes cannot return any meeting suggestions, the response would indicate a reason in the emptySuggestionsReason property. Based on this value, you can better adjust the parameters and call findMeetingTimes again. The algorithm used to suggest meeting times and locations undergoes fine-tuning from time to time. In scenarios like test environments where the input parameters and calendar data remain static, expect that the suggested results may differ over time.

func (MeClient) GetMailTips

GetMailTips - Invoke action getMailTips. Get the MailTips of one or more recipients as available to the signed-in user. Note that by making a POST call to the getMailTips action, you can request specific types of MailTips to be returned for more than one recipient at one time. The requested MailTips are returned in a mailTips collection.

func (MeClient) GetMailTipsComplete

GetMailTipsComplete retrieves all the results into a single object

func (MeClient) GetMailTipsCompleteMatchingPredicate

func (c MeClient) GetMailTipsCompleteMatchingPredicate(ctx context.Context, input GetMailTipsRequest, options GetMailTipsOperationOptions, predicate MailTipsOperationPredicate) (result GetMailTipsCompleteResult, err error)

GetMailTipsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (MeClient) GetMe

func (c MeClient) GetMe(ctx context.Context, options GetMeOperationOptions) (result GetMeOperationResponse, err error)

GetMe - List manager. Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node.

func (MeClient) GetMemberGroups

GetMemberGroups - Invoke action getMemberGroups. Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead.

func (MeClient) GetMemberGroupsComplete

func (c MeClient) GetMemberGroupsComplete(ctx context.Context, input GetMemberGroupsRequest, options GetMemberGroupsOperationOptions) (result GetMemberGroupsCompleteResult, err error)

GetMemberGroupsComplete retrieves all the results into a single object

func (MeClient) GetMemberObjects

GetMemberObjects - Invoke action getMemberObjects. Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles.

func (MeClient) GetMemberObjectsComplete

func (c MeClient) GetMemberObjectsComplete(ctx context.Context, input GetMemberObjectsRequest, options GetMemberObjectsOperationOptions) (result GetMemberObjectsCompleteResult, err error)

GetMemberObjectsComplete retrieves all the results into a single object

func (MeClient) RemoveAllDevicesFromManagement

RemoveAllDevicesFromManagement - Invoke action removeAllDevicesFromManagement. Retire all devices from management for this user

func (MeClient) ReprocessLicenseAssignment

ReprocessLicenseAssignment - Invoke action reprocessLicenseAssignment. Reprocess all group-based license assignments for the user. To learn more about group-based licensing, see What is group-based licensing in Microsoft Entra ID. Also see Identify and resolve license assignment problems for a group in Microsoft Entra ID for more details.

func (MeClient) Restore

func (c MeClient) Restore(ctx context.Context, options RestoreOperationOptions) (result RestoreOperationResponse, err error)

Restore - Invoke action restore. Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.

func (MeClient) RetryServiceProvisioning

RetryServiceProvisioning - Invoke action retryServiceProvisioning. Retry the user service provisioning.

func (MeClient) RevokeSignInSessions

RevokeSignInSessions - Invoke action revokeSignInSessions. Invalidates all the refresh tokens issued to applications for a user (as well as session cookies in a user's browser), by resetting the signInSessionsValidFromDateTime user property to the current date-time. Typically, this operation is performed (by the user or an administrator) if the user has a lost or stolen device. This operation prevents access to the organization's data through applications on the device by requiring the user to sign in again to all applications that they have previously consented to, independent of device.

func (MeClient) SendMail

func (c MeClient) SendMail(ctx context.Context, input SendMailRequest, options SendMailOperationOptions) (result SendMailOperationResponse, err error)

SendMail - Invoke action sendMail. Send the message specified in the request body using either JSON or MIME format. When using JSON format, you can include a file attachment in the same sendMail action call. When using MIME format: This method saves the message in the Sent Items folder. Alternatively, create a draft message to send later. To learn more about the steps involved in the backend before a mail is delivered to recipients, see here.

func (MeClient) TranslateExchangeIds

TranslateExchangeIds - Invoke action translateExchangeIds. Translate identifiers of Outlook-related resources between formats.

func (MeClient) TranslateExchangeIdsComplete

TranslateExchangeIdsComplete retrieves all the results into a single object

func (MeClient) TranslateExchangeIdsCompleteMatchingPredicate

func (c MeClient) TranslateExchangeIdsCompleteMatchingPredicate(ctx context.Context, input TranslateExchangeIdsRequest, options TranslateExchangeIdsOperationOptions, predicate ConvertIdResultOperationPredicate) (result TranslateExchangeIdsCompleteResult, err error)

TranslateExchangeIdsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (MeClient) UpdateMe

func (c MeClient) UpdateMe(ctx context.Context, input stable.User, options UpdateMeOperationOptions) (result UpdateMeOperationResponse, err error)

UpdateMe - Update user. Update the properties of a user object.

func (MeClient) WipeManagedAppRegistrationsByDeviceTag

WipeManagedAppRegistrationsByDeviceTag - Invoke action wipeManagedAppRegistrationsByDeviceTag. Issues a wipe operation on an app registration with specified device tag.

type RemoveAllDevicesFromManagementOperationOptions

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

func DefaultRemoveAllDevicesFromManagementOperationOptions

func DefaultRemoveAllDevicesFromManagementOperationOptions() RemoveAllDevicesFromManagementOperationOptions

func (RemoveAllDevicesFromManagementOperationOptions) ToHeaders

func (RemoveAllDevicesFromManagementOperationOptions) ToOData

func (RemoveAllDevicesFromManagementOperationOptions) ToQuery

type RemoveAllDevicesFromManagementOperationResponse

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

type ReprocessLicenseAssignmentOperationOptions

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

func DefaultReprocessLicenseAssignmentOperationOptions

func DefaultReprocessLicenseAssignmentOperationOptions() ReprocessLicenseAssignmentOperationOptions

func (ReprocessLicenseAssignmentOperationOptions) ToHeaders

func (ReprocessLicenseAssignmentOperationOptions) ToOData

func (ReprocessLicenseAssignmentOperationOptions) ToQuery

type ReprocessLicenseAssignmentOperationResponse

type ReprocessLicenseAssignmentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.User
}

type RestoreOperationOptions

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

func DefaultRestoreOperationOptions

func DefaultRestoreOperationOptions() RestoreOperationOptions

func (RestoreOperationOptions) ToHeaders

func (o RestoreOperationOptions) ToHeaders() *client.Headers

func (RestoreOperationOptions) ToOData

func (o RestoreOperationOptions) ToOData() *odata.Query

func (RestoreOperationOptions) ToQuery

type RestoreOperationResponse

type RestoreOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        stable.DirectoryObject
}

type RetryServiceProvisioningOperationOptions

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

func DefaultRetryServiceProvisioningOperationOptions

func DefaultRetryServiceProvisioningOperationOptions() RetryServiceProvisioningOperationOptions

func (RetryServiceProvisioningOperationOptions) ToHeaders

func (RetryServiceProvisioningOperationOptions) ToOData

func (RetryServiceProvisioningOperationOptions) ToQuery

type RetryServiceProvisioningOperationResponse

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

type RevokeSignInSessionsOperationOptions

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

func DefaultRevokeSignInSessionsOperationOptions

func DefaultRevokeSignInSessionsOperationOptions() RevokeSignInSessionsOperationOptions

func (RevokeSignInSessionsOperationOptions) ToHeaders

func (RevokeSignInSessionsOperationOptions) ToOData

func (RevokeSignInSessionsOperationOptions) ToQuery

type RevokeSignInSessionsOperationResponse

type RevokeSignInSessionsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RevokeSignInSessionsResult
}

type RevokeSignInSessionsResult

type RevokeSignInSessionsResult struct {
	Value nullable.Type[bool] `json:"value,omitempty"`
}

type SendMailOperationOptions

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

func DefaultSendMailOperationOptions

func DefaultSendMailOperationOptions() SendMailOperationOptions

func (SendMailOperationOptions) ToHeaders

func (o SendMailOperationOptions) ToHeaders() *client.Headers

func (SendMailOperationOptions) ToOData

func (o SendMailOperationOptions) ToOData() *odata.Query

func (SendMailOperationOptions) ToQuery

type SendMailOperationResponse

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

type SendMailRequest

type SendMailRequest struct {
	Message         *stable.Message     `json:"Message,omitempty"`
	SaveToSentItems nullable.Type[bool] `json:"SaveToSentItems,omitempty"`
}

type TranslateExchangeIdsCompleteResult

type TranslateExchangeIdsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []stable.ConvertIdResult
}

type TranslateExchangeIdsCustomPager

type TranslateExchangeIdsCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
func (p *TranslateExchangeIdsCustomPager) NextPageLink() *odata.Link

type TranslateExchangeIdsOperationOptions

type TranslateExchangeIdsOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Skip      *int64
	Top       *int64
}

func DefaultTranslateExchangeIdsOperationOptions

func DefaultTranslateExchangeIdsOperationOptions() TranslateExchangeIdsOperationOptions

func (TranslateExchangeIdsOperationOptions) ToHeaders

func (TranslateExchangeIdsOperationOptions) ToOData

func (TranslateExchangeIdsOperationOptions) ToQuery

type TranslateExchangeIdsOperationResponse

type TranslateExchangeIdsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]stable.ConvertIdResult
}

type TranslateExchangeIdsRequest

type TranslateExchangeIdsRequest struct {
	InputIds     *[]string                `json:"InputIds,omitempty"`
	SourceIdType *stable.ExchangeIdFormat `json:"SourceIdType,omitempty"`
	TargetIdType *stable.ExchangeIdFormat `json:"TargetIdType,omitempty"`
}

type UpdateMeOperationOptions

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

func DefaultUpdateMeOperationOptions

func DefaultUpdateMeOperationOptions() UpdateMeOperationOptions

func (UpdateMeOperationOptions) ToHeaders

func (o UpdateMeOperationOptions) ToHeaders() *client.Headers

func (UpdateMeOperationOptions) ToOData

func (o UpdateMeOperationOptions) ToOData() *odata.Query

func (UpdateMeOperationOptions) ToQuery

type UpdateMeOperationResponse

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

type WipeManagedAppRegistrationsByDeviceTagOperationOptions

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

func DefaultWipeManagedAppRegistrationsByDeviceTagOperationOptions

func DefaultWipeManagedAppRegistrationsByDeviceTagOperationOptions() WipeManagedAppRegistrationsByDeviceTagOperationOptions

func (WipeManagedAppRegistrationsByDeviceTagOperationOptions) ToHeaders

func (WipeManagedAppRegistrationsByDeviceTagOperationOptions) ToOData

func (WipeManagedAppRegistrationsByDeviceTagOperationOptions) ToQuery

type WipeManagedAppRegistrationsByDeviceTagOperationResponse

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

type WipeManagedAppRegistrationsByDeviceTagRequest

type WipeManagedAppRegistrationsByDeviceTagRequest struct {
	DeviceTag nullable.Type[string] `json:"deviceTag,omitempty"`
}

Jump to

Keyboard shortcuts

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