github.com/yaegashi/msgraph.go@v0.1.4/beta/RequestWindows81.go (about) 1 // Code generated by msgraph.go/gen DO NOT EDIT. 2 3 package msgraph 4 5 import "context" 6 7 // Windows81SCEPCertificateProfileRequestBuilder is request builder for Windows81SCEPCertificateProfile 8 type Windows81SCEPCertificateProfileRequestBuilder struct{ BaseRequestBuilder } 9 10 // Request returns Windows81SCEPCertificateProfileRequest 11 func (b *Windows81SCEPCertificateProfileRequestBuilder) Request() *Windows81SCEPCertificateProfileRequest { 12 return &Windows81SCEPCertificateProfileRequest{ 13 BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, 14 } 15 } 16 17 // Windows81SCEPCertificateProfileRequest is request for Windows81SCEPCertificateProfile 18 type Windows81SCEPCertificateProfileRequest struct{ BaseRequest } 19 20 // Get performs GET request for Windows81SCEPCertificateProfile 21 func (r *Windows81SCEPCertificateProfileRequest) Get(ctx context.Context) (resObj *Windows81SCEPCertificateProfile, err error) { 22 var query string 23 if r.query != nil { 24 query = "?" + r.query.Encode() 25 } 26 err = r.JSONRequest(ctx, "GET", query, nil, &resObj) 27 return 28 } 29 30 // Update performs PATCH request for Windows81SCEPCertificateProfile 31 func (r *Windows81SCEPCertificateProfileRequest) Update(ctx context.Context, reqObj *Windows81SCEPCertificateProfile) error { 32 return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) 33 } 34 35 // Delete performs DELETE request for Windows81SCEPCertificateProfile 36 func (r *Windows81SCEPCertificateProfileRequest) Delete(ctx context.Context) error { 37 return r.JSONRequest(ctx, "DELETE", "", nil, nil) 38 } 39 40 // Windows81TrustedRootCertificateRequestBuilder is request builder for Windows81TrustedRootCertificate 41 type Windows81TrustedRootCertificateRequestBuilder struct{ BaseRequestBuilder } 42 43 // Request returns Windows81TrustedRootCertificateRequest 44 func (b *Windows81TrustedRootCertificateRequestBuilder) Request() *Windows81TrustedRootCertificateRequest { 45 return &Windows81TrustedRootCertificateRequest{ 46 BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, 47 } 48 } 49 50 // Windows81TrustedRootCertificateRequest is request for Windows81TrustedRootCertificate 51 type Windows81TrustedRootCertificateRequest struct{ BaseRequest } 52 53 // Get performs GET request for Windows81TrustedRootCertificate 54 func (r *Windows81TrustedRootCertificateRequest) Get(ctx context.Context) (resObj *Windows81TrustedRootCertificate, err error) { 55 var query string 56 if r.query != nil { 57 query = "?" + r.query.Encode() 58 } 59 err = r.JSONRequest(ctx, "GET", query, nil, &resObj) 60 return 61 } 62 63 // Update performs PATCH request for Windows81TrustedRootCertificate 64 func (r *Windows81TrustedRootCertificateRequest) Update(ctx context.Context, reqObj *Windows81TrustedRootCertificate) error { 65 return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) 66 } 67 68 // Delete performs DELETE request for Windows81TrustedRootCertificate 69 func (r *Windows81TrustedRootCertificateRequest) Delete(ctx context.Context) error { 70 return r.JSONRequest(ctx, "DELETE", "", nil, nil) 71 }