// Code generated by msgraph.go/gen DO NOT EDIT.

package msgraph

import "context"

// FilterOperatorSchemaRequestBuilder is request builder for FilterOperatorSchema
type FilterOperatorSchemaRequestBuilder struct{ BaseRequestBuilder }

// Request returns FilterOperatorSchemaRequest
func (b *FilterOperatorSchemaRequestBuilder) Request() *FilterOperatorSchemaRequest {
	return &FilterOperatorSchemaRequest{
		BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
	}
}

// FilterOperatorSchemaRequest is request for FilterOperatorSchema
type FilterOperatorSchemaRequest struct{ BaseRequest }

// Get performs GET request for FilterOperatorSchema
func (r *FilterOperatorSchemaRequest) Get(ctx context.Context) (resObj *FilterOperatorSchema, 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 FilterOperatorSchema
func (r *FilterOperatorSchemaRequest) Update(ctx context.Context, reqObj *FilterOperatorSchema) error {
	return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
}

// Delete performs DELETE request for FilterOperatorSchema
func (r *FilterOperatorSchemaRequest) Delete(ctx context.Context) error {
	return r.JSONRequest(ctx, "DELETE", "", nil, nil)
}
