github.com/yaegashi/msgraph.go@v0.1.4/beta/RequestWindows10.go (about)

     1  // Code generated by msgraph.go/gen DO NOT EDIT.
     2  
     3  package msgraph
     4  
     5  import "context"
     6  
     7  // Windows10GeneralConfigurationRequestBuilder is request builder for Windows10GeneralConfiguration
     8  type Windows10GeneralConfigurationRequestBuilder struct{ BaseRequestBuilder }
     9  
    10  // Request returns Windows10GeneralConfigurationRequest
    11  func (b *Windows10GeneralConfigurationRequestBuilder) Request() *Windows10GeneralConfigurationRequest {
    12  	return &Windows10GeneralConfigurationRequest{
    13  		BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
    14  	}
    15  }
    16  
    17  // Windows10GeneralConfigurationRequest is request for Windows10GeneralConfiguration
    18  type Windows10GeneralConfigurationRequest struct{ BaseRequest }
    19  
    20  // Get performs GET request for Windows10GeneralConfiguration
    21  func (r *Windows10GeneralConfigurationRequest) Get(ctx context.Context) (resObj *Windows10GeneralConfiguration, 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 Windows10GeneralConfiguration
    31  func (r *Windows10GeneralConfigurationRequest) Update(ctx context.Context, reqObj *Windows10GeneralConfiguration) error {
    32  	return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
    33  }
    34  
    35  // Delete performs DELETE request for Windows10GeneralConfiguration
    36  func (r *Windows10GeneralConfigurationRequest) Delete(ctx context.Context) error {
    37  	return r.JSONRequest(ctx, "DELETE", "", nil, nil)
    38  }
    39  
    40  // Windows10ImportedPFXCertificateProfileRequestBuilder is request builder for Windows10ImportedPFXCertificateProfile
    41  type Windows10ImportedPFXCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
    42  
    43  // Request returns Windows10ImportedPFXCertificateProfileRequest
    44  func (b *Windows10ImportedPFXCertificateProfileRequestBuilder) Request() *Windows10ImportedPFXCertificateProfileRequest {
    45  	return &Windows10ImportedPFXCertificateProfileRequest{
    46  		BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
    47  	}
    48  }
    49  
    50  // Windows10ImportedPFXCertificateProfileRequest is request for Windows10ImportedPFXCertificateProfile
    51  type Windows10ImportedPFXCertificateProfileRequest struct{ BaseRequest }
    52  
    53  // Get performs GET request for Windows10ImportedPFXCertificateProfile
    54  func (r *Windows10ImportedPFXCertificateProfileRequest) Get(ctx context.Context) (resObj *Windows10ImportedPFXCertificateProfile, 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 Windows10ImportedPFXCertificateProfile
    64  func (r *Windows10ImportedPFXCertificateProfileRequest) Update(ctx context.Context, reqObj *Windows10ImportedPFXCertificateProfile) error {
    65  	return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
    66  }
    67  
    68  // Delete performs DELETE request for Windows10ImportedPFXCertificateProfile
    69  func (r *Windows10ImportedPFXCertificateProfileRequest) Delete(ctx context.Context) error {
    70  	return r.JSONRequest(ctx, "DELETE", "", nil, nil)
    71  }
    72  
    73  // Windows10PkcsCertificateProfileRequestBuilder is request builder for Windows10PkcsCertificateProfile
    74  type Windows10PkcsCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
    75  
    76  // Request returns Windows10PkcsCertificateProfileRequest
    77  func (b *Windows10PkcsCertificateProfileRequestBuilder) Request() *Windows10PkcsCertificateProfileRequest {
    78  	return &Windows10PkcsCertificateProfileRequest{
    79  		BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
    80  	}
    81  }
    82  
    83  // Windows10PkcsCertificateProfileRequest is request for Windows10PkcsCertificateProfile
    84  type Windows10PkcsCertificateProfileRequest struct{ BaseRequest }
    85  
    86  // Get performs GET request for Windows10PkcsCertificateProfile
    87  func (r *Windows10PkcsCertificateProfileRequest) Get(ctx context.Context) (resObj *Windows10PkcsCertificateProfile, err error) {
    88  	var query string
    89  	if r.query != nil {
    90  		query = "?" + r.query.Encode()
    91  	}
    92  	err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
    93  	return
    94  }
    95  
    96  // Update performs PATCH request for Windows10PkcsCertificateProfile
    97  func (r *Windows10PkcsCertificateProfileRequest) Update(ctx context.Context, reqObj *Windows10PkcsCertificateProfile) error {
    98  	return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
    99  }
   100  
   101  // Delete performs DELETE request for Windows10PkcsCertificateProfile
   102  func (r *Windows10PkcsCertificateProfileRequest) Delete(ctx context.Context) error {
   103  	return r.JSONRequest(ctx, "DELETE", "", nil, nil)
   104  }
   105  
   106  // Windows10VpnConfigurationRequestBuilder is request builder for Windows10VpnConfiguration
   107  type Windows10VpnConfigurationRequestBuilder struct{ BaseRequestBuilder }
   108  
   109  // Request returns Windows10VpnConfigurationRequest
   110  func (b *Windows10VpnConfigurationRequestBuilder) Request() *Windows10VpnConfigurationRequest {
   111  	return &Windows10VpnConfigurationRequest{
   112  		BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
   113  	}
   114  }
   115  
   116  // Windows10VpnConfigurationRequest is request for Windows10VpnConfiguration
   117  type Windows10VpnConfigurationRequest struct{ BaseRequest }
   118  
   119  // Get performs GET request for Windows10VpnConfiguration
   120  func (r *Windows10VpnConfigurationRequest) Get(ctx context.Context) (resObj *Windows10VpnConfiguration, err error) {
   121  	var query string
   122  	if r.query != nil {
   123  		query = "?" + r.query.Encode()
   124  	}
   125  	err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
   126  	return
   127  }
   128  
   129  // Update performs PATCH request for Windows10VpnConfiguration
   130  func (r *Windows10VpnConfigurationRequest) Update(ctx context.Context, reqObj *Windows10VpnConfiguration) error {
   131  	return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
   132  }
   133  
   134  // Delete performs DELETE request for Windows10VpnConfiguration
   135  func (r *Windows10VpnConfigurationRequest) Delete(ctx context.Context) error {
   136  	return r.JSONRequest(ctx, "DELETE", "", nil, nil)
   137  }