From 74612ac093a64f08971003ad4eeb511ab83aa9b7 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 7 Mar 2019 10:44:11 -0800 Subject: [PATCH] Generated from f0fe70b51825fdec12d01df500646be7e4dcff54 (#4215) Azure Search: Resource Manager: Support 'None' Identity type --- profiles/latest/search/mgmt/search/models.go | 10 ++++++++++ profiles/preview/search/mgmt/search/models.go | 10 ++++++++++ .../search/mgmt/2015-08-19/search/models.go | 19 +++++++++++++++++-- 3 files changed, 37 insertions(+), 2 deletions(-) diff --git a/profiles/latest/search/mgmt/search/models.go b/profiles/latest/search/mgmt/search/models.go index e5e64444bf4d..8838de2c64d8 100644 --- a/profiles/latest/search/mgmt/search/models.go +++ b/profiles/latest/search/mgmt/search/models.go @@ -39,6 +39,13 @@ const ( HighDensity HostingMode = original.HighDensity ) +type IdentityType = original.IdentityType + +const ( + None IdentityType = original.None + SystemAssigned IdentityType = original.SystemAssigned +) + type ProvisioningState = original.ProvisioningState const ( @@ -134,6 +141,9 @@ func PossibleAdminKeyKindValues() []AdminKeyKind { func PossibleHostingModeValues() []HostingMode { return original.PossibleHostingModeValues() } +func PossibleIdentityTypeValues() []IdentityType { + return original.PossibleIdentityTypeValues() +} func PossibleProvisioningStateValues() []ProvisioningState { return original.PossibleProvisioningStateValues() } diff --git a/profiles/preview/search/mgmt/search/models.go b/profiles/preview/search/mgmt/search/models.go index 8c573d4b7b6f..6085057199ce 100644 --- a/profiles/preview/search/mgmt/search/models.go +++ b/profiles/preview/search/mgmt/search/models.go @@ -39,6 +39,13 @@ const ( HighDensity HostingMode = original.HighDensity ) +type IdentityType = original.IdentityType + +const ( + None IdentityType = original.None + SystemAssigned IdentityType = original.SystemAssigned +) + type ProvisioningState = original.ProvisioningState const ( @@ -134,6 +141,9 @@ func PossibleAdminKeyKindValues() []AdminKeyKind { func PossibleHostingModeValues() []HostingMode { return original.PossibleHostingModeValues() } +func PossibleIdentityTypeValues() []IdentityType { + return original.PossibleIdentityTypeValues() +} func PossibleProvisioningStateValues() []ProvisioningState { return original.PossibleProvisioningStateValues() } diff --git a/services/search/mgmt/2015-08-19/search/models.go b/services/search/mgmt/2015-08-19/search/models.go index ff492d21ddc2..248ea5fc560f 100644 --- a/services/search/mgmt/2015-08-19/search/models.go +++ b/services/search/mgmt/2015-08-19/search/models.go @@ -57,6 +57,21 @@ func PossibleHostingModeValues() []HostingMode { return []HostingMode{Default, HighDensity} } +// IdentityType enumerates the values for identity type. +type IdentityType string + +const ( + // None ... + None IdentityType = "None" + // SystemAssigned ... + SystemAssigned IdentityType = "SystemAssigned" +) + +// PossibleIdentityTypeValues returns an array of possible values for the IdentityType const type. +func PossibleIdentityTypeValues() []IdentityType { + return []IdentityType{None, SystemAssigned} +} + // ProvisioningState enumerates the values for provisioning state. type ProvisioningState string @@ -186,8 +201,8 @@ type Identity struct { PrincipalID *string `json:"principalId,omitempty"` // TenantID - The tenant ID of resource. TenantID *string `json:"tenantId,omitempty"` - // Type - The identity type. - Type *string `json:"type,omitempty"` + // Type - The identity type. Possible values include: 'None', 'SystemAssigned' + Type IdentityType `json:"type,omitempty"` } // ListQueryKeysResult response containing the query API keys for a given Azure Search service.