Skip to content

Commit 32e9551

Browse files
authored
Merge pull request #211 from microsoftgraph/v1.0/pipelinebuild/79938
Generated v1.0 models and request builders using Kiota
2 parents eb2d097 + 0caf974 commit 32e9551

File tree

1,654 files changed

+48030
-4339
lines changed

Some content is hidden

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

1,654 files changed

+48030
-4339
lines changed

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.29.0] - 2022-06-12
15+
16+
### Changed
17+
18+
- Weekly generation
19+
1420
## [0.28.0] - 2022-06-21
1521

1622
### Changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func (m *IncidentReportRequestBuilder) GetWithRequestConfigurationAndResponseHan
7070
"4XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
7171
"5XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
7272
}
73-
res, err := m.requestAdapter.SendPrimitiveAsync(requestInfo, "byte", responseHandler, errorMapping)
73+
res, err := m.requestAdapter.SendPrimitiveAsync(requestInfo, "[]byte", responseHandler, errorMapping)
7474
if err != nil {
7575
return nil, err
7676
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func (m *IncidentReportRequestBuilder) GetWithRequestConfigurationAndResponseHan
7070
"4XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
7171
"5XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
7272
}
73-
res, err := m.requestAdapter.SendPrimitiveAsync(requestInfo, "byte", responseHandler, errorMapping)
73+
res, err := m.requestAdapter.SendPrimitiveAsync(requestInfo, "[]byte", responseHandler, errorMapping)
7474
if err != nil {
7575
return nil, err
7676
}

admin/serviceannouncement/messages/item/attachments/item/content/content_request_builder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func (m *ContentRequestBuilder) GetWithRequestConfigurationAndResponseHandler(re
9494
"4XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
9595
"5XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
9696
}
97-
res, err := m.requestAdapter.SendPrimitiveAsync(requestInfo, "byte", responseHandler, errorMapping)
97+
res, err := m.requestAdapter.SendPrimitiveAsync(requestInfo, "[]byte", responseHandler, errorMapping)
9898
if err != nil {
9999
return nil, err
100100
}

admin/serviceannouncement/messages/item/attachmentsarchive/attachments_archive_request_builder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func (m *AttachmentsArchiveRequestBuilder) GetWithRequestConfigurationAndRespons
9494
"4XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
9595
"5XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
9696
}
97-
res, err := m.requestAdapter.SendPrimitiveAsync(requestInfo, "byte", responseHandler, errorMapping)
97+
res, err := m.requestAdapter.SendPrimitiveAsync(requestInfo, "[]byte", responseHandler, errorMapping)
9898
if err != nil {
9999
return nil, err
100100
}

applications/item/application_item_request_builder.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
55
iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models"
66
ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors"
7+
i02dc3442cb07e14dd6564850055582daa12c5271c29402a2eacef3296ce0336a "github.com/microsoftgraph/msgraph-sdk-go/applications/item/federatedidentitycredentials"
78
i0b84a273ded1e6669385f95709d9a7cf84a87df5fd73dc8c7af3710571de2128 "github.com/microsoftgraph/msgraph-sdk-go/applications/item/unsetverifiedpublisher"
89
i1a8360833e23698ad94af084d2df35cce4a1972916936379ed6648bfa6ba57ec "github.com/microsoftgraph/msgraph-sdk-go/applications/item/logo"
910
i1afcec2f462ce9653f6d9c178d0d0542f5684412e62323ab5a3f979e1b79b5b8 "github.com/microsoftgraph/msgraph-sdk-go/applications/item/tokenissuancepolicies"
@@ -22,6 +23,7 @@ import (
2223
ib5b5951df8af6837ed6ea3344f5688d5f2483d29ea1c165d2d219ec5edf941da "github.com/microsoftgraph/msgraph-sdk-go/applications/item/restore"
2324
id3ff5385c48c1f8ddd4e5f53452e89d8e30d638f1b87dc3265bf1f8adb5d3078 "github.com/microsoftgraph/msgraph-sdk-go/applications/item/addpassword"
2425
ida306ab63547733b6e18148e7f72a169be3442196d415312a52cbd9978ab6961 "github.com/microsoftgraph/msgraph-sdk-go/applications/item/extensionproperties"
26+
i07ab470de2cf9d615c15406822a9ab9154633fa9ed5641ce1d97bbfbb1863560 "github.com/microsoftgraph/msgraph-sdk-go/applications/item/federatedidentitycredentials/item"
2527
i2af67e5b951d866dcb390e8cdd53a703b8d1613ab54b5b0b111652d63e7426e3 "github.com/microsoftgraph/msgraph-sdk-go/applications/item/homerealmdiscoverypolicies/item"
2628
i97c12a9c6c5e3dabf4cee7a203250908050ed917a949921ccf7e4f24cf095d25 "github.com/microsoftgraph/msgraph-sdk-go/applications/item/tokenlifetimepolicies/item"
2729
id5f0be733c94801a6e075b5b4e84614f608f9c7a8ece0f49a59084244eff9f56 "github.com/microsoftgraph/msgraph-sdk-go/applications/item/owners/item"
@@ -195,6 +197,21 @@ func (m *ApplicationItemRequestBuilder) ExtensionPropertiesById(id string)(*ie9d
195197
}
196198
return ie9db136445b8a8e3d0b048cc9910b564635f65b63edab67c97c083c411010b77.NewExtensionPropertyItemRequestBuilderInternal(urlTplParams, m.requestAdapter);
197199
}
200+
// FederatedIdentityCredentials the federatedIdentityCredentials property
201+
func (m *ApplicationItemRequestBuilder) FederatedIdentityCredentials()(*i02dc3442cb07e14dd6564850055582daa12c5271c29402a2eacef3296ce0336a.FederatedIdentityCredentialsRequestBuilder) {
202+
return i02dc3442cb07e14dd6564850055582daa12c5271c29402a2eacef3296ce0336a.NewFederatedIdentityCredentialsRequestBuilderInternal(m.pathParameters, m.requestAdapter);
203+
}
204+
// FederatedIdentityCredentialsById gets an item from the github.com/microsoftgraph/msgraph-sdk-go/.applications.item.federatedIdentityCredentials.item collection
205+
func (m *ApplicationItemRequestBuilder) FederatedIdentityCredentialsById(id string)(*i07ab470de2cf9d615c15406822a9ab9154633fa9ed5641ce1d97bbfbb1863560.FederatedIdentityCredentialItemRequestBuilder) {
206+
urlTplParams := make(map[string]string)
207+
for idx, item := range m.pathParameters {
208+
urlTplParams[idx] = item
209+
}
210+
if id != "" {
211+
urlTplParams["federatedIdentityCredential%2Did"] = id
212+
}
213+
return i07ab470de2cf9d615c15406822a9ab9154633fa9ed5641ce1d97bbfbb1863560.NewFederatedIdentityCredentialItemRequestBuilderInternal(urlTplParams, m.requestAdapter);
214+
}
198215
// Get get the properties and relationships of an application object.
199216
func (m *ApplicationItemRequestBuilder) Get()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Applicationable, error) {
200217
return m.GetWithRequestConfigurationAndResponseHandler(nil, nil);
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
package count
2+
3+
import (
4+
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
5+
ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors"
6+
)
7+
8+
// CountRequestBuilder provides operations to count the resources in the collection.
9+
type CountRequestBuilder struct {
10+
// Path parameters for the request
11+
pathParameters map[string]string
12+
// The request adapter to use to execute the requests.
13+
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
14+
// Url template to use to build the URL for the current request builder
15+
urlTemplate string
16+
}
17+
// CountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
18+
type CountRequestBuilderGetRequestConfiguration struct {
19+
// Request headers
20+
Headers map[string]string
21+
// Request options
22+
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
23+
}
24+
// NewCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values.
25+
func NewCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CountRequestBuilder) {
26+
m := &CountRequestBuilder{
27+
}
28+
m.urlTemplate = "{+baseurl}/applications/{application%2Did}/federatedIdentityCredentials/$count";
29+
urlTplParams := make(map[string]string)
30+
for idx, item := range pathParameters {
31+
urlTplParams[idx] = item
32+
}
33+
m.pathParameters = urlTplParams;
34+
m.requestAdapter = requestAdapter;
35+
return m
36+
}
37+
// NewCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values.
38+
func NewCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CountRequestBuilder) {
39+
urlParams := make(map[string]string)
40+
urlParams["request-raw-url"] = rawUrl
41+
return NewCountRequestBuilderInternal(urlParams, requestAdapter)
42+
}
43+
// CreateGetRequestInformation get the number of the resource
44+
func (m *CountRequestBuilder) CreateGetRequestInformation()(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
45+
return m.CreateGetRequestInformationWithRequestConfiguration(nil);
46+
}
47+
// CreateGetRequestInformationWithRequestConfiguration get the number of the resource
48+
func (m *CountRequestBuilder) CreateGetRequestInformationWithRequestConfiguration(requestConfiguration *CountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
49+
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
50+
requestInfo.UrlTemplate = m.urlTemplate
51+
requestInfo.PathParameters = m.pathParameters
52+
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
53+
requestInfo.Headers["Accept"] = "text/plain"
54+
if requestConfiguration != nil {
55+
requestInfo.AddRequestHeaders(requestConfiguration.Headers)
56+
requestInfo.AddRequestOptions(requestConfiguration.Options)
57+
}
58+
return requestInfo, nil
59+
}
60+
// Get get the number of the resource
61+
func (m *CountRequestBuilder) Get()(*int32, error) {
62+
return m.GetWithRequestConfigurationAndResponseHandler(nil, nil);
63+
}
64+
// GetWithRequestConfigurationAndResponseHandler get the number of the resource
65+
func (m *CountRequestBuilder) GetWithRequestConfigurationAndResponseHandler(requestConfiguration *CountRequestBuilderGetRequestConfiguration, responseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler)(*int32, error) {
66+
requestInfo, err := m.CreateGetRequestInformationWithRequestConfiguration(requestConfiguration);
67+
if err != nil {
68+
return nil, err
69+
}
70+
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
71+
"4XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
72+
"5XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue,
73+
}
74+
res, err := m.requestAdapter.SendPrimitiveAsync(requestInfo, "int32", responseHandler, errorMapping)
75+
if err != nil {
76+
return nil, err
77+
}
78+
return res.(*int32), nil
79+
}

0 commit comments

Comments
 (0)