-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from microsoftgraph/v1.0/pipelinebuild/62445
Generated v1.0 models and request builders using Kiota
- Loading branch information
Showing
165 changed files
with
20,884 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
139 changes: 139 additions & 0 deletions
139
communications/onlinemeetings/item/attendancereports/attendance_reports_request_builder.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
package attendancereports | ||
|
||
import ( | ||
ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9 "github.com/microsoft/kiota/abstractions/go" | ||
i04eb5309aeaafadd28374d79c8471df9b267510b4dc2e3144c378c50f6fd7b55 "github.com/microsoft/kiota/abstractions/go/serialization" | ||
i4a838ef194e4c99e9f2c63ba10dab9cb120a89367c1d4ab0daa63bb424e20d87 "github.com/microsoftgraph/msgraph-sdk-go/models/microsoft/graph" | ||
) | ||
|
||
// AttendanceReportsRequestBuilder builds and executes requests for operations under \communications\onlineMeetings\{onlineMeeting-id}\attendanceReports | ||
type AttendanceReportsRequestBuilder struct { | ||
// Path parameters for the request | ||
pathParameters map[string]string; | ||
// The request adapter to use to execute the requests. | ||
requestAdapter ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.RequestAdapter; | ||
// Url template to use to build the URL for the current request builder | ||
urlTemplate string; | ||
} | ||
// AttendanceReportsRequestBuilderGetOptions options for Get | ||
type AttendanceReportsRequestBuilderGetOptions struct { | ||
// Request headers | ||
H map[string]string; | ||
// Request options | ||
O []ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.RequestOption; | ||
// Request query parameters | ||
Q *AttendanceReportsRequestBuilderGetQueryParameters; | ||
// Response handler to use in place of the default response handling provided by the core service | ||
ResponseHandler ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.ResponseHandler; | ||
} | ||
// AttendanceReportsRequestBuilderGetQueryParameters the attendance reports of an online meeting. Read-only. | ||
type AttendanceReportsRequestBuilderGetQueryParameters struct { | ||
// Include count of items | ||
Count *bool; | ||
// Expand related entities | ||
Expand []string; | ||
// Filter items by property values | ||
Filter *string; | ||
// Order items by property values | ||
Orderby []string; | ||
// Search items by search phrases | ||
Search *string; | ||
// Select properties to be returned | ||
Select []string; | ||
// Skip the first n items | ||
Skip *int32; | ||
// Show only the first n items | ||
Top *int32; | ||
} | ||
// AttendanceReportsRequestBuilderPostOptions options for Post | ||
type AttendanceReportsRequestBuilderPostOptions struct { | ||
// | ||
Body *i4a838ef194e4c99e9f2c63ba10dab9cb120a89367c1d4ab0daa63bb424e20d87.MeetingAttendanceReport; | ||
// Request headers | ||
H map[string]string; | ||
// Request options | ||
O []ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.RequestOption; | ||
// Response handler to use in place of the default response handling provided by the core service | ||
ResponseHandler ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.ResponseHandler; | ||
} | ||
// NewAttendanceReportsRequestBuilderInternal instantiates a new AttendanceReportsRequestBuilder and sets the default values. | ||
func NewAttendanceReportsRequestBuilderInternal(pathParameters map[string]string, requestAdapter ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.RequestAdapter)(*AttendanceReportsRequestBuilder) { | ||
m := &AttendanceReportsRequestBuilder{ | ||
} | ||
m.urlTemplate = "{+baseurl}/communications/onlineMeetings/{onlineMeeting_id}/attendanceReports{?top,skip,search,filter,count,orderby,select,expand}"; | ||
urlTplParams := make(map[string]string) | ||
for idx, item := range pathParameters { | ||
urlTplParams[idx] = item | ||
} | ||
m.pathParameters = pathParameters; | ||
m.requestAdapter = requestAdapter; | ||
return m | ||
} | ||
// NewAttendanceReportsRequestBuilder instantiates a new AttendanceReportsRequestBuilder and sets the default values. | ||
func NewAttendanceReportsRequestBuilder(rawUrl string, requestAdapter ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.RequestAdapter)(*AttendanceReportsRequestBuilder) { | ||
urlParams := make(map[string]string) | ||
urlParams["request-raw-url"] = rawUrl | ||
return NewAttendanceReportsRequestBuilderInternal(urlParams, requestAdapter) | ||
} | ||
// CreateGetRequestInformation the attendance reports of an online meeting. Read-only. | ||
func (m *AttendanceReportsRequestBuilder) CreateGetRequestInformation(options *AttendanceReportsRequestBuilderGetOptions)(*ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.RequestInformation, error) { | ||
requestInfo := ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.NewRequestInformation() | ||
requestInfo.UrlTemplate = m.urlTemplate | ||
requestInfo.PathParameters = m.pathParameters | ||
requestInfo.Method = ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.GET | ||
if options != nil && options.Q != nil { | ||
requestInfo.AddQueryParameters(*(options.Q)) | ||
} | ||
if options != nil && options.H != nil { | ||
requestInfo.Headers = options.H | ||
} | ||
if options != nil && len(options.O) != 0 { | ||
err := requestInfo.AddRequestOptions(options.O...) | ||
if err != nil { | ||
return nil, err | ||
} | ||
} | ||
return requestInfo, nil | ||
} | ||
// CreatePostRequestInformation the attendance reports of an online meeting. Read-only. | ||
func (m *AttendanceReportsRequestBuilder) CreatePostRequestInformation(options *AttendanceReportsRequestBuilderPostOptions)(*ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.RequestInformation, error) { | ||
requestInfo := ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.NewRequestInformation() | ||
requestInfo.UrlTemplate = m.urlTemplate | ||
requestInfo.PathParameters = m.pathParameters | ||
requestInfo.Method = ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.POST | ||
requestInfo.SetContentFromParsable(m.requestAdapter, "application/json", options.Body) | ||
if options != nil && options.H != nil { | ||
requestInfo.Headers = options.H | ||
} | ||
if options != nil && len(options.O) != 0 { | ||
err := requestInfo.AddRequestOptions(options.O...) | ||
if err != nil { | ||
return nil, err | ||
} | ||
} | ||
return requestInfo, nil | ||
} | ||
// Get the attendance reports of an online meeting. Read-only. | ||
func (m *AttendanceReportsRequestBuilder) Get(options *AttendanceReportsRequestBuilderGetOptions)(*AttendanceReportsResponse, error) { | ||
requestInfo, err := m.CreateGetRequestInformation(options); | ||
if err != nil { | ||
return nil, err | ||
} | ||
res, err := m.requestAdapter.SendAsync(*requestInfo, func () i04eb5309aeaafadd28374d79c8471df9b267510b4dc2e3144c378c50f6fd7b55.Parsable { return NewAttendanceReportsResponse() }, nil) | ||
if err != nil { | ||
return nil, err | ||
} | ||
return res.(*AttendanceReportsResponse), nil | ||
} | ||
// Post the attendance reports of an online meeting. Read-only. | ||
func (m *AttendanceReportsRequestBuilder) Post(options *AttendanceReportsRequestBuilderPostOptions)(*i4a838ef194e4c99e9f2c63ba10dab9cb120a89367c1d4ab0daa63bb424e20d87.MeetingAttendanceReport, error) { | ||
requestInfo, err := m.CreatePostRequestInformation(options); | ||
if err != nil { | ||
return nil, err | ||
} | ||
res, err := m.requestAdapter.SendAsync(*requestInfo, func () i04eb5309aeaafadd28374d79c8471df9b267510b4dc2e3144c378c50f6fd7b55.Parsable { return i4a838ef194e4c99e9f2c63ba10dab9cb120a89367c1d4ab0daa63bb424e20d87.NewMeetingAttendanceReport() }, nil) | ||
if err != nil { | ||
return nil, err | ||
} | ||
return res.(*i4a838ef194e4c99e9f2c63ba10dab9cb120a89367c1d4ab0daa63bb424e20d87.MeetingAttendanceReport), nil | ||
} |
124 changes: 124 additions & 0 deletions
124
communications/onlinemeetings/item/attendancereports/attendance_reports_response.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
package attendancereports | ||
|
||
import ( | ||
i04eb5309aeaafadd28374d79c8471df9b267510b4dc2e3144c378c50f6fd7b55 "github.com/microsoft/kiota/abstractions/go/serialization" | ||
i4a838ef194e4c99e9f2c63ba10dab9cb120a89367c1d4ab0daa63bb424e20d87 "github.com/microsoftgraph/msgraph-sdk-go/models/microsoft/graph" | ||
) | ||
|
||
// AttendanceReportsResponse | ||
type AttendanceReportsResponse struct { | ||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. | ||
additionalData map[string]interface{}; | ||
// | ||
nextLink *string; | ||
// | ||
value []i4a838ef194e4c99e9f2c63ba10dab9cb120a89367c1d4ab0daa63bb424e20d87.MeetingAttendanceReport; | ||
} | ||
// NewAttendanceReportsResponse instantiates a new attendanceReportsResponse and sets the default values. | ||
func NewAttendanceReportsResponse()(*AttendanceReportsResponse) { | ||
m := &AttendanceReportsResponse{ | ||
} | ||
m.SetAdditionalData(make(map[string]interface{})); | ||
return m | ||
} | ||
// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. | ||
func (m *AttendanceReportsResponse) GetAdditionalData()(map[string]interface{}) { | ||
if m == nil { | ||
return nil | ||
} else { | ||
return m.additionalData | ||
} | ||
} | ||
// GetNextLink gets the @odata.nextLink property value. | ||
func (m *AttendanceReportsResponse) GetNextLink()(*string) { | ||
if m == nil { | ||
return nil | ||
} else { | ||
return m.nextLink | ||
} | ||
} | ||
// GetValue gets the value property value. | ||
func (m *AttendanceReportsResponse) GetValue()([]i4a838ef194e4c99e9f2c63ba10dab9cb120a89367c1d4ab0daa63bb424e20d87.MeetingAttendanceReport) { | ||
if m == nil { | ||
return nil | ||
} else { | ||
return m.value | ||
} | ||
} | ||
// GetFieldDeserializers the deserialization information for the current model | ||
func (m *AttendanceReportsResponse) GetFieldDeserializers()(map[string]func(interface{}, i04eb5309aeaafadd28374d79c8471df9b267510b4dc2e3144c378c50f6fd7b55.ParseNode)(error)) { | ||
res := make(map[string]func(interface{}, i04eb5309aeaafadd28374d79c8471df9b267510b4dc2e3144c378c50f6fd7b55.ParseNode)(error)) | ||
res["@odata.nextLink"] = func (o interface{}, n i04eb5309aeaafadd28374d79c8471df9b267510b4dc2e3144c378c50f6fd7b55.ParseNode) error { | ||
val, err := n.GetStringValue() | ||
if err != nil { | ||
return err | ||
} | ||
if val != nil { | ||
m.SetNextLink(val) | ||
} | ||
return nil | ||
} | ||
res["value"] = func (o interface{}, n i04eb5309aeaafadd28374d79c8471df9b267510b4dc2e3144c378c50f6fd7b55.ParseNode) error { | ||
val, err := n.GetCollectionOfObjectValues(func () i04eb5309aeaafadd28374d79c8471df9b267510b4dc2e3144c378c50f6fd7b55.Parsable { return i4a838ef194e4c99e9f2c63ba10dab9cb120a89367c1d4ab0daa63bb424e20d87.NewMeetingAttendanceReport() }) | ||
if err != nil { | ||
return err | ||
} | ||
if val != nil { | ||
res := make([]i4a838ef194e4c99e9f2c63ba10dab9cb120a89367c1d4ab0daa63bb424e20d87.MeetingAttendanceReport, len(val)) | ||
for i, v := range val { | ||
res[i] = *(v.(*i4a838ef194e4c99e9f2c63ba10dab9cb120a89367c1d4ab0daa63bb424e20d87.MeetingAttendanceReport)) | ||
} | ||
m.SetValue(res) | ||
} | ||
return nil | ||
} | ||
return res | ||
} | ||
func (m *AttendanceReportsResponse) IsNil()(bool) { | ||
return m == nil | ||
} | ||
// Serialize serializes information the current object | ||
func (m *AttendanceReportsResponse) Serialize(writer i04eb5309aeaafadd28374d79c8471df9b267510b4dc2e3144c378c50f6fd7b55.SerializationWriter)(error) { | ||
{ | ||
err := writer.WriteStringValue("@odata.nextLink", m.GetNextLink()) | ||
if err != nil { | ||
return err | ||
} | ||
} | ||
{ | ||
cast := make([]i04eb5309aeaafadd28374d79c8471df9b267510b4dc2e3144c378c50f6fd7b55.Parsable, len(m.GetValue())) | ||
for i, v := range m.GetValue() { | ||
temp := v | ||
cast[i] = i04eb5309aeaafadd28374d79c8471df9b267510b4dc2e3144c378c50f6fd7b55.Parsable(&temp) | ||
} | ||
err := writer.WriteCollectionOfObjectValues("value", cast) | ||
if err != nil { | ||
return err | ||
} | ||
} | ||
{ | ||
err := writer.WriteAdditionalData(m.GetAdditionalData()) | ||
if err != nil { | ||
return err | ||
} | ||
} | ||
return nil | ||
} | ||
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. | ||
func (m *AttendanceReportsResponse) SetAdditionalData(value map[string]interface{})() { | ||
if m != nil { | ||
m.additionalData = value | ||
} | ||
} | ||
// SetNextLink sets the @odata.nextLink property value. | ||
func (m *AttendanceReportsResponse) SetNextLink(value *string)() { | ||
if m != nil { | ||
m.nextLink = value | ||
} | ||
} | ||
// SetValue sets the value property value. | ||
func (m *AttendanceReportsResponse) SetValue(value []i4a838ef194e4c99e9f2c63ba10dab9cb120a89367c1d4ab0daa63bb424e20d87.MeetingAttendanceReport)() { | ||
if m != nil { | ||
m.value = value | ||
} | ||
} |
Oops, something went wrong.