summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateAction.go
blob: 1064e5d73f6df0b1620b3ce9598f758f7aaa280c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Code generated by msgraph-generate.go DO NOT EDIT.

package msgraph

import "context"

// DeviceManagementTemplateCreateInstanceRequestParameter undocumented
type DeviceManagementTemplateCreateInstanceRequestParameter struct {
	// DisplayName undocumented
	DisplayName *string `json:"displayName,omitempty"`
	// Description undocumented
	Description *string `json:"description,omitempty"`
	// SettingsDelta undocumented
	SettingsDelta []DeviceManagementSettingInstance `json:"settingsDelta,omitempty"`
	// RoleScopeTagIDs undocumented
	RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
}

//
type DeviceManagementTemplateCreateInstanceRequestBuilder struct{ BaseRequestBuilder }

// CreateInstance action undocumented
func (b *DeviceManagementTemplateRequestBuilder) CreateInstance(reqObj *DeviceManagementTemplateCreateInstanceRequestParameter) *DeviceManagementTemplateCreateInstanceRequestBuilder {
	bb := &DeviceManagementTemplateCreateInstanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
	bb.BaseRequestBuilder.baseURL += "/createInstance"
	bb.BaseRequestBuilder.requestObject = reqObj
	return bb
}

//
type DeviceManagementTemplateCreateInstanceRequest struct{ BaseRequest }

//
func (b *DeviceManagementTemplateCreateInstanceRequestBuilder) Request() *DeviceManagementTemplateCreateInstanceRequest {
	return &DeviceManagementTemplateCreateInstanceRequest{
		BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
	}
}

//
func (r *DeviceManagementTemplateCreateInstanceRequest) Post(ctx context.Context) (resObj *DeviceManagementIntent, err error) {
	err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
	return
}