Skip to content

Commit

Permalink
Generated from 3d52a28322664ab7059521562493398366e27ad7 (Azure#5164)
Browse files Browse the repository at this point in the history
add missing alertsmanagement packages to Go SDK
  • Loading branch information
AutorestCI authored and jhendrixMSFT committed Jul 3, 2019
1 parent f97d434 commit 41b97d3
Show file tree
Hide file tree
Showing 15 changed files with 3,257 additions and 115 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@

package alertsmanagementapi

import original "github.com/Azure/azure-sdk-for-go/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement/alertsmanagementapi"
import original "github.com/Azure/azure-sdk-for-go/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/alertsmanagementapi"

type AlertsClientAPI = original.AlertsClientAPI
type OperationsClientAPI = original.OperationsClientAPI
type SmartDetectorAlertRulesClientAPI = original.SmartDetectorAlertRulesClientAPI
type SmartGroupsClientAPI = original.SmartGroupsClientAPI
74 changes: 50 additions & 24 deletions profiles/latest/alertsmanagement/mgmt/alertsmanagement/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ package alertsmanagement
import (
"context"

original "github.com/Azure/azure-sdk-for-go/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement"
original "github.com/Azure/azure-sdk-for-go/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement"
)

const (
Expand All @@ -37,6 +37,13 @@ const (
StateChange AlertModificationEvent = original.StateChange
)

type AlertRuleState = original.AlertRuleState

const (
Disabled AlertRuleState = original.Disabled
Enabled AlertRuleState = original.Enabled
)

type AlertState = original.AlertState

const (
Expand Down Expand Up @@ -90,6 +97,7 @@ const (
LogAnalytics MonitorService = original.LogAnalytics
Nagios MonitorService = original.Nagios
Platform MonitorService = original.Platform
ResourceHealth MonitorService = original.ResourceHealth
SCOM MonitorService = original.SCOM
ServiceHealth MonitorService = original.ServiceHealth
SmartDetector MonitorService = original.SmartDetector
Expand Down Expand Up @@ -151,20 +159,29 @@ const (
ThreeZerod TimeRange = original.ThreeZerod
)

type ActionGroupsInformation = original.ActionGroupsInformation
type Alert = original.Alert
type AlertModification = original.AlertModification
type AlertModificationItem = original.AlertModificationItem
type AlertModificationProperties = original.AlertModificationProperties
type AlertProperties = original.AlertProperties
type AlertRule = original.AlertRule
type AlertRuleProperties = original.AlertRuleProperties
type AlertRulesList = original.AlertRulesList
type AlertRulesListIterator = original.AlertRulesListIterator
type AlertRulesListPage = original.AlertRulesListPage
type AlertsClient = original.AlertsClient
type AlertsList = original.AlertsList
type AlertsListIterator = original.AlertsListIterator
type AlertsListPage = original.AlertsListPage
type AlertsSummary = original.AlertsSummary
type AlertsSummaryGroup = original.AlertsSummaryGroup
type AlertsSummaryGroupItem = original.AlertsSummaryGroupItem
type AzureResource = original.AzureResource
type BaseClient = original.BaseClient
type Detector = original.Detector
type ErrorResponse = original.ErrorResponse
type ErrorResponse1 = original.ErrorResponse1
type ErrorResponseBody = original.ErrorResponseBody
type Essentials = original.Essentials
type Operation = original.Operation
Expand All @@ -173,7 +190,8 @@ type OperationsClient = original.OperationsClient
type OperationsList = original.OperationsList
type OperationsListIterator = original.OperationsListIterator
type OperationsListPage = original.OperationsListPage
type Resource = original.Resource
type ProxyResource = original.ProxyResource
type SmartDetectorAlertRulesClient = original.SmartDetectorAlertRulesClient
type SmartGroup = original.SmartGroup
type SmartGroupAggregatedProperty = original.SmartGroupAggregatedProperty
type SmartGroupModification = original.SmartGroupModification
Expand All @@ -182,54 +200,62 @@ type SmartGroupModificationProperties = original.SmartGroupModificationPropertie
type SmartGroupProperties = original.SmartGroupProperties
type SmartGroupsClient = original.SmartGroupsClient
type SmartGroupsList = original.SmartGroupsList
type SmartGroupsListIterator = original.SmartGroupsListIterator
type SmartGroupsListPage = original.SmartGroupsListPage
type ThrottlingInformation = original.ThrottlingInformation

func New(subscriptionID string) BaseClient {
return original.New(subscriptionID)
func New(scope string, subscriptionID string, subscriptionID1 string) BaseClient {
return original.New(scope, subscriptionID, subscriptionID1)
}
func NewAlertsClient(subscriptionID string) AlertsClient {
return original.NewAlertsClient(subscriptionID)
func NewAlertRulesListIterator(page AlertRulesListPage) AlertRulesListIterator {
return original.NewAlertRulesListIterator(page)
}
func NewAlertsClientWithBaseURI(baseURI string, subscriptionID string) AlertsClient {
return original.NewAlertsClientWithBaseURI(baseURI, subscriptionID)
func NewAlertRulesListPage(getNextPage func(context.Context, AlertRulesList) (AlertRulesList, error)) AlertRulesListPage {
return original.NewAlertRulesListPage(getNextPage)
}
func NewAlertsClient(scope string, subscriptionID string, subscriptionID1 string) AlertsClient {
return original.NewAlertsClient(scope, subscriptionID, subscriptionID1)
}
func NewAlertsClientWithBaseURI(baseURI string, scope string, subscriptionID string, subscriptionID1 string) AlertsClient {
return original.NewAlertsClientWithBaseURI(baseURI, scope, subscriptionID, subscriptionID1)
}
func NewAlertsListIterator(page AlertsListPage) AlertsListIterator {
return original.NewAlertsListIterator(page)
}
func NewAlertsListPage(getNextPage func(context.Context, AlertsList) (AlertsList, error)) AlertsListPage {
return original.NewAlertsListPage(getNextPage)
}
func NewOperationsClient(subscriptionID string) OperationsClient {
return original.NewOperationsClient(subscriptionID)
func NewOperationsClient(scope string, subscriptionID string, subscriptionID1 string) OperationsClient {
return original.NewOperationsClient(scope, subscriptionID, subscriptionID1)
}
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID)
func NewOperationsClientWithBaseURI(baseURI string, scope string, subscriptionID string, subscriptionID1 string) OperationsClient {
return original.NewOperationsClientWithBaseURI(baseURI, scope, subscriptionID, subscriptionID1)
}
func NewOperationsListIterator(page OperationsListPage) OperationsListIterator {
return original.NewOperationsListIterator(page)
}
func NewOperationsListPage(getNextPage func(context.Context, OperationsList) (OperationsList, error)) OperationsListPage {
return original.NewOperationsListPage(getNextPage)
}
func NewSmartGroupsClient(subscriptionID string) SmartGroupsClient {
return original.NewSmartGroupsClient(subscriptionID)
func NewSmartDetectorAlertRulesClient(scope string, subscriptionID string, subscriptionID1 string) SmartDetectorAlertRulesClient {
return original.NewSmartDetectorAlertRulesClient(scope, subscriptionID, subscriptionID1)
}
func NewSmartGroupsClientWithBaseURI(baseURI string, subscriptionID string) SmartGroupsClient {
return original.NewSmartGroupsClientWithBaseURI(baseURI, subscriptionID)
func NewSmartDetectorAlertRulesClientWithBaseURI(baseURI string, scope string, subscriptionID string, subscriptionID1 string) SmartDetectorAlertRulesClient {
return original.NewSmartDetectorAlertRulesClientWithBaseURI(baseURI, scope, subscriptionID, subscriptionID1)
}
func NewSmartGroupsListIterator(page SmartGroupsListPage) SmartGroupsListIterator {
return original.NewSmartGroupsListIterator(page)
func NewSmartGroupsClient(scope string, subscriptionID string, subscriptionID1 string) SmartGroupsClient {
return original.NewSmartGroupsClient(scope, subscriptionID, subscriptionID1)
}
func NewSmartGroupsListPage(getNextPage func(context.Context, SmartGroupsList) (SmartGroupsList, error)) SmartGroupsListPage {
return original.NewSmartGroupsListPage(getNextPage)
func NewSmartGroupsClientWithBaseURI(baseURI string, scope string, subscriptionID string, subscriptionID1 string) SmartGroupsClient {
return original.NewSmartGroupsClientWithBaseURI(baseURI, scope, subscriptionID, subscriptionID1)
}
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return original.NewWithBaseURI(baseURI, subscriptionID)
func NewWithBaseURI(baseURI string, scope string, subscriptionID string, subscriptionID1 string) BaseClient {
return original.NewWithBaseURI(baseURI, scope, subscriptionID, subscriptionID1)
}
func PossibleAlertModificationEventValues() []AlertModificationEvent {
return original.PossibleAlertModificationEventValues()
}
func PossibleAlertRuleStateValues() []AlertRuleState {
return original.PossibleAlertRuleStateValues()
}
func PossibleAlertStateValues() []AlertState {
return original.PossibleAlertStateValues()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@

package alertsmanagementapi

import original "github.com/Azure/azure-sdk-for-go/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement/alertsmanagementapi"
import original "github.com/Azure/azure-sdk-for-go/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/alertsmanagementapi"

type AlertsClientAPI = original.AlertsClientAPI
type OperationsClientAPI = original.OperationsClientAPI
type SmartDetectorAlertRulesClientAPI = original.SmartDetectorAlertRulesClientAPI
type SmartGroupsClientAPI = original.SmartGroupsClientAPI
74 changes: 50 additions & 24 deletions profiles/preview/alertsmanagement/mgmt/alertsmanagement/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ package alertsmanagement
import (
"context"

original "github.com/Azure/azure-sdk-for-go/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement"
original "github.com/Azure/azure-sdk-for-go/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement"
)

const (
Expand All @@ -37,6 +37,13 @@ const (
StateChange AlertModificationEvent = original.StateChange
)

type AlertRuleState = original.AlertRuleState

const (
Disabled AlertRuleState = original.Disabled
Enabled AlertRuleState = original.Enabled
)

type AlertState = original.AlertState

const (
Expand Down Expand Up @@ -90,6 +97,7 @@ const (
LogAnalytics MonitorService = original.LogAnalytics
Nagios MonitorService = original.Nagios
Platform MonitorService = original.Platform
ResourceHealth MonitorService = original.ResourceHealth
SCOM MonitorService = original.SCOM
ServiceHealth MonitorService = original.ServiceHealth
SmartDetector MonitorService = original.SmartDetector
Expand Down Expand Up @@ -151,20 +159,29 @@ const (
ThreeZerod TimeRange = original.ThreeZerod
)

type ActionGroupsInformation = original.ActionGroupsInformation
type Alert = original.Alert
type AlertModification = original.AlertModification
type AlertModificationItem = original.AlertModificationItem
type AlertModificationProperties = original.AlertModificationProperties
type AlertProperties = original.AlertProperties
type AlertRule = original.AlertRule
type AlertRuleProperties = original.AlertRuleProperties
type AlertRulesList = original.AlertRulesList
type AlertRulesListIterator = original.AlertRulesListIterator
type AlertRulesListPage = original.AlertRulesListPage
type AlertsClient = original.AlertsClient
type AlertsList = original.AlertsList
type AlertsListIterator = original.AlertsListIterator
type AlertsListPage = original.AlertsListPage
type AlertsSummary = original.AlertsSummary
type AlertsSummaryGroup = original.AlertsSummaryGroup
type AlertsSummaryGroupItem = original.AlertsSummaryGroupItem
type AzureResource = original.AzureResource
type BaseClient = original.BaseClient
type Detector = original.Detector
type ErrorResponse = original.ErrorResponse
type ErrorResponse1 = original.ErrorResponse1
type ErrorResponseBody = original.ErrorResponseBody
type Essentials = original.Essentials
type Operation = original.Operation
Expand All @@ -173,7 +190,8 @@ type OperationsClient = original.OperationsClient
type OperationsList = original.OperationsList
type OperationsListIterator = original.OperationsListIterator
type OperationsListPage = original.OperationsListPage
type Resource = original.Resource
type ProxyResource = original.ProxyResource
type SmartDetectorAlertRulesClient = original.SmartDetectorAlertRulesClient
type SmartGroup = original.SmartGroup
type SmartGroupAggregatedProperty = original.SmartGroupAggregatedProperty
type SmartGroupModification = original.SmartGroupModification
Expand All @@ -182,54 +200,62 @@ type SmartGroupModificationProperties = original.SmartGroupModificationPropertie
type SmartGroupProperties = original.SmartGroupProperties
type SmartGroupsClient = original.SmartGroupsClient
type SmartGroupsList = original.SmartGroupsList
type SmartGroupsListIterator = original.SmartGroupsListIterator
type SmartGroupsListPage = original.SmartGroupsListPage
type ThrottlingInformation = original.ThrottlingInformation

func New(subscriptionID string) BaseClient {
return original.New(subscriptionID)
func New(scope string, subscriptionID string, subscriptionID1 string) BaseClient {
return original.New(scope, subscriptionID, subscriptionID1)
}
func NewAlertsClient(subscriptionID string) AlertsClient {
return original.NewAlertsClient(subscriptionID)
func NewAlertRulesListIterator(page AlertRulesListPage) AlertRulesListIterator {
return original.NewAlertRulesListIterator(page)
}
func NewAlertsClientWithBaseURI(baseURI string, subscriptionID string) AlertsClient {
return original.NewAlertsClientWithBaseURI(baseURI, subscriptionID)
func NewAlertRulesListPage(getNextPage func(context.Context, AlertRulesList) (AlertRulesList, error)) AlertRulesListPage {
return original.NewAlertRulesListPage(getNextPage)
}
func NewAlertsClient(scope string, subscriptionID string, subscriptionID1 string) AlertsClient {
return original.NewAlertsClient(scope, subscriptionID, subscriptionID1)
}
func NewAlertsClientWithBaseURI(baseURI string, scope string, subscriptionID string, subscriptionID1 string) AlertsClient {
return original.NewAlertsClientWithBaseURI(baseURI, scope, subscriptionID, subscriptionID1)
}
func NewAlertsListIterator(page AlertsListPage) AlertsListIterator {
return original.NewAlertsListIterator(page)
}
func NewAlertsListPage(getNextPage func(context.Context, AlertsList) (AlertsList, error)) AlertsListPage {
return original.NewAlertsListPage(getNextPage)
}
func NewOperationsClient(subscriptionID string) OperationsClient {
return original.NewOperationsClient(subscriptionID)
func NewOperationsClient(scope string, subscriptionID string, subscriptionID1 string) OperationsClient {
return original.NewOperationsClient(scope, subscriptionID, subscriptionID1)
}
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID)
func NewOperationsClientWithBaseURI(baseURI string, scope string, subscriptionID string, subscriptionID1 string) OperationsClient {
return original.NewOperationsClientWithBaseURI(baseURI, scope, subscriptionID, subscriptionID1)
}
func NewOperationsListIterator(page OperationsListPage) OperationsListIterator {
return original.NewOperationsListIterator(page)
}
func NewOperationsListPage(getNextPage func(context.Context, OperationsList) (OperationsList, error)) OperationsListPage {
return original.NewOperationsListPage(getNextPage)
}
func NewSmartGroupsClient(subscriptionID string) SmartGroupsClient {
return original.NewSmartGroupsClient(subscriptionID)
func NewSmartDetectorAlertRulesClient(scope string, subscriptionID string, subscriptionID1 string) SmartDetectorAlertRulesClient {
return original.NewSmartDetectorAlertRulesClient(scope, subscriptionID, subscriptionID1)
}
func NewSmartGroupsClientWithBaseURI(baseURI string, subscriptionID string) SmartGroupsClient {
return original.NewSmartGroupsClientWithBaseURI(baseURI, subscriptionID)
func NewSmartDetectorAlertRulesClientWithBaseURI(baseURI string, scope string, subscriptionID string, subscriptionID1 string) SmartDetectorAlertRulesClient {
return original.NewSmartDetectorAlertRulesClientWithBaseURI(baseURI, scope, subscriptionID, subscriptionID1)
}
func NewSmartGroupsListIterator(page SmartGroupsListPage) SmartGroupsListIterator {
return original.NewSmartGroupsListIterator(page)
func NewSmartGroupsClient(scope string, subscriptionID string, subscriptionID1 string) SmartGroupsClient {
return original.NewSmartGroupsClient(scope, subscriptionID, subscriptionID1)
}
func NewSmartGroupsListPage(getNextPage func(context.Context, SmartGroupsList) (SmartGroupsList, error)) SmartGroupsListPage {
return original.NewSmartGroupsListPage(getNextPage)
func NewSmartGroupsClientWithBaseURI(baseURI string, scope string, subscriptionID string, subscriptionID1 string) SmartGroupsClient {
return original.NewSmartGroupsClientWithBaseURI(baseURI, scope, subscriptionID, subscriptionID1)
}
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return original.NewWithBaseURI(baseURI, subscriptionID)
func NewWithBaseURI(baseURI string, scope string, subscriptionID string, subscriptionID1 string) BaseClient {
return original.NewWithBaseURI(baseURI, scope, subscriptionID, subscriptionID1)
}
func PossibleAlertModificationEventValues() []AlertModificationEvent {
return original.PossibleAlertModificationEventValues()
}
func PossibleAlertRuleStateValues() []AlertRuleState {
return original.PossibleAlertRuleStateValues()
}
func PossibleAlertStateValues() []AlertState {
return original.PossibleAlertStateValues()
}
Expand Down
Loading

0 comments on commit 41b97d3

Please sign in to comment.