Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (30 sloc) 1.54 KB
// 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)
// 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)
You can’t perform that action at this time.