Skip to content

Commit 8e3a060

Browse files
authored
Merge pull request #85 from microsoftgraph/v1.0/pipelinebuild/68218
Generated v1.0 models and request builders using Kiota
2 parents f5f8405 + b07c398 commit 8e3a060

11 files changed

+121
-31
lines changed

CHANGELOG.md

+6
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.11.0] - 2022-02-23
15+
16+
### Changed
17+
18+
- Weekly generation
19+
1420
## [0.10.0] - 2022-02-16
1521

1622
### Changed

graph_request_adapter.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
var clientOptions = core.GraphClientOptions{
1212
GraphServiceVersion: "", //v1 doesn't include the service version in the telemetry header
13-
GraphServiceLibraryVersion: "0.10.0",
13+
GraphServiceLibraryVersion: "0.11.0",
1414
}
1515

1616
// GetDefaultClientOptions returns the default client options used by the GraphRequestAdapterBase and the middleware.
@@ -83,3 +83,4 @@ func NewGraphRequestAdapterWithParseNodeFactoryAndSerializationWriterFactoryAndH
8383

8484

8585

86+

models/microsoft/graph/alteration_response.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ type AlterationResponse struct {
1010
additionalData map[string]interface{};
1111
// Defines the original user query string.
1212
originalQueryString *string;
13-
// Defines the details of alteration information for the spelling correction.
13+
// Defines the details of the alteration information for the spelling correction.
1414
queryAlteration *SearchAlteration;
15-
// Defines the type of the spelling correction. Possible values are suggestion, modification.
15+
// Defines the type of the spelling correction. Possible values are: suggestion, modification.
1616
queryAlterationType *SearchAlterationType;
1717
}
1818
// NewAlterationResponse instantiates a new alterationResponse and sets the default values.
@@ -38,15 +38,15 @@ func (m *AlterationResponse) GetOriginalQueryString()(*string) {
3838
return m.originalQueryString
3939
}
4040
}
41-
// GetQueryAlteration gets the queryAlteration property value. Defines the details of alteration information for the spelling correction.
41+
// GetQueryAlteration gets the queryAlteration property value. Defines the details of the alteration information for the spelling correction.
4242
func (m *AlterationResponse) GetQueryAlteration()(*SearchAlteration) {
4343
if m == nil {
4444
return nil
4545
} else {
4646
return m.queryAlteration
4747
}
4848
}
49-
// GetQueryAlterationType gets the queryAlterationType property value. Defines the type of the spelling correction. Possible values are suggestion, modification.
49+
// GetQueryAlterationType gets the queryAlterationType property value. Defines the type of the spelling correction. Possible values are: suggestion, modification.
5050
func (m *AlterationResponse) GetQueryAlterationType()(*SearchAlterationType) {
5151
if m == nil {
5252
return nil
@@ -133,13 +133,13 @@ func (m *AlterationResponse) SetOriginalQueryString(value *string)() {
133133
m.originalQueryString = value
134134
}
135135
}
136-
// SetQueryAlteration sets the queryAlteration property value. Defines the details of alteration information for the spelling correction.
136+
// SetQueryAlteration sets the queryAlteration property value. Defines the details of the alteration information for the spelling correction.
137137
func (m *AlterationResponse) SetQueryAlteration(value *SearchAlteration)() {
138138
if m != nil {
139139
m.queryAlteration = value
140140
}
141141
}
142-
// SetQueryAlterationType sets the queryAlterationType property value. Defines the type of the spelling correction. Possible values are suggestion, modification.
142+
// SetQueryAlterationType sets the queryAlterationType property value. Defines the type of the spelling correction. Possible values are: suggestion, modification.
143143
func (m *AlterationResponse) SetQueryAlterationType(value *SearchAlterationType)() {
144144
if m != nil {
145145
m.queryAlterationType = value

models/microsoft/graph/mailbox_settings.go

+33
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ type MailboxSettings struct {
2222
timeFormat *string;
2323
// The default time zone for the user's mailbox.
2424
timeZone *string;
25+
// The purpose of the mailbox. Used to differentiate a mailbox for a single user from a shared mailbox and equipment mailbox in Exchange Online. Read only.
26+
userPurpose *UserPurpose;
2527
// The days of the week and hours in a specific time zone that the user works.
2628
workingHours *WorkingHours;
2729
}
@@ -96,6 +98,14 @@ func (m *MailboxSettings) GetTimeZone()(*string) {
9698
return m.timeZone
9799
}
98100
}
101+
// GetUserPurpose gets the userPurpose property value. The purpose of the mailbox. Used to differentiate a mailbox for a single user from a shared mailbox and equipment mailbox in Exchange Online. Read only.
102+
func (m *MailboxSettings) GetUserPurpose()(*UserPurpose) {
103+
if m == nil {
104+
return nil
105+
} else {
106+
return m.userPurpose
107+
}
108+
}
99109
// GetWorkingHours gets the workingHours property value. The days of the week and hours in a specific time zone that the user works.
100110
func (m *MailboxSettings) GetWorkingHours()(*WorkingHours) {
101111
if m == nil {
@@ -177,6 +187,16 @@ func (m *MailboxSettings) GetFieldDeserializers()(map[string]func(interface{}, i
177187
}
178188
return nil
179189
}
190+
res["userPurpose"] = func (o interface{}, n i04eb5309aeaafadd28374d79c8471df9b267510b4dc2e3144c378c50f6fd7b55.ParseNode) error {
191+
val, err := n.GetEnumValue(ParseUserPurpose)
192+
if err != nil {
193+
return err
194+
}
195+
if val != nil {
196+
m.SetUserPurpose(val.(*UserPurpose))
197+
}
198+
return nil
199+
}
180200
res["workingHours"] = func (o interface{}, n i04eb5309aeaafadd28374d79c8471df9b267510b4dc2e3144c378c50f6fd7b55.ParseNode) error {
181201
val, err := n.GetObjectValue(func () i04eb5309aeaafadd28374d79c8471df9b267510b4dc2e3144c378c50f6fd7b55.Parsable { return NewWorkingHours() })
182202
if err != nil {
@@ -237,6 +257,13 @@ func (m *MailboxSettings) Serialize(writer i04eb5309aeaafadd28374d79c8471df9b267
237257
return err
238258
}
239259
}
260+
if m.GetUserPurpose() != nil {
261+
cast := (*m.GetUserPurpose()).String()
262+
err := writer.WriteStringValue("userPurpose", &cast)
263+
if err != nil {
264+
return err
265+
}
266+
}
240267
{
241268
err := writer.WriteObjectValue("workingHours", m.GetWorkingHours())
242269
if err != nil {
@@ -299,6 +326,12 @@ func (m *MailboxSettings) SetTimeZone(value *string)() {
299326
m.timeZone = value
300327
}
301328
}
329+
// SetUserPurpose sets the userPurpose property value. The purpose of the mailbox. Used to differentiate a mailbox for a single user from a shared mailbox and equipment mailbox in Exchange Online. Read only.
330+
func (m *MailboxSettings) SetUserPurpose(value *UserPurpose)() {
331+
if m != nil {
332+
m.userPurpose = value
333+
}
334+
}
302335
// SetWorkingHours sets the workingHours property value. The days of the week and hours in a specific time zone that the user works.
303336
func (m *MailboxSettings) SetWorkingHours(value *WorkingHours)() {
304337
if m != nil {

models/microsoft/graph/result_template_option.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
type ResultTemplateOption struct {
99
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
1010
additionalData map[string]interface{};
11-
// Indicates whether search display layouts are enabled. If enabled, the user will get the result template to render the search results content in the resultTemplates property of the response. The result template is based on Adaptive Cards. This property is optional.
11+
// Indicates whether search display layouts are enabled. If enabled, the user will get the result template to render the search results content in the resultTemplates property of the response. The result template is based on Adaptive Cards. Optional.
1212
enableResultTemplate *bool;
1313
}
1414
// NewResultTemplateOption instantiates a new resultTemplateOption and sets the default values.
@@ -26,7 +26,7 @@ func (m *ResultTemplateOption) GetAdditionalData()(map[string]interface{}) {
2626
return m.additionalData
2727
}
2828
}
29-
// GetEnableResultTemplate gets the enableResultTemplate property value. Indicates whether search display layouts are enabled. If enabled, the user will get the result template to render the search results content in the resultTemplates property of the response. The result template is based on Adaptive Cards. This property is optional.
29+
// GetEnableResultTemplate gets the enableResultTemplate property value. Indicates whether search display layouts are enabled. If enabled, the user will get the result template to render the search results content in the resultTemplates property of the response. The result template is based on Adaptive Cards. Optional.
3030
func (m *ResultTemplateOption) GetEnableResultTemplate()(*bool) {
3131
if m == nil {
3232
return nil
@@ -74,7 +74,7 @@ func (m *ResultTemplateOption) SetAdditionalData(value map[string]interface{})()
7474
m.additionalData = value
7575
}
7676
}
77-
// SetEnableResultTemplate sets the enableResultTemplate property value. Indicates whether search display layouts are enabled. If enabled, the user will get the result template to render the search results content in the resultTemplates property of the response. The result template is based on Adaptive Cards. This property is optional.
77+
// SetEnableResultTemplate sets the enableResultTemplate property value. Indicates whether search display layouts are enabled. If enabled, the user will get the result template to render the search results content in the resultTemplates property of the response. The result template is based on Adaptive Cards. Optional.
7878
func (m *ResultTemplateOption) SetEnableResultTemplate(value *bool)() {
7979
if m != nil {
8080
m.enableResultTemplate = value

models/microsoft/graph/risk_detection.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ type RiskDetection struct {
3030
requestId *string;
3131
// Details of the detected risk. Possible values are: none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, unknownFutureValue.
3232
riskDetail *RiskDetail;
33-
// The type of risk event detected. The possible values are unlikelyTravel, anonymizedIPAddress, maliciousIPAddress, unfamiliarFeatures, malwareInfectedIPAddress, suspiciousIPAddress, leakedCredentials, investigationsThreatIntelligence, generic,adminConfirmedUserCompromised, mcasImpossibleTravel, mcasSuspiciousInboxManipulationRules, investigationsThreatIntelligenceSigninLinked, maliciousIPAddressValidCredentialsBlockedIP, and unknownFutureValue. If the risk detection is a premium detection, will show generic
33+
// The type of risk event detected. The possible values are unlikelyTravel, anonymizedIPAddress, maliciousIPAddress, unfamiliarFeatures, malwareInfectedIPAddress, suspiciousIPAddress, leakedCredentials, investigationsThreatIntelligence, generic,adminConfirmedUserCompromised, mcasImpossibleTravel, mcasSuspiciousInboxManipulationRules, investigationsThreatIntelligenceSigninLinked, maliciousIPAddressValidCredentialsBlockedIP, and unknownFutureValue. If the risk detection is a premium detection, will show generic. For more information about each value, see riskEventType values.
3434
riskEventType *string;
3535
// Level of the detected risk. Possible values are: low, medium, high, hidden, none, unknownFutureValue.
3636
riskLevel *RiskLevel;
@@ -142,7 +142,7 @@ func (m *RiskDetection) GetRiskDetail()(*RiskDetail) {
142142
return m.riskDetail
143143
}
144144
}
145-
// GetRiskEventType gets the riskEventType property value. The type of risk event detected. The possible values are unlikelyTravel, anonymizedIPAddress, maliciousIPAddress, unfamiliarFeatures, malwareInfectedIPAddress, suspiciousIPAddress, leakedCredentials, investigationsThreatIntelligence, generic,adminConfirmedUserCompromised, mcasImpossibleTravel, mcasSuspiciousInboxManipulationRules, investigationsThreatIntelligenceSigninLinked, maliciousIPAddressValidCredentialsBlockedIP, and unknownFutureValue. If the risk detection is a premium detection, will show generic
145+
// GetRiskEventType gets the riskEventType property value. The type of risk event detected. The possible values are unlikelyTravel, anonymizedIPAddress, maliciousIPAddress, unfamiliarFeatures, malwareInfectedIPAddress, suspiciousIPAddress, leakedCredentials, investigationsThreatIntelligence, generic,adminConfirmedUserCompromised, mcasImpossibleTravel, mcasSuspiciousInboxManipulationRules, investigationsThreatIntelligenceSigninLinked, maliciousIPAddressValidCredentialsBlockedIP, and unknownFutureValue. If the risk detection is a premium detection, will show generic. For more information about each value, see riskEventType values.
146146
func (m *RiskDetection) GetRiskEventType()(*string) {
147147
if m == nil {
148148
return nil
@@ -598,7 +598,7 @@ func (m *RiskDetection) SetRiskDetail(value *RiskDetail)() {
598598
m.riskDetail = value
599599
}
600600
}
601-
// SetRiskEventType sets the riskEventType property value. The type of risk event detected. The possible values are unlikelyTravel, anonymizedIPAddress, maliciousIPAddress, unfamiliarFeatures, malwareInfectedIPAddress, suspiciousIPAddress, leakedCredentials, investigationsThreatIntelligence, generic,adminConfirmedUserCompromised, mcasImpossibleTravel, mcasSuspiciousInboxManipulationRules, investigationsThreatIntelligenceSigninLinked, maliciousIPAddressValidCredentialsBlockedIP, and unknownFutureValue. If the risk detection is a premium detection, will show generic
601+
// SetRiskEventType sets the riskEventType property value. The type of risk event detected. The possible values are unlikelyTravel, anonymizedIPAddress, maliciousIPAddress, unfamiliarFeatures, malwareInfectedIPAddress, suspiciousIPAddress, leakedCredentials, investigationsThreatIntelligence, generic,adminConfirmedUserCompromised, mcasImpossibleTravel, mcasSuspiciousInboxManipulationRules, investigationsThreatIntelligenceSigninLinked, maliciousIPAddressValidCredentialsBlockedIP, and unknownFutureValue. If the risk detection is a premium detection, will show generic. For more information about each value, see riskEventType values.
602602
func (m *RiskDetection) SetRiskEventType(value *string)() {
603603
if m != nil {
604604
m.riskEventType = value

models/microsoft/graph/search_alteration.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import (
88
type SearchAlteration struct {
99
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
1010
additionalData map[string]interface{};
11-
// Defines the altered highlighted query string with spelling correction. The annotation around the corrected segment is (/ue000, /ue001)
11+
// Defines the altered highlighted query string with spelling correction. The annotation around the corrected segment is: /ue000, /ue001.
1212
alteredHighlightedQueryString *string;
1313
// Defines the altered query string with spelling correction.
1414
alteredQueryString *string;
15-
// Represents changed segments with respect to original query.
15+
// Represents changed segments related to an original user query.
1616
alteredQueryTokens []AlteredQueryToken;
1717
}
1818
// NewSearchAlteration instantiates a new searchAlteration and sets the default values.
@@ -30,7 +30,7 @@ func (m *SearchAlteration) GetAdditionalData()(map[string]interface{}) {
3030
return m.additionalData
3131
}
3232
}
33-
// GetAlteredHighlightedQueryString gets the alteredHighlightedQueryString property value. Defines the altered highlighted query string with spelling correction. The annotation around the corrected segment is (/ue000, /ue001)
33+
// GetAlteredHighlightedQueryString gets the alteredHighlightedQueryString property value. Defines the altered highlighted query string with spelling correction. The annotation around the corrected segment is: /ue000, /ue001.
3434
func (m *SearchAlteration) GetAlteredHighlightedQueryString()(*string) {
3535
if m == nil {
3636
return nil
@@ -46,7 +46,7 @@ func (m *SearchAlteration) GetAlteredQueryString()(*string) {
4646
return m.alteredQueryString
4747
}
4848
}
49-
// GetAlteredQueryTokens gets the alteredQueryTokens property value. Represents changed segments with respect to original query.
49+
// GetAlteredQueryTokens gets the alteredQueryTokens property value. Represents changed segments related to an original user query.
5050
func (m *SearchAlteration) GetAlteredQueryTokens()([]AlteredQueryToken) {
5151
if m == nil {
5252
return nil
@@ -135,7 +135,7 @@ func (m *SearchAlteration) SetAdditionalData(value map[string]interface{})() {
135135
m.additionalData = value
136136
}
137137
}
138-
// SetAlteredHighlightedQueryString sets the alteredHighlightedQueryString property value. Defines the altered highlighted query string with spelling correction. The annotation around the corrected segment is (/ue000, /ue001)
138+
// SetAlteredHighlightedQueryString sets the alteredHighlightedQueryString property value. Defines the altered highlighted query string with spelling correction. The annotation around the corrected segment is: /ue000, /ue001.
139139
func (m *SearchAlteration) SetAlteredHighlightedQueryString(value *string)() {
140140
if m != nil {
141141
m.alteredHighlightedQueryString = value
@@ -147,7 +147,7 @@ func (m *SearchAlteration) SetAlteredQueryString(value *string)() {
147147
m.alteredQueryString = value
148148
}
149149
}
150-
// SetAlteredQueryTokens sets the alteredQueryTokens property value. Represents changed segments with respect to original query.
150+
// SetAlteredQueryTokens sets the alteredQueryTokens property value. Represents changed segments related to an original user query.
151151
func (m *SearchAlteration) SetAlteredQueryTokens(value []AlteredQueryToken)() {
152152
if m != nil {
153153
m.alteredQueryTokens = value

0 commit comments

Comments
 (0)