Skip to content

Commit e5c0562

Browse files
authored
Merge pull request #165 from microsoftgraph/v1.0/pipelinebuild/75027
Generated v1.0 models and request builders using Kiota
2 parents af7918b + c66a872 commit e5c0562

7,130 files changed

Lines changed: 287236 additions & 123311 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Changed
1313

14+
## [0.24.0] - 2022-05-19
15+
16+
### Changed
17+
18+
- Weekly release.
19+
1420
## [0.23.0] - 2022-05-10
1521

1622
### Changed

admin/serviceannouncement/healthoverviews/item/issues/item/incidentreport/incident_report_request_builder.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,18 @@ func (m *IncidentReportRequestBuilder) CreateGetRequestInformationWithRequestCon
5656
return requestInfo, nil
5757
}
5858
// Get invoke function incidentReport
59-
func (m *IncidentReportRequestBuilder) Get()(IncidentReportResponseable, error) {
59+
func (m *IncidentReportRequestBuilder) Get()([]byte, error) {
6060
return m.GetWithRequestConfigurationAndResponseHandler(nil, nil);
6161
}
6262
// GetWithRequestConfigurationAndResponseHandler invoke function incidentReport
63-
func (m *IncidentReportRequestBuilder) GetWithRequestConfigurationAndResponseHandler(requestConfiguration *IncidentReportRequestBuilderGetRequestConfiguration, responseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler)(IncidentReportResponseable, error) {
63+
func (m *IncidentReportRequestBuilder) GetWithRequestConfigurationAndResponseHandler(requestConfiguration *IncidentReportRequestBuilderGetRequestConfiguration, responseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler)([]byte, error) {
6464
requestInfo, err := m.CreateGetRequestInformationWithRequestConfiguration(requestConfiguration);
6565
if err != nil {
6666
return nil, err
6767
}
68-
res, err := m.requestAdapter.SendAsync(requestInfo, CreateIncidentReportResponseFromDiscriminatorValue, responseHandler, nil)
68+
res, err := m.requestAdapter.SendPrimitiveAsync(requestInfo, "byte", responseHandler, nil)
6969
if err != nil {
7070
return nil, err
7171
}
72-
return res.(IncidentReportResponseable), nil
72+
return res.([]byte), nil
7373
}

admin/serviceannouncement/healthoverviews/item/issues/item/incidentreport/incident_report_response.go

Lines changed: 0 additions & 83 deletions
This file was deleted.

admin/serviceannouncement/healthoverviews/item/issues/item/incidentreport/incident_report_responseable.go

Lines changed: 0 additions & 13 deletions
This file was deleted.

admin/serviceannouncement/issues/item/incidentreport/incident_report_request_builder.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,18 @@ func (m *IncidentReportRequestBuilder) CreateGetRequestInformationWithRequestCon
5656
return requestInfo, nil
5757
}
5858
// Get invoke function incidentReport
59-
func (m *IncidentReportRequestBuilder) Get()(IncidentReportResponseable, error) {
59+
func (m *IncidentReportRequestBuilder) Get()([]byte, error) {
6060
return m.GetWithRequestConfigurationAndResponseHandler(nil, nil);
6161
}
6262
// GetWithRequestConfigurationAndResponseHandler invoke function incidentReport
63-
func (m *IncidentReportRequestBuilder) GetWithRequestConfigurationAndResponseHandler(requestConfiguration *IncidentReportRequestBuilderGetRequestConfiguration, responseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler)(IncidentReportResponseable, error) {
63+
func (m *IncidentReportRequestBuilder) GetWithRequestConfigurationAndResponseHandler(requestConfiguration *IncidentReportRequestBuilderGetRequestConfiguration, responseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler)([]byte, error) {
6464
requestInfo, err := m.CreateGetRequestInformationWithRequestConfiguration(requestConfiguration);
6565
if err != nil {
6666
return nil, err
6767
}
68-
res, err := m.requestAdapter.SendAsync(requestInfo, CreateIncidentReportResponseFromDiscriminatorValue, responseHandler, nil)
68+
res, err := m.requestAdapter.SendPrimitiveAsync(requestInfo, "byte", responseHandler, nil)
6969
if err != nil {
7070
return nil, err
7171
}
72-
return res.(IncidentReportResponseable), nil
72+
return res.([]byte), nil
7373
}

admin/serviceannouncement/issues/item/incidentreport/incident_report_response.go

Lines changed: 0 additions & 83 deletions
This file was deleted.

admin/serviceannouncement/issues/item/incidentreport/incident_report_responseable.go

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
package archive
2+
3+
import (
4+
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
5+
)
6+
7+
// ArchivePostRequestBody provides operations to call the archive method.
8+
type ArchivePostRequestBody struct {
9+
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
10+
additionalData map[string]interface{}
11+
// The messageIds property
12+
messageIds []string
13+
}
14+
// NewArchivePostRequestBody instantiates a new archivePostRequestBody and sets the default values.
15+
func NewArchivePostRequestBody()(*ArchivePostRequestBody) {
16+
m := &ArchivePostRequestBody{
17+
}
18+
m.SetAdditionalData(make(map[string]interface{}));
19+
return m
20+
}
21+
// CreateArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
22+
func CreateArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
23+
return NewArchivePostRequestBody(), nil
24+
}
25+
// 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.
26+
func (m *ArchivePostRequestBody) GetAdditionalData()(map[string]interface{}) {
27+
if m == nil {
28+
return nil
29+
} else {
30+
return m.additionalData
31+
}
32+
}
33+
// GetFieldDeserializers the deserialization information for the current model
34+
func (m *ArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
35+
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
36+
res["messageIds"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
37+
val, err := n.GetCollectionOfPrimitiveValues("string")
38+
if err != nil {
39+
return err
40+
}
41+
if val != nil {
42+
res := make([]string, len(val))
43+
for i, v := range val {
44+
res[i] = *(v.(*string))
45+
}
46+
m.SetMessageIds(res)
47+
}
48+
return nil
49+
}
50+
return res
51+
}
52+
// GetMessageIds gets the messageIds property value. The messageIds property
53+
func (m *ArchivePostRequestBody) GetMessageIds()([]string) {
54+
if m == nil {
55+
return nil
56+
} else {
57+
return m.messageIds
58+
}
59+
}
60+
// Serialize serializes information the current object
61+
func (m *ArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
62+
if m.GetMessageIds() != nil {
63+
err := writer.WriteCollectionOfStringValues("messageIds", m.GetMessageIds())
64+
if err != nil {
65+
return err
66+
}
67+
}
68+
{
69+
err := writer.WriteAdditionalData(m.GetAdditionalData())
70+
if err != nil {
71+
return err
72+
}
73+
}
74+
return nil
75+
}
76+
// 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.
77+
func (m *ArchivePostRequestBody) SetAdditionalData(value map[string]interface{})() {
78+
if m != nil {
79+
m.additionalData = value
80+
}
81+
}
82+
// SetMessageIds sets the messageIds property value. The messageIds property
83+
func (m *ArchivePostRequestBody) SetMessageIds(value []string)() {
84+
if m != nil {
85+
m.messageIds = value
86+
}
87+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package archive
2+
3+
import (
4+
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
5+
)
6+
7+
// ArchivePostRequestBodyable
8+
type ArchivePostRequestBodyable interface {
9+
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
10+
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
11+
GetMessageIds()([]string)
12+
SetMessageIds(value []string)()
13+
}

0 commit comments

Comments
 (0)