Skip to content

Commit

Permalink
Merge pull request #62 from microsoftgraph/beta/pipelinebuild/70499
Browse files Browse the repository at this point in the history
Generated beta models and request builders using Kiota
  • Loading branch information
baywet authored Mar 15, 2022
2 parents cde99be + 931b5a9 commit 13f11e9
Show file tree
Hide file tree
Showing 311 changed files with 11,184 additions and 283 deletions.
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.15.0] - 2022-03-15

### Changed

- Updated reference to core for new serialization types
- Weekly generation

## [0.14.0] - 2022-03-08

### Changed
Expand Down
6 changes: 3 additions & 3 deletions agreements/item/files/files_request_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type FilesRequestBuilderGetOptions struct {
// Response handler to use in place of the default response handling provided by the core service
ResponseHandler ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.ResponseHandler;
}
// FilesRequestBuilderGetQueryParameters pDFs linked to this agreement. This property is in the process of being deprecated. Use the file property instead.
// FilesRequestBuilderGetQueryParameters pDFs linked to this agreement. This property is in the process of being deprecated. Use the file property instead. Supports $expand.
type FilesRequestBuilderGetQueryParameters struct {
// Include count of items
Count *bool;
Expand Down Expand Up @@ -79,7 +79,7 @@ func NewFilesRequestBuilder(rawUrl string, requestAdapter ida96af0f171bb75f894a4
func (m *FilesRequestBuilder) Count()(*i1655a180c8beddd8870e56ee9d649017c0117499a05a1880367547bb2d7f437f.CountRequestBuilder) {
return i1655a180c8beddd8870e56ee9d649017c0117499a05a1880367547bb2d7f437f.NewCountRequestBuilderInternal(m.pathParameters, m.requestAdapter);
}
// CreateGetRequestInformation pDFs linked to this agreement. This property is in the process of being deprecated. Use the file property instead.
// CreateGetRequestInformation pDFs linked to this agreement. This property is in the process of being deprecated. Use the file property instead. Supports $expand.
func (m *FilesRequestBuilder) CreateGetRequestInformation(options *FilesRequestBuilderGetOptions)(*ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.RequestInformation, error) {
requestInfo := ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.NewRequestInformation()
requestInfo.UrlTemplate = m.urlTemplate
Expand Down Expand Up @@ -117,7 +117,7 @@ func (m *FilesRequestBuilder) CreatePostRequestInformation(options *FilesRequest
}
return requestInfo, nil
}
// Get pDFs linked to this agreement. This property is in the process of being deprecated. Use the file property instead.
// Get pDFs linked to this agreement. This property is in the process of being deprecated. Use the file property instead. Supports $expand.
func (m *FilesRequestBuilder) Get(options *FilesRequestBuilderGetOptions)(i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc.AgreementFileLocalizationCollectionResponseable, error) {
requestInfo, err := m.CreateGetRequestInformation(options);
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type AgreementFileLocalizationItemRequestBuilderGetOptions struct {
// Response handler to use in place of the default response handling provided by the core service
ResponseHandler ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.ResponseHandler;
}
// AgreementFileLocalizationItemRequestBuilderGetQueryParameters pDFs linked to this agreement. This property is in the process of being deprecated. Use the file property instead.
// AgreementFileLocalizationItemRequestBuilderGetQueryParameters pDFs linked to this agreement. This property is in the process of being deprecated. Use the file property instead. Supports $expand.
type AgreementFileLocalizationItemRequestBuilderGetQueryParameters struct {
// Expand related entities
Expand []string;
Expand Down Expand Up @@ -91,7 +91,7 @@ func (m *AgreementFileLocalizationItemRequestBuilder) CreateDeleteRequestInforma
}
return requestInfo, nil
}
// CreateGetRequestInformation pDFs linked to this agreement. This property is in the process of being deprecated. Use the file property instead.
// CreateGetRequestInformation pDFs linked to this agreement. This property is in the process of being deprecated. Use the file property instead. Supports $expand.
func (m *AgreementFileLocalizationItemRequestBuilder) CreateGetRequestInformation(options *AgreementFileLocalizationItemRequestBuilderGetOptions)(*ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.RequestInformation, error) {
requestInfo := ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.NewRequestInformation()
requestInfo.UrlTemplate = m.urlTemplate
Expand Down Expand Up @@ -145,7 +145,7 @@ func (m *AgreementFileLocalizationItemRequestBuilder) Delete(options *AgreementF
}
return nil
}
// Get pDFs linked to this agreement. This property is in the process of being deprecated. Use the file property instead.
// Get pDFs linked to this agreement. This property is in the process of being deprecated. Use the file property instead. Supports $expand.
func (m *AgreementFileLocalizationItemRequestBuilder) Get(options *AgreementFileLocalizationItemRequestBuilderGetOptions)(i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc.AgreementFileLocalizationable, error) {
requestInfo, err := m.CreateGetRequestInformation(options);
if err != nil {
Expand Down
16 changes: 16 additions & 0 deletions app/calls/item/call_item_request_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package item
import (
ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9 "github.com/microsoft/kiota/abstractions/go"
i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc "github.com/microsoftgraph/msgraph-beta-sdk-go/models/microsoft/graph"
i032e80f26f63621eac368a0e78e5d567ee153d1bcbbb457d6b581d74b6b0dc6a "github.com/microsoftgraph/msgraph-beta-sdk-go/app/calls/item/contentsharingsessions"
i0918551da47a228d24ebdfaf6df77c471471893c9c40b23a04e4c7649b85b45d "github.com/microsoftgraph/msgraph-beta-sdk-go/app/calls/item/reject"
i1b9466d0caef82626f32a61ccf84f8b293d289edb108038c604aef2d18197865 "github.com/microsoftgraph/msgraph-beta-sdk-go/app/calls/item/audioroutinggroups"
i1c38d0d034bef05f35da04b0f4b5dcfbc13afbe00ddb552eb78087b9de98ecee "github.com/microsoftgraph/msgraph-beta-sdk-go/app/calls/item/unmute"
Expand All @@ -21,6 +22,7 @@ import (
icbe1c65482be5ba77560b0854bb72eb2fce823cdda74fb44a06b72364da1f6a2 "github.com/microsoftgraph/msgraph-beta-sdk-go/app/calls/item/changescreensharingrole"
iea07e291a46b990a979a038612645323fe7180f50eb887d4daf5d74572112a37 "github.com/microsoftgraph/msgraph-beta-sdk-go/app/calls/item/answer"
if587e80b75e5d8ffe7d9fddabdc3d886c5ce62ad5059d5c8a6464a4bcfa59b5e "github.com/microsoftgraph/msgraph-beta-sdk-go/app/calls/item/transfer"
i0e77db2894bae546ce3028844c9be92c1f453524b9969cb6a1c5fbc30a81428b "github.com/microsoftgraph/msgraph-beta-sdk-go/app/calls/item/contentsharingsessions/item"
i39deddda18f57c5a3a9987261e9e10fe2b86924c965453300c89efb467115e2a "github.com/microsoftgraph/msgraph-beta-sdk-go/app/calls/item/operations/item"
i76c60465809f227922ef886abb4be5e5ba936f1aee25121d8be66ca149691e37 "github.com/microsoftgraph/msgraph-beta-sdk-go/app/calls/item/audioroutinggroups/item"
idfae2eb2f859c83384878a7565f78eb2c09250cf7b3892104836a28c6368c37a "github.com/microsoftgraph/msgraph-beta-sdk-go/app/calls/item/participants/item"
Expand Down Expand Up @@ -115,6 +117,20 @@ func NewCallItemRequestBuilder(rawUrl string, requestAdapter ida96af0f171bb75f89
urlParams["request-raw-url"] = rawUrl
return NewCallItemRequestBuilderInternal(urlParams, requestAdapter)
}
func (m *CallItemRequestBuilder) ContentSharingSessions()(*i032e80f26f63621eac368a0e78e5d567ee153d1bcbbb457d6b581d74b6b0dc6a.ContentSharingSessionsRequestBuilder) {
return i032e80f26f63621eac368a0e78e5d567ee153d1bcbbb457d6b581d74b6b0dc6a.NewContentSharingSessionsRequestBuilderInternal(m.pathParameters, m.requestAdapter);
}
// ContentSharingSessionsById gets an item from the github.com/microsoftgraph/msgraph-beta-sdk-go/.app.calls.item.contentSharingSessions.item collection
func (m *CallItemRequestBuilder) ContentSharingSessionsById(id string)(*i0e77db2894bae546ce3028844c9be92c1f453524b9969cb6a1c5fbc30a81428b.ContentSharingSessionItemRequestBuilder) {
urlTplParams := make(map[string]string)
for idx, item := range m.pathParameters {
urlTplParams[idx] = item
}
if id != "" {
urlTplParams["contentSharingSession_id"] = id
}
return i0e77db2894bae546ce3028844c9be92c1f453524b9969cb6a1c5fbc30a81428b.NewContentSharingSessionItemRequestBuilderInternal(urlTplParams, m.requestAdapter);
}
// CreateDeleteRequestInformation delete navigation property calls for app
func (m *CallItemRequestBuilder) CreateDeleteRequestInformation(options *CallItemRequestBuilderDeleteOptions)(*ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.RequestInformation, error) {
requestInfo := ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.NewRequestInformation()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
package contentsharingsessions

import (
ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9 "github.com/microsoft/kiota/abstractions/go"
i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc "github.com/microsoftgraph/msgraph-beta-sdk-go/models/microsoft/graph"
i428a28d14ab585560ab266716b214a45f45f18468b52fdb0f932c81a7f9706e4 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/microsoft/graph/odataerrors"
i68341c8bce89cd129fe768442df3396b0d82f6a0aed9f38f83498fec363f4003 "github.com/microsoftgraph/msgraph-beta-sdk-go/app/calls/item/contentsharingsessions/count"
)

// ContentSharingSessionsRequestBuilder provides operations to manage the contentSharingSessions property of the microsoft.graph.call entity.
type ContentSharingSessionsRequestBuilder 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;
}
// ContentSharingSessionsRequestBuilderGetOptions options for Get
type ContentSharingSessionsRequestBuilderGetOptions struct {
// Request headers
H map[string]string;
// Request options
O []ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.RequestOption;
// Request query parameters
Q *ContentSharingSessionsRequestBuilderGetQueryParameters;
// Response handler to use in place of the default response handling provided by the core service
ResponseHandler ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.ResponseHandler;
}
// ContentSharingSessionsRequestBuilderGetQueryParameters get contentSharingSessions from app
type ContentSharingSessionsRequestBuilderGetQueryParameters 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;
}
// ContentSharingSessionsRequestBuilderPostOptions options for Post
type ContentSharingSessionsRequestBuilderPostOptions struct {
//
Body i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc.ContentSharingSessionable;
// 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;
}
// NewContentSharingSessionsRequestBuilderInternal instantiates a new ContentSharingSessionsRequestBuilder and sets the default values.
func NewContentSharingSessionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.RequestAdapter)(*ContentSharingSessionsRequestBuilder) {
m := &ContentSharingSessionsRequestBuilder{
}
m.urlTemplate = "{+baseurl}/app/calls/{call_id}/contentSharingSessions{?top,skip,search,filter,count,orderby,select,expand}";
urlTplParams := make(map[string]string)
for idx, item := range pathParameters {
urlTplParams[idx] = item
}
m.pathParameters = urlTplParams;
m.requestAdapter = requestAdapter;
return m
}
// NewContentSharingSessionsRequestBuilder instantiates a new ContentSharingSessionsRequestBuilder and sets the default values.
func NewContentSharingSessionsRequestBuilder(rawUrl string, requestAdapter ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.RequestAdapter)(*ContentSharingSessionsRequestBuilder) {
urlParams := make(map[string]string)
urlParams["request-raw-url"] = rawUrl
return NewContentSharingSessionsRequestBuilderInternal(urlParams, requestAdapter)
}
func (m *ContentSharingSessionsRequestBuilder) Count()(*i68341c8bce89cd129fe768442df3396b0d82f6a0aed9f38f83498fec363f4003.CountRequestBuilder) {
return i68341c8bce89cd129fe768442df3396b0d82f6a0aed9f38f83498fec363f4003.NewCountRequestBuilderInternal(m.pathParameters, m.requestAdapter);
}
// CreateGetRequestInformation get contentSharingSessions from app
func (m *ContentSharingSessionsRequestBuilder) CreateGetRequestInformation(options *ContentSharingSessionsRequestBuilderGetOptions)(*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 create new navigation property to contentSharingSessions for app
func (m *ContentSharingSessionsRequestBuilder) CreatePostRequestInformation(options *ContentSharingSessionsRequestBuilderPostOptions)(*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 get contentSharingSessions from app
func (m *ContentSharingSessionsRequestBuilder) Get(options *ContentSharingSessionsRequestBuilderGetOptions)(i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc.ContentSharingSessionCollectionResponseable, error) {
requestInfo, err := m.CreateGetRequestInformation(options);
if err != nil {
return nil, err
}
errorMapping := ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.ErrorMappings {
"4XX": i428a28d14ab585560ab266716b214a45f45f18468b52fdb0f932c81a7f9706e4.CreateODataErrorFromDiscriminatorValue,
"5XX": i428a28d14ab585560ab266716b214a45f45f18468b52fdb0f932c81a7f9706e4.CreateODataErrorFromDiscriminatorValue,
}
res, err := m.requestAdapter.SendAsync(requestInfo, i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc.CreateContentSharingSessionCollectionResponseFromDiscriminatorValue, nil, errorMapping)
if err != nil {
return nil, err
}
return res.(i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc.ContentSharingSessionCollectionResponseable), nil
}
// Post create new navigation property to contentSharingSessions for app
func (m *ContentSharingSessionsRequestBuilder) Post(options *ContentSharingSessionsRequestBuilderPostOptions)(i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc.ContentSharingSessionable, error) {
requestInfo, err := m.CreatePostRequestInformation(options);
if err != nil {
return nil, err
}
errorMapping := ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9.ErrorMappings {
"4XX": i428a28d14ab585560ab266716b214a45f45f18468b52fdb0f932c81a7f9706e4.CreateODataErrorFromDiscriminatorValue,
"5XX": i428a28d14ab585560ab266716b214a45f45f18468b52fdb0f932c81a7f9706e4.CreateODataErrorFromDiscriminatorValue,
}
res, err := m.requestAdapter.SendAsync(requestInfo, i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc.CreateContentSharingSessionFromDiscriminatorValue, nil, errorMapping)
if err != nil {
return nil, err
}
return res.(i535684e11b5500196ecb4b5c6634e0651fe2c2f78b6cd0fbe097d3c9029ae7bc.ContentSharingSessionable), nil
}
Loading

0 comments on commit 13f11e9

Please sign in to comment.