diff --git a/profiles/latest/cognitiveservices/qnamaker/models.go b/profiles/latest/cognitiveservices/qnamaker/models.go index fefe9d56eef0..2b7767ec320d 100644 --- a/profiles/latest/cognitiveservices/qnamaker/models.go +++ b/profiles/latest/cognitiveservices/qnamaker/models.go @@ -47,13 +47,6 @@ const ( ValidationFailure ErrorCodeType = original.ValidationFailure ) -type KnowledgebaseEnvironmentType = original.KnowledgebaseEnvironmentType - -const ( - KnowledgebaseEnvironmentTypeProd KnowledgebaseEnvironmentType = original.KnowledgebaseEnvironmentTypeProd - KnowledgebaseEnvironmentTypeTest KnowledgebaseEnvironmentType = original.KnowledgebaseEnvironmentTypeTest -) - type OperationStateType = original.OperationStateType const ( @@ -135,9 +128,6 @@ func PossibleEnvironmentTypeValues() []EnvironmentType { func PossibleErrorCodeTypeValues() []ErrorCodeType { return original.PossibleErrorCodeTypeValues() } -func PossibleKnowledgebaseEnvironmentTypeValues() []KnowledgebaseEnvironmentType { - return original.PossibleKnowledgebaseEnvironmentTypeValues() -} func PossibleOperationStateTypeValues() []OperationStateType { return original.PossibleOperationStateTypeValues() } diff --git a/profiles/preview/cognitiveservices/qnamaker/models.go b/profiles/preview/cognitiveservices/qnamaker/models.go index 8c67cecde797..4329ee96e118 100644 --- a/profiles/preview/cognitiveservices/qnamaker/models.go +++ b/profiles/preview/cognitiveservices/qnamaker/models.go @@ -47,13 +47,6 @@ const ( ValidationFailure ErrorCodeType = original.ValidationFailure ) -type KnowledgebaseEnvironmentType = original.KnowledgebaseEnvironmentType - -const ( - KnowledgebaseEnvironmentTypeProd KnowledgebaseEnvironmentType = original.KnowledgebaseEnvironmentTypeProd - KnowledgebaseEnvironmentTypeTest KnowledgebaseEnvironmentType = original.KnowledgebaseEnvironmentTypeTest -) - type OperationStateType = original.OperationStateType const ( @@ -135,9 +128,6 @@ func PossibleEnvironmentTypeValues() []EnvironmentType { func PossibleErrorCodeTypeValues() []ErrorCodeType { return original.PossibleErrorCodeTypeValues() } -func PossibleKnowledgebaseEnvironmentTypeValues() []KnowledgebaseEnvironmentType { - return original.PossibleKnowledgebaseEnvironmentTypeValues() -} func PossibleOperationStateTypeValues() []OperationStateType { return original.PossibleOperationStateTypeValues() } diff --git a/services/cognitiveservices/v4.0/qnamaker/models.go b/services/cognitiveservices/v4.0/qnamaker/models.go index bf4f36a94223..a5e23760bc24 100644 --- a/services/cognitiveservices/v4.0/qnamaker/models.go +++ b/services/cognitiveservices/v4.0/qnamaker/models.go @@ -78,21 +78,6 @@ func PossibleErrorCodeTypeValues() []ErrorCodeType { return []ErrorCodeType{BadArgument, EndpointKeysError, ExtractionFailure, Forbidden, KbNotFound, NotFound, OperationNotFound, QnaRuntimeError, QuotaExceeded, ServiceError, SKULimitExceeded, Unauthorized, Unspecified, ValidationFailure} } -// KnowledgebaseEnvironmentType enumerates the values for knowledgebase environment type. -type KnowledgebaseEnvironmentType string - -const ( - // KnowledgebaseEnvironmentTypeProd ... - KnowledgebaseEnvironmentTypeProd KnowledgebaseEnvironmentType = "Prod" - // KnowledgebaseEnvironmentTypeTest ... - KnowledgebaseEnvironmentTypeTest KnowledgebaseEnvironmentType = "Test" -) - -// PossibleKnowledgebaseEnvironmentTypeValues returns an array of possible values for the KnowledgebaseEnvironmentType const type. -func PossibleKnowledgebaseEnvironmentTypeValues() []KnowledgebaseEnvironmentType { - return []KnowledgebaseEnvironmentType{KnowledgebaseEnvironmentTypeProd, KnowledgebaseEnvironmentTypeTest} -} - // OperationStateType enumerates the values for operation state type. type OperationStateType string