// Code generated by msgraph-generate.go DO NOT EDIT. package msgraph import "context" // AndroidDeviceOwnerEnrollmentProfileRequestBuilder is request builder for AndroidDeviceOwnerEnrollmentProfile type AndroidDeviceOwnerEnrollmentProfileRequestBuilder struct{ BaseRequestBuilder } // Request returns AndroidDeviceOwnerEnrollmentProfileRequest func (b *AndroidDeviceOwnerEnrollmentProfileRequestBuilder) Request() *AndroidDeviceOwnerEnrollmentProfileRequest { return &AndroidDeviceOwnerEnrollmentProfileRequest{ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, } } // AndroidDeviceOwnerEnrollmentProfileRequest is request for AndroidDeviceOwnerEnrollmentProfile type AndroidDeviceOwnerEnrollmentProfileRequest struct{ BaseRequest } // Get performs GET request for AndroidDeviceOwnerEnrollmentProfile func (r *AndroidDeviceOwnerEnrollmentProfileRequest) Get(ctx context.Context) (resObj *AndroidDeviceOwnerEnrollmentProfile, err error) { var query string if r.query != nil { query = "?" + r.query.Encode() } err = r.JSONRequest(ctx, "GET", query, nil, &resObj) return } // Update performs PATCH request for AndroidDeviceOwnerEnrollmentProfile func (r *AndroidDeviceOwnerEnrollmentProfileRequest) Update(ctx context.Context, reqObj *AndroidDeviceOwnerEnrollmentProfile) error { return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) } // Delete performs DELETE request for AndroidDeviceOwnerEnrollmentProfile func (r *AndroidDeviceOwnerEnrollmentProfileRequest) Delete(ctx context.Context) error { return r.JSONRequest(ctx, "DELETE", "", nil, nil) }