Skip to content

Commit

Permalink
Merge pull request #36 from microsoftgraph/beta/pipelinebuild/62445
Browse files Browse the repository at this point in the history
Generated beta models and request builders using Kiota
  • Loading branch information
baywet authored Jan 4, 2022
2 parents 7fd30d3 + 2a311aa commit 52e31ef
Show file tree
Hide file tree
Showing 604 changed files with 36,978 additions and 21,042 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

## [0.5.0] - 2022-01-04

Happy new year!

### Changed

- Weekly generation

## [0.4.2] - 2021-12-07

### Changed
Expand Down
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
package registrants
package attachments

import (
ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9 "github.com/microsoft/kiota/abstractions/go"
i04eb5309aeaafadd28374d79c8471df9b267510b4dc2e3144c378c50f6fd7b55 "github.com/microsoft/kiota/abstractions/go/serialization"
i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc "github.com/microsoftgraph/msgraph-beta-sdk-go/models/microsoft/graph"
)

// RegistrantsRequestBuilder builds and executes requests for operations under \me\onlineMeetings\{onlineMeeting-id}\registration\registrants
type RegistrantsRequestBuilder struct {
// AttachmentsRequestBuilder builds and executes requests for operations under \admin\serviceAnnouncement\messages\{serviceUpdateMessage-id}\attachments
type AttachmentsRequestBuilder 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;
}
// RegistrantsRequestBuilderGetOptions options for Get
type RegistrantsRequestBuilderGetOptions struct {
// AttachmentsRequestBuilderGetOptions options for Get
type AttachmentsRequestBuilderGetOptions struct {
// Request headers
H map[string]string;
// Request options
O []ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.RequestOption;
// Request query parameters
Q *RegistrantsRequestBuilderGetQueryParameters;
Q *AttachmentsRequestBuilderGetQueryParameters;
// Response handler to use in place of the default response handling provided by the core service
ResponseHandler ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.ResponseHandler;
}
// RegistrantsRequestBuilderGetQueryParameters registrants of the online meeting.
type RegistrantsRequestBuilderGetQueryParameters struct {
// AttachmentsRequestBuilderGetQueryParameters get attachments from admin
type AttachmentsRequestBuilderGetQueryParameters struct {
// Include count of items
Count *bool;
// Expand related entities
Expand All @@ -45,22 +45,22 @@ type RegistrantsRequestBuilderGetQueryParameters struct {
// Show only the first n items
Top *int32;
}
// RegistrantsRequestBuilderPostOptions options for Post
type RegistrantsRequestBuilderPostOptions struct {
// AttachmentsRequestBuilderPostOptions options for Post
type AttachmentsRequestBuilderPostOptions struct {
//
Body *i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc.MeetingRegistrant;
Body *i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc.ServiceAnnouncementAttachment;
// 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;
}
// NewRegistrantsRequestBuilderInternal instantiates a new RegistrantsRequestBuilder and sets the default values.
func NewRegistrantsRequestBuilderInternal(pathParameters map[string]string, requestAdapter ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.RequestAdapter)(*RegistrantsRequestBuilder) {
m := &RegistrantsRequestBuilder{
// NewAttachmentsRequestBuilderInternal instantiates a new AttachmentsRequestBuilder and sets the default values.
func NewAttachmentsRequestBuilderInternal(pathParameters map[string]string, requestAdapter ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.RequestAdapter)(*AttachmentsRequestBuilder) {
m := &AttachmentsRequestBuilder{
}
m.urlTemplate = "{+baseurl}/me/onlineMeetings/{onlineMeeting_id}/registration/registrants{?top,skip,search,filter,count,orderby,select,expand}";
m.urlTemplate = "{+baseurl}/admin/serviceAnnouncement/messages/{serviceUpdateMessage_id}/attachments{?top,skip,search,filter,count,orderby,select,expand}";
urlTplParams := make(map[string]string)
for idx, item := range pathParameters {
urlTplParams[idx] = item
Expand All @@ -69,14 +69,14 @@ func NewRegistrantsRequestBuilderInternal(pathParameters map[string]string, requ
m.requestAdapter = requestAdapter;
return m
}
// NewRegistrantsRequestBuilder instantiates a new RegistrantsRequestBuilder and sets the default values.
func NewRegistrantsRequestBuilder(rawUrl string, requestAdapter ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.RequestAdapter)(*RegistrantsRequestBuilder) {
// NewAttachmentsRequestBuilder instantiates a new AttachmentsRequestBuilder and sets the default values.
func NewAttachmentsRequestBuilder(rawUrl string, requestAdapter ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.RequestAdapter)(*AttachmentsRequestBuilder) {
urlParams := make(map[string]string)
urlParams["request-raw-url"] = rawUrl
return NewRegistrantsRequestBuilderInternal(urlParams, requestAdapter)
return NewAttachmentsRequestBuilderInternal(urlParams, requestAdapter)
}
// CreateGetRequestInformation registrants of the online meeting.
func (m *RegistrantsRequestBuilder) CreateGetRequestInformation(options *RegistrantsRequestBuilderGetOptions)(*ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.RequestInformation, error) {
// CreateGetRequestInformation get attachments from admin
func (m *AttachmentsRequestBuilder) CreateGetRequestInformation(options *AttachmentsRequestBuilderGetOptions)(*ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.RequestInformation, error) {
requestInfo := ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.NewRequestInformation()
requestInfo.UrlTemplate = m.urlTemplate
requestInfo.PathParameters = m.pathParameters
Expand All @@ -95,8 +95,8 @@ func (m *RegistrantsRequestBuilder) CreateGetRequestInformation(options *Registr
}
return requestInfo, nil
}
// CreatePostRequestInformation registrants of the online meeting.
func (m *RegistrantsRequestBuilder) CreatePostRequestInformation(options *RegistrantsRequestBuilderPostOptions)(*ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.RequestInformation, error) {
// CreatePostRequestInformation create new navigation property to attachments for admin
func (m *AttachmentsRequestBuilder) CreatePostRequestInformation(options *AttachmentsRequestBuilderPostOptions)(*ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.RequestInformation, error) {
requestInfo := ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.NewRequestInformation()
requestInfo.UrlTemplate = m.urlTemplate
requestInfo.PathParameters = m.pathParameters
Expand All @@ -113,27 +113,27 @@ func (m *RegistrantsRequestBuilder) CreatePostRequestInformation(options *Regist
}
return requestInfo, nil
}
// Get registrants of the online meeting.
func (m *RegistrantsRequestBuilder) Get(options *RegistrantsRequestBuilderGetOptions)(*RegistrantsResponse, error) {
// Get get attachments from admin
func (m *AttachmentsRequestBuilder) Get(options *AttachmentsRequestBuilderGetOptions)(*AttachmentsResponse, error) {
requestInfo, err := m.CreateGetRequestInformation(options);
if err != nil {
return nil, err
}
res, err := m.requestAdapter.SendAsync(*requestInfo, func () i04eb5309aeaafadd28374d79c8471df9b267510b4dc2e3144c378c50f6fd7b55.Parsable { return NewRegistrantsResponse() }, nil)
res, err := m.requestAdapter.SendAsync(*requestInfo, func () i04eb5309aeaafadd28374d79c8471df9b267510b4dc2e3144c378c50f6fd7b55.Parsable { return NewAttachmentsResponse() }, nil)
if err != nil {
return nil, err
}
return res.(*RegistrantsResponse), nil
return res.(*AttachmentsResponse), nil
}
// Post registrants of the online meeting.
func (m *RegistrantsRequestBuilder) Post(options *RegistrantsRequestBuilderPostOptions)(*i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc.MeetingRegistrant, error) {
// Post create new navigation property to attachments for admin
func (m *AttachmentsRequestBuilder) Post(options *AttachmentsRequestBuilderPostOptions)(*i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc.ServiceAnnouncementAttachment, error) {
requestInfo, err := m.CreatePostRequestInformation(options);
if err != nil {
return nil, err
}
res, err := m.requestAdapter.SendAsync(*requestInfo, func () i04eb5309aeaafadd28374d79c8471df9b267510b4dc2e3144c378c50f6fd7b55.Parsable { return i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc.NewMeetingRegistrant() }, nil)
res, err := m.requestAdapter.SendAsync(*requestInfo, func () i04eb5309aeaafadd28374d79c8471df9b267510b4dc2e3144c378c50f6fd7b55.Parsable { return i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc.NewServiceAnnouncementAttachment() }, nil)
if err != nil {
return nil, err
}
return res.(*i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc.MeetingRegistrant), nil
return res.(*i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc.ServiceAnnouncementAttachment), nil
}
Original file line number Diff line number Diff line change
@@ -1,52 +1,52 @@
package registrants
package attachments

import (
i04eb5309aeaafadd28374d79c8471df9b267510b4dc2e3144c378c50f6fd7b55 "github.com/microsoft/kiota/abstractions/go/serialization"
i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc "github.com/microsoftgraph/msgraph-beta-sdk-go/models/microsoft/graph"
)

// RegistrantsResponse
type RegistrantsResponse struct {
// AttachmentsResponse
type AttachmentsResponse 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 []i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc.MeetingRegistrant;
value []i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc.ServiceAnnouncementAttachment;
}
// NewRegistrantsResponse instantiates a new registrantsResponse and sets the default values.
func NewRegistrantsResponse()(*RegistrantsResponse) {
m := &RegistrantsResponse{
// NewAttachmentsResponse instantiates a new attachmentsResponse and sets the default values.
func NewAttachmentsResponse()(*AttachmentsResponse) {
m := &AttachmentsResponse{
}
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 *RegistrantsResponse) GetAdditionalData()(map[string]interface{}) {
func (m *AttachmentsResponse) GetAdditionalData()(map[string]interface{}) {
if m == nil {
return nil
} else {
return m.additionalData
}
}
// GetNextLink gets the @odata.nextLink property value.
func (m *RegistrantsResponse) GetNextLink()(*string) {
func (m *AttachmentsResponse) GetNextLink()(*string) {
if m == nil {
return nil
} else {
return m.nextLink
}
}
// GetValue gets the value property value.
func (m *RegistrantsResponse) GetValue()([]i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc.MeetingRegistrant) {
func (m *AttachmentsResponse) GetValue()([]i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc.ServiceAnnouncementAttachment) {
if m == nil {
return nil
} else {
return m.value
}
}
// GetFieldDeserializers the deserialization information for the current model
func (m *RegistrantsResponse) GetFieldDeserializers()(map[string]func(interface{}, i04eb5309aeaafadd28374d79c8471df9b267510b4dc2e3144c378c50f6fd7b55.ParseNode)(error)) {
func (m *AttachmentsResponse) 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()
Expand All @@ -59,26 +59,26 @@ func (m *RegistrantsResponse) GetFieldDeserializers()(map[string]func(interface{
return nil
}
res["value"] = func (o interface{}, n i04eb5309aeaafadd28374d79c8471df9b267510b4dc2e3144c378c50f6fd7b55.ParseNode) error {
val, err := n.GetCollectionOfObjectValues(func () i04eb5309aeaafadd28374d79c8471df9b267510b4dc2e3144c378c50f6fd7b55.Parsable { return i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc.NewMeetingRegistrant() })
val, err := n.GetCollectionOfObjectValues(func () i04eb5309aeaafadd28374d79c8471df9b267510b4dc2e3144c378c50f6fd7b55.Parsable { return i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc.NewServiceAnnouncementAttachment() })
if err != nil {
return err
}
if val != nil {
res := make([]i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc.MeetingRegistrant, len(val))
res := make([]i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc.ServiceAnnouncementAttachment, len(val))
for i, v := range val {
res[i] = *(v.(*i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc.MeetingRegistrant))
res[i] = *(v.(*i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc.ServiceAnnouncementAttachment))
}
m.SetValue(res)
}
return nil
}
return res
}
func (m *RegistrantsResponse) IsNil()(bool) {
func (m *AttachmentsResponse) IsNil()(bool) {
return m == nil
}
// Serialize serializes information the current object
func (m *RegistrantsResponse) Serialize(writer i04eb5309aeaafadd28374d79c8471df9b267510b4dc2e3144c378c50f6fd7b55.SerializationWriter)(error) {
func (m *AttachmentsResponse) Serialize(writer i04eb5309aeaafadd28374d79c8471df9b267510b4dc2e3144c378c50f6fd7b55.SerializationWriter)(error) {
{
err := writer.WriteStringValue("@odata.nextLink", m.GetNextLink())
if err != nil {
Expand All @@ -105,19 +105,19 @@ func (m *RegistrantsResponse) Serialize(writer i04eb5309aeaafadd28374d79c8471df9
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 *RegistrantsResponse) SetAdditionalData(value map[string]interface{})() {
func (m *AttachmentsResponse) SetAdditionalData(value map[string]interface{})() {
if m != nil {
m.additionalData = value
}
}
// SetNextLink sets the @odata.nextLink property value.
func (m *RegistrantsResponse) SetNextLink(value *string)() {
func (m *AttachmentsResponse) SetNextLink(value *string)() {
if m != nil {
m.nextLink = value
}
}
// SetValue sets the value property value.
func (m *RegistrantsResponse) SetValue(value []i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc.MeetingRegistrant)() {
func (m *AttachmentsResponse) SetValue(value []i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc.ServiceAnnouncementAttachment)() {
if m != nil {
m.value = value
}
Expand Down
Loading

0 comments on commit 52e31ef

Please sign in to comment.