Skip to content

Commit

Permalink
Merge pull request #165 from microsoftgraph/v1.0/pipelinebuild/75027
Browse files Browse the repository at this point in the history
Generated v1.0 models and request builders using Kiota
  • Loading branch information
baywet authored May 19, 2022
2 parents af7918b + c66a872 commit e5c0562
Show file tree
Hide file tree
Showing 7,130 changed files with 287,236 additions and 123,311 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

## [0.24.0] - 2022-05-19

### Changed

- Weekly release.

## [0.23.0] - 2022-05-10

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,18 @@ func (m *IncidentReportRequestBuilder) CreateGetRequestInformationWithRequestCon
return requestInfo, nil
}
// Get invoke function incidentReport
func (m *IncidentReportRequestBuilder) Get()(IncidentReportResponseable, error) {
func (m *IncidentReportRequestBuilder) Get()([]byte, error) {
return m.GetWithRequestConfigurationAndResponseHandler(nil, nil);
}
// GetWithRequestConfigurationAndResponseHandler invoke function incidentReport
func (m *IncidentReportRequestBuilder) GetWithRequestConfigurationAndResponseHandler(requestConfiguration *IncidentReportRequestBuilderGetRequestConfiguration, responseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler)(IncidentReportResponseable, error) {
func (m *IncidentReportRequestBuilder) GetWithRequestConfigurationAndResponseHandler(requestConfiguration *IncidentReportRequestBuilderGetRequestConfiguration, responseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler)([]byte, error) {
requestInfo, err := m.CreateGetRequestInformationWithRequestConfiguration(requestConfiguration);
if err != nil {
return nil, err
}
res, err := m.requestAdapter.SendAsync(requestInfo, CreateIncidentReportResponseFromDiscriminatorValue, responseHandler, nil)
res, err := m.requestAdapter.SendPrimitiveAsync(requestInfo, "byte", responseHandler, nil)
if err != nil {
return nil, err
}
return res.(IncidentReportResponseable), nil
return res.([]byte), nil
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,18 @@ func (m *IncidentReportRequestBuilder) CreateGetRequestInformationWithRequestCon
return requestInfo, nil
}
// Get invoke function incidentReport
func (m *IncidentReportRequestBuilder) Get()(IncidentReportResponseable, error) {
func (m *IncidentReportRequestBuilder) Get()([]byte, error) {
return m.GetWithRequestConfigurationAndResponseHandler(nil, nil);
}
// GetWithRequestConfigurationAndResponseHandler invoke function incidentReport
func (m *IncidentReportRequestBuilder) GetWithRequestConfigurationAndResponseHandler(requestConfiguration *IncidentReportRequestBuilderGetRequestConfiguration, responseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler)(IncidentReportResponseable, error) {
func (m *IncidentReportRequestBuilder) GetWithRequestConfigurationAndResponseHandler(requestConfiguration *IncidentReportRequestBuilderGetRequestConfiguration, responseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler)([]byte, error) {
requestInfo, err := m.CreateGetRequestInformationWithRequestConfiguration(requestConfiguration);
if err != nil {
return nil, err
}
res, err := m.requestAdapter.SendAsync(requestInfo, CreateIncidentReportResponseFromDiscriminatorValue, responseHandler, nil)
res, err := m.requestAdapter.SendPrimitiveAsync(requestInfo, "byte", responseHandler, nil)
if err != nil {
return nil, err
}
return res.(IncidentReportResponseable), nil
return res.([]byte), nil
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
package archive

import (
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
)

// ArchivePostRequestBody provides operations to call the archive method.
type ArchivePostRequestBody struct {
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The messageIds property
messageIds []string
}
// NewArchivePostRequestBody instantiates a new archivePostRequestBody and sets the default values.
func NewArchivePostRequestBody()(*ArchivePostRequestBody) {
m := &ArchivePostRequestBody{
}
m.SetAdditionalData(make(map[string]interface{}));
return m
}
// CreateArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
func CreateArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
return NewArchivePostRequestBody(), nil
}
// 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 *ArchivePostRequestBody) GetAdditionalData()(map[string]interface{}) {
if m == nil {
return nil
} else {
return m.additionalData
}
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
res["messageIds"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetCollectionOfPrimitiveValues("string")
if err != nil {
return err
}
if val != nil {
res := make([]string, len(val))
for i, v := range val {
res[i] = *(v.(*string))
}
m.SetMessageIds(res)
}
return nil
}
return res
}
// GetMessageIds gets the messageIds property value. The messageIds property
func (m *ArchivePostRequestBody) GetMessageIds()([]string) {
if m == nil {
return nil
} else {
return m.messageIds
}
}
// Serialize serializes information the current object
func (m *ArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
if m.GetMessageIds() != nil {
err := writer.WriteCollectionOfStringValues("messageIds", m.GetMessageIds())
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 *ArchivePostRequestBody) SetAdditionalData(value map[string]interface{})() {
if m != nil {
m.additionalData = value
}
}
// SetMessageIds sets the messageIds property value. The messageIds property
func (m *ArchivePostRequestBody) SetMessageIds(value []string)() {
if m != nil {
m.messageIds = value
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package archive

import (
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
)

// ArchivePostRequestBodyable
type ArchivePostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetMessageIds()([]string)
SetMessageIds(value []string)()
}
Loading

0 comments on commit e5c0562

Please sign in to comment.