From d5985ab5b65c7f98e19a8c0391956e1dc17f9e30 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 6 May 2019 19:30:55 +0000 Subject: [PATCH 1/2] Generated from fcf8e047e61191e894256b1d026f24a4a199ecd0 graph: fix invalid types of accountEnabled --- services/graphrbac/1.6/graphrbac/models.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/graphrbac/1.6/graphrbac/models.go b/services/graphrbac/1.6/graphrbac/models.go index ff5699719407..11893d8ad256 100644 --- a/services/graphrbac/1.6/graphrbac/models.go +++ b/services/graphrbac/1.6/graphrbac/models.go @@ -3449,7 +3449,7 @@ func (sp *ServicePrincipal) UnmarshalJSON(body []byte) error { // PATCH type ServicePrincipalBase struct { // AccountEnabled - whether or not the service principal account is enabled - AccountEnabled *string `json:"accountEnabled,omitempty"` + AccountEnabled *bool `json:"accountEnabled,omitempty"` // AppRoleAssignmentRequired - Specifies whether an AppRoleAssignment to a user or group is required before Azure AD will issue a user or access token to the application. AppRoleAssignmentRequired *bool `json:"appRoleAssignmentRequired,omitempty"` // KeyCredentials - The collection of key credentials associated with the service principal. @@ -3467,7 +3467,7 @@ type ServicePrincipalCreateParameters struct { // AppID - The application ID. AppID *string `json:"appId,omitempty"` // AccountEnabled - whether or not the service principal account is enabled - AccountEnabled *string `json:"accountEnabled,omitempty"` + AccountEnabled *bool `json:"accountEnabled,omitempty"` // AppRoleAssignmentRequired - Specifies whether an AppRoleAssignment to a user or group is required before Azure AD will issue a user or access token to the application. AppRoleAssignmentRequired *bool `json:"appRoleAssignmentRequired,omitempty"` // KeyCredentials - The collection of key credentials associated with the service principal. @@ -3626,7 +3626,7 @@ type ServicePrincipalObjectResult struct { // ServicePrincipalUpdateParameters request parameters for update an existing service principal. type ServicePrincipalUpdateParameters struct { // AccountEnabled - whether or not the service principal account is enabled - AccountEnabled *string `json:"accountEnabled,omitempty"` + AccountEnabled *bool `json:"accountEnabled,omitempty"` // AppRoleAssignmentRequired - Specifies whether an AppRoleAssignment to a user or group is required before Azure AD will issue a user or access token to the application. AppRoleAssignmentRequired *bool `json:"appRoleAssignmentRequired,omitempty"` // KeyCredentials - The collection of key credentials associated with the service principal. From 27108bd97379022a8c5fe028211734741b5bd3ae Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 6 May 2019 19:33:39 +0000 Subject: [PATCH 2/2] Generated from fcf8e047e61191e894256b1d026f24a4a199ecd0 graph: fix invalid types of accountEnabled --- services/graphrbac/1.6/graphrbac/models.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/graphrbac/1.6/graphrbac/models.go b/services/graphrbac/1.6/graphrbac/models.go index 11893d8ad256..e6b583d96f14 100644 --- a/services/graphrbac/1.6/graphrbac/models.go +++ b/services/graphrbac/1.6/graphrbac/models.go @@ -3054,7 +3054,7 @@ func (ra *ResourceAccess) UnmarshalJSON(body []byte) error { type ServicePrincipal struct { autorest.Response `json:"-"` // AccountEnabled - whether or not the service principal account is enabled - AccountEnabled *string `json:"accountEnabled,omitempty"` + AccountEnabled *bool `json:"accountEnabled,omitempty"` // AlternativeNames - alternative names AlternativeNames *[]string `json:"alternativeNames,omitempty"` // AppDisplayName - READ-ONLY; The display name exposed by the associated application. @@ -3213,7 +3213,7 @@ func (sp *ServicePrincipal) UnmarshalJSON(body []byte) error { switch k { case "accountEnabled": if v != nil { - var accountEnabled string + var accountEnabled bool err = json.Unmarshal(*v, &accountEnabled) if err != nil { return err