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/Face] [cognitive Services] Update endpoint URL template for Face. #2300

Merged
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
48 changes: 12 additions & 36 deletions profiles/latest/cognitiveservices/face/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,27 +51,6 @@ const (
AttributeTypeSmile AttributeType = original.AttributeTypeSmile
)

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 BlurLevel = original.BlurLevel

const (
Expand Down Expand Up @@ -187,27 +166,24 @@ type VerifyResult = original.VerifyResult
type PersonGroupClient = original.PersonGroupClient
type PersonGroupPersonClient = original.PersonGroupPersonClient

func New(azureRegion AzureRegions) BaseClient {
return original.New(azureRegion)
func New(endpoint string) BaseClient {
return original.New(endpoint)
}
func NewWithoutDefaults(azureRegion AzureRegions) BaseClient {
return original.NewWithoutDefaults(azureRegion)
func NewWithoutDefaults(endpoint string) BaseClient {
return original.NewWithoutDefaults(endpoint)
}
func NewClient(azureRegion AzureRegions) Client {
return original.NewClient(azureRegion)
func NewClient(endpoint string) Client {
return original.NewClient(endpoint)
}
func NewListClient(azureRegion AzureRegions) ListClient {
return original.NewListClient(azureRegion)
func NewListClient(endpoint string) ListClient {
return original.NewListClient(endpoint)
}
func PossibleAccessoryTypeValues() []AccessoryType {
return original.PossibleAccessoryTypeValues()
}
func PossibleAttributeTypeValues() []AttributeType {
return original.PossibleAttributeTypeValues()
}
func PossibleAzureRegionsValues() []AzureRegions {
return original.PossibleAzureRegionsValues()
}
func PossibleBlurLevelValues() []BlurLevel {
return original.PossibleBlurLevelValues()
}
Expand All @@ -232,11 +208,11 @@ func PossibleNoiseLevelValues() []NoiseLevel {
func PossibleTrainingStatusTypeValues() []TrainingStatusType {
return original.PossibleTrainingStatusTypeValues()
}
func NewPersonGroupClient(azureRegion AzureRegions) PersonGroupClient {
return original.NewPersonGroupClient(azureRegion)
func NewPersonGroupClient(endpoint string) PersonGroupClient {
return original.NewPersonGroupClient(endpoint)
}
func NewPersonGroupPersonClient(azureRegion AzureRegions) PersonGroupPersonClient {
return original.NewPersonGroupPersonClient(azureRegion)
func NewPersonGroupPersonClient(endpoint string) PersonGroupPersonClient {
return original.NewPersonGroupPersonClient(endpoint)
}
func UserAgent() string {
return original.UserAgent() + " profiles/latest"
Expand Down
48 changes: 12 additions & 36 deletions profiles/preview/cognitiveservices/face/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,27 +51,6 @@ const (
AttributeTypeSmile AttributeType = original.AttributeTypeSmile
)

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 BlurLevel = original.BlurLevel

const (
Expand Down Expand Up @@ -187,27 +166,24 @@ type VerifyResult = original.VerifyResult
type PersonGroupClient = original.PersonGroupClient
type PersonGroupPersonClient = original.PersonGroupPersonClient

func New(azureRegion AzureRegions) BaseClient {
return original.New(azureRegion)
func New(endpoint string) BaseClient {
return original.New(endpoint)
}
func NewWithoutDefaults(azureRegion AzureRegions) BaseClient {
return original.NewWithoutDefaults(azureRegion)
func NewWithoutDefaults(endpoint string) BaseClient {
return original.NewWithoutDefaults(endpoint)
}
func NewClient(azureRegion AzureRegions) Client {
return original.NewClient(azureRegion)
func NewClient(endpoint string) Client {
return original.NewClient(endpoint)
}
func NewListClient(azureRegion AzureRegions) ListClient {
return original.NewListClient(azureRegion)
func NewListClient(endpoint string) ListClient {
return original.NewListClient(endpoint)
}
func PossibleAccessoryTypeValues() []AccessoryType {
return original.PossibleAccessoryTypeValues()
}
func PossibleAttributeTypeValues() []AttributeType {
return original.PossibleAttributeTypeValues()
}
func PossibleAzureRegionsValues() []AzureRegions {
return original.PossibleAzureRegionsValues()
}
func PossibleBlurLevelValues() []BlurLevel {
return original.PossibleBlurLevelValues()
}
Expand All @@ -232,11 +208,11 @@ func PossibleNoiseLevelValues() []NoiseLevel {
func PossibleTrainingStatusTypeValues() []TrainingStatusType {
return original.PossibleTrainingStatusTypeValues()
}
func NewPersonGroupClient(azureRegion AzureRegions) PersonGroupClient {
return original.NewPersonGroupClient(azureRegion)
func NewPersonGroupClient(endpoint string) PersonGroupClient {
return original.NewPersonGroupClient(endpoint)
}
func NewPersonGroupPersonClient(azureRegion AzureRegions) PersonGroupPersonClient {
return original.NewPersonGroupPersonClient(azureRegion)
func NewPersonGroupPersonClient(endpoint string) PersonGroupPersonClient {
return original.NewPersonGroupPersonClient(endpoint)
}
func UserAgent() string {
return original.UserAgent() + " profiles/preview"
Expand Down
12 changes: 6 additions & 6 deletions services/cognitiveservices/v1.0/face/client.go

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

32 changes: 16 additions & 16 deletions services/cognitiveservices/v1.0/face/face.go

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

Loading