Skip to content

Commit

Permalink
Merge pull request #199 from microsoftgraph/v1.0/pipelinebuild/77306
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 Jun 20, 2022
2 parents 8852ed2 + 29127b0 commit cbe3cbb
Show file tree
Hide file tree
Showing 4,949 changed files with 110,374 additions and 124,387 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

## [0.27.0] - 2022-06-20

### Changed

- Weekly generation
- Added missing error mappings for OData actions/functions.

## [0.26.0] - 2022-06-08

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package incidentreport

import (
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors"
)

// IncidentReportRequestBuilder provides operations to call the incidentReport method.
Expand Down Expand Up @@ -65,7 +66,11 @@ func (m *IncidentReportRequestBuilder) GetWithRequestConfigurationAndResponseHan
if err != nil {
return nil, err
}
res, err := m.requestAdapter.SendPrimitiveAsync(requestInfo, "byte", responseHandler, nil)
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
"4XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
"5XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
}
res, err := m.requestAdapter.SendPrimitiveAsync(requestInfo, "byte", responseHandler, errorMapping)
if err != nil {
return nil, err
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package incidentreport

import (
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors"
)

// IncidentReportRequestBuilder provides operations to call the incidentReport method.
Expand Down Expand Up @@ -65,7 +66,11 @@ func (m *IncidentReportRequestBuilder) GetWithRequestConfigurationAndResponseHan
if err != nil {
return nil, err
}
res, err := m.requestAdapter.SendPrimitiveAsync(requestInfo, "byte", responseHandler, nil)
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
"4XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
"5XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
}
res, err := m.requestAdapter.SendPrimitiveAsync(requestInfo, "byte", responseHandler, errorMapping)
if err != nil {
return nil, err
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package archive

import (
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors"
)

// ArchiveRequestBuilder provides operations to call the archive method.
Expand Down Expand Up @@ -67,7 +68,11 @@ func (m *ArchiveRequestBuilder) PostWithRequestConfigurationAndResponseHandler(b
if err != nil {
return nil, err
}
res, err := m.requestAdapter.SendAsync(requestInfo, CreateArchiveResponseFromDiscriminatorValue, responseHandler, nil)
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
"4XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
"5XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
}
res, err := m.requestAdapter.SendAsync(requestInfo, CreateArchiveResponseFromDiscriminatorValue, responseHandler, errorMapping)
if err != nil {
return nil, err
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package favorite

import (
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors"
)

// FavoriteRequestBuilder provides operations to call the favorite method.
Expand Down Expand Up @@ -67,7 +68,11 @@ func (m *FavoriteRequestBuilder) PostWithRequestConfigurationAndResponseHandler(
if err != nil {
return nil, err
}
res, err := m.requestAdapter.SendAsync(requestInfo, CreateFavoriteResponseFromDiscriminatorValue, responseHandler, nil)
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
"4XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
"5XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
}
res, err := m.requestAdapter.SendAsync(requestInfo, CreateFavoriteResponseFromDiscriminatorValue, responseHandler, errorMapping)
if err != nil {
return nil, err
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package markread

import (
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors"
)

// MarkReadRequestBuilder provides operations to call the markRead method.
Expand Down Expand Up @@ -67,7 +68,11 @@ func (m *MarkReadRequestBuilder) PostWithRequestConfigurationAndResponseHandler(
if err != nil {
return nil, err
}
res, err := m.requestAdapter.SendAsync(requestInfo, CreateMarkReadResponseFromDiscriminatorValue, responseHandler, nil)
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
"4XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
"5XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
}
res, err := m.requestAdapter.SendAsync(requestInfo, CreateMarkReadResponseFromDiscriminatorValue, responseHandler, errorMapping)
if err != nil {
return nil, err
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package markunread

import (
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors"
)

// MarkUnreadRequestBuilder provides operations to call the markUnread method.
Expand Down Expand Up @@ -67,7 +68,11 @@ func (m *MarkUnreadRequestBuilder) PostWithRequestConfigurationAndResponseHandle
if err != nil {
return nil, err
}
res, err := m.requestAdapter.SendAsync(requestInfo, CreateMarkUnreadResponseFromDiscriminatorValue, responseHandler, nil)
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
"4XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
"5XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
}
res, err := m.requestAdapter.SendAsync(requestInfo, CreateMarkUnreadResponseFromDiscriminatorValue, responseHandler, errorMapping)
if err != nil {
return nil, err
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package unarchive

import (
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors"
)

// UnarchiveRequestBuilder provides operations to call the unarchive method.
Expand Down Expand Up @@ -67,7 +68,11 @@ func (m *UnarchiveRequestBuilder) PostWithRequestConfigurationAndResponseHandler
if err != nil {
return nil, err
}
res, err := m.requestAdapter.SendAsync(requestInfo, CreateUnarchiveResponseFromDiscriminatorValue, responseHandler, nil)
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
"4XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
"5XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
}
res, err := m.requestAdapter.SendAsync(requestInfo, CreateUnarchiveResponseFromDiscriminatorValue, responseHandler, errorMapping)
if err != nil {
return nil, err
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package unfavorite

import (
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors"
)

// UnfavoriteRequestBuilder provides operations to call the unfavorite method.
Expand Down Expand Up @@ -67,7 +68,11 @@ func (m *UnfavoriteRequestBuilder) PostWithRequestConfigurationAndResponseHandle
if err != nil {
return nil, err
}
res, err := m.requestAdapter.SendAsync(requestInfo, CreateUnfavoriteResponseFromDiscriminatorValue, responseHandler, nil)
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
"4XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
"5XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
}
res, err := m.requestAdapter.SendAsync(requestInfo, CreateUnfavoriteResponseFromDiscriminatorValue, responseHandler, errorMapping)
if err != nil {
return nil, err
}
Expand Down
7 changes: 6 additions & 1 deletion applications/delta/delta_request_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package delta

import (
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors"
)

// DeltaRequestBuilder provides operations to call the delta method.
Expand Down Expand Up @@ -66,7 +67,11 @@ func (m *DeltaRequestBuilder) GetWithRequestConfigurationAndResponseHandler(requ
if err != nil {
return nil, err
}
res, err := m.requestAdapter.SendAsync(requestInfo, CreateDeltaResponseFromDiscriminatorValue, responseHandler, nil)
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
"4XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
"5XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
}
res, err := m.requestAdapter.SendAsync(requestInfo, CreateDeltaResponseFromDiscriminatorValue, responseHandler, errorMapping)
if err != nil {
return nil, err
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package getavailableextensionproperties

import (
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors"
)

// GetAvailableExtensionPropertiesRequestBuilder provides operations to call the getAvailableExtensionProperties method.
Expand Down Expand Up @@ -67,7 +68,11 @@ func (m *GetAvailableExtensionPropertiesRequestBuilder) PostWithRequestConfigura
if err != nil {
return nil, err
}
res, err := m.requestAdapter.SendAsync(requestInfo, CreateGetAvailableExtensionPropertiesResponseFromDiscriminatorValue, responseHandler, nil)
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
"4XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
"5XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
}
res, err := m.requestAdapter.SendAsync(requestInfo, CreateGetAvailableExtensionPropertiesResponseFromDiscriminatorValue, responseHandler, errorMapping)
if err != nil {
return nil, err
}
Expand Down
7 changes: 6 additions & 1 deletion applications/getbyids/get_by_ids_request_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package getbyids

import (
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors"
)

// GetByIdsRequestBuilder provides operations to call the getByIds method.
Expand Down Expand Up @@ -67,7 +68,11 @@ func (m *GetByIdsRequestBuilder) PostWithRequestConfigurationAndResponseHandler(
if err != nil {
return nil, err
}
res, err := m.requestAdapter.SendAsync(requestInfo, CreateGetByIdsResponseFromDiscriminatorValue, responseHandler, nil)
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
"4XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
"5XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
}
res, err := m.requestAdapter.SendAsync(requestInfo, CreateGetByIdsResponseFromDiscriminatorValue, responseHandler, errorMapping)
if err != nil {
return nil, err
}
Expand Down
7 changes: 6 additions & 1 deletion applications/item/addkey/add_key_request_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package addkey
import (
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models"
ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors"
)

// AddKeyRequestBuilder provides operations to call the addKey method.
Expand Down Expand Up @@ -68,7 +69,11 @@ func (m *AddKeyRequestBuilder) PostWithRequestConfigurationAndResponseHandler(bo
if err != nil {
return nil, err
}
res, err := m.requestAdapter.SendAsync(requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateKeyCredentialFromDiscriminatorValue, responseHandler, nil)
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
"4XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
"5XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
}
res, err := m.requestAdapter.SendAsync(requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateKeyCredentialFromDiscriminatorValue, responseHandler, errorMapping)
if err != nil {
return nil, err
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package addpassword
import (
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models"
ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors"
)

// AddPasswordRequestBuilder provides operations to call the addPassword method.
Expand Down Expand Up @@ -68,7 +69,11 @@ func (m *AddPasswordRequestBuilder) PostWithRequestConfigurationAndResponseHandl
if err != nil {
return nil, err
}
res, err := m.requestAdapter.SendAsync(requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreatePasswordCredentialFromDiscriminatorValue, responseHandler, nil)
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
"4XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
"5XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
}
res, err := m.requestAdapter.SendAsync(requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreatePasswordCredentialFromDiscriminatorValue, responseHandler, errorMapping)
if err != nil {
return nil, err
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package checkmembergroups

import (
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors"
)

// CheckMemberGroupsRequestBuilder provides operations to call the checkMemberGroups method.
Expand Down Expand Up @@ -67,7 +68,11 @@ func (m *CheckMemberGroupsRequestBuilder) PostWithRequestConfigurationAndRespons
if err != nil {
return nil, err
}
res, err := m.requestAdapter.SendAsync(requestInfo, CreateCheckMemberGroupsResponseFromDiscriminatorValue, responseHandler, nil)
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
"4XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
"5XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
}
res, err := m.requestAdapter.SendAsync(requestInfo, CreateCheckMemberGroupsResponseFromDiscriminatorValue, responseHandler, errorMapping)
if err != nil {
return nil, err
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package checkmemberobjects

import (
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors"
)

// CheckMemberObjectsRequestBuilder provides operations to call the checkMemberObjects method.
Expand Down Expand Up @@ -67,7 +68,11 @@ func (m *CheckMemberObjectsRequestBuilder) PostWithRequestConfigurationAndRespon
if err != nil {
return nil, err
}
res, err := m.requestAdapter.SendAsync(requestInfo, CreateCheckMemberObjectsResponseFromDiscriminatorValue, responseHandler, nil)
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
"4XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
"5XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
}
res, err := m.requestAdapter.SendAsync(requestInfo, CreateCheckMemberObjectsResponseFromDiscriminatorValue, responseHandler, errorMapping)
if err != nil {
return nil, err
}
Expand Down
Loading

0 comments on commit cbe3cbb

Please sign in to comment.