Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR cognitiveservices/data-plane/TextAnalytics] [Cognitive Services] Update endpoint URL template for TextAnalytics. #2301

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 4 additions & 28 deletions profiles/latest/cognitiveservices/textanalytics/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,6 @@ package textanalytics
import original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v2.0/textanalytics"

type BaseClient = original.BaseClient
type AzureRegions = original.AzureRegions

const (
Australiaeast AzureRegions = original.Australiaeast
Brazilsouth AzureRegions = original.Brazilsouth
Canadacentral AzureRegions = original.Canadacentral
Centralindia AzureRegions = original.Centralindia
Eastasia AzureRegions = original.Eastasia
Eastus AzureRegions = original.Eastus
Eastus2 AzureRegions = original.Eastus2
Japaneast AzureRegions = original.Japaneast
Northeurope AzureRegions = original.Northeurope
Southcentralus AzureRegions = original.Southcentralus
Southeastasia AzureRegions = original.Southeastasia
Uksouth AzureRegions = original.Uksouth
Westcentralus AzureRegions = original.Westcentralus
Westeurope AzureRegions = original.Westeurope
Westus AzureRegions = original.Westus
Westus2 AzureRegions = original.Westus2
)

type BatchInput = original.BatchInput
type DetectedLanguage = original.DetectedLanguage
type EntitiesBatchResult = original.EntitiesBatchResult
Expand All @@ -62,14 +41,11 @@ type MultiLanguageInput = original.MultiLanguageInput
type SentimentBatchResult = original.SentimentBatchResult
type SentimentBatchResultItem = original.SentimentBatchResultItem

func New(azureRegion AzureRegions) BaseClient {
return original.New(azureRegion)
}
func NewWithoutDefaults(azureRegion AzureRegions) BaseClient {
return original.NewWithoutDefaults(azureRegion)
func New(endpoint string) BaseClient {
return original.New(endpoint)
}
func PossibleAzureRegionsValues() []AzureRegions {
return original.PossibleAzureRegionsValues()
func NewWithoutDefaults(endpoint string) BaseClient {
return original.NewWithoutDefaults(endpoint)
}
func UserAgent() string {
return original.UserAgent() + " profiles/latest"
Expand Down
32 changes: 4 additions & 28 deletions profiles/preview/cognitiveservices/textanalytics/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,6 @@ package textanalytics
import original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v2.0/textanalytics"

type BaseClient = original.BaseClient
type AzureRegions = original.AzureRegions

const (
Australiaeast AzureRegions = original.Australiaeast
Brazilsouth AzureRegions = original.Brazilsouth
Canadacentral AzureRegions = original.Canadacentral
Centralindia AzureRegions = original.Centralindia
Eastasia AzureRegions = original.Eastasia
Eastus AzureRegions = original.Eastus
Eastus2 AzureRegions = original.Eastus2
Japaneast AzureRegions = original.Japaneast
Northeurope AzureRegions = original.Northeurope
Southcentralus AzureRegions = original.Southcentralus
Southeastasia AzureRegions = original.Southeastasia
Uksouth AzureRegions = original.Uksouth
Westcentralus AzureRegions = original.Westcentralus
Westeurope AzureRegions = original.Westeurope
Westus AzureRegions = original.Westus
Westus2 AzureRegions = original.Westus2
)

type BatchInput = original.BatchInput
type DetectedLanguage = original.DetectedLanguage
type EntitiesBatchResult = original.EntitiesBatchResult
Expand All @@ -62,14 +41,11 @@ type MultiLanguageInput = original.MultiLanguageInput
type SentimentBatchResult = original.SentimentBatchResult
type SentimentBatchResultItem = original.SentimentBatchResultItem

func New(azureRegion AzureRegions) BaseClient {
return original.New(azureRegion)
}
func NewWithoutDefaults(azureRegion AzureRegions) BaseClient {
return original.NewWithoutDefaults(azureRegion)
func New(endpoint string) BaseClient {
return original.New(endpoint)
}
func PossibleAzureRegionsValues() []AzureRegions {
return original.PossibleAzureRegionsValues()
func NewWithoutDefaults(endpoint string) BaseClient {
return original.NewWithoutDefaults(endpoint)
}
func UserAgent() string {
return original.UserAgent() + " profiles/preview"
Expand Down
36 changes: 18 additions & 18 deletions services/cognitiveservices/v2.0/textanalytics/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 0 additions & 43 deletions services/cognitiveservices/v2.0/textanalytics/models.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.