Skip to content

Commit

Permalink
Generate profiles (#6787)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcturusZhang authored Jan 10, 2020
1 parent 995bece commit a1bfbd8
Show file tree
Hide file tree
Showing 4 changed files with 402 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,15 @@

package frontdoorapi

import original "github.com/Azure/azure-sdk-for-go/services/frontdoor/mgmt/2019-05-01/frontdoor/frontdoorapi"
import original "github.com/Azure/azure-sdk-for-go/services/frontdoor/mgmt/2019-11-01/frontdoor/frontdoorapi"

type BaseClientAPI = original.BaseClientAPI
type EndpointsClientAPI = original.EndpointsClientAPI
type ExperimentsClientAPI = original.ExperimentsClientAPI
type FrontDoorsClientAPI = original.FrontDoorsClientAPI
type FrontendEndpointsClientAPI = original.FrontendEndpointsClientAPI
type ManagedRuleSetsClientAPI = original.ManagedRuleSetsClientAPI
type NetworkExperimentProfilesClientAPI = original.NetworkExperimentProfilesClientAPI
type PoliciesClientAPI = original.PoliciesClientAPI
type PreconfiguredEndpointsClientAPI = original.PreconfiguredEndpointsClientAPI
type ReportsClientAPI = original.ReportsClientAPI
209 changes: 196 additions & 13 deletions profiles/latest/frontdoor/mgmt/frontdoor/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ package frontdoor
import (
"context"

original "github.com/Azure/azure-sdk-for-go/services/frontdoor/mgmt/2019-05-01/frontdoor"
original "github.com/Azure/azure-sdk-for-go/services/frontdoor/mgmt/2019-11-01/frontdoor"
)

const (
Expand All @@ -38,6 +38,13 @@ const (
Redirect ActionType = original.Redirect
)

type AggregationInterval = original.AggregationInterval

const (
Daily AggregationInterval = original.Daily
Hourly AggregationInterval = original.Hourly
)

type Availability = original.Availability

const (
Expand Down Expand Up @@ -111,6 +118,15 @@ const (
EnabledStateEnabled EnabledState = original.EnabledStateEnabled
)

type EndpointType = original.EndpointType

const (
AFD EndpointType = original.AFD
ATM EndpointType = original.ATM
AzureRegion EndpointType = original.AzureRegion
CDN EndpointType = original.CDN
)

type EnforceCertificateNameCheckEnabledState = original.EnforceCertificateNameCheckEnabledState

const (
Expand Down Expand Up @@ -140,13 +156,40 @@ const (
HEAD HealthProbeMethod = original.HEAD
)

type LatencyScorecardAggregationInterval = original.LatencyScorecardAggregationInterval

const (
LatencyScorecardAggregationIntervalDaily LatencyScorecardAggregationInterval = original.LatencyScorecardAggregationIntervalDaily
LatencyScorecardAggregationIntervalMonthly LatencyScorecardAggregationInterval = original.LatencyScorecardAggregationIntervalMonthly
LatencyScorecardAggregationIntervalWeekly LatencyScorecardAggregationInterval = original.LatencyScorecardAggregationIntervalWeekly
)

type ManagedRuleEnabledState = original.ManagedRuleEnabledState

const (
ManagedRuleEnabledStateDisabled ManagedRuleEnabledState = original.ManagedRuleEnabledStateDisabled
ManagedRuleEnabledStateEnabled ManagedRuleEnabledState = original.ManagedRuleEnabledStateEnabled
)

type ManagedRuleExclusionMatchVariable = original.ManagedRuleExclusionMatchVariable

const (
QueryStringArgNames ManagedRuleExclusionMatchVariable = original.QueryStringArgNames
RequestBodyPostArgNames ManagedRuleExclusionMatchVariable = original.RequestBodyPostArgNames
RequestCookieNames ManagedRuleExclusionMatchVariable = original.RequestCookieNames
RequestHeaderNames ManagedRuleExclusionMatchVariable = original.RequestHeaderNames
)

type ManagedRuleExclusionSelectorMatchOperator = original.ManagedRuleExclusionSelectorMatchOperator

const (
Contains ManagedRuleExclusionSelectorMatchOperator = original.Contains
EndsWith ManagedRuleExclusionSelectorMatchOperator = original.EndsWith
Equals ManagedRuleExclusionSelectorMatchOperator = original.Equals
EqualsAny ManagedRuleExclusionSelectorMatchOperator = original.EqualsAny
StartsWith ManagedRuleExclusionSelectorMatchOperator = original.StartsWith
)

type MatchVariable = original.MatchVariable

const (
Expand All @@ -168,6 +211,17 @@ const (
OneFullStopZero MinimumTLSVersion = original.OneFullStopZero
)

type NetworkExperimentResourceState = original.NetworkExperimentResourceState

const (
NetworkExperimentResourceStateCreating NetworkExperimentResourceState = original.NetworkExperimentResourceStateCreating
NetworkExperimentResourceStateDeleting NetworkExperimentResourceState = original.NetworkExperimentResourceStateDeleting
NetworkExperimentResourceStateDisabled NetworkExperimentResourceState = original.NetworkExperimentResourceStateDisabled
NetworkExperimentResourceStateDisabling NetworkExperimentResourceState = original.NetworkExperimentResourceStateDisabling
NetworkExperimentResourceStateEnabled NetworkExperimentResourceState = original.NetworkExperimentResourceStateEnabled
NetworkExperimentResourceStateEnabling NetworkExperimentResourceState = original.NetworkExperimentResourceStateEnabling
)

type NetworkOperationStatus = original.NetworkOperationStatus

const (
Expand All @@ -187,18 +241,18 @@ const (
type Operator = original.Operator

const (
Any Operator = original.Any
BeginsWith Operator = original.BeginsWith
Contains Operator = original.Contains
EndsWith Operator = original.EndsWith
Equal Operator = original.Equal
GeoMatch Operator = original.GeoMatch
GreaterThan Operator = original.GreaterThan
GreaterThanOrEqual Operator = original.GreaterThanOrEqual
IPMatch Operator = original.IPMatch
LessThan Operator = original.LessThan
LessThanOrEqual Operator = original.LessThanOrEqual
RegEx Operator = original.RegEx
OperatorAny Operator = original.OperatorAny
OperatorBeginsWith Operator = original.OperatorBeginsWith
OperatorContains Operator = original.OperatorContains
OperatorEndsWith Operator = original.OperatorEndsWith
OperatorEqual Operator = original.OperatorEqual
OperatorGeoMatch Operator = original.OperatorGeoMatch
OperatorGreaterThan Operator = original.OperatorGreaterThan
OperatorGreaterThanOrEqual Operator = original.OperatorGreaterThanOrEqual
OperatorIPMatch Operator = original.OperatorIPMatch
OperatorLessThan Operator = original.OperatorLessThan
OperatorLessThanOrEqual Operator = original.OperatorLessThanOrEqual
OperatorRegEx Operator = original.OperatorRegEx
)

type PolicyEnabledState = original.PolicyEnabledState
Expand Down Expand Up @@ -296,6 +350,29 @@ const (
SessionAffinityEnabledStateEnabled SessionAffinityEnabledState = original.SessionAffinityEnabledStateEnabled
)

type State = original.State

const (
StateDisabled State = original.StateDisabled
StateEnabled State = original.StateEnabled
)

type TimeseriesAggregationInterval = original.TimeseriesAggregationInterval

const (
TimeseriesAggregationIntervalDaily TimeseriesAggregationInterval = original.TimeseriesAggregationIntervalDaily
TimeseriesAggregationIntervalHourly TimeseriesAggregationInterval = original.TimeseriesAggregationIntervalHourly
)

type TimeseriesType = original.TimeseriesType

const (
LatencyP50 TimeseriesType = original.LatencyP50
LatencyP75 TimeseriesType = original.LatencyP75
LatencyP95 TimeseriesType = original.LatencyP95
MeasurementCounts TimeseriesType = original.MeasurementCounts
)

type TransformType = original.TransformType

const (
Expand Down Expand Up @@ -323,11 +400,23 @@ type CheckNameAvailabilityOutput = original.CheckNameAvailabilityOutput
type CustomHTTPSConfiguration = original.CustomHTTPSConfiguration
type CustomRule = original.CustomRule
type CustomRuleList = original.CustomRuleList
type Endpoint = original.Endpoint
type EndpointsClient = original.EndpointsClient
type EndpointsPurgeContentFuture = original.EndpointsPurgeContentFuture
type Error = original.Error
type ErrorDetails = original.ErrorDetails
type ErrorResponse = original.ErrorResponse
type Experiment = original.Experiment
type ExperimentList = original.ExperimentList
type ExperimentListIterator = original.ExperimentListIterator
type ExperimentListPage = original.ExperimentListPage
type ExperimentProperties = original.ExperimentProperties
type ExperimentUpdateModel = original.ExperimentUpdateModel
type ExperimentUpdateProperties = original.ExperimentUpdateProperties
type ExperimentsClient = original.ExperimentsClient
type ExperimentsCreateOrUpdateFuture = original.ExperimentsCreateOrUpdateFuture
type ExperimentsDeleteFuture = original.ExperimentsDeleteFuture
type ExperimentsUpdateFuture = original.ExperimentsUpdateFuture
type ForwardingConfiguration = original.ForwardingConfiguration
type FrontDoor = original.FrontDoor
type FrontDoorsClient = original.FrontDoorsClient
Expand All @@ -350,6 +439,9 @@ type HealthProbeSettingsProperties = original.HealthProbeSettingsProperties
type HealthProbeSettingsUpdateParameters = original.HealthProbeSettingsUpdateParameters
type KeyVaultCertificateSourceParameters = original.KeyVaultCertificateSourceParameters
type KeyVaultCertificateSourceParametersVault = original.KeyVaultCertificateSourceParametersVault
type LatencyMetric = original.LatencyMetric
type LatencyScorecard = original.LatencyScorecard
type LatencyScorecardProperties = original.LatencyScorecardProperties
type ListResult = original.ListResult
type ListResultIterator = original.ListResultIterator
type ListResultPage = original.ListResultPage
Expand All @@ -358,6 +450,7 @@ type LoadBalancingSettingsModel = original.LoadBalancingSettingsModel
type LoadBalancingSettingsProperties = original.LoadBalancingSettingsProperties
type LoadBalancingSettingsUpdateParameters = original.LoadBalancingSettingsUpdateParameters
type ManagedRuleDefinition = original.ManagedRuleDefinition
type ManagedRuleExclusion = original.ManagedRuleExclusion
type ManagedRuleGroupDefinition = original.ManagedRuleGroupDefinition
type ManagedRuleGroupOverride = original.ManagedRuleGroupOverride
type ManagedRuleOverride = original.ManagedRuleOverride
Expand All @@ -370,13 +463,31 @@ type ManagedRuleSetDefinitionProperties = original.ManagedRuleSetDefinitionPrope
type ManagedRuleSetList = original.ManagedRuleSetList
type ManagedRuleSetsClient = original.ManagedRuleSetsClient
type MatchCondition = original.MatchCondition
type NetworkExperimentProfilesClient = original.NetworkExperimentProfilesClient
type NetworkExperimentProfilesCreateOrUpdateFuture = original.NetworkExperimentProfilesCreateOrUpdateFuture
type NetworkExperimentProfilesDeleteFuture = original.NetworkExperimentProfilesDeleteFuture
type NetworkExperimentProfilesUpdateFuture = original.NetworkExperimentProfilesUpdateFuture
type PoliciesClient = original.PoliciesClient
type PoliciesCreateOrUpdateFuture = original.PoliciesCreateOrUpdateFuture
type PoliciesDeleteFuture = original.PoliciesDeleteFuture
type PolicySettings = original.PolicySettings
type PreconfiguredEndpoint = original.PreconfiguredEndpoint
type PreconfiguredEndpointList = original.PreconfiguredEndpointList
type PreconfiguredEndpointListIterator = original.PreconfiguredEndpointListIterator
type PreconfiguredEndpointListPage = original.PreconfiguredEndpointListPage
type PreconfiguredEndpointProperties = original.PreconfiguredEndpointProperties
type PreconfiguredEndpointsClient = original.PreconfiguredEndpointsClient
type Profile = original.Profile
type ProfileList = original.ProfileList
type ProfileListIterator = original.ProfileListIterator
type ProfileListPage = original.ProfileListPage
type ProfileProperties = original.ProfileProperties
type ProfileUpdateModel = original.ProfileUpdateModel
type ProfileUpdateProperties = original.ProfileUpdateProperties
type Properties = original.Properties
type PurgeParameters = original.PurgeParameters
type RedirectConfiguration = original.RedirectConfiguration
type ReportsClient = original.ReportsClient
type Resource = original.Resource
type RouteConfiguration = original.RouteConfiguration
type RoutingRule = original.RoutingRule
Expand All @@ -385,6 +496,9 @@ type RoutingRuleProperties = original.RoutingRuleProperties
type RoutingRuleUpdateParameters = original.RoutingRuleUpdateParameters
type SubResource = original.SubResource
type TagsObject = original.TagsObject
type Timeseries = original.Timeseries
type TimeseriesDataPoint = original.TimeseriesDataPoint
type TimeseriesProperties = original.TimeseriesProperties
type UpdateParameters = original.UpdateParameters
type ValidateCustomDomainInput = original.ValidateCustomDomainInput
type ValidateCustomDomainOutput = original.ValidateCustomDomainOutput
Expand All @@ -403,6 +517,18 @@ func NewEndpointsClient(subscriptionID string) EndpointsClient {
func NewEndpointsClientWithBaseURI(baseURI string, subscriptionID string) EndpointsClient {
return original.NewEndpointsClientWithBaseURI(baseURI, subscriptionID)
}
func NewExperimentListIterator(page ExperimentListPage) ExperimentListIterator {
return original.NewExperimentListIterator(page)
}
func NewExperimentListPage(getNextPage func(context.Context, ExperimentList) (ExperimentList, error)) ExperimentListPage {
return original.NewExperimentListPage(getNextPage)
}
func NewExperimentsClient(subscriptionID string) ExperimentsClient {
return original.NewExperimentsClient(subscriptionID)
}
func NewExperimentsClientWithBaseURI(baseURI string, subscriptionID string) ExperimentsClient {
return original.NewExperimentsClientWithBaseURI(baseURI, subscriptionID)
}
func NewFrontDoorsClient(subscriptionID string) FrontDoorsClient {
return original.NewFrontDoorsClient(subscriptionID)
}
Expand Down Expand Up @@ -439,12 +565,42 @@ func NewManagedRuleSetsClient(subscriptionID string) ManagedRuleSetsClient {
func NewManagedRuleSetsClientWithBaseURI(baseURI string, subscriptionID string) ManagedRuleSetsClient {
return original.NewManagedRuleSetsClientWithBaseURI(baseURI, subscriptionID)
}
func NewNetworkExperimentProfilesClient(subscriptionID string) NetworkExperimentProfilesClient {
return original.NewNetworkExperimentProfilesClient(subscriptionID)
}
func NewNetworkExperimentProfilesClientWithBaseURI(baseURI string, subscriptionID string) NetworkExperimentProfilesClient {
return original.NewNetworkExperimentProfilesClientWithBaseURI(baseURI, subscriptionID)
}
func NewPoliciesClient(subscriptionID string) PoliciesClient {
return original.NewPoliciesClient(subscriptionID)
}
func NewPoliciesClientWithBaseURI(baseURI string, subscriptionID string) PoliciesClient {
return original.NewPoliciesClientWithBaseURI(baseURI, subscriptionID)
}
func NewPreconfiguredEndpointListIterator(page PreconfiguredEndpointListPage) PreconfiguredEndpointListIterator {
return original.NewPreconfiguredEndpointListIterator(page)
}
func NewPreconfiguredEndpointListPage(getNextPage func(context.Context, PreconfiguredEndpointList) (PreconfiguredEndpointList, error)) PreconfiguredEndpointListPage {
return original.NewPreconfiguredEndpointListPage(getNextPage)
}
func NewPreconfiguredEndpointsClient(subscriptionID string) PreconfiguredEndpointsClient {
return original.NewPreconfiguredEndpointsClient(subscriptionID)
}
func NewPreconfiguredEndpointsClientWithBaseURI(baseURI string, subscriptionID string) PreconfiguredEndpointsClient {
return original.NewPreconfiguredEndpointsClientWithBaseURI(baseURI, subscriptionID)
}
func NewProfileListIterator(page ProfileListPage) ProfileListIterator {
return original.NewProfileListIterator(page)
}
func NewProfileListPage(getNextPage func(context.Context, ProfileList) (ProfileList, error)) ProfileListPage {
return original.NewProfileListPage(getNextPage)
}
func NewReportsClient(subscriptionID string) ReportsClient {
return original.NewReportsClient(subscriptionID)
}
func NewReportsClientWithBaseURI(baseURI string, subscriptionID string) ReportsClient {
return original.NewReportsClientWithBaseURI(baseURI, subscriptionID)
}
func NewWebApplicationFirewallPolicyListIterator(page WebApplicationFirewallPolicyListPage) WebApplicationFirewallPolicyListIterator {
return original.NewWebApplicationFirewallPolicyListIterator(page)
}
Expand All @@ -457,6 +613,9 @@ func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
func PossibleActionTypeValues() []ActionType {
return original.PossibleActionTypeValues()
}
func PossibleAggregationIntervalValues() []AggregationInterval {
return original.PossibleAggregationIntervalValues()
}
func PossibleAvailabilityValues() []Availability {
return original.PossibleAvailabilityValues()
}
Expand Down Expand Up @@ -484,6 +643,9 @@ func PossibleDynamicCompressionEnabledValues() []DynamicCompressionEnabled {
func PossibleEnabledStateValues() []EnabledState {
return original.PossibleEnabledStateValues()
}
func PossibleEndpointTypeValues() []EndpointType {
return original.PossibleEndpointTypeValues()
}
func PossibleEnforceCertificateNameCheckEnabledStateValues() []EnforceCertificateNameCheckEnabledState {
return original.PossibleEnforceCertificateNameCheckEnabledStateValues()
}
Expand All @@ -496,15 +658,27 @@ func PossibleHealthProbeEnabledValues() []HealthProbeEnabled {
func PossibleHealthProbeMethodValues() []HealthProbeMethod {
return original.PossibleHealthProbeMethodValues()
}
func PossibleLatencyScorecardAggregationIntervalValues() []LatencyScorecardAggregationInterval {
return original.PossibleLatencyScorecardAggregationIntervalValues()
}
func PossibleManagedRuleEnabledStateValues() []ManagedRuleEnabledState {
return original.PossibleManagedRuleEnabledStateValues()
}
func PossibleManagedRuleExclusionMatchVariableValues() []ManagedRuleExclusionMatchVariable {
return original.PossibleManagedRuleExclusionMatchVariableValues()
}
func PossibleManagedRuleExclusionSelectorMatchOperatorValues() []ManagedRuleExclusionSelectorMatchOperator {
return original.PossibleManagedRuleExclusionSelectorMatchOperatorValues()
}
func PossibleMatchVariableValues() []MatchVariable {
return original.PossibleMatchVariableValues()
}
func PossibleMinimumTLSVersionValues() []MinimumTLSVersion {
return original.PossibleMinimumTLSVersionValues()
}
func PossibleNetworkExperimentResourceStateValues() []NetworkExperimentResourceState {
return original.PossibleNetworkExperimentResourceStateValues()
}
func PossibleNetworkOperationStatusValues() []NetworkOperationStatus {
return original.PossibleNetworkOperationStatusValues()
}
Expand Down Expand Up @@ -550,6 +724,15 @@ func PossibleRuleTypeValues() []RuleType {
func PossibleSessionAffinityEnabledStateValues() []SessionAffinityEnabledState {
return original.PossibleSessionAffinityEnabledStateValues()
}
func PossibleStateValues() []State {
return original.PossibleStateValues()
}
func PossibleTimeseriesAggregationIntervalValues() []TimeseriesAggregationInterval {
return original.PossibleTimeseriesAggregationIntervalValues()
}
func PossibleTimeseriesTypeValues() []TimeseriesType {
return original.PossibleTimeseriesTypeValues()
}
func PossibleTransformTypeValues() []TransformType {
return original.PossibleTransformTypeValues()
}
Expand Down
Loading

0 comments on commit a1bfbd8

Please sign in to comment.