Skip to content

Commit

Permalink
Merge pull request #85 from microsoftgraph/v1.0/pipelinebuild/68218
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 Feb 23, 2022
2 parents f5f8405 + b07c398 commit 8e3a060
Show file tree
Hide file tree
Showing 11 changed files with 121 additions and 31 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

## [0.11.0] - 2022-02-23

### Changed

- Weekly generation

## [0.10.0] - 2022-02-16

### Changed
Expand Down
3 changes: 2 additions & 1 deletion graph_request_adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

var clientOptions = core.GraphClientOptions{
GraphServiceVersion: "", //v1 doesn't include the service version in the telemetry header
GraphServiceLibraryVersion: "0.10.0",
GraphServiceLibraryVersion: "0.11.0",
}

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




12 changes: 6 additions & 6 deletions models/microsoft/graph/alteration_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ type AlterationResponse struct {
additionalData map[string]interface{};
// Defines the original user query string.
originalQueryString *string;
// Defines the details of alteration information for the spelling correction.
// Defines the details of the alteration information for the spelling correction.
queryAlteration *SearchAlteration;
// Defines the type of the spelling correction. Possible values are suggestion, modification.
// Defines the type of the spelling correction. Possible values are: suggestion, modification.
queryAlterationType *SearchAlterationType;
}
// NewAlterationResponse instantiates a new alterationResponse and sets the default values.
Expand All @@ -38,15 +38,15 @@ func (m *AlterationResponse) GetOriginalQueryString()(*string) {
return m.originalQueryString
}
}
// GetQueryAlteration gets the queryAlteration property value. Defines the details of alteration information for the spelling correction.
// GetQueryAlteration gets the queryAlteration property value. Defines the details of the alteration information for the spelling correction.
func (m *AlterationResponse) GetQueryAlteration()(*SearchAlteration) {
if m == nil {
return nil
} else {
return m.queryAlteration
}
}
// GetQueryAlterationType gets the queryAlterationType property value. Defines the type of the spelling correction. Possible values are suggestion, modification.
// GetQueryAlterationType gets the queryAlterationType property value. Defines the type of the spelling correction. Possible values are: suggestion, modification.
func (m *AlterationResponse) GetQueryAlterationType()(*SearchAlterationType) {
if m == nil {
return nil
Expand Down Expand Up @@ -133,13 +133,13 @@ func (m *AlterationResponse) SetOriginalQueryString(value *string)() {
m.originalQueryString = value
}
}
// SetQueryAlteration sets the queryAlteration property value. Defines the details of alteration information for the spelling correction.
// SetQueryAlteration sets the queryAlteration property value. Defines the details of the alteration information for the spelling correction.
func (m *AlterationResponse) SetQueryAlteration(value *SearchAlteration)() {
if m != nil {
m.queryAlteration = value
}
}
// SetQueryAlterationType sets the queryAlterationType property value. Defines the type of the spelling correction. Possible values are suggestion, modification.
// SetQueryAlterationType sets the queryAlterationType property value. Defines the type of the spelling correction. Possible values are: suggestion, modification.
func (m *AlterationResponse) SetQueryAlterationType(value *SearchAlterationType)() {
if m != nil {
m.queryAlterationType = value
Expand Down
33 changes: 33 additions & 0 deletions models/microsoft/graph/mailbox_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ type MailboxSettings struct {
timeFormat *string;
// The default time zone for the user's mailbox.
timeZone *string;
// 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.
userPurpose *UserPurpose;
// The days of the week and hours in a specific time zone that the user works.
workingHours *WorkingHours;
}
Expand Down Expand Up @@ -96,6 +98,14 @@ func (m *MailboxSettings) GetTimeZone()(*string) {
return m.timeZone
}
}
// 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.
func (m *MailboxSettings) GetUserPurpose()(*UserPurpose) {
if m == nil {
return nil
} else {
return m.userPurpose
}
}
// GetWorkingHours gets the workingHours property value. The days of the week and hours in a specific time zone that the user works.
func (m *MailboxSettings) GetWorkingHours()(*WorkingHours) {
if m == nil {
Expand Down Expand Up @@ -177,6 +187,16 @@ func (m *MailboxSettings) GetFieldDeserializers()(map[string]func(interface{}, i
}
return nil
}
res["userPurpose"] = func (o interface{}, n i04eb5309aeaafadd28374d79c8471df9b267510b4dc2e3144c378c50f6fd7b55.ParseNode) error {
val, err := n.GetEnumValue(ParseUserPurpose)
if err != nil {
return err
}
if val != nil {
m.SetUserPurpose(val.(*UserPurpose))
}
return nil
}
res["workingHours"] = func (o interface{}, n i04eb5309aeaafadd28374d79c8471df9b267510b4dc2e3144c378c50f6fd7b55.ParseNode) error {
val, err := n.GetObjectValue(func () i04eb5309aeaafadd28374d79c8471df9b267510b4dc2e3144c378c50f6fd7b55.Parsable { return NewWorkingHours() })
if err != nil {
Expand Down Expand Up @@ -237,6 +257,13 @@ func (m *MailboxSettings) Serialize(writer i04eb5309aeaafadd28374d79c8471df9b267
return err
}
}
if m.GetUserPurpose() != nil {
cast := (*m.GetUserPurpose()).String()
err := writer.WriteStringValue("userPurpose", &cast)
if err != nil {
return err
}
}
{
err := writer.WriteObjectValue("workingHours", m.GetWorkingHours())
if err != nil {
Expand Down Expand Up @@ -299,6 +326,12 @@ func (m *MailboxSettings) SetTimeZone(value *string)() {
m.timeZone = value
}
}
// 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.
func (m *MailboxSettings) SetUserPurpose(value *UserPurpose)() {
if m != nil {
m.userPurpose = value
}
}
// SetWorkingHours sets the workingHours property value. The days of the week and hours in a specific time zone that the user works.
func (m *MailboxSettings) SetWorkingHours(value *WorkingHours)() {
if m != nil {
Expand Down
6 changes: 3 additions & 3 deletions models/microsoft/graph/result_template_option.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
type ResultTemplateOption struct {
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{};
// 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.
// 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.
enableResultTemplate *bool;
}
// NewResultTemplateOption instantiates a new resultTemplateOption and sets the default values.
Expand All @@ -26,7 +26,7 @@ func (m *ResultTemplateOption) GetAdditionalData()(map[string]interface{}) {
return m.additionalData
}
}
// 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.
// 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.
func (m *ResultTemplateOption) GetEnableResultTemplate()(*bool) {
if m == nil {
return nil
Expand Down Expand Up @@ -74,7 +74,7 @@ func (m *ResultTemplateOption) SetAdditionalData(value map[string]interface{})()
m.additionalData = value
}
}
// 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.
// 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.
func (m *ResultTemplateOption) SetEnableResultTemplate(value *bool)() {
if m != nil {
m.enableResultTemplate = value
Expand Down
6 changes: 3 additions & 3 deletions models/microsoft/graph/risk_detection.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type RiskDetection struct {
requestId *string;
// Details of the detected risk. Possible values are: none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, unknownFutureValue.
riskDetail *RiskDetail;
// 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
// 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.
riskEventType *string;
// Level of the detected risk. Possible values are: low, medium, high, hidden, none, unknownFutureValue.
riskLevel *RiskLevel;
Expand Down Expand Up @@ -142,7 +142,7 @@ func (m *RiskDetection) GetRiskDetail()(*RiskDetail) {
return m.riskDetail
}
}
// 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
// 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.
func (m *RiskDetection) GetRiskEventType()(*string) {
if m == nil {
return nil
Expand Down Expand Up @@ -598,7 +598,7 @@ func (m *RiskDetection) SetRiskDetail(value *RiskDetail)() {
m.riskDetail = value
}
}
// 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
// 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.
func (m *RiskDetection) SetRiskEventType(value *string)() {
if m != nil {
m.riskEventType = value
Expand Down
12 changes: 6 additions & 6 deletions models/microsoft/graph/search_alteration.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (
type SearchAlteration struct {
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{};
// Defines the altered highlighted query string with spelling correction. The annotation around the corrected segment is (/ue000, /ue001)
// Defines the altered highlighted query string with spelling correction. The annotation around the corrected segment is: /ue000, /ue001.
alteredHighlightedQueryString *string;
// Defines the altered query string with spelling correction.
alteredQueryString *string;
// Represents changed segments with respect to original query.
// Represents changed segments related to an original user query.
alteredQueryTokens []AlteredQueryToken;
}
// NewSearchAlteration instantiates a new searchAlteration and sets the default values.
Expand All @@ -30,7 +30,7 @@ func (m *SearchAlteration) GetAdditionalData()(map[string]interface{}) {
return m.additionalData
}
}
// GetAlteredHighlightedQueryString gets the alteredHighlightedQueryString property value. Defines the altered highlighted query string with spelling correction. The annotation around the corrected segment is (/ue000, /ue001)
// GetAlteredHighlightedQueryString gets the alteredHighlightedQueryString property value. Defines the altered highlighted query string with spelling correction. The annotation around the corrected segment is: /ue000, /ue001.
func (m *SearchAlteration) GetAlteredHighlightedQueryString()(*string) {
if m == nil {
return nil
Expand All @@ -46,7 +46,7 @@ func (m *SearchAlteration) GetAlteredQueryString()(*string) {
return m.alteredQueryString
}
}
// GetAlteredQueryTokens gets the alteredQueryTokens property value. Represents changed segments with respect to original query.
// GetAlteredQueryTokens gets the alteredQueryTokens property value. Represents changed segments related to an original user query.
func (m *SearchAlteration) GetAlteredQueryTokens()([]AlteredQueryToken) {
if m == nil {
return nil
Expand Down Expand Up @@ -135,7 +135,7 @@ func (m *SearchAlteration) SetAdditionalData(value map[string]interface{})() {
m.additionalData = value
}
}
// SetAlteredHighlightedQueryString sets the alteredHighlightedQueryString property value. Defines the altered highlighted query string with spelling correction. The annotation around the corrected segment is (/ue000, /ue001)
// SetAlteredHighlightedQueryString sets the alteredHighlightedQueryString property value. Defines the altered highlighted query string with spelling correction. The annotation around the corrected segment is: /ue000, /ue001.
func (m *SearchAlteration) SetAlteredHighlightedQueryString(value *string)() {
if m != nil {
m.alteredHighlightedQueryString = value
Expand All @@ -147,7 +147,7 @@ func (m *SearchAlteration) SetAlteredQueryString(value *string)() {
m.alteredQueryString = value
}
}
// SetAlteredQueryTokens sets the alteredQueryTokens property value. Represents changed segments with respect to original query.
// SetAlteredQueryTokens sets the alteredQueryTokens property value. Represents changed segments related to an original user query.
func (m *SearchAlteration) SetAlteredQueryTokens(value []AlteredQueryToken)() {
if m != nil {
m.alteredQueryTokens = value
Expand Down
Loading

0 comments on commit 8e3a060

Please sign in to comment.