diff --git a/services/monitor/mgmt/2017-05-01-preview/insights/actiongroups.go b/services/monitor/mgmt/2017-05-01-preview/insights/actiongroups.go
index 0d3031bab37b..8644cf1ecb28 100644
--- a/services/monitor/mgmt/2017-05-01-preview/insights/actiongroups.go
+++ b/services/monitor/mgmt/2017-05-01-preview/insights/actiongroups.go
@@ -25,35 +25,32 @@ import (
"net/http"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ActionGroupsClient is the monitor Management Client
type ActionGroupsClient struct {
BaseClient
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// NewActionGroupsClient creates an instance of the ActionGroupsClient client.
func NewActionGroupsClient(subscriptionID string) ActionGroupsClient {
return NewActionGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// NewActionGroupsClientWithBaseURI creates an instance of the ActionGroupsClient client.
func NewActionGroupsClientWithBaseURI(baseURI string, subscriptionID string) ActionGroupsClient {
return ActionGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// CreateOrUpdate create a new action group or update an existing one.
-//
-// resourceGroupName is the name of the resource group. actionGroupName is the name of the action group.
-// actionGroup is the action group to create or use for the update.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// actionGroupName - the name of the action group.
+// actionGroup - the action group to create or use for the update.
func (client ActionGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, actionGroupName string, actionGroup ActionGroupResource) (result ActionGroupResource, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: actionGroup,
Constraints: []validation.Constraint{{Target: "actionGroup.ActionGroup", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "actionGroup.ActionGroup.GroupShortName", Name: validation.Null, Rule: true,
- Chain: []validation.Constraint{{Target: "actionGroup.ActionGroup.GroupShortName", Name: validation.MaxLength, Rule: 12, Chain: nil}}},
+ Chain: []validation.Constraint{{Target: "actionGroup.ActionGroup.GroupShortName", Name: validation.MaxLength, Rule: 15, Chain: nil}}},
{Target: "actionGroup.ActionGroup.Enabled", Name: validation.Null, Rule: true, Chain: nil},
}}}}}); err != nil {
return result, validation.NewError("insights.ActionGroupsClient", "CreateOrUpdate", err.Error())
@@ -80,7 +77,6 @@ func (client ActionGroupsClient) CreateOrUpdate(ctx context.Context, resourceGro
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client ActionGroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, actionGroupName string, actionGroup ActionGroupResource) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -104,7 +100,6 @@ func (client ActionGroupsClient) CreateOrUpdatePreparer(ctx context.Context, res
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
// http.Response Body if it receives an error.
func (client ActionGroupsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
@@ -112,7 +107,6 @@ func (client ActionGroupsClient) CreateOrUpdateSender(req *http.Request) (*http.
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
// closes the http.Response Body.
func (client ActionGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result ActionGroupResource, err error) {
@@ -126,10 +120,10 @@ func (client ActionGroupsClient) CreateOrUpdateResponder(resp *http.Response) (r
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// Delete delete an action group.
-//
-// resourceGroupName is the name of the resource group. actionGroupName is the name of the action group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// actionGroupName - the name of the action group.
func (client ActionGroupsClient) Delete(ctx context.Context, resourceGroupName string, actionGroupName string) (result autorest.Response, err error) {
req, err := client.DeletePreparer(ctx, resourceGroupName, actionGroupName)
if err != nil {
@@ -152,7 +146,6 @@ func (client ActionGroupsClient) Delete(ctx context.Context, resourceGroupName s
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// DeletePreparer prepares the Delete request.
func (client ActionGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, actionGroupName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -174,7 +167,6 @@ func (client ActionGroupsClient) DeletePreparer(ctx context.Context, resourceGro
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
func (client ActionGroupsClient) DeleteSender(req *http.Request) (*http.Response, error) {
@@ -182,7 +174,6 @@ func (client ActionGroupsClient) DeleteSender(req *http.Request) (*http.Response
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// DeleteResponder handles the response to the Delete request. The method always
// closes the http.Response Body.
func (client ActionGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
@@ -195,11 +186,11 @@ func (client ActionGroupsClient) DeleteResponder(resp *http.Response) (result au
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// EnableReceiver enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled.
-//
-// resourceGroupName is the name of the resource group. actionGroupName is the name of the action group.
-// enableRequest is the receiver to re-enable.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// actionGroupName - the name of the action group.
+// enableRequest - the receiver to re-enable.
func (client ActionGroupsClient) EnableReceiver(ctx context.Context, resourceGroupName string, actionGroupName string, enableRequest EnableRequest) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: enableRequest,
@@ -228,7 +219,6 @@ func (client ActionGroupsClient) EnableReceiver(ctx context.Context, resourceGro
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// EnableReceiverPreparer prepares the EnableReceiver request.
func (client ActionGroupsClient) EnableReceiverPreparer(ctx context.Context, resourceGroupName string, actionGroupName string, enableRequest EnableRequest) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -252,7 +242,6 @@ func (client ActionGroupsClient) EnableReceiverPreparer(ctx context.Context, res
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// EnableReceiverSender sends the EnableReceiver request. The method will close the
// http.Response Body if it receives an error.
func (client ActionGroupsClient) EnableReceiverSender(req *http.Request) (*http.Response, error) {
@@ -260,7 +249,6 @@ func (client ActionGroupsClient) EnableReceiverSender(req *http.Request) (*http.
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// EnableReceiverResponder handles the response to the EnableReceiver request. The method always
// closes the http.Response Body.
func (client ActionGroupsClient) EnableReceiverResponder(resp *http.Response) (result autorest.Response, err error) {
@@ -273,10 +261,10 @@ func (client ActionGroupsClient) EnableReceiverResponder(resp *http.Response) (r
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// Get get an action group.
-//
-// resourceGroupName is the name of the resource group. actionGroupName is the name of the action group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// actionGroupName - the name of the action group.
func (client ActionGroupsClient) Get(ctx context.Context, resourceGroupName string, actionGroupName string) (result ActionGroupResource, err error) {
req, err := client.GetPreparer(ctx, resourceGroupName, actionGroupName)
if err != nil {
@@ -299,7 +287,6 @@ func (client ActionGroupsClient) Get(ctx context.Context, resourceGroupName stri
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// GetPreparer prepares the Get request.
func (client ActionGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, actionGroupName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -321,7 +308,6 @@ func (client ActionGroupsClient) GetPreparer(ctx context.Context, resourceGroupN
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client ActionGroupsClient) GetSender(req *http.Request) (*http.Response, error) {
@@ -329,7 +315,6 @@ func (client ActionGroupsClient) GetSender(req *http.Request) (*http.Response, e
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client ActionGroupsClient) GetResponder(resp *http.Response) (result ActionGroupResource, err error) {
@@ -343,10 +328,9 @@ func (client ActionGroupsClient) GetResponder(resp *http.Response) (result Actio
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListByResourceGroup get a list of all action groups in a resource group.
-//
-// resourceGroupName is the name of the resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
func (client ActionGroupsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ActionGroupList, err error) {
req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName)
if err != nil {
@@ -369,7 +353,6 @@ func (client ActionGroupsClient) ListByResourceGroup(ctx context.Context, resour
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (client ActionGroupsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -390,7 +373,6 @@ func (client ActionGroupsClient) ListByResourceGroupPreparer(ctx context.Context
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
// http.Response Body if it receives an error.
func (client ActionGroupsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
@@ -398,7 +380,6 @@ func (client ActionGroupsClient) ListByResourceGroupSender(req *http.Request) (*
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
// closes the http.Response Body.
func (client ActionGroupsClient) ListByResourceGroupResponder(resp *http.Response) (result ActionGroupList, err error) {
@@ -412,7 +393,6 @@ func (client ActionGroupsClient) ListByResourceGroupResponder(resp *http.Respons
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListBySubscriptionID get a list of all action groups in a subscription.
func (client ActionGroupsClient) ListBySubscriptionID(ctx context.Context) (result ActionGroupList, err error) {
req, err := client.ListBySubscriptionIDPreparer(ctx)
@@ -436,7 +416,6 @@ func (client ActionGroupsClient) ListBySubscriptionID(ctx context.Context) (resu
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListBySubscriptionIDPreparer prepares the ListBySubscriptionID request.
func (client ActionGroupsClient) ListBySubscriptionIDPreparer(ctx context.Context) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -456,7 +435,6 @@ func (client ActionGroupsClient) ListBySubscriptionIDPreparer(ctx context.Contex
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListBySubscriptionIDSender sends the ListBySubscriptionID request. The method will close the
// http.Response Body if it receives an error.
func (client ActionGroupsClient) ListBySubscriptionIDSender(req *http.Request) (*http.Response, error) {
@@ -464,7 +442,6 @@ func (client ActionGroupsClient) ListBySubscriptionIDSender(req *http.Request) (
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListBySubscriptionIDResponder handles the response to the ListBySubscriptionID request. The method always
// closes the http.Response Body.
func (client ActionGroupsClient) ListBySubscriptionIDResponder(resp *http.Response) (result ActionGroupList, err error) {
@@ -478,11 +455,11 @@ func (client ActionGroupsClient) ListBySubscriptionIDResponder(resp *http.Respon
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// Update updates an existing action group's tags. To update other fields use the CreateOrUpdate method.
-//
-// resourceGroupName is the name of the resource group. actionGroupName is the name of the action group.
-// actionGroupPatch is parameters supplied to the operation.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// actionGroupName - the name of the action group.
+// actionGroupPatch - parameters supplied to the operation.
func (client ActionGroupsClient) Update(ctx context.Context, resourceGroupName string, actionGroupName string, actionGroupPatch ActionGroupPatchBody) (result ActionGroupResource, err error) {
req, err := client.UpdatePreparer(ctx, resourceGroupName, actionGroupName, actionGroupPatch)
if err != nil {
@@ -505,7 +482,6 @@ func (client ActionGroupsClient) Update(ctx context.Context, resourceGroupName s
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UpdatePreparer prepares the Update request.
func (client ActionGroupsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, actionGroupName string, actionGroupPatch ActionGroupPatchBody) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -529,7 +505,6 @@ func (client ActionGroupsClient) UpdatePreparer(ctx context.Context, resourceGro
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UpdateSender sends the Update request. The method will close the
// http.Response Body if it receives an error.
func (client ActionGroupsClient) UpdateSender(req *http.Request) (*http.Response, error) {
@@ -537,7 +512,6 @@ func (client ActionGroupsClient) UpdateSender(req *http.Request) (*http.Response
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UpdateResponder handles the response to the Update request. The method always
// closes the http.Response Body.
func (client ActionGroupsClient) UpdateResponder(resp *http.Response) (result ActionGroupResource, err error) {
diff --git a/services/monitor/mgmt/2017-05-01-preview/insights/activitylogalerts.go b/services/monitor/mgmt/2017-05-01-preview/insights/activitylogalerts.go
index ce4ed0650ab5..9b86523b802c 100644
--- a/services/monitor/mgmt/2017-05-01-preview/insights/activitylogalerts.go
+++ b/services/monitor/mgmt/2017-05-01-preview/insights/activitylogalerts.go
@@ -25,29 +25,26 @@ import (
"net/http"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ActivityLogAlertsClient is the monitor Management Client
type ActivityLogAlertsClient struct {
BaseClient
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// NewActivityLogAlertsClient creates an instance of the ActivityLogAlertsClient client.
func NewActivityLogAlertsClient(subscriptionID string) ActivityLogAlertsClient {
return NewActivityLogAlertsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// NewActivityLogAlertsClientWithBaseURI creates an instance of the ActivityLogAlertsClient client.
func NewActivityLogAlertsClientWithBaseURI(baseURI string, subscriptionID string) ActivityLogAlertsClient {
return ActivityLogAlertsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// CreateOrUpdate create a new activity log alert or update an existing one.
-//
-// resourceGroupName is the name of the resource group. activityLogAlertName is the name of the activity log alert.
-// activityLogAlert is the activity log alert to create or use for the update.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// activityLogAlertName - the name of the activity log alert.
+// activityLogAlert - the activity log alert to create or use for the update.
func (client ActivityLogAlertsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, activityLogAlertName string, activityLogAlert ActivityLogAlertResource) (result ActivityLogAlertResource, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: activityLogAlert,
@@ -81,7 +78,6 @@ func (client ActivityLogAlertsClient) CreateOrUpdate(ctx context.Context, resour
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client ActivityLogAlertsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, activityLogAlertName string, activityLogAlert ActivityLogAlertResource) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -105,7 +101,6 @@ func (client ActivityLogAlertsClient) CreateOrUpdatePreparer(ctx context.Context
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
// http.Response Body if it receives an error.
func (client ActivityLogAlertsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
@@ -113,7 +108,6 @@ func (client ActivityLogAlertsClient) CreateOrUpdateSender(req *http.Request) (*
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
// closes the http.Response Body.
func (client ActivityLogAlertsClient) CreateOrUpdateResponder(resp *http.Response) (result ActivityLogAlertResource, err error) {
@@ -127,10 +121,10 @@ func (client ActivityLogAlertsClient) CreateOrUpdateResponder(resp *http.Respons
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// Delete delete an activity log alert.
-//
-// resourceGroupName is the name of the resource group. activityLogAlertName is the name of the activity log alert.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// activityLogAlertName - the name of the activity log alert.
func (client ActivityLogAlertsClient) Delete(ctx context.Context, resourceGroupName string, activityLogAlertName string) (result autorest.Response, err error) {
req, err := client.DeletePreparer(ctx, resourceGroupName, activityLogAlertName)
if err != nil {
@@ -153,7 +147,6 @@ func (client ActivityLogAlertsClient) Delete(ctx context.Context, resourceGroupN
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// DeletePreparer prepares the Delete request.
func (client ActivityLogAlertsClient) DeletePreparer(ctx context.Context, resourceGroupName string, activityLogAlertName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -175,7 +168,6 @@ func (client ActivityLogAlertsClient) DeletePreparer(ctx context.Context, resour
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
func (client ActivityLogAlertsClient) DeleteSender(req *http.Request) (*http.Response, error) {
@@ -183,7 +175,6 @@ func (client ActivityLogAlertsClient) DeleteSender(req *http.Request) (*http.Res
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// DeleteResponder handles the response to the Delete request. The method always
// closes the http.Response Body.
func (client ActivityLogAlertsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
@@ -196,10 +187,10 @@ func (client ActivityLogAlertsClient) DeleteResponder(resp *http.Response) (resu
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// Get get an activity log alert.
-//
-// resourceGroupName is the name of the resource group. activityLogAlertName is the name of the activity log alert.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// activityLogAlertName - the name of the activity log alert.
func (client ActivityLogAlertsClient) Get(ctx context.Context, resourceGroupName string, activityLogAlertName string) (result ActivityLogAlertResource, err error) {
req, err := client.GetPreparer(ctx, resourceGroupName, activityLogAlertName)
if err != nil {
@@ -222,7 +213,6 @@ func (client ActivityLogAlertsClient) Get(ctx context.Context, resourceGroupName
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// GetPreparer prepares the Get request.
func (client ActivityLogAlertsClient) GetPreparer(ctx context.Context, resourceGroupName string, activityLogAlertName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -244,7 +234,6 @@ func (client ActivityLogAlertsClient) GetPreparer(ctx context.Context, resourceG
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client ActivityLogAlertsClient) GetSender(req *http.Request) (*http.Response, error) {
@@ -252,7 +241,6 @@ func (client ActivityLogAlertsClient) GetSender(req *http.Request) (*http.Respon
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client ActivityLogAlertsClient) GetResponder(resp *http.Response) (result ActivityLogAlertResource, err error) {
@@ -266,10 +254,9 @@ func (client ActivityLogAlertsClient) GetResponder(resp *http.Response) (result
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListByResourceGroup get a list of all activity log alerts in a resource group.
-//
-// resourceGroupName is the name of the resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
func (client ActivityLogAlertsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ActivityLogAlertList, err error) {
req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName)
if err != nil {
@@ -292,7 +279,6 @@ func (client ActivityLogAlertsClient) ListByResourceGroup(ctx context.Context, r
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (client ActivityLogAlertsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -313,7 +299,6 @@ func (client ActivityLogAlertsClient) ListByResourceGroupPreparer(ctx context.Co
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
// http.Response Body if it receives an error.
func (client ActivityLogAlertsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
@@ -321,7 +306,6 @@ func (client ActivityLogAlertsClient) ListByResourceGroupSender(req *http.Reques
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
// closes the http.Response Body.
func (client ActivityLogAlertsClient) ListByResourceGroupResponder(resp *http.Response) (result ActivityLogAlertList, err error) {
@@ -335,7 +319,6 @@ func (client ActivityLogAlertsClient) ListByResourceGroupResponder(resp *http.Re
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListBySubscriptionID get a list of all activity log alerts in a subscription.
func (client ActivityLogAlertsClient) ListBySubscriptionID(ctx context.Context) (result ActivityLogAlertList, err error) {
req, err := client.ListBySubscriptionIDPreparer(ctx)
@@ -359,7 +342,6 @@ func (client ActivityLogAlertsClient) ListBySubscriptionID(ctx context.Context)
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListBySubscriptionIDPreparer prepares the ListBySubscriptionID request.
func (client ActivityLogAlertsClient) ListBySubscriptionIDPreparer(ctx context.Context) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -379,7 +361,6 @@ func (client ActivityLogAlertsClient) ListBySubscriptionIDPreparer(ctx context.C
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListBySubscriptionIDSender sends the ListBySubscriptionID request. The method will close the
// http.Response Body if it receives an error.
func (client ActivityLogAlertsClient) ListBySubscriptionIDSender(req *http.Request) (*http.Response, error) {
@@ -387,7 +368,6 @@ func (client ActivityLogAlertsClient) ListBySubscriptionIDSender(req *http.Reque
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListBySubscriptionIDResponder handles the response to the ListBySubscriptionID request. The method always
// closes the http.Response Body.
func (client ActivityLogAlertsClient) ListBySubscriptionIDResponder(resp *http.Response) (result ActivityLogAlertList, err error) {
@@ -401,11 +381,11 @@ func (client ActivityLogAlertsClient) ListBySubscriptionIDResponder(resp *http.R
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// Update updates an existing ActivityLogAlertResource's tags. To update other fields use the CreateOrUpdate method.
-//
-// resourceGroupName is the name of the resource group. activityLogAlertName is the name of the activity log alert.
-// activityLogAlertPatch is parameters supplied to the operation.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// activityLogAlertName - the name of the activity log alert.
+// activityLogAlertPatch - parameters supplied to the operation.
func (client ActivityLogAlertsClient) Update(ctx context.Context, resourceGroupName string, activityLogAlertName string, activityLogAlertPatch ActivityLogAlertPatchBody) (result ActivityLogAlertResource, err error) {
req, err := client.UpdatePreparer(ctx, resourceGroupName, activityLogAlertName, activityLogAlertPatch)
if err != nil {
@@ -428,7 +408,6 @@ func (client ActivityLogAlertsClient) Update(ctx context.Context, resourceGroupN
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UpdatePreparer prepares the Update request.
func (client ActivityLogAlertsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, activityLogAlertName string, activityLogAlertPatch ActivityLogAlertPatchBody) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -452,7 +431,6 @@ func (client ActivityLogAlertsClient) UpdatePreparer(ctx context.Context, resour
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UpdateSender sends the Update request. The method will close the
// http.Response Body if it receives an error.
func (client ActivityLogAlertsClient) UpdateSender(req *http.Request) (*http.Response, error) {
@@ -460,7 +438,6 @@ func (client ActivityLogAlertsClient) UpdateSender(req *http.Request) (*http.Res
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UpdateResponder handles the response to the Update request. The method always
// closes the http.Response Body.
func (client ActivityLogAlertsClient) UpdateResponder(resp *http.Response) (result ActivityLogAlertResource, err error) {
diff --git a/services/monitor/mgmt/2017-05-01-preview/insights/alertruleincidents.go b/services/monitor/mgmt/2017-05-01-preview/insights/alertruleincidents.go
index 5a14d2e05375..aa0f1f5b56e0 100644
--- a/services/monitor/mgmt/2017-05-01-preview/insights/alertruleincidents.go
+++ b/services/monitor/mgmt/2017-05-01-preview/insights/alertruleincidents.go
@@ -24,29 +24,26 @@ import (
"net/http"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AlertRuleIncidentsClient is the monitor Management Client
type AlertRuleIncidentsClient struct {
BaseClient
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// NewAlertRuleIncidentsClient creates an instance of the AlertRuleIncidentsClient client.
func NewAlertRuleIncidentsClient(subscriptionID string) AlertRuleIncidentsClient {
return NewAlertRuleIncidentsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// NewAlertRuleIncidentsClientWithBaseURI creates an instance of the AlertRuleIncidentsClient client.
func NewAlertRuleIncidentsClientWithBaseURI(baseURI string, subscriptionID string) AlertRuleIncidentsClient {
return AlertRuleIncidentsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// Get gets an incident associated to an alert rule
-//
-// resourceGroupName is the name of the resource group. ruleName is the name of the rule. incidentName is the name
-// of the incident to retrieve.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// ruleName - the name of the rule.
+// incidentName - the name of the incident to retrieve.
func (client AlertRuleIncidentsClient) Get(ctx context.Context, resourceGroupName string, ruleName string, incidentName string) (result Incident, err error) {
req, err := client.GetPreparer(ctx, resourceGroupName, ruleName, incidentName)
if err != nil {
@@ -69,7 +66,6 @@ func (client AlertRuleIncidentsClient) Get(ctx context.Context, resourceGroupNam
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// GetPreparer prepares the Get request.
func (client AlertRuleIncidentsClient) GetPreparer(ctx context.Context, resourceGroupName string, ruleName string, incidentName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -92,7 +88,6 @@ func (client AlertRuleIncidentsClient) GetPreparer(ctx context.Context, resource
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client AlertRuleIncidentsClient) GetSender(req *http.Request) (*http.Response, error) {
@@ -100,7 +95,6 @@ func (client AlertRuleIncidentsClient) GetSender(req *http.Request) (*http.Respo
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client AlertRuleIncidentsClient) GetResponder(resp *http.Response) (result Incident, err error) {
@@ -114,10 +108,10 @@ func (client AlertRuleIncidentsClient) GetResponder(resp *http.Response) (result
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListByAlertRule gets a list of incidents associated to an alert rule
-//
-// resourceGroupName is the name of the resource group. ruleName is the name of the rule.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// ruleName - the name of the rule.
func (client AlertRuleIncidentsClient) ListByAlertRule(ctx context.Context, resourceGroupName string, ruleName string) (result IncidentListResult, err error) {
req, err := client.ListByAlertRulePreparer(ctx, resourceGroupName, ruleName)
if err != nil {
@@ -140,7 +134,6 @@ func (client AlertRuleIncidentsClient) ListByAlertRule(ctx context.Context, reso
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListByAlertRulePreparer prepares the ListByAlertRule request.
func (client AlertRuleIncidentsClient) ListByAlertRulePreparer(ctx context.Context, resourceGroupName string, ruleName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -162,7 +155,6 @@ func (client AlertRuleIncidentsClient) ListByAlertRulePreparer(ctx context.Conte
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListByAlertRuleSender sends the ListByAlertRule request. The method will close the
// http.Response Body if it receives an error.
func (client AlertRuleIncidentsClient) ListByAlertRuleSender(req *http.Request) (*http.Response, error) {
@@ -170,7 +162,6 @@ func (client AlertRuleIncidentsClient) ListByAlertRuleSender(req *http.Request)
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListByAlertRuleResponder handles the response to the ListByAlertRule request. The method always
// closes the http.Response Body.
func (client AlertRuleIncidentsClient) ListByAlertRuleResponder(resp *http.Response) (result IncidentListResult, err error) {
diff --git a/services/monitor/mgmt/2017-05-01-preview/insights/alertrules.go b/services/monitor/mgmt/2017-05-01-preview/insights/alertrules.go
index f31713af2eaf..c38f5453d50b 100644
--- a/services/monitor/mgmt/2017-05-01-preview/insights/alertrules.go
+++ b/services/monitor/mgmt/2017-05-01-preview/insights/alertrules.go
@@ -25,29 +25,26 @@ import (
"net/http"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AlertRulesClient is the monitor Management Client
type AlertRulesClient struct {
BaseClient
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// NewAlertRulesClient creates an instance of the AlertRulesClient client.
func NewAlertRulesClient(subscriptionID string) AlertRulesClient {
return NewAlertRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// NewAlertRulesClientWithBaseURI creates an instance of the AlertRulesClient client.
func NewAlertRulesClientWithBaseURI(baseURI string, subscriptionID string) AlertRulesClient {
return AlertRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// CreateOrUpdate creates or updates an alert rule.
-//
-// resourceGroupName is the name of the resource group. ruleName is the name of the rule. parameters is the
-// parameters of the rule to create or update.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// ruleName - the name of the rule.
+// parameters - the parameters of the rule to create or update.
func (client AlertRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, ruleName string, parameters AlertRuleResource) (result AlertRuleResource, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: parameters,
@@ -80,7 +77,6 @@ func (client AlertRulesClient) CreateOrUpdate(ctx context.Context, resourceGroup
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client AlertRulesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, ruleName string, parameters AlertRuleResource) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -104,7 +100,6 @@ func (client AlertRulesClient) CreateOrUpdatePreparer(ctx context.Context, resou
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
// http.Response Body if it receives an error.
func (client AlertRulesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
@@ -112,7 +107,6 @@ func (client AlertRulesClient) CreateOrUpdateSender(req *http.Request) (*http.Re
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
// closes the http.Response Body.
func (client AlertRulesClient) CreateOrUpdateResponder(resp *http.Response) (result AlertRuleResource, err error) {
@@ -126,10 +120,10 @@ func (client AlertRulesClient) CreateOrUpdateResponder(resp *http.Response) (res
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// Delete deletes an alert rule
-//
-// resourceGroupName is the name of the resource group. ruleName is the name of the rule.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// ruleName - the name of the rule.
func (client AlertRulesClient) Delete(ctx context.Context, resourceGroupName string, ruleName string) (result autorest.Response, err error) {
req, err := client.DeletePreparer(ctx, resourceGroupName, ruleName)
if err != nil {
@@ -152,7 +146,6 @@ func (client AlertRulesClient) Delete(ctx context.Context, resourceGroupName str
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// DeletePreparer prepares the Delete request.
func (client AlertRulesClient) DeletePreparer(ctx context.Context, resourceGroupName string, ruleName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -174,7 +167,6 @@ func (client AlertRulesClient) DeletePreparer(ctx context.Context, resourceGroup
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
func (client AlertRulesClient) DeleteSender(req *http.Request) (*http.Response, error) {
@@ -182,7 +174,6 @@ func (client AlertRulesClient) DeleteSender(req *http.Request) (*http.Response,
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// DeleteResponder handles the response to the Delete request. The method always
// closes the http.Response Body.
func (client AlertRulesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
@@ -195,10 +186,10 @@ func (client AlertRulesClient) DeleteResponder(resp *http.Response) (result auto
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// Get gets an alert rule
-//
-// resourceGroupName is the name of the resource group. ruleName is the name of the rule.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// ruleName - the name of the rule.
func (client AlertRulesClient) Get(ctx context.Context, resourceGroupName string, ruleName string) (result AlertRuleResource, err error) {
req, err := client.GetPreparer(ctx, resourceGroupName, ruleName)
if err != nil {
@@ -221,7 +212,6 @@ func (client AlertRulesClient) Get(ctx context.Context, resourceGroupName string
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// GetPreparer prepares the Get request.
func (client AlertRulesClient) GetPreparer(ctx context.Context, resourceGroupName string, ruleName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -243,7 +233,6 @@ func (client AlertRulesClient) GetPreparer(ctx context.Context, resourceGroupNam
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client AlertRulesClient) GetSender(req *http.Request) (*http.Response, error) {
@@ -251,7 +240,6 @@ func (client AlertRulesClient) GetSender(req *http.Request) (*http.Response, err
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client AlertRulesClient) GetResponder(resp *http.Response) (result AlertRuleResource, err error) {
@@ -265,10 +253,9 @@ func (client AlertRulesClient) GetResponder(resp *http.Response) (result AlertRu
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListByResourceGroup list the alert rules within a resource group.
-//
-// resourceGroupName is the name of the resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
func (client AlertRulesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result AlertRuleResourceCollection, err error) {
req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName)
if err != nil {
@@ -291,7 +278,6 @@ func (client AlertRulesClient) ListByResourceGroup(ctx context.Context, resource
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (client AlertRulesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -312,7 +298,6 @@ func (client AlertRulesClient) ListByResourceGroupPreparer(ctx context.Context,
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
// http.Response Body if it receives an error.
func (client AlertRulesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
@@ -320,7 +305,6 @@ func (client AlertRulesClient) ListByResourceGroupSender(req *http.Request) (*ht
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
// closes the http.Response Body.
func (client AlertRulesClient) ListByResourceGroupResponder(resp *http.Response) (result AlertRuleResourceCollection, err error) {
@@ -334,11 +318,11 @@ func (client AlertRulesClient) ListByResourceGroupResponder(resp *http.Response)
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// Update updates an existing AlertRuleResource. To update other fields use the CreateOrUpdate method.
-//
-// resourceGroupName is the name of the resource group. ruleName is the name of the rule. alertRulesResource is
-// parameters supplied to the operation.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// ruleName - the name of the rule.
+// alertRulesResource - parameters supplied to the operation.
func (client AlertRulesClient) Update(ctx context.Context, resourceGroupName string, ruleName string, alertRulesResource AlertRuleResourcePatch) (result AlertRuleResource, err error) {
req, err := client.UpdatePreparer(ctx, resourceGroupName, ruleName, alertRulesResource)
if err != nil {
@@ -361,7 +345,6 @@ func (client AlertRulesClient) Update(ctx context.Context, resourceGroupName str
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UpdatePreparer prepares the Update request.
func (client AlertRulesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, ruleName string, alertRulesResource AlertRuleResourcePatch) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -385,7 +368,6 @@ func (client AlertRulesClient) UpdatePreparer(ctx context.Context, resourceGroup
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UpdateSender sends the Update request. The method will close the
// http.Response Body if it receives an error.
func (client AlertRulesClient) UpdateSender(req *http.Request) (*http.Response, error) {
@@ -393,7 +375,6 @@ func (client AlertRulesClient) UpdateSender(req *http.Request) (*http.Response,
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UpdateResponder handles the response to the Update request. The method always
// closes the http.Response Body.
func (client AlertRulesClient) UpdateResponder(resp *http.Response) (result AlertRuleResource, err error) {
diff --git a/services/monitor/mgmt/2017-05-01-preview/insights/autoscalesettings.go b/services/monitor/mgmt/2017-05-01-preview/insights/autoscalesettings.go
index 679a101c7b8e..95eb1e80a1f5 100644
--- a/services/monitor/mgmt/2017-05-01-preview/insights/autoscalesettings.go
+++ b/services/monitor/mgmt/2017-05-01-preview/insights/autoscalesettings.go
@@ -25,29 +25,26 @@ import (
"net/http"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AutoscaleSettingsClient is the monitor Management Client
type AutoscaleSettingsClient struct {
BaseClient
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// NewAutoscaleSettingsClient creates an instance of the AutoscaleSettingsClient client.
func NewAutoscaleSettingsClient(subscriptionID string) AutoscaleSettingsClient {
return NewAutoscaleSettingsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// NewAutoscaleSettingsClientWithBaseURI creates an instance of the AutoscaleSettingsClient client.
func NewAutoscaleSettingsClientWithBaseURI(baseURI string, subscriptionID string) AutoscaleSettingsClient {
return AutoscaleSettingsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// CreateOrUpdate creates or updates an autoscale setting.
-//
-// resourceGroupName is the name of the resource group. autoscaleSettingName is the autoscale setting name.
-// parameters is parameters supplied to the operation.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// autoscaleSettingName - the autoscale setting name.
+// parameters - parameters supplied to the operation.
func (client AutoscaleSettingsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, autoscaleSettingName string, parameters AutoscaleSettingResource) (result AutoscaleSettingResource, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: parameters,
@@ -79,7 +76,6 @@ func (client AutoscaleSettingsClient) CreateOrUpdate(ctx context.Context, resour
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client AutoscaleSettingsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, autoscaleSettingName string, parameters AutoscaleSettingResource) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -103,7 +99,6 @@ func (client AutoscaleSettingsClient) CreateOrUpdatePreparer(ctx context.Context
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
// http.Response Body if it receives an error.
func (client AutoscaleSettingsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
@@ -111,7 +106,6 @@ func (client AutoscaleSettingsClient) CreateOrUpdateSender(req *http.Request) (*
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
// closes the http.Response Body.
func (client AutoscaleSettingsClient) CreateOrUpdateResponder(resp *http.Response) (result AutoscaleSettingResource, err error) {
@@ -125,10 +119,10 @@ func (client AutoscaleSettingsClient) CreateOrUpdateResponder(resp *http.Respons
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// Delete deletes and autoscale setting
-//
-// resourceGroupName is the name of the resource group. autoscaleSettingName is the autoscale setting name.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// autoscaleSettingName - the autoscale setting name.
func (client AutoscaleSettingsClient) Delete(ctx context.Context, resourceGroupName string, autoscaleSettingName string) (result autorest.Response, err error) {
req, err := client.DeletePreparer(ctx, resourceGroupName, autoscaleSettingName)
if err != nil {
@@ -151,7 +145,6 @@ func (client AutoscaleSettingsClient) Delete(ctx context.Context, resourceGroupN
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// DeletePreparer prepares the Delete request.
func (client AutoscaleSettingsClient) DeletePreparer(ctx context.Context, resourceGroupName string, autoscaleSettingName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -173,7 +166,6 @@ func (client AutoscaleSettingsClient) DeletePreparer(ctx context.Context, resour
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
func (client AutoscaleSettingsClient) DeleteSender(req *http.Request) (*http.Response, error) {
@@ -181,7 +173,6 @@ func (client AutoscaleSettingsClient) DeleteSender(req *http.Request) (*http.Res
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// DeleteResponder handles the response to the Delete request. The method always
// closes the http.Response Body.
func (client AutoscaleSettingsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
@@ -194,10 +185,10 @@ func (client AutoscaleSettingsClient) DeleteResponder(resp *http.Response) (resu
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// Get gets an autoscale setting
-//
-// resourceGroupName is the name of the resource group. autoscaleSettingName is the autoscale setting name.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// autoscaleSettingName - the autoscale setting name.
func (client AutoscaleSettingsClient) Get(ctx context.Context, resourceGroupName string, autoscaleSettingName string) (result AutoscaleSettingResource, err error) {
req, err := client.GetPreparer(ctx, resourceGroupName, autoscaleSettingName)
if err != nil {
@@ -220,7 +211,6 @@ func (client AutoscaleSettingsClient) Get(ctx context.Context, resourceGroupName
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// GetPreparer prepares the Get request.
func (client AutoscaleSettingsClient) GetPreparer(ctx context.Context, resourceGroupName string, autoscaleSettingName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -242,7 +232,6 @@ func (client AutoscaleSettingsClient) GetPreparer(ctx context.Context, resourceG
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client AutoscaleSettingsClient) GetSender(req *http.Request) (*http.Response, error) {
@@ -250,7 +239,6 @@ func (client AutoscaleSettingsClient) GetSender(req *http.Request) (*http.Respon
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client AutoscaleSettingsClient) GetResponder(resp *http.Response) (result AutoscaleSettingResource, err error) {
@@ -264,10 +252,9 @@ func (client AutoscaleSettingsClient) GetResponder(resp *http.Response) (result
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListByResourceGroup lists the autoscale settings for a resource group
-//
-// resourceGroupName is the name of the resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
func (client AutoscaleSettingsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result AutoscaleSettingResourceCollectionPage, err error) {
result.fn = client.listByResourceGroupNextResults
req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName)
@@ -291,7 +278,6 @@ func (client AutoscaleSettingsClient) ListByResourceGroup(ctx context.Context, r
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (client AutoscaleSettingsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -312,7 +298,6 @@ func (client AutoscaleSettingsClient) ListByResourceGroupPreparer(ctx context.Co
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
// http.Response Body if it receives an error.
func (client AutoscaleSettingsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
@@ -320,7 +305,6 @@ func (client AutoscaleSettingsClient) ListByResourceGroupSender(req *http.Reques
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
// closes the http.Response Body.
func (client AutoscaleSettingsClient) ListByResourceGroupResponder(resp *http.Response) (result AutoscaleSettingResourceCollection, err error) {
@@ -355,18 +339,17 @@ func (client AutoscaleSettingsClient) listByResourceGroupNextResults(lastResults
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (client AutoscaleSettingsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result AutoscaleSettingResourceCollectionIterator, err error) {
result.page, err = client.ListByResourceGroup(ctx, resourceGroupName)
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// Update updates an existing AutoscaleSettingsResource. To update other fields use the CreateOrUpdate method.
-//
-// resourceGroupName is the name of the resource group. autoscaleSettingName is the autoscale setting name.
-// autoscaleSettingResource is parameters supplied to the operation.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// autoscaleSettingName - the autoscale setting name.
+// autoscaleSettingResource - parameters supplied to the operation.
func (client AutoscaleSettingsClient) Update(ctx context.Context, resourceGroupName string, autoscaleSettingName string, autoscaleSettingResource AutoscaleSettingResourcePatch) (result AutoscaleSettingResource, err error) {
req, err := client.UpdatePreparer(ctx, resourceGroupName, autoscaleSettingName, autoscaleSettingResource)
if err != nil {
@@ -389,7 +372,6 @@ func (client AutoscaleSettingsClient) Update(ctx context.Context, resourceGroupN
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UpdatePreparer prepares the Update request.
func (client AutoscaleSettingsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, autoscaleSettingName string, autoscaleSettingResource AutoscaleSettingResourcePatch) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -413,7 +395,6 @@ func (client AutoscaleSettingsClient) UpdatePreparer(ctx context.Context, resour
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UpdateSender sends the Update request. The method will close the
// http.Response Body if it receives an error.
func (client AutoscaleSettingsClient) UpdateSender(req *http.Request) (*http.Response, error) {
@@ -421,7 +402,6 @@ func (client AutoscaleSettingsClient) UpdateSender(req *http.Request) (*http.Res
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UpdateResponder handles the response to the Update request. The method always
// closes the http.Response Body.
func (client AutoscaleSettingsClient) UpdateResponder(resp *http.Response) (result AutoscaleSettingResource, err error) {
diff --git a/services/monitor/mgmt/2017-05-01-preview/insights/client.go b/services/monitor/mgmt/2017-05-01-preview/insights/client.go
index bf56ea6ed5e9..5ed388022a2b 100644
--- a/services/monitor/mgmt/2017-05-01-preview/insights/client.go
+++ b/services/monitor/mgmt/2017-05-01-preview/insights/client.go
@@ -29,7 +29,6 @@ const (
DefaultBaseURI = "https://management.azure.com"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// BaseClient is the base client for Insights.
type BaseClient struct {
autorest.Client
@@ -37,13 +36,11 @@ type BaseClient struct {
SubscriptionID string
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// New creates an instance of the BaseClient client.
func New(subscriptionID string) BaseClient {
return NewWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// NewWithBaseURI creates an instance of the BaseClient client.
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return BaseClient{
diff --git a/services/monitor/mgmt/2017-05-01-preview/insights/diagnosticsettings.go b/services/monitor/mgmt/2017-05-01-preview/insights/diagnosticsettings.go
index 0655ffd3f034..3c6a3d056578 100644
--- a/services/monitor/mgmt/2017-05-01-preview/insights/diagnosticsettings.go
+++ b/services/monitor/mgmt/2017-05-01-preview/insights/diagnosticsettings.go
@@ -24,29 +24,26 @@ import (
"net/http"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// DiagnosticSettingsClient is the monitor Management Client
type DiagnosticSettingsClient struct {
BaseClient
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// NewDiagnosticSettingsClient creates an instance of the DiagnosticSettingsClient client.
func NewDiagnosticSettingsClient(subscriptionID string) DiagnosticSettingsClient {
return NewDiagnosticSettingsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// NewDiagnosticSettingsClientWithBaseURI creates an instance of the DiagnosticSettingsClient client.
func NewDiagnosticSettingsClientWithBaseURI(baseURI string, subscriptionID string) DiagnosticSettingsClient {
return DiagnosticSettingsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// CreateOrUpdate creates or updates diagnostic settings for the specified resource.
-//
-// resourceURI is the identifier of the resource. parameters is parameters supplied to the operation. name is the
-// name of the diagnostic setting.
+// Parameters:
+// resourceURI - the identifier of the resource.
+// parameters - parameters supplied to the operation.
+// name - the name of the diagnostic setting.
func (client DiagnosticSettingsClient) CreateOrUpdate(ctx context.Context, resourceURI string, parameters DiagnosticSettingsResource, name string) (result DiagnosticSettingsResource, err error) {
req, err := client.CreateOrUpdatePreparer(ctx, resourceURI, parameters, name)
if err != nil {
@@ -69,7 +66,6 @@ func (client DiagnosticSettingsClient) CreateOrUpdate(ctx context.Context, resou
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client DiagnosticSettingsClient) CreateOrUpdatePreparer(ctx context.Context, resourceURI string, parameters DiagnosticSettingsResource, name string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -92,7 +88,6 @@ func (client DiagnosticSettingsClient) CreateOrUpdatePreparer(ctx context.Contex
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
// http.Response Body if it receives an error.
func (client DiagnosticSettingsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
@@ -100,7 +95,6 @@ func (client DiagnosticSettingsClient) CreateOrUpdateSender(req *http.Request) (
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
// closes the http.Response Body.
func (client DiagnosticSettingsClient) CreateOrUpdateResponder(resp *http.Response) (result DiagnosticSettingsResource, err error) {
@@ -114,10 +108,10 @@ func (client DiagnosticSettingsClient) CreateOrUpdateResponder(resp *http.Respon
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// Delete deletes existing diagnostic settings for the specified resource.
-//
-// resourceURI is the identifier of the resource. name is the name of the diagnostic setting.
+// Parameters:
+// resourceURI - the identifier of the resource.
+// name - the name of the diagnostic setting.
func (client DiagnosticSettingsClient) Delete(ctx context.Context, resourceURI string, name string) (result autorest.Response, err error) {
req, err := client.DeletePreparer(ctx, resourceURI, name)
if err != nil {
@@ -140,7 +134,6 @@ func (client DiagnosticSettingsClient) Delete(ctx context.Context, resourceURI s
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// DeletePreparer prepares the Delete request.
func (client DiagnosticSettingsClient) DeletePreparer(ctx context.Context, resourceURI string, name string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -161,7 +154,6 @@ func (client DiagnosticSettingsClient) DeletePreparer(ctx context.Context, resou
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
func (client DiagnosticSettingsClient) DeleteSender(req *http.Request) (*http.Response, error) {
@@ -169,7 +161,6 @@ func (client DiagnosticSettingsClient) DeleteSender(req *http.Request) (*http.Re
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// DeleteResponder handles the response to the Delete request. The method always
// closes the http.Response Body.
func (client DiagnosticSettingsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
@@ -182,10 +173,10 @@ func (client DiagnosticSettingsClient) DeleteResponder(resp *http.Response) (res
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// Get gets the active diagnostic settings for the specified resource.
-//
-// resourceURI is the identifier of the resource. name is the name of the diagnostic setting.
+// Parameters:
+// resourceURI - the identifier of the resource.
+// name - the name of the diagnostic setting.
func (client DiagnosticSettingsClient) Get(ctx context.Context, resourceURI string, name string) (result DiagnosticSettingsResource, err error) {
req, err := client.GetPreparer(ctx, resourceURI, name)
if err != nil {
@@ -208,7 +199,6 @@ func (client DiagnosticSettingsClient) Get(ctx context.Context, resourceURI stri
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// GetPreparer prepares the Get request.
func (client DiagnosticSettingsClient) GetPreparer(ctx context.Context, resourceURI string, name string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -229,7 +219,6 @@ func (client DiagnosticSettingsClient) GetPreparer(ctx context.Context, resource
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client DiagnosticSettingsClient) GetSender(req *http.Request) (*http.Response, error) {
@@ -237,7 +226,6 @@ func (client DiagnosticSettingsClient) GetSender(req *http.Request) (*http.Respo
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client DiagnosticSettingsClient) GetResponder(resp *http.Response) (result DiagnosticSettingsResource, err error) {
@@ -251,10 +239,9 @@ func (client DiagnosticSettingsClient) GetResponder(resp *http.Response) (result
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// List gets the active diagnostic settings list for the specified resource.
-//
-// resourceURI is the identifier of the resource.
+// Parameters:
+// resourceURI - the identifier of the resource.
func (client DiagnosticSettingsClient) List(ctx context.Context, resourceURI string) (result DiagnosticSettingsResourceCollection, err error) {
req, err := client.ListPreparer(ctx, resourceURI)
if err != nil {
@@ -277,7 +264,6 @@ func (client DiagnosticSettingsClient) List(ctx context.Context, resourceURI str
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListPreparer prepares the List request.
func (client DiagnosticSettingsClient) ListPreparer(ctx context.Context, resourceURI string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -297,7 +283,6 @@ func (client DiagnosticSettingsClient) ListPreparer(ctx context.Context, resourc
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListSender sends the List request. The method will close the
// http.Response Body if it receives an error.
func (client DiagnosticSettingsClient) ListSender(req *http.Request) (*http.Response, error) {
@@ -305,7 +290,6 @@ func (client DiagnosticSettingsClient) ListSender(req *http.Request) (*http.Resp
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListResponder handles the response to the List request. The method always
// closes the http.Response Body.
func (client DiagnosticSettingsClient) ListResponder(resp *http.Response) (result DiagnosticSettingsResourceCollection, err error) {
diff --git a/services/monitor/mgmt/2017-05-01-preview/insights/diagnosticsettingscategory.go b/services/monitor/mgmt/2017-05-01-preview/insights/diagnosticsettingscategory.go
index a93d8a64bd4b..077dd269ee6c 100644
--- a/services/monitor/mgmt/2017-05-01-preview/insights/diagnosticsettingscategory.go
+++ b/services/monitor/mgmt/2017-05-01-preview/insights/diagnosticsettingscategory.go
@@ -24,28 +24,25 @@ import (
"net/http"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// DiagnosticSettingsCategoryClient is the monitor Management Client
type DiagnosticSettingsCategoryClient struct {
BaseClient
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// NewDiagnosticSettingsCategoryClient creates an instance of the DiagnosticSettingsCategoryClient client.
func NewDiagnosticSettingsCategoryClient(subscriptionID string) DiagnosticSettingsCategoryClient {
return NewDiagnosticSettingsCategoryClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// NewDiagnosticSettingsCategoryClientWithBaseURI creates an instance of the DiagnosticSettingsCategoryClient client.
func NewDiagnosticSettingsCategoryClientWithBaseURI(baseURI string, subscriptionID string) DiagnosticSettingsCategoryClient {
return DiagnosticSettingsCategoryClient{NewWithBaseURI(baseURI, subscriptionID)}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// Get gets the diagnostic settings category for the specified resource.
-//
-// resourceURI is the identifier of the resource. name is the name of the diagnostic setting.
+// Parameters:
+// resourceURI - the identifier of the resource.
+// name - the name of the diagnostic setting.
func (client DiagnosticSettingsCategoryClient) Get(ctx context.Context, resourceURI string, name string) (result DiagnosticSettingsCategoryResource, err error) {
req, err := client.GetPreparer(ctx, resourceURI, name)
if err != nil {
@@ -68,7 +65,6 @@ func (client DiagnosticSettingsCategoryClient) Get(ctx context.Context, resource
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// GetPreparer prepares the Get request.
func (client DiagnosticSettingsCategoryClient) GetPreparer(ctx context.Context, resourceURI string, name string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -89,7 +85,6 @@ func (client DiagnosticSettingsCategoryClient) GetPreparer(ctx context.Context,
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client DiagnosticSettingsCategoryClient) GetSender(req *http.Request) (*http.Response, error) {
@@ -97,7 +92,6 @@ func (client DiagnosticSettingsCategoryClient) GetSender(req *http.Request) (*ht
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client DiagnosticSettingsCategoryClient) GetResponder(resp *http.Response) (result DiagnosticSettingsCategoryResource, err error) {
@@ -111,10 +105,9 @@ func (client DiagnosticSettingsCategoryClient) GetResponder(resp *http.Response)
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// List lists the diagnostic settings categories for the specified resource.
-//
-// resourceURI is the identifier of the resource.
+// Parameters:
+// resourceURI - the identifier of the resource.
func (client DiagnosticSettingsCategoryClient) List(ctx context.Context, resourceURI string) (result DiagnosticSettingsCategoryResourceCollection, err error) {
req, err := client.ListPreparer(ctx, resourceURI)
if err != nil {
@@ -137,7 +130,6 @@ func (client DiagnosticSettingsCategoryClient) List(ctx context.Context, resourc
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListPreparer prepares the List request.
func (client DiagnosticSettingsCategoryClient) ListPreparer(ctx context.Context, resourceURI string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -157,7 +149,6 @@ func (client DiagnosticSettingsCategoryClient) ListPreparer(ctx context.Context,
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListSender sends the List request. The method will close the
// http.Response Body if it receives an error.
func (client DiagnosticSettingsCategoryClient) ListSender(req *http.Request) (*http.Response, error) {
@@ -165,7 +156,6 @@ func (client DiagnosticSettingsCategoryClient) ListSender(req *http.Request) (*h
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListResponder handles the response to the List request. The method always
// closes the http.Response Body.
func (client DiagnosticSettingsCategoryClient) ListResponder(resp *http.Response) (result DiagnosticSettingsCategoryResourceCollection, err error) {
diff --git a/services/monitor/mgmt/2017-05-01-preview/insights/logprofiles.go b/services/monitor/mgmt/2017-05-01-preview/insights/logprofiles.go
index fa976b3f1577..70f4ec53779e 100644
--- a/services/monitor/mgmt/2017-05-01-preview/insights/logprofiles.go
+++ b/services/monitor/mgmt/2017-05-01-preview/insights/logprofiles.go
@@ -25,28 +25,25 @@ import (
"net/http"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// LogProfilesClient is the monitor Management Client
type LogProfilesClient struct {
BaseClient
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// NewLogProfilesClient creates an instance of the LogProfilesClient client.
func NewLogProfilesClient(subscriptionID string) LogProfilesClient {
return NewLogProfilesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// NewLogProfilesClientWithBaseURI creates an instance of the LogProfilesClient client.
func NewLogProfilesClientWithBaseURI(baseURI string, subscriptionID string) LogProfilesClient {
return LogProfilesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// CreateOrUpdate create or update a log profile in Azure Monitoring REST API.
-//
-// logProfileName is the name of the log profile. parameters is parameters supplied to the operation.
+// Parameters:
+// logProfileName - the name of the log profile.
+// parameters - parameters supplied to the operation.
func (client LogProfilesClient) CreateOrUpdate(ctx context.Context, logProfileName string, parameters LogProfileResource) (result LogProfileResource, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: parameters,
@@ -83,7 +80,6 @@ func (client LogProfilesClient) CreateOrUpdate(ctx context.Context, logProfileNa
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client LogProfilesClient) CreateOrUpdatePreparer(ctx context.Context, logProfileName string, parameters LogProfileResource) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -106,7 +102,6 @@ func (client LogProfilesClient) CreateOrUpdatePreparer(ctx context.Context, logP
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
// http.Response Body if it receives an error.
func (client LogProfilesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
@@ -114,7 +109,6 @@ func (client LogProfilesClient) CreateOrUpdateSender(req *http.Request) (*http.R
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
// closes the http.Response Body.
func (client LogProfilesClient) CreateOrUpdateResponder(resp *http.Response) (result LogProfileResource, err error) {
@@ -128,10 +122,9 @@ func (client LogProfilesClient) CreateOrUpdateResponder(resp *http.Response) (re
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// Delete deletes the log profile.
-//
-// logProfileName is the name of the log profile.
+// Parameters:
+// logProfileName - the name of the log profile.
func (client LogProfilesClient) Delete(ctx context.Context, logProfileName string) (result autorest.Response, err error) {
req, err := client.DeletePreparer(ctx, logProfileName)
if err != nil {
@@ -154,7 +147,6 @@ func (client LogProfilesClient) Delete(ctx context.Context, logProfileName strin
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// DeletePreparer prepares the Delete request.
func (client LogProfilesClient) DeletePreparer(ctx context.Context, logProfileName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -175,7 +167,6 @@ func (client LogProfilesClient) DeletePreparer(ctx context.Context, logProfileNa
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
func (client LogProfilesClient) DeleteSender(req *http.Request) (*http.Response, error) {
@@ -183,7 +174,6 @@ func (client LogProfilesClient) DeleteSender(req *http.Request) (*http.Response,
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// DeleteResponder handles the response to the Delete request. The method always
// closes the http.Response Body.
func (client LogProfilesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
@@ -196,10 +186,9 @@ func (client LogProfilesClient) DeleteResponder(resp *http.Response) (result aut
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// Get gets the log profile.
-//
-// logProfileName is the name of the log profile.
+// Parameters:
+// logProfileName - the name of the log profile.
func (client LogProfilesClient) Get(ctx context.Context, logProfileName string) (result LogProfileResource, err error) {
req, err := client.GetPreparer(ctx, logProfileName)
if err != nil {
@@ -222,7 +211,6 @@ func (client LogProfilesClient) Get(ctx context.Context, logProfileName string)
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// GetPreparer prepares the Get request.
func (client LogProfilesClient) GetPreparer(ctx context.Context, logProfileName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -243,7 +231,6 @@ func (client LogProfilesClient) GetPreparer(ctx context.Context, logProfileName
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client LogProfilesClient) GetSender(req *http.Request) (*http.Response, error) {
@@ -251,7 +238,6 @@ func (client LogProfilesClient) GetSender(req *http.Request) (*http.Response, er
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client LogProfilesClient) GetResponder(resp *http.Response) (result LogProfileResource, err error) {
@@ -265,7 +251,6 @@ func (client LogProfilesClient) GetResponder(resp *http.Response) (result LogPro
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// List list the log profiles.
func (client LogProfilesClient) List(ctx context.Context) (result LogProfileCollection, err error) {
req, err := client.ListPreparer(ctx)
@@ -289,7 +274,6 @@ func (client LogProfilesClient) List(ctx context.Context) (result LogProfileColl
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListPreparer prepares the List request.
func (client LogProfilesClient) ListPreparer(ctx context.Context) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -309,7 +293,6 @@ func (client LogProfilesClient) ListPreparer(ctx context.Context) (*http.Request
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListSender sends the List request. The method will close the
// http.Response Body if it receives an error.
func (client LogProfilesClient) ListSender(req *http.Request) (*http.Response, error) {
@@ -317,7 +300,6 @@ func (client LogProfilesClient) ListSender(req *http.Request) (*http.Response, e
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListResponder handles the response to the List request. The method always
// closes the http.Response Body.
func (client LogProfilesClient) ListResponder(resp *http.Response) (result LogProfileCollection, err error) {
@@ -331,10 +313,10 @@ func (client LogProfilesClient) ListResponder(resp *http.Response) (result LogPr
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// Update updates an existing LogProfilesResource. To update other fields use the CreateOrUpdate method.
-//
-// logProfileName is the name of the log profile. logProfilesResource is parameters supplied to the operation.
+// Parameters:
+// logProfileName - the name of the log profile.
+// logProfilesResource - parameters supplied to the operation.
func (client LogProfilesClient) Update(ctx context.Context, logProfileName string, logProfilesResource LogProfileResourcePatch) (result LogProfileResource, err error) {
req, err := client.UpdatePreparer(ctx, logProfileName, logProfilesResource)
if err != nil {
@@ -357,7 +339,6 @@ func (client LogProfilesClient) Update(ctx context.Context, logProfileName strin
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UpdatePreparer prepares the Update request.
func (client LogProfilesClient) UpdatePreparer(ctx context.Context, logProfileName string, logProfilesResource LogProfileResourcePatch) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -380,7 +361,6 @@ func (client LogProfilesClient) UpdatePreparer(ctx context.Context, logProfileNa
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UpdateSender sends the Update request. The method will close the
// http.Response Body if it receives an error.
func (client LogProfilesClient) UpdateSender(req *http.Request) (*http.Response, error) {
@@ -388,7 +368,6 @@ func (client LogProfilesClient) UpdateSender(req *http.Request) (*http.Response,
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UpdateResponder handles the response to the Update request. The method always
// closes the http.Response Body.
func (client LogProfilesClient) UpdateResponder(resp *http.Response) (result LogProfileResource, err error) {
diff --git a/services/monitor/mgmt/2017-05-01-preview/insights/models.go b/services/monitor/mgmt/2017-05-01-preview/insights/models.go
index aece5f5fa3c1..decb179ef30c 100644
--- a/services/monitor/mgmt/2017-05-01-preview/insights/models.go
+++ b/services/monitor/mgmt/2017-05-01-preview/insights/models.go
@@ -25,7 +25,6 @@ import (
"net/http"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// CategoryType enumerates the values for category type.
type CategoryType string
@@ -36,13 +35,11 @@ const (
Metrics CategoryType = "Metrics"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// PossibleCategoryTypeValues returns an array of possible values for the CategoryType const type.
func PossibleCategoryTypeValues() []CategoryType {
return []CategoryType{Logs, Metrics}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ComparisonOperationType enumerates the values for comparison operation type.
type ComparisonOperationType string
@@ -61,13 +58,11 @@ const (
NotEquals ComparisonOperationType = "NotEquals"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// PossibleComparisonOperationTypeValues returns an array of possible values for the ComparisonOperationType const type.
func PossibleComparisonOperationTypeValues() []ComparisonOperationType {
return []ComparisonOperationType{Equals, GreaterThan, GreaterThanOrEqual, LessThan, LessThanOrEqual, NotEquals}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ConditionOperator enumerates the values for condition operator.
type ConditionOperator string
@@ -82,13 +77,11 @@ const (
ConditionOperatorLessThanOrEqual ConditionOperator = "LessThanOrEqual"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// PossibleConditionOperatorValues returns an array of possible values for the ConditionOperator const type.
func PossibleConditionOperatorValues() []ConditionOperator {
return []ConditionOperator{ConditionOperatorGreaterThan, ConditionOperatorGreaterThanOrEqual, ConditionOperatorLessThan, ConditionOperatorLessThanOrEqual}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// MetricStatisticType enumerates the values for metric statistic type.
type MetricStatisticType string
@@ -103,13 +96,11 @@ const (
Sum MetricStatisticType = "Sum"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// PossibleMetricStatisticTypeValues returns an array of possible values for the MetricStatisticType const type.
func PossibleMetricStatisticTypeValues() []MetricStatisticType {
return []MetricStatisticType{Average, Max, Min, Sum}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// OdataType enumerates the values for odata type.
type OdataType string
@@ -122,13 +113,11 @@ const (
OdataTypeRuleDataSource OdataType = "RuleDataSource"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// PossibleOdataTypeValues returns an array of possible values for the OdataType const type.
func PossibleOdataTypeValues() []OdataType {
return []OdataType{OdataTypeMicrosoftAzureManagementInsightsModelsRuleManagementEventDataSource, OdataTypeMicrosoftAzureManagementInsightsModelsRuleMetricDataSource, OdataTypeRuleDataSource}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// OdataTypeBasicRuleAction enumerates the values for odata type basic rule action.
type OdataTypeBasicRuleAction string
@@ -141,13 +130,11 @@ const (
OdataTypeRuleAction OdataTypeBasicRuleAction = "RuleAction"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// PossibleOdataTypeBasicRuleActionValues returns an array of possible values for the OdataTypeBasicRuleAction const type.
func PossibleOdataTypeBasicRuleActionValues() []OdataTypeBasicRuleAction {
return []OdataTypeBasicRuleAction{OdataTypeMicrosoftAzureManagementInsightsModelsRuleEmailAction, OdataTypeMicrosoftAzureManagementInsightsModelsRuleWebhookAction, OdataTypeRuleAction}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// OdataTypeBasicRuleCondition enumerates the values for odata type basic rule condition.
type OdataTypeBasicRuleCondition string
@@ -162,13 +149,11 @@ const (
OdataTypeRuleCondition OdataTypeBasicRuleCondition = "RuleCondition"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// PossibleOdataTypeBasicRuleConditionValues returns an array of possible values for the OdataTypeBasicRuleCondition const type.
func PossibleOdataTypeBasicRuleConditionValues() []OdataTypeBasicRuleCondition {
return []OdataTypeBasicRuleCondition{OdataTypeMicrosoftAzureManagementInsightsModelsLocationThresholdRuleCondition, OdataTypeMicrosoftAzureManagementInsightsModelsManagementEventRuleCondition, OdataTypeMicrosoftAzureManagementInsightsModelsThresholdRuleCondition, OdataTypeRuleCondition}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ReceiverStatus enumerates the values for receiver status.
type ReceiverStatus string
@@ -181,13 +166,11 @@ const (
NotSpecified ReceiverStatus = "NotSpecified"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// PossibleReceiverStatusValues returns an array of possible values for the ReceiverStatus const type.
func PossibleReceiverStatusValues() []ReceiverStatus {
return []ReceiverStatus{Disabled, Enabled, NotSpecified}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// RecurrenceFrequency enumerates the values for recurrence frequency.
type RecurrenceFrequency string
@@ -210,13 +193,11 @@ const (
Year RecurrenceFrequency = "Year"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// PossibleRecurrenceFrequencyValues returns an array of possible values for the RecurrenceFrequency const type.
func PossibleRecurrenceFrequencyValues() []RecurrenceFrequency {
return []RecurrenceFrequency{Day, Hour, Minute, Month, None, Second, Week, Year}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ScaleDirection enumerates the values for scale direction.
type ScaleDirection string
@@ -229,13 +210,11 @@ const (
ScaleDirectionNone ScaleDirection = "None"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// PossibleScaleDirectionValues returns an array of possible values for the ScaleDirection const type.
func PossibleScaleDirectionValues() []ScaleDirection {
return []ScaleDirection{ScaleDirectionDecrease, ScaleDirectionIncrease, ScaleDirectionNone}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ScaleType enumerates the values for scale type.
type ScaleType string
@@ -248,13 +227,11 @@ const (
PercentChangeCount ScaleType = "PercentChangeCount"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// PossibleScaleTypeValues returns an array of possible values for the ScaleType const type.
func PossibleScaleTypeValues() []ScaleType {
return []ScaleType{ChangeCount, ExactCount, PercentChangeCount}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// TimeAggregationOperator enumerates the values for time aggregation operator.
type TimeAggregationOperator string
@@ -271,13 +248,11 @@ const (
TimeAggregationOperatorTotal TimeAggregationOperator = "Total"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// PossibleTimeAggregationOperatorValues returns an array of possible values for the TimeAggregationOperator const type.
func PossibleTimeAggregationOperatorValues() []TimeAggregationOperator {
return []TimeAggregationOperator{TimeAggregationOperatorAverage, TimeAggregationOperatorLast, TimeAggregationOperatorMaximum, TimeAggregationOperatorMinimum, TimeAggregationOperatorTotal}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// TimeAggregationType enumerates the values for time aggregation type.
type TimeAggregationType string
@@ -294,13 +269,11 @@ const (
TimeAggregationTypeTotal TimeAggregationType = "Total"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// PossibleTimeAggregationTypeValues returns an array of possible values for the TimeAggregationType const type.
func PossibleTimeAggregationTypeValues() []TimeAggregationType {
return []TimeAggregationType{TimeAggregationTypeAverage, TimeAggregationTypeCount, TimeAggregationTypeMaximum, TimeAggregationTypeMinimum, TimeAggregationTypeTotal}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ActionGroup an Azure action group.
type ActionGroup struct {
// GroupShortName - The short name of the action group. This will be used in SMS messages.
@@ -321,7 +294,6 @@ type ActionGroup struct {
AutomationRunbookReceivers *[]AutomationRunbookReceiver `json:"automationRunbookReceivers,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ActionGroupList a list of action groups.
type ActionGroupList struct {
autorest.Response `json:"-"`
@@ -331,14 +303,12 @@ type ActionGroupList struct {
NextLink *string `json:"nextLink,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ActionGroupPatch an Azure action group for patch operations.
type ActionGroupPatch struct {
// Enabled - Indicates whether this action group is enabled. If an action group is not enabled, then none of its actions will be activated.
Enabled *bool `json:"enabled,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ActionGroupPatchBody an action group object for the body of patch operations.
type ActionGroupPatchBody struct {
// Tags - Resource tags
@@ -347,7 +317,6 @@ type ActionGroupPatchBody struct {
*ActionGroupPatch `json:"properties,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// MarshalJSON is the custom marshaler for ActionGroupPatchBody.
func (agpb ActionGroupPatchBody) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -360,7 +329,6 @@ func (agpb ActionGroupPatchBody) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UnmarshalJSON is the custom unmarshaler for ActionGroupPatchBody struct.
func (agpb *ActionGroupPatchBody) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -394,7 +362,6 @@ func (agpb *ActionGroupPatchBody) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ActionGroupResource an action group resource.
type ActionGroupResource struct {
autorest.Response `json:"-"`
@@ -412,7 +379,6 @@ type ActionGroupResource struct {
Tags map[string]*string `json:"tags"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// MarshalJSON is the custom marshaler for ActionGroupResource.
func (agr ActionGroupResource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -437,7 +403,6 @@ func (agr ActionGroupResource) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UnmarshalJSON is the custom unmarshaler for ActionGroupResource struct.
func (agr *ActionGroupResource) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -507,7 +472,6 @@ func (agr *ActionGroupResource) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ActivityLogAlert an Azure activity log alert.
type ActivityLogAlert struct {
// Scopes - A list of resourceIds that will be used as prefixes. The alert will only apply to activityLogs with resourceIds that fall under one of these prefixes. This list must include at least one item.
@@ -522,7 +486,6 @@ type ActivityLogAlert struct {
Description *string `json:"description,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ActivityLogAlertActionGroup a pointer to an Azure Action Group.
type ActivityLogAlertActionGroup struct {
// ActionGroupID - The resourceId of the action group. This cannot be null or empty.
@@ -531,7 +494,6 @@ type ActivityLogAlertActionGroup struct {
WebhookProperties map[string]*string `json:"webhookProperties"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// MarshalJSON is the custom marshaler for ActivityLogAlertActionGroup.
func (alaag ActivityLogAlertActionGroup) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -544,14 +506,12 @@ func (alaag ActivityLogAlertActionGroup) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ActivityLogAlertActionList a list of activity log alert actions.
type ActivityLogAlertActionList struct {
// ActionGroups - The list of activity log alerts.
ActionGroups *[]ActivityLogAlertActionGroup `json:"actionGroups,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ActivityLogAlertAllOfCondition an Activity Log alert condition that is met when all its member conditions are
// met.
type ActivityLogAlertAllOfCondition struct {
@@ -559,7 +519,6 @@ type ActivityLogAlertAllOfCondition struct {
AllOf *[]ActivityLogAlertLeafCondition `json:"allOf,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ActivityLogAlertLeafCondition an Activity Log alert condition that is met by comparing an activity log field and
// value.
type ActivityLogAlertLeafCondition struct {
@@ -569,7 +528,6 @@ type ActivityLogAlertLeafCondition struct {
Equals *string `json:"equals,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ActivityLogAlertList a list of activity log alerts.
type ActivityLogAlertList struct {
autorest.Response `json:"-"`
@@ -579,14 +537,12 @@ type ActivityLogAlertList struct {
NextLink *string `json:"nextLink,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ActivityLogAlertPatch an Azure activity log alert for patch operations.
type ActivityLogAlertPatch struct {
// Enabled - Indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated.
Enabled *bool `json:"enabled,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ActivityLogAlertPatchBody an activity log alert object for the body of patch operations.
type ActivityLogAlertPatchBody struct {
// Tags - Resource tags
@@ -595,7 +551,6 @@ type ActivityLogAlertPatchBody struct {
*ActivityLogAlertPatch `json:"properties,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// MarshalJSON is the custom marshaler for ActivityLogAlertPatchBody.
func (alapb ActivityLogAlertPatchBody) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -608,7 +563,6 @@ func (alapb ActivityLogAlertPatchBody) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UnmarshalJSON is the custom unmarshaler for ActivityLogAlertPatchBody struct.
func (alapb *ActivityLogAlertPatchBody) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -642,7 +596,6 @@ func (alapb *ActivityLogAlertPatchBody) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ActivityLogAlertResource an activity log alert resource.
type ActivityLogAlertResource struct {
autorest.Response `json:"-"`
@@ -660,7 +613,6 @@ type ActivityLogAlertResource struct {
Tags map[string]*string `json:"tags"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// MarshalJSON is the custom marshaler for ActivityLogAlertResource.
func (alar ActivityLogAlertResource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -685,7 +637,6 @@ func (alar ActivityLogAlertResource) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UnmarshalJSON is the custom unmarshaler for ActivityLogAlertResource struct.
func (alar *ActivityLogAlertResource) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -755,7 +706,6 @@ func (alar *ActivityLogAlertResource) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AlertRule an alert rule.
type AlertRule struct {
// Name - the name of the alert rule.
@@ -772,7 +722,6 @@ type AlertRule struct {
LastUpdatedTime *date.Time `json:"lastUpdatedTime,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UnmarshalJSON is the custom unmarshaler for AlertRule struct.
func (ar *AlertRule) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -840,7 +789,6 @@ func (ar *AlertRule) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AlertRuleResource the alert rule resource.
type AlertRuleResource struct {
autorest.Response `json:"-"`
@@ -858,7 +806,6 @@ type AlertRuleResource struct {
Tags map[string]*string `json:"tags"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// MarshalJSON is the custom marshaler for AlertRuleResource.
func (arr AlertRuleResource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -883,7 +830,6 @@ func (arr AlertRuleResource) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UnmarshalJSON is the custom unmarshaler for AlertRuleResource struct.
func (arr *AlertRuleResource) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -953,7 +899,6 @@ func (arr *AlertRuleResource) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AlertRuleResourceCollection represents a collection of alert rule resources.
type AlertRuleResourceCollection struct {
autorest.Response `json:"-"`
@@ -961,7 +906,6 @@ type AlertRuleResourceCollection struct {
Value *[]AlertRuleResource `json:"value,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AlertRuleResourcePatch the alert rule object for patch operations.
type AlertRuleResourcePatch struct {
// Tags - Resource tags
@@ -970,7 +914,6 @@ type AlertRuleResourcePatch struct {
*AlertRule `json:"properties,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// MarshalJSON is the custom marshaler for AlertRuleResourcePatch.
func (arrp AlertRuleResourcePatch) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -983,7 +926,6 @@ func (arrp AlertRuleResourcePatch) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UnmarshalJSON is the custom unmarshaler for AlertRuleResourcePatch struct.
func (arrp *AlertRuleResourcePatch) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -1017,7 +959,6 @@ func (arrp *AlertRuleResourcePatch) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AutomationRunbookReceiver the Azure Automation Runbook notification receiver.
type AutomationRunbookReceiver struct {
// AutomationAccountID - The Azure automation account Id which holds this runbook and authenticate to Azure resource.
@@ -1034,7 +975,6 @@ type AutomationRunbookReceiver struct {
ServiceURI *string `json:"serviceUri,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AutoscaleNotification autoscale notification.
type AutoscaleNotification struct {
// Operation - the operation associated with the notification and its value must be "scale"
@@ -1045,7 +985,6 @@ type AutoscaleNotification struct {
Webhooks *[]WebhookNotification `json:"webhooks,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AutoscaleProfile autoscale profile.
type AutoscaleProfile struct {
// Name - the name of the profile.
@@ -1060,7 +999,6 @@ type AutoscaleProfile struct {
Recurrence *Recurrence `json:"recurrence,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AutoscaleSetting a setting that contains all of the configuration for the automatic scaling of a resource.
type AutoscaleSetting struct {
// Profiles - the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified.
@@ -1075,7 +1013,6 @@ type AutoscaleSetting struct {
TargetResourceURI *string `json:"targetResourceUri,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AutoscaleSettingResource the autoscale setting resource.
type AutoscaleSettingResource struct {
autorest.Response `json:"-"`
@@ -1093,7 +1030,6 @@ type AutoscaleSettingResource struct {
Tags map[string]*string `json:"tags"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// MarshalJSON is the custom marshaler for AutoscaleSettingResource.
func (asr AutoscaleSettingResource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -1118,7 +1054,6 @@ func (asr AutoscaleSettingResource) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UnmarshalJSON is the custom unmarshaler for AutoscaleSettingResource struct.
func (asr *AutoscaleSettingResource) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -1188,7 +1123,6 @@ func (asr *AutoscaleSettingResource) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AutoscaleSettingResourceCollection represents a collection of autoscale setting resources.
type AutoscaleSettingResourceCollection struct {
autorest.Response `json:"-"`
@@ -1198,7 +1132,6 @@ type AutoscaleSettingResourceCollection struct {
NextLink *string `json:"nextLink,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AutoscaleSettingResourceCollectionIterator provides access to a complete listing of AutoscaleSettingResource
// values.
type AutoscaleSettingResourceCollectionIterator struct {
@@ -1206,7 +1139,6 @@ type AutoscaleSettingResourceCollectionIterator struct {
page AutoscaleSettingResourceCollectionPage
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// Next advances to the next value. If there was an error making
// the request the iterator does not advance and the error is returned.
func (iter *AutoscaleSettingResourceCollectionIterator) Next() error {
@@ -1223,19 +1155,16 @@ func (iter *AutoscaleSettingResourceCollectionIterator) Next() error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// NotDone returns true if the enumeration should be started or is not yet complete.
func (iter AutoscaleSettingResourceCollectionIterator) NotDone() bool {
return iter.page.NotDone() && iter.i < len(iter.page.Values())
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// Response returns the raw server response from the last page request.
func (iter AutoscaleSettingResourceCollectionIterator) Response() AutoscaleSettingResourceCollection {
return iter.page.Response()
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// Value returns the current value or a zero-initialized value if the
// iterator has advanced beyond the end of the collection.
func (iter AutoscaleSettingResourceCollectionIterator) Value() AutoscaleSettingResource {
@@ -1245,7 +1174,6 @@ func (iter AutoscaleSettingResourceCollectionIterator) Value() AutoscaleSettingR
return iter.page.Values()[iter.i]
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// IsEmpty returns true if the ListResult contains no values.
func (asrc AutoscaleSettingResourceCollection) IsEmpty() bool {
return asrc.Value == nil || len(*asrc.Value) == 0
@@ -1263,14 +1191,12 @@ func (asrc AutoscaleSettingResourceCollection) autoscaleSettingResourceCollectio
autorest.WithBaseURL(to.String(asrc.NextLink)))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AutoscaleSettingResourceCollectionPage contains a page of AutoscaleSettingResource values.
type AutoscaleSettingResourceCollectionPage struct {
fn func(AutoscaleSettingResourceCollection) (AutoscaleSettingResourceCollection, error)
asrc AutoscaleSettingResourceCollection
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// Next advances to the next page of values. If there was an error making
// the request the page does not advance and the error is returned.
func (page *AutoscaleSettingResourceCollectionPage) Next() error {
@@ -1282,19 +1208,16 @@ func (page *AutoscaleSettingResourceCollectionPage) Next() error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// NotDone returns true if the page enumeration should be started or is not yet complete.
func (page AutoscaleSettingResourceCollectionPage) NotDone() bool {
return !page.asrc.IsEmpty()
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// Response returns the raw server response from the last page request.
func (page AutoscaleSettingResourceCollectionPage) Response() AutoscaleSettingResourceCollection {
return page.asrc
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// Values returns the slice of values for the current page or nil if there are no values.
func (page AutoscaleSettingResourceCollectionPage) Values() []AutoscaleSettingResource {
if page.asrc.IsEmpty() {
@@ -1303,7 +1226,6 @@ func (page AutoscaleSettingResourceCollectionPage) Values() []AutoscaleSettingRe
return *page.asrc.Value
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AutoscaleSettingResourcePatch the autoscale setting object for patch operations.
type AutoscaleSettingResourcePatch struct {
// Tags - Resource tags
@@ -1312,7 +1234,6 @@ type AutoscaleSettingResourcePatch struct {
*AutoscaleSetting `json:"properties,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// MarshalJSON is the custom marshaler for AutoscaleSettingResourcePatch.
func (asrp AutoscaleSettingResourcePatch) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -1325,7 +1246,6 @@ func (asrp AutoscaleSettingResourcePatch) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UnmarshalJSON is the custom unmarshaler for AutoscaleSettingResourcePatch struct.
func (asrp *AutoscaleSettingResourcePatch) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -1359,7 +1279,6 @@ func (asrp *AutoscaleSettingResourcePatch) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AzureAppPushReceiver the Azure mobile App push notification receiver.
type AzureAppPushReceiver struct {
// Name - The name of the Azure mobile app push receiver. Names must be unique across all receivers within an action group.
@@ -1368,7 +1287,6 @@ type AzureAppPushReceiver struct {
EmailAddress *string `json:"emailAddress,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// DiagnosticSettings the diagnostic settings.
type DiagnosticSettings struct {
// StorageAccountID - The resource ID of the storage account to which you would like to send Diagnostic Logs.
@@ -1385,14 +1303,12 @@ type DiagnosticSettings struct {
WorkspaceID *string `json:"workspaceId,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// DiagnosticSettingsCategory the diagnostic settings Category.
type DiagnosticSettingsCategory struct {
// CategoryType - The type of the diagnostic settings category. Possible values include: 'Metrics', 'Logs'
CategoryType CategoryType `json:"categoryType,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// DiagnosticSettingsCategoryResource the diagnostic settings category resource.
type DiagnosticSettingsCategoryResource struct {
autorest.Response `json:"-"`
@@ -1405,7 +1321,6 @@ type DiagnosticSettingsCategoryResource struct {
Type *string `json:"type,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// MarshalJSON is the custom marshaler for DiagnosticSettingsCategoryResource.
func (dscr DiagnosticSettingsCategoryResource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -1424,7 +1339,6 @@ func (dscr DiagnosticSettingsCategoryResource) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UnmarshalJSON is the custom unmarshaler for DiagnosticSettingsCategoryResource struct.
func (dscr *DiagnosticSettingsCategoryResource) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -1476,7 +1390,6 @@ func (dscr *DiagnosticSettingsCategoryResource) UnmarshalJSON(body []byte) error
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// DiagnosticSettingsCategoryResourceCollection represents a collection of diagnostic setting category resources.
type DiagnosticSettingsCategoryResourceCollection struct {
autorest.Response `json:"-"`
@@ -1484,7 +1397,6 @@ type DiagnosticSettingsCategoryResourceCollection struct {
Value *[]DiagnosticSettingsCategoryResource `json:"value,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// DiagnosticSettingsResource the diagnostic setting resource.
type DiagnosticSettingsResource struct {
autorest.Response `json:"-"`
@@ -1497,7 +1409,6 @@ type DiagnosticSettingsResource struct {
Type *string `json:"type,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// MarshalJSON is the custom marshaler for DiagnosticSettingsResource.
func (dsr DiagnosticSettingsResource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -1516,7 +1427,6 @@ func (dsr DiagnosticSettingsResource) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UnmarshalJSON is the custom unmarshaler for DiagnosticSettingsResource struct.
func (dsr *DiagnosticSettingsResource) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -1568,7 +1478,6 @@ func (dsr *DiagnosticSettingsResource) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// DiagnosticSettingsResourceCollection represents a collection of alert rule resources.
type DiagnosticSettingsResourceCollection struct {
autorest.Response `json:"-"`
@@ -1576,7 +1485,6 @@ type DiagnosticSettingsResourceCollection struct {
Value *[]DiagnosticSettingsResource `json:"value,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// EmailNotification email notification of an autoscale event.
type EmailNotification struct {
// SendToSubscriptionAdministrator - a value indicating whether to send email to subscription administrator.
@@ -1587,7 +1495,6 @@ type EmailNotification struct {
CustomEmails *[]string `json:"customEmails,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// EmailReceiver an email receiver.
type EmailReceiver struct {
// Name - The name of the email receiver. Names must be unique across all receivers within an action group.
@@ -1598,14 +1505,12 @@ type EmailReceiver struct {
Status ReceiverStatus `json:"status,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// EnableRequest describes a receiver that should be resubscribed.
type EnableRequest struct {
// ReceiverName - The name of the receiver to resubscribe.
ReceiverName *string `json:"receiverName,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ErrorResponse describes the format of Error response.
type ErrorResponse struct {
// Code - Error code
@@ -1614,7 +1519,6 @@ type ErrorResponse struct {
Message *string `json:"message,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// Incident an alert incident indicates the activation status of an alert rule.
type Incident struct {
autorest.Response `json:"-"`
@@ -1630,7 +1534,6 @@ type Incident struct {
ResolvedTime *date.Time `json:"resolvedTime,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// IncidentListResult the List incidents operation response.
type IncidentListResult struct {
autorest.Response `json:"-"`
@@ -1638,7 +1541,6 @@ type IncidentListResult struct {
Value *[]Incident `json:"value,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ItsmReceiver an Itsm receiver.
type ItsmReceiver struct {
// Name - The name of the Itsm receiver. Names must be unique across all receivers within an action group.
@@ -1653,7 +1555,6 @@ type ItsmReceiver struct {
Region *string `json:"region,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// LocationThresholdRuleCondition a rule condition based on a certain number of locations failing.
type LocationThresholdRuleCondition struct {
// WindowSize - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
@@ -1666,7 +1567,6 @@ type LocationThresholdRuleCondition struct {
OdataType OdataTypeBasicRuleCondition `json:"odata.type,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// MarshalJSON is the custom marshaler for LocationThresholdRuleCondition.
func (ltrc LocationThresholdRuleCondition) MarshalJSON() ([]byte, error) {
ltrc.OdataType = OdataTypeMicrosoftAzureManagementInsightsModelsLocationThresholdRuleCondition
@@ -1684,37 +1584,31 @@ func (ltrc LocationThresholdRuleCondition) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsThresholdRuleCondition is the BasicRuleCondition implementation for LocationThresholdRuleCondition.
func (ltrc LocationThresholdRuleCondition) AsThresholdRuleCondition() (*ThresholdRuleCondition, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsLocationThresholdRuleCondition is the BasicRuleCondition implementation for LocationThresholdRuleCondition.
func (ltrc LocationThresholdRuleCondition) AsLocationThresholdRuleCondition() (*LocationThresholdRuleCondition, bool) {
return <rc, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsManagementEventRuleCondition is the BasicRuleCondition implementation for LocationThresholdRuleCondition.
func (ltrc LocationThresholdRuleCondition) AsManagementEventRuleCondition() (*ManagementEventRuleCondition, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsRuleCondition is the BasicRuleCondition implementation for LocationThresholdRuleCondition.
func (ltrc LocationThresholdRuleCondition) AsRuleCondition() (*RuleCondition, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsBasicRuleCondition is the BasicRuleCondition implementation for LocationThresholdRuleCondition.
func (ltrc LocationThresholdRuleCondition) AsBasicRuleCondition() (BasicRuleCondition, bool) {
return <rc, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UnmarshalJSON is the custom unmarshaler for LocationThresholdRuleCondition struct.
func (ltrc *LocationThresholdRuleCondition) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -1765,7 +1659,6 @@ func (ltrc *LocationThresholdRuleCondition) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// LogProfileCollection represents a collection of log profiles.
type LogProfileCollection struct {
autorest.Response `json:"-"`
@@ -1773,7 +1666,6 @@ type LogProfileCollection struct {
Value *[]LogProfileResource `json:"value,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// LogProfileProperties the log profile properties.
type LogProfileProperties struct {
// StorageAccountID - the resource id of the storage account to which you would like to send the Activity Log.
@@ -1788,7 +1680,6 @@ type LogProfileProperties struct {
RetentionPolicy *RetentionPolicy `json:"retentionPolicy,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// LogProfileResource the log profile resource.
type LogProfileResource struct {
autorest.Response `json:"-"`
@@ -1806,7 +1697,6 @@ type LogProfileResource struct {
Tags map[string]*string `json:"tags"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// MarshalJSON is the custom marshaler for LogProfileResource.
func (lpr LogProfileResource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -1831,7 +1721,6 @@ func (lpr LogProfileResource) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UnmarshalJSON is the custom unmarshaler for LogProfileResource struct.
func (lpr *LogProfileResource) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -1901,7 +1790,6 @@ func (lpr *LogProfileResource) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// LogProfileResourcePatch the log profile resource for patch operations.
type LogProfileResourcePatch struct {
// Tags - Resource tags
@@ -1910,7 +1798,6 @@ type LogProfileResourcePatch struct {
*LogProfileProperties `json:"properties,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// MarshalJSON is the custom marshaler for LogProfileResourcePatch.
func (lprp LogProfileResourcePatch) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -1923,7 +1810,6 @@ func (lprp LogProfileResourcePatch) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UnmarshalJSON is the custom unmarshaler for LogProfileResourcePatch struct.
func (lprp *LogProfileResourcePatch) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -1957,7 +1843,6 @@ func (lprp *LogProfileResourcePatch) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// LogSettings part of MultiTenantDiagnosticSettings. Specifies the settings for a particular log.
type LogSettings struct {
// Category - Name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation.
@@ -1968,7 +1853,6 @@ type LogSettings struct {
RetentionPolicy *RetentionPolicy `json:"retentionPolicy,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ManagementEventAggregationCondition how the data that is collected should be combined over time.
type ManagementEventAggregationCondition struct {
// Operator - the condition operator. Possible values include: 'ConditionOperatorGreaterThan', 'ConditionOperatorGreaterThanOrEqual', 'ConditionOperatorLessThan', 'ConditionOperatorLessThanOrEqual'
@@ -1979,7 +1863,6 @@ type ManagementEventAggregationCondition struct {
WindowSize *string `json:"windowSize,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ManagementEventRuleCondition a management event rule condition.
type ManagementEventRuleCondition struct {
// Aggregation - How the data that is collected should be combined over time and when the alert is activated. Note that for management event alerts aggregation is optional – if it is not provided then any event will cause the alert to activate.
@@ -1990,7 +1873,6 @@ type ManagementEventRuleCondition struct {
OdataType OdataTypeBasicRuleCondition `json:"odata.type,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// MarshalJSON is the custom marshaler for ManagementEventRuleCondition.
func (merc ManagementEventRuleCondition) MarshalJSON() ([]byte, error) {
merc.OdataType = OdataTypeMicrosoftAzureManagementInsightsModelsManagementEventRuleCondition
@@ -2005,37 +1887,31 @@ func (merc ManagementEventRuleCondition) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsThresholdRuleCondition is the BasicRuleCondition implementation for ManagementEventRuleCondition.
func (merc ManagementEventRuleCondition) AsThresholdRuleCondition() (*ThresholdRuleCondition, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsLocationThresholdRuleCondition is the BasicRuleCondition implementation for ManagementEventRuleCondition.
func (merc ManagementEventRuleCondition) AsLocationThresholdRuleCondition() (*LocationThresholdRuleCondition, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsManagementEventRuleCondition is the BasicRuleCondition implementation for ManagementEventRuleCondition.
func (merc ManagementEventRuleCondition) AsManagementEventRuleCondition() (*ManagementEventRuleCondition, bool) {
return &merc, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsRuleCondition is the BasicRuleCondition implementation for ManagementEventRuleCondition.
func (merc ManagementEventRuleCondition) AsRuleCondition() (*RuleCondition, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsBasicRuleCondition is the BasicRuleCondition implementation for ManagementEventRuleCondition.
func (merc ManagementEventRuleCondition) AsBasicRuleCondition() (BasicRuleCondition, bool) {
return &merc, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UnmarshalJSON is the custom unmarshaler for ManagementEventRuleCondition struct.
func (merc *ManagementEventRuleCondition) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -2077,7 +1953,6 @@ func (merc *ManagementEventRuleCondition) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// MetricSettings part of MultiTenantDiagnosticSettings. Specifies the settings for a particular metric.
type MetricSettings struct {
// TimeGrain - the timegrain of the metric in ISO8601 format.
@@ -2090,7 +1965,6 @@ type MetricSettings struct {
RetentionPolicy *RetentionPolicy `json:"retentionPolicy,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// MetricTrigger the trigger that results in a scaling action.
type MetricTrigger struct {
// MetricName - the name of the metric that defines what the rule monitors.
@@ -2111,7 +1985,6 @@ type MetricTrigger struct {
Threshold *float64 `json:"threshold,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// Operation microsoft Insights API operation definition.
type Operation struct {
// Name - Operation name: {provider}/{resource}/{operation}
@@ -2120,7 +1993,6 @@ type Operation struct {
Display *OperationDisplay `json:"display,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// OperationDisplay display metadata associated with the operation.
type OperationDisplay struct {
// Provider - Service provider: Microsoft.Insights
@@ -2131,7 +2003,6 @@ type OperationDisplay struct {
Operation *string `json:"operation,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// OperationListResult result of the request to list Microsoft.Insights operations. It contains a list of
// operations and a URL link to get the next set of results.
type OperationListResult struct {
@@ -2142,7 +2013,6 @@ type OperationListResult struct {
NextLink *string `json:"nextLink,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ProxyOnlyResource a proxy only azure resource object
type ProxyOnlyResource struct {
// ID - Azure resource Id
@@ -2153,7 +2023,6 @@ type ProxyOnlyResource struct {
Type *string `json:"type,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// Recurrence the repeating times at which this profile begins. This element is not used if the FixedDate element
// is used.
type Recurrence struct {
@@ -2163,7 +2032,6 @@ type Recurrence struct {
Schedule *RecurrentSchedule `json:"schedule,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// RecurrentSchedule the scheduling constraints for when the profile begins.
type RecurrentSchedule struct {
// TimeZone - the timezone for the hours of the profile. Some examples of valid timezones are: Dateline Standard Time, UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain Standard Time (Mexico), Mountain Standard Time, Central America Standard Time, Central Standard Time, Central Standard Time (Mexico), Canada Central Standard Time, SA Pacific Standard Time, Eastern Standard Time, US Eastern Standard Time, Venezuela Standard Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian Standard Time, SA Western Standard Time, Pacific SA Standard Time, Newfoundland Standard Time, E. South America Standard Time, Argentina Standard Time, SA Eastern Standard Time, Greenland Standard Time, Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W. Europe Standard Time, Central Europe Standard Time, Romance Standard Time, Central European Standard Time, W. Central Africa Standard Time, Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe Standard Time, South Africa Standard Time, FLE Standard Time, Turkey Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya Standard Time, Arabic Standard Time, Arab Standard Time, Belarus Standard Time, Russian Standard Time, E. Africa Standard Time, Iran Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus Standard Time, Afghanistan Standard Time, West Asia Standard Time, Ekaterinburg Standard Time, Pakistan Standard Time, India Standard Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time, Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time, China Standard Time, North Asia East Standard Time, Singapore Standard Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk Standard Time, Cen. Australia Standard Time, AUS Central Standard Time, E. Australia Standard Time, AUS Eastern Standard Time, West Pacific Standard Time, Tasmania Standard Time, Magadan Standard Time, Vladivostok Standard Time, Russia Time Zone 10, Central Pacific Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12, Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa Standard Time, Line Islands Standard Time
@@ -2176,7 +2044,6 @@ type RecurrentSchedule struct {
Minutes *[]int32 `json:"minutes,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// Resource an azure resource object
type Resource struct {
// ID - Azure resource Id
@@ -2191,7 +2058,6 @@ type Resource struct {
Tags map[string]*string `json:"tags"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// MarshalJSON is the custom marshaler for Resource.
func (r Resource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -2213,7 +2079,6 @@ func (r Resource) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// RetentionPolicy specifies the retention policy for the log.
type RetentionPolicy struct {
// Enabled - a value indicating whether the retention policy is enabled.
@@ -2222,7 +2087,6 @@ type RetentionPolicy struct {
Days *int32 `json:"days,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// BasicRuleAction the action that is performed when the alert rule becomes active, and when an alert condition is
// resolved.
type BasicRuleAction interface {
@@ -2231,7 +2095,6 @@ type BasicRuleAction interface {
AsRuleAction() (*RuleAction, bool)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// RuleAction the action that is performed when the alert rule becomes active, and when an alert condition is
// resolved.
type RuleAction struct {
@@ -2280,7 +2143,6 @@ func unmarshalBasicRuleActionArray(body []byte) ([]BasicRuleAction, error) {
return raArray, nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// MarshalJSON is the custom marshaler for RuleAction.
func (ra RuleAction) MarshalJSON() ([]byte, error) {
ra.OdataType = OdataTypeRuleAction
@@ -2291,31 +2153,26 @@ func (ra RuleAction) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsRuleEmailAction is the BasicRuleAction implementation for RuleAction.
func (ra RuleAction) AsRuleEmailAction() (*RuleEmailAction, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsRuleWebhookAction is the BasicRuleAction implementation for RuleAction.
func (ra RuleAction) AsRuleWebhookAction() (*RuleWebhookAction, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsRuleAction is the BasicRuleAction implementation for RuleAction.
func (ra RuleAction) AsRuleAction() (*RuleAction, bool) {
return &ra, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsBasicRuleAction is the BasicRuleAction implementation for RuleAction.
func (ra RuleAction) AsBasicRuleAction() (BasicRuleAction, bool) {
return &ra, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// BasicRuleCondition the condition that results in the alert rule being activated.
type BasicRuleCondition interface {
AsThresholdRuleCondition() (*ThresholdRuleCondition, bool)
@@ -2324,7 +2181,6 @@ type BasicRuleCondition interface {
AsRuleCondition() (*RuleCondition, bool)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// RuleCondition the condition that results in the alert rule being activated.
type RuleCondition struct {
// DataSource - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
@@ -2378,7 +2234,6 @@ func unmarshalBasicRuleConditionArray(body []byte) ([]BasicRuleCondition, error)
return rcArray, nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// MarshalJSON is the custom marshaler for RuleCondition.
func (rc RuleCondition) MarshalJSON() ([]byte, error) {
rc.OdataType = OdataTypeRuleCondition
@@ -2390,37 +2245,31 @@ func (rc RuleCondition) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsThresholdRuleCondition is the BasicRuleCondition implementation for RuleCondition.
func (rc RuleCondition) AsThresholdRuleCondition() (*ThresholdRuleCondition, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsLocationThresholdRuleCondition is the BasicRuleCondition implementation for RuleCondition.
func (rc RuleCondition) AsLocationThresholdRuleCondition() (*LocationThresholdRuleCondition, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsManagementEventRuleCondition is the BasicRuleCondition implementation for RuleCondition.
func (rc RuleCondition) AsManagementEventRuleCondition() (*ManagementEventRuleCondition, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsRuleCondition is the BasicRuleCondition implementation for RuleCondition.
func (rc RuleCondition) AsRuleCondition() (*RuleCondition, bool) {
return &rc, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsBasicRuleCondition is the BasicRuleCondition implementation for RuleCondition.
func (rc RuleCondition) AsBasicRuleCondition() (BasicRuleCondition, bool) {
return &rc, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UnmarshalJSON is the custom unmarshaler for RuleCondition struct.
func (rc *RuleCondition) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -2453,7 +2302,6 @@ func (rc *RuleCondition) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// BasicRuleDataSource the resource from which the rule collects its data.
type BasicRuleDataSource interface {
AsRuleMetricDataSource() (*RuleMetricDataSource, bool)
@@ -2461,7 +2309,6 @@ type BasicRuleDataSource interface {
AsRuleDataSource() (*RuleDataSource, bool)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// RuleDataSource the resource from which the rule collects its data.
type RuleDataSource struct {
// ResourceURI - the resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule.
@@ -2511,7 +2358,6 @@ func unmarshalBasicRuleDataSourceArray(body []byte) ([]BasicRuleDataSource, erro
return rdsArray, nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// MarshalJSON is the custom marshaler for RuleDataSource.
func (rds RuleDataSource) MarshalJSON() ([]byte, error) {
rds.OdataType = OdataTypeRuleDataSource
@@ -2525,31 +2371,26 @@ func (rds RuleDataSource) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsRuleMetricDataSource is the BasicRuleDataSource implementation for RuleDataSource.
func (rds RuleDataSource) AsRuleMetricDataSource() (*RuleMetricDataSource, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsRuleManagementEventDataSource is the BasicRuleDataSource implementation for RuleDataSource.
func (rds RuleDataSource) AsRuleManagementEventDataSource() (*RuleManagementEventDataSource, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsRuleDataSource is the BasicRuleDataSource implementation for RuleDataSource.
func (rds RuleDataSource) AsRuleDataSource() (*RuleDataSource, bool) {
return &rds, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsBasicRuleDataSource is the BasicRuleDataSource implementation for RuleDataSource.
func (rds RuleDataSource) AsBasicRuleDataSource() (BasicRuleDataSource, bool) {
return &rds, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// RuleEmailAction specifies the action to send email when the rule condition is evaluated. The discriminator is
// always RuleEmailAction in this case.
type RuleEmailAction struct {
@@ -2561,7 +2402,6 @@ type RuleEmailAction struct {
OdataType OdataTypeBasicRuleAction `json:"odata.type,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// MarshalJSON is the custom marshaler for RuleEmailAction.
func (rea RuleEmailAction) MarshalJSON() ([]byte, error) {
rea.OdataType = OdataTypeMicrosoftAzureManagementInsightsModelsRuleEmailAction
@@ -2578,38 +2418,32 @@ func (rea RuleEmailAction) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsRuleEmailAction is the BasicRuleAction implementation for RuleEmailAction.
func (rea RuleEmailAction) AsRuleEmailAction() (*RuleEmailAction, bool) {
return &rea, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsRuleWebhookAction is the BasicRuleAction implementation for RuleEmailAction.
func (rea RuleEmailAction) AsRuleWebhookAction() (*RuleWebhookAction, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsRuleAction is the BasicRuleAction implementation for RuleEmailAction.
func (rea RuleEmailAction) AsRuleAction() (*RuleAction, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsBasicRuleAction is the BasicRuleAction implementation for RuleEmailAction.
func (rea RuleEmailAction) AsBasicRuleAction() (BasicRuleAction, bool) {
return &rea, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// RuleManagementEventClaimsDataSource the claims for a rule management event data source.
type RuleManagementEventClaimsDataSource struct {
// EmailAddress - the email address.
EmailAddress *string `json:"emailAddress,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// RuleManagementEventDataSource a rule management event data source. The discriminator fields is always
// RuleManagementEventDataSource in this case.
type RuleManagementEventDataSource struct {
@@ -2637,7 +2471,6 @@ type RuleManagementEventDataSource struct {
OdataType OdataType `json:"odata.type,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// MarshalJSON is the custom marshaler for RuleManagementEventDataSource.
func (rmeds RuleManagementEventDataSource) MarshalJSON() ([]byte, error) {
rmeds.OdataType = OdataTypeMicrosoftAzureManagementInsightsModelsRuleManagementEventDataSource
@@ -2678,31 +2511,26 @@ func (rmeds RuleManagementEventDataSource) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsRuleMetricDataSource is the BasicRuleDataSource implementation for RuleManagementEventDataSource.
func (rmeds RuleManagementEventDataSource) AsRuleMetricDataSource() (*RuleMetricDataSource, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsRuleManagementEventDataSource is the BasicRuleDataSource implementation for RuleManagementEventDataSource.
func (rmeds RuleManagementEventDataSource) AsRuleManagementEventDataSource() (*RuleManagementEventDataSource, bool) {
return &rmeds, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsRuleDataSource is the BasicRuleDataSource implementation for RuleManagementEventDataSource.
func (rmeds RuleManagementEventDataSource) AsRuleDataSource() (*RuleDataSource, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsBasicRuleDataSource is the BasicRuleDataSource implementation for RuleManagementEventDataSource.
func (rmeds RuleManagementEventDataSource) AsBasicRuleDataSource() (BasicRuleDataSource, bool) {
return &rmeds, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// RuleMetricDataSource a rule metric data source. The discriminator value is always RuleMetricDataSource in this
// case.
type RuleMetricDataSource struct {
@@ -2714,7 +2542,6 @@ type RuleMetricDataSource struct {
OdataType OdataType `json:"odata.type,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// MarshalJSON is the custom marshaler for RuleMetricDataSource.
func (rmds RuleMetricDataSource) MarshalJSON() ([]byte, error) {
rmds.OdataType = OdataTypeMicrosoftAzureManagementInsightsModelsRuleMetricDataSource
@@ -2731,31 +2558,26 @@ func (rmds RuleMetricDataSource) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsRuleMetricDataSource is the BasicRuleDataSource implementation for RuleMetricDataSource.
func (rmds RuleMetricDataSource) AsRuleMetricDataSource() (*RuleMetricDataSource, bool) {
return &rmds, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsRuleManagementEventDataSource is the BasicRuleDataSource implementation for RuleMetricDataSource.
func (rmds RuleMetricDataSource) AsRuleManagementEventDataSource() (*RuleManagementEventDataSource, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsRuleDataSource is the BasicRuleDataSource implementation for RuleMetricDataSource.
func (rmds RuleMetricDataSource) AsRuleDataSource() (*RuleDataSource, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsBasicRuleDataSource is the BasicRuleDataSource implementation for RuleMetricDataSource.
func (rmds RuleMetricDataSource) AsBasicRuleDataSource() (BasicRuleDataSource, bool) {
return &rmds, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// RuleWebhookAction specifies the action to post to service when the rule condition is evaluated. The
// discriminator is always RuleWebhookAction in this case.
type RuleWebhookAction struct {
@@ -2767,7 +2589,6 @@ type RuleWebhookAction struct {
OdataType OdataTypeBasicRuleAction `json:"odata.type,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// MarshalJSON is the custom marshaler for RuleWebhookAction.
func (rwa RuleWebhookAction) MarshalJSON() ([]byte, error) {
rwa.OdataType = OdataTypeMicrosoftAzureManagementInsightsModelsRuleWebhookAction
@@ -2784,31 +2605,26 @@ func (rwa RuleWebhookAction) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsRuleEmailAction is the BasicRuleAction implementation for RuleWebhookAction.
func (rwa RuleWebhookAction) AsRuleEmailAction() (*RuleEmailAction, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsRuleWebhookAction is the BasicRuleAction implementation for RuleWebhookAction.
func (rwa RuleWebhookAction) AsRuleWebhookAction() (*RuleWebhookAction, bool) {
return &rwa, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsRuleAction is the BasicRuleAction implementation for RuleWebhookAction.
func (rwa RuleWebhookAction) AsRuleAction() (*RuleAction, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsBasicRuleAction is the BasicRuleAction implementation for RuleWebhookAction.
func (rwa RuleWebhookAction) AsBasicRuleAction() (BasicRuleAction, bool) {
return &rwa, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ScaleAction the parameters for the scaling action.
type ScaleAction struct {
// Direction - the scale direction. Whether the scaling action increases or decreases the number of instances. Possible values include: 'ScaleDirectionNone', 'ScaleDirectionIncrease', 'ScaleDirectionDecrease'
@@ -2821,7 +2637,6 @@ type ScaleAction struct {
Cooldown *string `json:"cooldown,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ScaleCapacity the number of instances that can be used during this profile.
type ScaleCapacity struct {
// Minimum - the minimum number of instances for the resource.
@@ -2832,7 +2647,6 @@ type ScaleCapacity struct {
Default *string `json:"default,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ScaleRule a rule that provide the triggers and parameters for the scaling action.
type ScaleRule struct {
// MetricTrigger - the trigger that results in a scaling action.
@@ -2841,7 +2655,6 @@ type ScaleRule struct {
ScaleAction *ScaleAction `json:"scaleAction,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// SmsReceiver an SMS receiver.
type SmsReceiver struct {
// Name - The name of the SMS receiver. Names must be unique across all receivers within an action group.
@@ -2854,7 +2667,6 @@ type SmsReceiver struct {
Status ReceiverStatus `json:"status,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ThresholdRuleCondition a rule condition based on a metric crossing a threshold.
type ThresholdRuleCondition struct {
// Operator - the operator used to compare the data and the threshold. Possible values include: 'ConditionOperatorGreaterThan', 'ConditionOperatorGreaterThanOrEqual', 'ConditionOperatorLessThan', 'ConditionOperatorLessThanOrEqual'
@@ -2871,7 +2683,6 @@ type ThresholdRuleCondition struct {
OdataType OdataTypeBasicRuleCondition `json:"odata.type,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// MarshalJSON is the custom marshaler for ThresholdRuleCondition.
func (trc ThresholdRuleCondition) MarshalJSON() ([]byte, error) {
trc.OdataType = OdataTypeMicrosoftAzureManagementInsightsModelsThresholdRuleCondition
@@ -2895,37 +2706,31 @@ func (trc ThresholdRuleCondition) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsThresholdRuleCondition is the BasicRuleCondition implementation for ThresholdRuleCondition.
func (trc ThresholdRuleCondition) AsThresholdRuleCondition() (*ThresholdRuleCondition, bool) {
return &trc, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsLocationThresholdRuleCondition is the BasicRuleCondition implementation for ThresholdRuleCondition.
func (trc ThresholdRuleCondition) AsLocationThresholdRuleCondition() (*LocationThresholdRuleCondition, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsManagementEventRuleCondition is the BasicRuleCondition implementation for ThresholdRuleCondition.
func (trc ThresholdRuleCondition) AsManagementEventRuleCondition() (*ManagementEventRuleCondition, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsRuleCondition is the BasicRuleCondition implementation for ThresholdRuleCondition.
func (trc ThresholdRuleCondition) AsRuleCondition() (*RuleCondition, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// AsBasicRuleCondition is the BasicRuleCondition implementation for ThresholdRuleCondition.
func (trc ThresholdRuleCondition) AsBasicRuleCondition() (BasicRuleCondition, bool) {
return &trc, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// UnmarshalJSON is the custom unmarshaler for ThresholdRuleCondition struct.
func (trc *ThresholdRuleCondition) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -2994,7 +2799,6 @@ func (trc *ThresholdRuleCondition) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// TimeWindow a specific date-time for the profile.
type TimeWindow struct {
// TimeZone - the timezone of the start and end times for the profile. Some examples of valid timezones are: Dateline Standard Time, UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain Standard Time (Mexico), Mountain Standard Time, Central America Standard Time, Central Standard Time, Central Standard Time (Mexico), Canada Central Standard Time, SA Pacific Standard Time, Eastern Standard Time, US Eastern Standard Time, Venezuela Standard Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian Standard Time, SA Western Standard Time, Pacific SA Standard Time, Newfoundland Standard Time, E. South America Standard Time, Argentina Standard Time, SA Eastern Standard Time, Greenland Standard Time, Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W. Europe Standard Time, Central Europe Standard Time, Romance Standard Time, Central European Standard Time, W. Central Africa Standard Time, Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe Standard Time, South Africa Standard Time, FLE Standard Time, Turkey Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya Standard Time, Arabic Standard Time, Arab Standard Time, Belarus Standard Time, Russian Standard Time, E. Africa Standard Time, Iran Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus Standard Time, Afghanistan Standard Time, West Asia Standard Time, Ekaterinburg Standard Time, Pakistan Standard Time, India Standard Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time, Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time, China Standard Time, North Asia East Standard Time, Singapore Standard Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk Standard Time, Cen. Australia Standard Time, AUS Central Standard Time, E. Australia Standard Time, AUS Eastern Standard Time, West Pacific Standard Time, Tasmania Standard Time, Magadan Standard Time, Vladivostok Standard Time, Russia Time Zone 10, Central Pacific Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12, Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa Standard Time, Line Islands Standard Time
@@ -3005,7 +2809,6 @@ type TimeWindow struct {
End *date.Time `json:"end,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// WebhookNotification webhook notification of an autoscale event.
type WebhookNotification struct {
// ServiceURI - the service address to receive the notification.
@@ -3014,7 +2817,6 @@ type WebhookNotification struct {
Properties map[string]*string `json:"properties"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// MarshalJSON is the custom marshaler for WebhookNotification.
func (wn WebhookNotification) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -3027,7 +2829,6 @@ func (wn WebhookNotification) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// WebhookReceiver a webhook receiver.
type WebhookReceiver struct {
// Name - The name of the webhook receiver. Names must be unique across all receivers within an action group.
diff --git a/services/monitor/mgmt/2017-05-01-preview/insights/operations.go b/services/monitor/mgmt/2017-05-01-preview/insights/operations.go
index 0f8daa94860a..bcfbfcf93b3d 100644
--- a/services/monitor/mgmt/2017-05-01-preview/insights/operations.go
+++ b/services/monitor/mgmt/2017-05-01-preview/insights/operations.go
@@ -24,25 +24,21 @@ import (
"net/http"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// OperationsClient is the monitor Management Client
type OperationsClient struct {
BaseClient
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// NewOperationsClient creates an instance of the OperationsClient client.
func NewOperationsClient(subscriptionID string) OperationsClient {
return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// List lists all of the available operations from Microsoft.Insights provider.
func (client OperationsClient) List(ctx context.Context) (result OperationListResult, err error) {
req, err := client.ListPreparer(ctx)
@@ -66,7 +62,6 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListPreparer prepares the List request.
func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) {
const APIVersion = "2015-04-01"
@@ -82,7 +77,6 @@ func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request,
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListSender sends the List request. The method will close the
// http.Response Body if it receives an error.
func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error) {
@@ -90,7 +84,6 @@ func (client OperationsClient) ListSender(req *http.Request) (*http.Response, er
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// ListResponder handles the response to the List request. The method always
// closes the http.Response Body.
func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error) {
diff --git a/services/monitor/mgmt/2017-05-01-preview/insights/version.go b/services/monitor/mgmt/2017-05-01-preview/insights/version.go
index 6b4f11815f00..c33ff9d7cbc9 100644
--- a/services/monitor/mgmt/2017-05-01-preview/insights/version.go
+++ b/services/monitor/mgmt/2017-05-01-preview/insights/version.go
@@ -18,13 +18,12 @@ import "github.com/Azure/azure-sdk-for-go/version"
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
+
// UserAgent returns the UserAgent string to use when sending http.Requests.
func UserAgent() string {
return "Azure-SDK-For-Go/" + version.Number + " insights/2017-05-01-preview"
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights instead.
// Version returns the semantic version (see http://semver.org) of the client.
func Version() string {
return version.Number
diff --git a/services/monitor/mgmt/2018-03-01/insights/actiongroups.go b/services/monitor/mgmt/2018-03-01/insights/actiongroups.go
index 73ce7da423be..3ff54e01dcce 100644
--- a/services/monitor/mgmt/2018-03-01/insights/actiongroups.go
+++ b/services/monitor/mgmt/2018-03-01/insights/actiongroups.go
@@ -25,35 +25,32 @@ import (
"net/http"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ActionGroupsClient is the monitor Management Client
type ActionGroupsClient struct {
BaseClient
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NewActionGroupsClient creates an instance of the ActionGroupsClient client.
func NewActionGroupsClient(subscriptionID string) ActionGroupsClient {
return NewActionGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NewActionGroupsClientWithBaseURI creates an instance of the ActionGroupsClient client.
func NewActionGroupsClientWithBaseURI(baseURI string, subscriptionID string) ActionGroupsClient {
return ActionGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// CreateOrUpdate create a new action group or update an existing one.
-//
-// resourceGroupName is the name of the resource group. actionGroupName is the name of the action group.
-// actionGroup is the action group to create or use for the update.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// actionGroupName - the name of the action group.
+// actionGroup - the action group to create or use for the update.
func (client ActionGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, actionGroupName string, actionGroup ActionGroupResource) (result ActionGroupResource, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: actionGroup,
Constraints: []validation.Constraint{{Target: "actionGroup.ActionGroup", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "actionGroup.ActionGroup.GroupShortName", Name: validation.Null, Rule: true,
- Chain: []validation.Constraint{{Target: "actionGroup.ActionGroup.GroupShortName", Name: validation.MaxLength, Rule: 12, Chain: nil}}},
+ Chain: []validation.Constraint{{Target: "actionGroup.ActionGroup.GroupShortName", Name: validation.MaxLength, Rule: 15, Chain: nil}}},
{Target: "actionGroup.ActionGroup.Enabled", Name: validation.Null, Rule: true, Chain: nil},
}}}}}); err != nil {
return result, validation.NewError("insights.ActionGroupsClient", "CreateOrUpdate", err.Error())
@@ -80,7 +77,6 @@ func (client ActionGroupsClient) CreateOrUpdate(ctx context.Context, resourceGro
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client ActionGroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, actionGroupName string, actionGroup ActionGroupResource) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -104,7 +100,6 @@ func (client ActionGroupsClient) CreateOrUpdatePreparer(ctx context.Context, res
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
// http.Response Body if it receives an error.
func (client ActionGroupsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
@@ -112,7 +107,6 @@ func (client ActionGroupsClient) CreateOrUpdateSender(req *http.Request) (*http.
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
// closes the http.Response Body.
func (client ActionGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result ActionGroupResource, err error) {
@@ -126,10 +120,10 @@ func (client ActionGroupsClient) CreateOrUpdateResponder(resp *http.Response) (r
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Delete delete an action group.
-//
-// resourceGroupName is the name of the resource group. actionGroupName is the name of the action group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// actionGroupName - the name of the action group.
func (client ActionGroupsClient) Delete(ctx context.Context, resourceGroupName string, actionGroupName string) (result autorest.Response, err error) {
req, err := client.DeletePreparer(ctx, resourceGroupName, actionGroupName)
if err != nil {
@@ -152,7 +146,6 @@ func (client ActionGroupsClient) Delete(ctx context.Context, resourceGroupName s
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// DeletePreparer prepares the Delete request.
func (client ActionGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, actionGroupName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -174,7 +167,6 @@ func (client ActionGroupsClient) DeletePreparer(ctx context.Context, resourceGro
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
func (client ActionGroupsClient) DeleteSender(req *http.Request) (*http.Response, error) {
@@ -182,7 +174,6 @@ func (client ActionGroupsClient) DeleteSender(req *http.Request) (*http.Response
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// DeleteResponder handles the response to the Delete request. The method always
// closes the http.Response Body.
func (client ActionGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
@@ -195,12 +186,12 @@ func (client ActionGroupsClient) DeleteResponder(resp *http.Response) (result au
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// EnableReceiver enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled.
// This operation is only supported for Email or SMS receivers.
-//
-// resourceGroupName is the name of the resource group. actionGroupName is the name of the action group.
-// enableRequest is the receiver to re-enable.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// actionGroupName - the name of the action group.
+// enableRequest - the receiver to re-enable.
func (client ActionGroupsClient) EnableReceiver(ctx context.Context, resourceGroupName string, actionGroupName string, enableRequest EnableRequest) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: enableRequest,
@@ -229,7 +220,6 @@ func (client ActionGroupsClient) EnableReceiver(ctx context.Context, resourceGro
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// EnableReceiverPreparer prepares the EnableReceiver request.
func (client ActionGroupsClient) EnableReceiverPreparer(ctx context.Context, resourceGroupName string, actionGroupName string, enableRequest EnableRequest) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -253,7 +243,6 @@ func (client ActionGroupsClient) EnableReceiverPreparer(ctx context.Context, res
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// EnableReceiverSender sends the EnableReceiver request. The method will close the
// http.Response Body if it receives an error.
func (client ActionGroupsClient) EnableReceiverSender(req *http.Request) (*http.Response, error) {
@@ -261,7 +250,6 @@ func (client ActionGroupsClient) EnableReceiverSender(req *http.Request) (*http.
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// EnableReceiverResponder handles the response to the EnableReceiver request. The method always
// closes the http.Response Body.
func (client ActionGroupsClient) EnableReceiverResponder(resp *http.Response) (result autorest.Response, err error) {
@@ -274,10 +262,10 @@ func (client ActionGroupsClient) EnableReceiverResponder(resp *http.Response) (r
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Get get an action group.
-//
-// resourceGroupName is the name of the resource group. actionGroupName is the name of the action group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// actionGroupName - the name of the action group.
func (client ActionGroupsClient) Get(ctx context.Context, resourceGroupName string, actionGroupName string) (result ActionGroupResource, err error) {
req, err := client.GetPreparer(ctx, resourceGroupName, actionGroupName)
if err != nil {
@@ -300,7 +288,6 @@ func (client ActionGroupsClient) Get(ctx context.Context, resourceGroupName stri
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// GetPreparer prepares the Get request.
func (client ActionGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, actionGroupName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -322,7 +309,6 @@ func (client ActionGroupsClient) GetPreparer(ctx context.Context, resourceGroupN
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client ActionGroupsClient) GetSender(req *http.Request) (*http.Response, error) {
@@ -330,7 +316,6 @@ func (client ActionGroupsClient) GetSender(req *http.Request) (*http.Response, e
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client ActionGroupsClient) GetResponder(resp *http.Response) (result ActionGroupResource, err error) {
@@ -344,10 +329,9 @@ func (client ActionGroupsClient) GetResponder(resp *http.Response) (result Actio
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListByResourceGroup get a list of all action groups in a resource group.
-//
-// resourceGroupName is the name of the resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
func (client ActionGroupsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ActionGroupList, err error) {
req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName)
if err != nil {
@@ -370,7 +354,6 @@ func (client ActionGroupsClient) ListByResourceGroup(ctx context.Context, resour
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (client ActionGroupsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -391,7 +374,6 @@ func (client ActionGroupsClient) ListByResourceGroupPreparer(ctx context.Context
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
// http.Response Body if it receives an error.
func (client ActionGroupsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
@@ -399,7 +381,6 @@ func (client ActionGroupsClient) ListByResourceGroupSender(req *http.Request) (*
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
// closes the http.Response Body.
func (client ActionGroupsClient) ListByResourceGroupResponder(resp *http.Response) (result ActionGroupList, err error) {
@@ -413,7 +394,6 @@ func (client ActionGroupsClient) ListByResourceGroupResponder(resp *http.Respons
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListBySubscriptionID get a list of all action groups in a subscription.
func (client ActionGroupsClient) ListBySubscriptionID(ctx context.Context) (result ActionGroupList, err error) {
req, err := client.ListBySubscriptionIDPreparer(ctx)
@@ -437,7 +417,6 @@ func (client ActionGroupsClient) ListBySubscriptionID(ctx context.Context) (resu
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListBySubscriptionIDPreparer prepares the ListBySubscriptionID request.
func (client ActionGroupsClient) ListBySubscriptionIDPreparer(ctx context.Context) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -457,7 +436,6 @@ func (client ActionGroupsClient) ListBySubscriptionIDPreparer(ctx context.Contex
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListBySubscriptionIDSender sends the ListBySubscriptionID request. The method will close the
// http.Response Body if it receives an error.
func (client ActionGroupsClient) ListBySubscriptionIDSender(req *http.Request) (*http.Response, error) {
@@ -465,7 +443,6 @@ func (client ActionGroupsClient) ListBySubscriptionIDSender(req *http.Request) (
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListBySubscriptionIDResponder handles the response to the ListBySubscriptionID request. The method always
// closes the http.Response Body.
func (client ActionGroupsClient) ListBySubscriptionIDResponder(resp *http.Response) (result ActionGroupList, err error) {
@@ -479,11 +456,11 @@ func (client ActionGroupsClient) ListBySubscriptionIDResponder(resp *http.Respon
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Update updates an existing action group's tags. To update other fields use the CreateOrUpdate method.
-//
-// resourceGroupName is the name of the resource group. actionGroupName is the name of the action group.
-// actionGroupPatch is parameters supplied to the operation.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// actionGroupName - the name of the action group.
+// actionGroupPatch - parameters supplied to the operation.
func (client ActionGroupsClient) Update(ctx context.Context, resourceGroupName string, actionGroupName string, actionGroupPatch ActionGroupPatchBody) (result ActionGroupResource, err error) {
req, err := client.UpdatePreparer(ctx, resourceGroupName, actionGroupName, actionGroupPatch)
if err != nil {
@@ -506,7 +483,6 @@ func (client ActionGroupsClient) Update(ctx context.Context, resourceGroupName s
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UpdatePreparer prepares the Update request.
func (client ActionGroupsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, actionGroupName string, actionGroupPatch ActionGroupPatchBody) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -530,7 +506,6 @@ func (client ActionGroupsClient) UpdatePreparer(ctx context.Context, resourceGro
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UpdateSender sends the Update request. The method will close the
// http.Response Body if it receives an error.
func (client ActionGroupsClient) UpdateSender(req *http.Request) (*http.Response, error) {
@@ -538,7 +513,6 @@ func (client ActionGroupsClient) UpdateSender(req *http.Request) (*http.Response
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UpdateResponder handles the response to the Update request. The method always
// closes the http.Response Body.
func (client ActionGroupsClient) UpdateResponder(resp *http.Response) (result ActionGroupResource, err error) {
diff --git a/services/monitor/mgmt/2018-03-01/insights/activitylogalerts.go b/services/monitor/mgmt/2018-03-01/insights/activitylogalerts.go
index 39607aa23c69..9b86523b802c 100644
--- a/services/monitor/mgmt/2018-03-01/insights/activitylogalerts.go
+++ b/services/monitor/mgmt/2018-03-01/insights/activitylogalerts.go
@@ -25,29 +25,26 @@ import (
"net/http"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ActivityLogAlertsClient is the monitor Management Client
type ActivityLogAlertsClient struct {
BaseClient
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NewActivityLogAlertsClient creates an instance of the ActivityLogAlertsClient client.
func NewActivityLogAlertsClient(subscriptionID string) ActivityLogAlertsClient {
return NewActivityLogAlertsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NewActivityLogAlertsClientWithBaseURI creates an instance of the ActivityLogAlertsClient client.
func NewActivityLogAlertsClientWithBaseURI(baseURI string, subscriptionID string) ActivityLogAlertsClient {
return ActivityLogAlertsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// CreateOrUpdate create a new activity log alert or update an existing one.
-//
-// resourceGroupName is the name of the resource group. activityLogAlertName is the name of the activity log alert.
-// activityLogAlert is the activity log alert to create or use for the update.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// activityLogAlertName - the name of the activity log alert.
+// activityLogAlert - the activity log alert to create or use for the update.
func (client ActivityLogAlertsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, activityLogAlertName string, activityLogAlert ActivityLogAlertResource) (result ActivityLogAlertResource, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: activityLogAlert,
@@ -81,7 +78,6 @@ func (client ActivityLogAlertsClient) CreateOrUpdate(ctx context.Context, resour
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client ActivityLogAlertsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, activityLogAlertName string, activityLogAlert ActivityLogAlertResource) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -105,7 +101,6 @@ func (client ActivityLogAlertsClient) CreateOrUpdatePreparer(ctx context.Context
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
// http.Response Body if it receives an error.
func (client ActivityLogAlertsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
@@ -113,7 +108,6 @@ func (client ActivityLogAlertsClient) CreateOrUpdateSender(req *http.Request) (*
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
// closes the http.Response Body.
func (client ActivityLogAlertsClient) CreateOrUpdateResponder(resp *http.Response) (result ActivityLogAlertResource, err error) {
@@ -127,10 +121,10 @@ func (client ActivityLogAlertsClient) CreateOrUpdateResponder(resp *http.Respons
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Delete delete an activity log alert.
-//
-// resourceGroupName is the name of the resource group. activityLogAlertName is the name of the activity log alert.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// activityLogAlertName - the name of the activity log alert.
func (client ActivityLogAlertsClient) Delete(ctx context.Context, resourceGroupName string, activityLogAlertName string) (result autorest.Response, err error) {
req, err := client.DeletePreparer(ctx, resourceGroupName, activityLogAlertName)
if err != nil {
@@ -153,7 +147,6 @@ func (client ActivityLogAlertsClient) Delete(ctx context.Context, resourceGroupN
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// DeletePreparer prepares the Delete request.
func (client ActivityLogAlertsClient) DeletePreparer(ctx context.Context, resourceGroupName string, activityLogAlertName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -175,7 +168,6 @@ func (client ActivityLogAlertsClient) DeletePreparer(ctx context.Context, resour
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
func (client ActivityLogAlertsClient) DeleteSender(req *http.Request) (*http.Response, error) {
@@ -183,7 +175,6 @@ func (client ActivityLogAlertsClient) DeleteSender(req *http.Request) (*http.Res
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// DeleteResponder handles the response to the Delete request. The method always
// closes the http.Response Body.
func (client ActivityLogAlertsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
@@ -196,10 +187,10 @@ func (client ActivityLogAlertsClient) DeleteResponder(resp *http.Response) (resu
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Get get an activity log alert.
-//
-// resourceGroupName is the name of the resource group. activityLogAlertName is the name of the activity log alert.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// activityLogAlertName - the name of the activity log alert.
func (client ActivityLogAlertsClient) Get(ctx context.Context, resourceGroupName string, activityLogAlertName string) (result ActivityLogAlertResource, err error) {
req, err := client.GetPreparer(ctx, resourceGroupName, activityLogAlertName)
if err != nil {
@@ -222,7 +213,6 @@ func (client ActivityLogAlertsClient) Get(ctx context.Context, resourceGroupName
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// GetPreparer prepares the Get request.
func (client ActivityLogAlertsClient) GetPreparer(ctx context.Context, resourceGroupName string, activityLogAlertName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -244,7 +234,6 @@ func (client ActivityLogAlertsClient) GetPreparer(ctx context.Context, resourceG
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client ActivityLogAlertsClient) GetSender(req *http.Request) (*http.Response, error) {
@@ -252,7 +241,6 @@ func (client ActivityLogAlertsClient) GetSender(req *http.Request) (*http.Respon
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client ActivityLogAlertsClient) GetResponder(resp *http.Response) (result ActivityLogAlertResource, err error) {
@@ -266,10 +254,9 @@ func (client ActivityLogAlertsClient) GetResponder(resp *http.Response) (result
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListByResourceGroup get a list of all activity log alerts in a resource group.
-//
-// resourceGroupName is the name of the resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
func (client ActivityLogAlertsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ActivityLogAlertList, err error) {
req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName)
if err != nil {
@@ -292,7 +279,6 @@ func (client ActivityLogAlertsClient) ListByResourceGroup(ctx context.Context, r
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (client ActivityLogAlertsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -313,7 +299,6 @@ func (client ActivityLogAlertsClient) ListByResourceGroupPreparer(ctx context.Co
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
// http.Response Body if it receives an error.
func (client ActivityLogAlertsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
@@ -321,7 +306,6 @@ func (client ActivityLogAlertsClient) ListByResourceGroupSender(req *http.Reques
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
// closes the http.Response Body.
func (client ActivityLogAlertsClient) ListByResourceGroupResponder(resp *http.Response) (result ActivityLogAlertList, err error) {
@@ -335,7 +319,6 @@ func (client ActivityLogAlertsClient) ListByResourceGroupResponder(resp *http.Re
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListBySubscriptionID get a list of all activity log alerts in a subscription.
func (client ActivityLogAlertsClient) ListBySubscriptionID(ctx context.Context) (result ActivityLogAlertList, err error) {
req, err := client.ListBySubscriptionIDPreparer(ctx)
@@ -359,7 +342,6 @@ func (client ActivityLogAlertsClient) ListBySubscriptionID(ctx context.Context)
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListBySubscriptionIDPreparer prepares the ListBySubscriptionID request.
func (client ActivityLogAlertsClient) ListBySubscriptionIDPreparer(ctx context.Context) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -379,7 +361,6 @@ func (client ActivityLogAlertsClient) ListBySubscriptionIDPreparer(ctx context.C
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListBySubscriptionIDSender sends the ListBySubscriptionID request. The method will close the
// http.Response Body if it receives an error.
func (client ActivityLogAlertsClient) ListBySubscriptionIDSender(req *http.Request) (*http.Response, error) {
@@ -387,7 +368,6 @@ func (client ActivityLogAlertsClient) ListBySubscriptionIDSender(req *http.Reque
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListBySubscriptionIDResponder handles the response to the ListBySubscriptionID request. The method always
// closes the http.Response Body.
func (client ActivityLogAlertsClient) ListBySubscriptionIDResponder(resp *http.Response) (result ActivityLogAlertList, err error) {
@@ -401,11 +381,11 @@ func (client ActivityLogAlertsClient) ListBySubscriptionIDResponder(resp *http.R
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Update updates an existing ActivityLogAlertResource's tags. To update other fields use the CreateOrUpdate method.
-//
-// resourceGroupName is the name of the resource group. activityLogAlertName is the name of the activity log alert.
-// activityLogAlertPatch is parameters supplied to the operation.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// activityLogAlertName - the name of the activity log alert.
+// activityLogAlertPatch - parameters supplied to the operation.
func (client ActivityLogAlertsClient) Update(ctx context.Context, resourceGroupName string, activityLogAlertName string, activityLogAlertPatch ActivityLogAlertPatchBody) (result ActivityLogAlertResource, err error) {
req, err := client.UpdatePreparer(ctx, resourceGroupName, activityLogAlertName, activityLogAlertPatch)
if err != nil {
@@ -428,7 +408,6 @@ func (client ActivityLogAlertsClient) Update(ctx context.Context, resourceGroupN
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UpdatePreparer prepares the Update request.
func (client ActivityLogAlertsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, activityLogAlertName string, activityLogAlertPatch ActivityLogAlertPatchBody) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -452,7 +431,6 @@ func (client ActivityLogAlertsClient) UpdatePreparer(ctx context.Context, resour
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UpdateSender sends the Update request. The method will close the
// http.Response Body if it receives an error.
func (client ActivityLogAlertsClient) UpdateSender(req *http.Request) (*http.Response, error) {
@@ -460,7 +438,6 @@ func (client ActivityLogAlertsClient) UpdateSender(req *http.Request) (*http.Res
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UpdateResponder handles the response to the Update request. The method always
// closes the http.Response Body.
func (client ActivityLogAlertsClient) UpdateResponder(resp *http.Response) (result ActivityLogAlertResource, err error) {
diff --git a/services/monitor/mgmt/2018-03-01/insights/activitylogs.go b/services/monitor/mgmt/2018-03-01/insights/activitylogs.go
index a3dc0a685444..0a3c4e1137f9 100644
--- a/services/monitor/mgmt/2018-03-01/insights/activitylogs.go
+++ b/services/monitor/mgmt/2018-03-01/insights/activitylogs.go
@@ -24,42 +24,40 @@ import (
"net/http"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ActivityLogsClient is the monitor Management Client
type ActivityLogsClient struct {
BaseClient
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NewActivityLogsClient creates an instance of the ActivityLogsClient client.
func NewActivityLogsClient(subscriptionID string) ActivityLogsClient {
return NewActivityLogsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NewActivityLogsClientWithBaseURI creates an instance of the ActivityLogsClient client.
func NewActivityLogsClientWithBaseURI(baseURI string, subscriptionID string) ActivityLogsClient {
return ActivityLogsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// List provides the list of records from the activity logs.
-//
-// filter is reduces the set of data collected.
The **$filter** argument is very restricted and allows only the
-// following patterns.
- *List events for a resource group*: $filter=eventTimestamp ge
+// Parameters:
+// filter - reduces the set of data collected.
The **$filter** argument is very restricted and allows only
+// the following patterns.
- *List events for a resource group*: $filter=eventTimestamp ge
// '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and resourceGroupName eq
-// 'resourceGroupName'.
- *List events for resource*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z'
-// and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and resourceUri eq 'resourceURI'.
- *List events for a
-// subscription in a time range*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le
-// '2014-07-20T04:36:37.6407898Z'.
- *List events for a resource provider*: $filter=eventTimestamp ge
-// '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and resourceProvider eq
-// 'resourceProviderName'.
- *List events for a correlation Id*: $filter=eventTimestamp ge
-// '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and correlationId eq
-// 'correlationID'.
**NOTE**: No other syntax is allowed. selectParameter is used to fetch events with only
-// the given properties.
The **$select** argument is a comma separated list of property names to be returned.
-// Possible values are: *authorization*, *claims*, *correlationId*, *description*, *eventDataId*, *eventName*,
-// *eventTimestamp*, *httpRequest*, *level*, *operationId*, *operationName*, *properties*, *resourceGroupName*,
-// *resourceProviderName*, *resourceId*, *status*, *submissionTimestamp*, *subStatus*, *subscriptionId*
+// 'resourceGroupName'.
- *List events for resource*: $filter=eventTimestamp ge
+// '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and resourceUri eq
+// 'resourceURI'.
- *List events for a subscription in a time range*: $filter=eventTimestamp ge
+// '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z'.
- *List events for a
+// resource provider*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le
+// '2014-07-20T04:36:37.6407898Z' and resourceProvider eq 'resourceProviderName'.
- *List events for a
+// correlation Id*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le
+// '2014-07-20T04:36:37.6407898Z' and correlationId eq 'correlationID'.
**NOTE**: No other syntax is
+// allowed.
+// selectParameter - used to fetch events with only the given properties.
The **$select** argument is a
+// comma separated list of property names to be returned. Possible values are: *authorization*, *claims*,
+// *correlationId*, *description*, *eventDataId*, *eventName*, *eventTimestamp*, *httpRequest*, *level*,
+// *operationId*, *operationName*, *properties*, *resourceGroupName*, *resourceProviderName*, *resourceId*,
+// *status*, *submissionTimestamp*, *subStatus*, *subscriptionId*
func (client ActivityLogsClient) List(ctx context.Context, filter string, selectParameter string) (result EventDataCollectionPage, err error) {
result.fn = client.listNextResults
req, err := client.ListPreparer(ctx, filter, selectParameter)
@@ -83,7 +81,6 @@ func (client ActivityLogsClient) List(ctx context.Context, filter string, select
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListPreparer prepares the List request.
func (client ActivityLogsClient) ListPreparer(ctx context.Context, filter string, selectParameter string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -109,7 +106,6 @@ func (client ActivityLogsClient) ListPreparer(ctx context.Context, filter string
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListSender sends the List request. The method will close the
// http.Response Body if it receives an error.
func (client ActivityLogsClient) ListSender(req *http.Request) (*http.Response, error) {
@@ -117,7 +113,6 @@ func (client ActivityLogsClient) ListSender(req *http.Request) (*http.Response,
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListResponder handles the response to the List request. The method always
// closes the http.Response Body.
func (client ActivityLogsClient) ListResponder(resp *http.Response) (result EventDataCollection, err error) {
@@ -152,7 +147,6 @@ func (client ActivityLogsClient) listNextResults(lastResults EventDataCollection
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client ActivityLogsClient) ListComplete(ctx context.Context, filter string, selectParameter string) (result EventDataCollectionIterator, err error) {
result.page, err = client.List(ctx, filter, selectParameter)
diff --git a/services/monitor/mgmt/2018-03-01/insights/alertruleincidents.go b/services/monitor/mgmt/2018-03-01/insights/alertruleincidents.go
index dd61e7141934..aa0f1f5b56e0 100644
--- a/services/monitor/mgmt/2018-03-01/insights/alertruleincidents.go
+++ b/services/monitor/mgmt/2018-03-01/insights/alertruleincidents.go
@@ -24,29 +24,26 @@ import (
"net/http"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AlertRuleIncidentsClient is the monitor Management Client
type AlertRuleIncidentsClient struct {
BaseClient
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NewAlertRuleIncidentsClient creates an instance of the AlertRuleIncidentsClient client.
func NewAlertRuleIncidentsClient(subscriptionID string) AlertRuleIncidentsClient {
return NewAlertRuleIncidentsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NewAlertRuleIncidentsClientWithBaseURI creates an instance of the AlertRuleIncidentsClient client.
func NewAlertRuleIncidentsClientWithBaseURI(baseURI string, subscriptionID string) AlertRuleIncidentsClient {
return AlertRuleIncidentsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Get gets an incident associated to an alert rule
-//
-// resourceGroupName is the name of the resource group. ruleName is the name of the rule. incidentName is the name
-// of the incident to retrieve.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// ruleName - the name of the rule.
+// incidentName - the name of the incident to retrieve.
func (client AlertRuleIncidentsClient) Get(ctx context.Context, resourceGroupName string, ruleName string, incidentName string) (result Incident, err error) {
req, err := client.GetPreparer(ctx, resourceGroupName, ruleName, incidentName)
if err != nil {
@@ -69,7 +66,6 @@ func (client AlertRuleIncidentsClient) Get(ctx context.Context, resourceGroupNam
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// GetPreparer prepares the Get request.
func (client AlertRuleIncidentsClient) GetPreparer(ctx context.Context, resourceGroupName string, ruleName string, incidentName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -92,7 +88,6 @@ func (client AlertRuleIncidentsClient) GetPreparer(ctx context.Context, resource
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client AlertRuleIncidentsClient) GetSender(req *http.Request) (*http.Response, error) {
@@ -100,7 +95,6 @@ func (client AlertRuleIncidentsClient) GetSender(req *http.Request) (*http.Respo
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client AlertRuleIncidentsClient) GetResponder(resp *http.Response) (result Incident, err error) {
@@ -114,10 +108,10 @@ func (client AlertRuleIncidentsClient) GetResponder(resp *http.Response) (result
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListByAlertRule gets a list of incidents associated to an alert rule
-//
-// resourceGroupName is the name of the resource group. ruleName is the name of the rule.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// ruleName - the name of the rule.
func (client AlertRuleIncidentsClient) ListByAlertRule(ctx context.Context, resourceGroupName string, ruleName string) (result IncidentListResult, err error) {
req, err := client.ListByAlertRulePreparer(ctx, resourceGroupName, ruleName)
if err != nil {
@@ -140,7 +134,6 @@ func (client AlertRuleIncidentsClient) ListByAlertRule(ctx context.Context, reso
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListByAlertRulePreparer prepares the ListByAlertRule request.
func (client AlertRuleIncidentsClient) ListByAlertRulePreparer(ctx context.Context, resourceGroupName string, ruleName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -162,7 +155,6 @@ func (client AlertRuleIncidentsClient) ListByAlertRulePreparer(ctx context.Conte
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListByAlertRuleSender sends the ListByAlertRule request. The method will close the
// http.Response Body if it receives an error.
func (client AlertRuleIncidentsClient) ListByAlertRuleSender(req *http.Request) (*http.Response, error) {
@@ -170,7 +162,6 @@ func (client AlertRuleIncidentsClient) ListByAlertRuleSender(req *http.Request)
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListByAlertRuleResponder handles the response to the ListByAlertRule request. The method always
// closes the http.Response Body.
func (client AlertRuleIncidentsClient) ListByAlertRuleResponder(resp *http.Response) (result IncidentListResult, err error) {
diff --git a/services/monitor/mgmt/2018-03-01/insights/alertrules.go b/services/monitor/mgmt/2018-03-01/insights/alertrules.go
index 37b44ad183dc..c38f5453d50b 100644
--- a/services/monitor/mgmt/2018-03-01/insights/alertrules.go
+++ b/services/monitor/mgmt/2018-03-01/insights/alertrules.go
@@ -25,29 +25,26 @@ import (
"net/http"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AlertRulesClient is the monitor Management Client
type AlertRulesClient struct {
BaseClient
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NewAlertRulesClient creates an instance of the AlertRulesClient client.
func NewAlertRulesClient(subscriptionID string) AlertRulesClient {
return NewAlertRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NewAlertRulesClientWithBaseURI creates an instance of the AlertRulesClient client.
func NewAlertRulesClientWithBaseURI(baseURI string, subscriptionID string) AlertRulesClient {
return AlertRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// CreateOrUpdate creates or updates an alert rule.
-//
-// resourceGroupName is the name of the resource group. ruleName is the name of the rule. parameters is the
-// parameters of the rule to create or update.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// ruleName - the name of the rule.
+// parameters - the parameters of the rule to create or update.
func (client AlertRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, ruleName string, parameters AlertRuleResource) (result AlertRuleResource, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: parameters,
@@ -80,7 +77,6 @@ func (client AlertRulesClient) CreateOrUpdate(ctx context.Context, resourceGroup
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client AlertRulesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, ruleName string, parameters AlertRuleResource) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -104,7 +100,6 @@ func (client AlertRulesClient) CreateOrUpdatePreparer(ctx context.Context, resou
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
// http.Response Body if it receives an error.
func (client AlertRulesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
@@ -112,7 +107,6 @@ func (client AlertRulesClient) CreateOrUpdateSender(req *http.Request) (*http.Re
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
// closes the http.Response Body.
func (client AlertRulesClient) CreateOrUpdateResponder(resp *http.Response) (result AlertRuleResource, err error) {
@@ -126,10 +120,10 @@ func (client AlertRulesClient) CreateOrUpdateResponder(resp *http.Response) (res
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Delete deletes an alert rule
-//
-// resourceGroupName is the name of the resource group. ruleName is the name of the rule.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// ruleName - the name of the rule.
func (client AlertRulesClient) Delete(ctx context.Context, resourceGroupName string, ruleName string) (result autorest.Response, err error) {
req, err := client.DeletePreparer(ctx, resourceGroupName, ruleName)
if err != nil {
@@ -152,7 +146,6 @@ func (client AlertRulesClient) Delete(ctx context.Context, resourceGroupName str
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// DeletePreparer prepares the Delete request.
func (client AlertRulesClient) DeletePreparer(ctx context.Context, resourceGroupName string, ruleName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -174,7 +167,6 @@ func (client AlertRulesClient) DeletePreparer(ctx context.Context, resourceGroup
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
func (client AlertRulesClient) DeleteSender(req *http.Request) (*http.Response, error) {
@@ -182,7 +174,6 @@ func (client AlertRulesClient) DeleteSender(req *http.Request) (*http.Response,
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// DeleteResponder handles the response to the Delete request. The method always
// closes the http.Response Body.
func (client AlertRulesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
@@ -195,10 +186,10 @@ func (client AlertRulesClient) DeleteResponder(resp *http.Response) (result auto
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Get gets an alert rule
-//
-// resourceGroupName is the name of the resource group. ruleName is the name of the rule.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// ruleName - the name of the rule.
func (client AlertRulesClient) Get(ctx context.Context, resourceGroupName string, ruleName string) (result AlertRuleResource, err error) {
req, err := client.GetPreparer(ctx, resourceGroupName, ruleName)
if err != nil {
@@ -221,7 +212,6 @@ func (client AlertRulesClient) Get(ctx context.Context, resourceGroupName string
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// GetPreparer prepares the Get request.
func (client AlertRulesClient) GetPreparer(ctx context.Context, resourceGroupName string, ruleName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -243,7 +233,6 @@ func (client AlertRulesClient) GetPreparer(ctx context.Context, resourceGroupNam
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client AlertRulesClient) GetSender(req *http.Request) (*http.Response, error) {
@@ -251,7 +240,6 @@ func (client AlertRulesClient) GetSender(req *http.Request) (*http.Response, err
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client AlertRulesClient) GetResponder(resp *http.Response) (result AlertRuleResource, err error) {
@@ -265,10 +253,9 @@ func (client AlertRulesClient) GetResponder(resp *http.Response) (result AlertRu
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListByResourceGroup list the alert rules within a resource group.
-//
-// resourceGroupName is the name of the resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
func (client AlertRulesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result AlertRuleResourceCollection, err error) {
req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName)
if err != nil {
@@ -291,7 +278,6 @@ func (client AlertRulesClient) ListByResourceGroup(ctx context.Context, resource
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (client AlertRulesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -312,7 +298,6 @@ func (client AlertRulesClient) ListByResourceGroupPreparer(ctx context.Context,
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
// http.Response Body if it receives an error.
func (client AlertRulesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
@@ -320,7 +305,6 @@ func (client AlertRulesClient) ListByResourceGroupSender(req *http.Request) (*ht
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
// closes the http.Response Body.
func (client AlertRulesClient) ListByResourceGroupResponder(resp *http.Response) (result AlertRuleResourceCollection, err error) {
@@ -334,11 +318,11 @@ func (client AlertRulesClient) ListByResourceGroupResponder(resp *http.Response)
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Update updates an existing AlertRuleResource. To update other fields use the CreateOrUpdate method.
-//
-// resourceGroupName is the name of the resource group. ruleName is the name of the rule. alertRulesResource is
-// parameters supplied to the operation.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// ruleName - the name of the rule.
+// alertRulesResource - parameters supplied to the operation.
func (client AlertRulesClient) Update(ctx context.Context, resourceGroupName string, ruleName string, alertRulesResource AlertRuleResourcePatch) (result AlertRuleResource, err error) {
req, err := client.UpdatePreparer(ctx, resourceGroupName, ruleName, alertRulesResource)
if err != nil {
@@ -361,7 +345,6 @@ func (client AlertRulesClient) Update(ctx context.Context, resourceGroupName str
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UpdatePreparer prepares the Update request.
func (client AlertRulesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, ruleName string, alertRulesResource AlertRuleResourcePatch) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -385,7 +368,6 @@ func (client AlertRulesClient) UpdatePreparer(ctx context.Context, resourceGroup
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UpdateSender sends the Update request. The method will close the
// http.Response Body if it receives an error.
func (client AlertRulesClient) UpdateSender(req *http.Request) (*http.Response, error) {
@@ -393,7 +375,6 @@ func (client AlertRulesClient) UpdateSender(req *http.Request) (*http.Response,
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UpdateResponder handles the response to the Update request. The method always
// closes the http.Response Body.
func (client AlertRulesClient) UpdateResponder(resp *http.Response) (result AlertRuleResource, err error) {
diff --git a/services/monitor/mgmt/2018-03-01/insights/autoscalesettings.go b/services/monitor/mgmt/2018-03-01/insights/autoscalesettings.go
index 5214fcb457e5..95eb1e80a1f5 100644
--- a/services/monitor/mgmt/2018-03-01/insights/autoscalesettings.go
+++ b/services/monitor/mgmt/2018-03-01/insights/autoscalesettings.go
@@ -25,29 +25,26 @@ import (
"net/http"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AutoscaleSettingsClient is the monitor Management Client
type AutoscaleSettingsClient struct {
BaseClient
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NewAutoscaleSettingsClient creates an instance of the AutoscaleSettingsClient client.
func NewAutoscaleSettingsClient(subscriptionID string) AutoscaleSettingsClient {
return NewAutoscaleSettingsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NewAutoscaleSettingsClientWithBaseURI creates an instance of the AutoscaleSettingsClient client.
func NewAutoscaleSettingsClientWithBaseURI(baseURI string, subscriptionID string) AutoscaleSettingsClient {
return AutoscaleSettingsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// CreateOrUpdate creates or updates an autoscale setting.
-//
-// resourceGroupName is the name of the resource group. autoscaleSettingName is the autoscale setting name.
-// parameters is parameters supplied to the operation.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// autoscaleSettingName - the autoscale setting name.
+// parameters - parameters supplied to the operation.
func (client AutoscaleSettingsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, autoscaleSettingName string, parameters AutoscaleSettingResource) (result AutoscaleSettingResource, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: parameters,
@@ -79,7 +76,6 @@ func (client AutoscaleSettingsClient) CreateOrUpdate(ctx context.Context, resour
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client AutoscaleSettingsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, autoscaleSettingName string, parameters AutoscaleSettingResource) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -103,7 +99,6 @@ func (client AutoscaleSettingsClient) CreateOrUpdatePreparer(ctx context.Context
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
// http.Response Body if it receives an error.
func (client AutoscaleSettingsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
@@ -111,7 +106,6 @@ func (client AutoscaleSettingsClient) CreateOrUpdateSender(req *http.Request) (*
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
// closes the http.Response Body.
func (client AutoscaleSettingsClient) CreateOrUpdateResponder(resp *http.Response) (result AutoscaleSettingResource, err error) {
@@ -125,10 +119,10 @@ func (client AutoscaleSettingsClient) CreateOrUpdateResponder(resp *http.Respons
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Delete deletes and autoscale setting
-//
-// resourceGroupName is the name of the resource group. autoscaleSettingName is the autoscale setting name.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// autoscaleSettingName - the autoscale setting name.
func (client AutoscaleSettingsClient) Delete(ctx context.Context, resourceGroupName string, autoscaleSettingName string) (result autorest.Response, err error) {
req, err := client.DeletePreparer(ctx, resourceGroupName, autoscaleSettingName)
if err != nil {
@@ -151,7 +145,6 @@ func (client AutoscaleSettingsClient) Delete(ctx context.Context, resourceGroupN
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// DeletePreparer prepares the Delete request.
func (client AutoscaleSettingsClient) DeletePreparer(ctx context.Context, resourceGroupName string, autoscaleSettingName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -173,7 +166,6 @@ func (client AutoscaleSettingsClient) DeletePreparer(ctx context.Context, resour
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
func (client AutoscaleSettingsClient) DeleteSender(req *http.Request) (*http.Response, error) {
@@ -181,7 +173,6 @@ func (client AutoscaleSettingsClient) DeleteSender(req *http.Request) (*http.Res
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// DeleteResponder handles the response to the Delete request. The method always
// closes the http.Response Body.
func (client AutoscaleSettingsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
@@ -194,10 +185,10 @@ func (client AutoscaleSettingsClient) DeleteResponder(resp *http.Response) (resu
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Get gets an autoscale setting
-//
-// resourceGroupName is the name of the resource group. autoscaleSettingName is the autoscale setting name.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// autoscaleSettingName - the autoscale setting name.
func (client AutoscaleSettingsClient) Get(ctx context.Context, resourceGroupName string, autoscaleSettingName string) (result AutoscaleSettingResource, err error) {
req, err := client.GetPreparer(ctx, resourceGroupName, autoscaleSettingName)
if err != nil {
@@ -220,7 +211,6 @@ func (client AutoscaleSettingsClient) Get(ctx context.Context, resourceGroupName
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// GetPreparer prepares the Get request.
func (client AutoscaleSettingsClient) GetPreparer(ctx context.Context, resourceGroupName string, autoscaleSettingName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -242,7 +232,6 @@ func (client AutoscaleSettingsClient) GetPreparer(ctx context.Context, resourceG
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client AutoscaleSettingsClient) GetSender(req *http.Request) (*http.Response, error) {
@@ -250,7 +239,6 @@ func (client AutoscaleSettingsClient) GetSender(req *http.Request) (*http.Respon
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client AutoscaleSettingsClient) GetResponder(resp *http.Response) (result AutoscaleSettingResource, err error) {
@@ -264,10 +252,9 @@ func (client AutoscaleSettingsClient) GetResponder(resp *http.Response) (result
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListByResourceGroup lists the autoscale settings for a resource group
-//
-// resourceGroupName is the name of the resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
func (client AutoscaleSettingsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result AutoscaleSettingResourceCollectionPage, err error) {
result.fn = client.listByResourceGroupNextResults
req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName)
@@ -291,7 +278,6 @@ func (client AutoscaleSettingsClient) ListByResourceGroup(ctx context.Context, r
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (client AutoscaleSettingsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -312,7 +298,6 @@ func (client AutoscaleSettingsClient) ListByResourceGroupPreparer(ctx context.Co
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
// http.Response Body if it receives an error.
func (client AutoscaleSettingsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
@@ -320,7 +305,6 @@ func (client AutoscaleSettingsClient) ListByResourceGroupSender(req *http.Reques
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
// closes the http.Response Body.
func (client AutoscaleSettingsClient) ListByResourceGroupResponder(resp *http.Response) (result AutoscaleSettingResourceCollection, err error) {
@@ -355,18 +339,17 @@ func (client AutoscaleSettingsClient) listByResourceGroupNextResults(lastResults
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (client AutoscaleSettingsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result AutoscaleSettingResourceCollectionIterator, err error) {
result.page, err = client.ListByResourceGroup(ctx, resourceGroupName)
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Update updates an existing AutoscaleSettingsResource. To update other fields use the CreateOrUpdate method.
-//
-// resourceGroupName is the name of the resource group. autoscaleSettingName is the autoscale setting name.
-// autoscaleSettingResource is parameters supplied to the operation.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// autoscaleSettingName - the autoscale setting name.
+// autoscaleSettingResource - parameters supplied to the operation.
func (client AutoscaleSettingsClient) Update(ctx context.Context, resourceGroupName string, autoscaleSettingName string, autoscaleSettingResource AutoscaleSettingResourcePatch) (result AutoscaleSettingResource, err error) {
req, err := client.UpdatePreparer(ctx, resourceGroupName, autoscaleSettingName, autoscaleSettingResource)
if err != nil {
@@ -389,7 +372,6 @@ func (client AutoscaleSettingsClient) Update(ctx context.Context, resourceGroupN
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UpdatePreparer prepares the Update request.
func (client AutoscaleSettingsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, autoscaleSettingName string, autoscaleSettingResource AutoscaleSettingResourcePatch) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -413,7 +395,6 @@ func (client AutoscaleSettingsClient) UpdatePreparer(ctx context.Context, resour
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UpdateSender sends the Update request. The method will close the
// http.Response Body if it receives an error.
func (client AutoscaleSettingsClient) UpdateSender(req *http.Request) (*http.Response, error) {
@@ -421,7 +402,6 @@ func (client AutoscaleSettingsClient) UpdateSender(req *http.Request) (*http.Res
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UpdateResponder handles the response to the Update request. The method always
// closes the http.Response Body.
func (client AutoscaleSettingsClient) UpdateResponder(resp *http.Response) (result AutoscaleSettingResource, err error) {
diff --git a/services/monitor/mgmt/2018-03-01/insights/client.go b/services/monitor/mgmt/2018-03-01/insights/client.go
index c5a0ad53b020..5ed388022a2b 100644
--- a/services/monitor/mgmt/2018-03-01/insights/client.go
+++ b/services/monitor/mgmt/2018-03-01/insights/client.go
@@ -29,7 +29,6 @@ const (
DefaultBaseURI = "https://management.azure.com"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// BaseClient is the base client for Insights.
type BaseClient struct {
autorest.Client
@@ -37,13 +36,11 @@ type BaseClient struct {
SubscriptionID string
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// New creates an instance of the BaseClient client.
func New(subscriptionID string) BaseClient {
return NewWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NewWithBaseURI creates an instance of the BaseClient client.
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return BaseClient{
diff --git a/services/monitor/mgmt/2018-03-01/insights/diagnosticsettings.go b/services/monitor/mgmt/2018-03-01/insights/diagnosticsettings.go
index d1d90bf0416a..1010aad77ec9 100644
--- a/services/monitor/mgmt/2018-03-01/insights/diagnosticsettings.go
+++ b/services/monitor/mgmt/2018-03-01/insights/diagnosticsettings.go
@@ -24,29 +24,26 @@ import (
"net/http"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// DiagnosticSettingsClient is the monitor Management Client
type DiagnosticSettingsClient struct {
BaseClient
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NewDiagnosticSettingsClient creates an instance of the DiagnosticSettingsClient client.
func NewDiagnosticSettingsClient(subscriptionID string) DiagnosticSettingsClient {
return NewDiagnosticSettingsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NewDiagnosticSettingsClientWithBaseURI creates an instance of the DiagnosticSettingsClient client.
func NewDiagnosticSettingsClientWithBaseURI(baseURI string, subscriptionID string) DiagnosticSettingsClient {
return DiagnosticSettingsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// CreateOrUpdate creates or updates diagnostic settings for the specified resource.
-//
-// resourceURI is the identifier of the resource. parameters is parameters supplied to the operation. name is the
-// name of the diagnostic setting.
+// Parameters:
+// resourceURI - the identifier of the resource.
+// parameters - parameters supplied to the operation.
+// name - the name of the diagnostic setting.
func (client DiagnosticSettingsClient) CreateOrUpdate(ctx context.Context, resourceURI string, parameters DiagnosticSettingsResource, name string) (result DiagnosticSettingsResource, err error) {
req, err := client.CreateOrUpdatePreparer(ctx, resourceURI, parameters, name)
if err != nil {
@@ -69,7 +66,6 @@ func (client DiagnosticSettingsClient) CreateOrUpdate(ctx context.Context, resou
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client DiagnosticSettingsClient) CreateOrUpdatePreparer(ctx context.Context, resourceURI string, parameters DiagnosticSettingsResource, name string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -92,7 +88,6 @@ func (client DiagnosticSettingsClient) CreateOrUpdatePreparer(ctx context.Contex
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
// http.Response Body if it receives an error.
func (client DiagnosticSettingsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
@@ -100,7 +95,6 @@ func (client DiagnosticSettingsClient) CreateOrUpdateSender(req *http.Request) (
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
// closes the http.Response Body.
func (client DiagnosticSettingsClient) CreateOrUpdateResponder(resp *http.Response) (result DiagnosticSettingsResource, err error) {
@@ -114,10 +108,10 @@ func (client DiagnosticSettingsClient) CreateOrUpdateResponder(resp *http.Respon
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Delete deletes existing diagnostic settings for the specified resource.
-//
-// resourceURI is the identifier of the resource. name is the name of the diagnostic setting.
+// Parameters:
+// resourceURI - the identifier of the resource.
+// name - the name of the diagnostic setting.
func (client DiagnosticSettingsClient) Delete(ctx context.Context, resourceURI string, name string) (result autorest.Response, err error) {
req, err := client.DeletePreparer(ctx, resourceURI, name)
if err != nil {
@@ -140,7 +134,6 @@ func (client DiagnosticSettingsClient) Delete(ctx context.Context, resourceURI s
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// DeletePreparer prepares the Delete request.
func (client DiagnosticSettingsClient) DeletePreparer(ctx context.Context, resourceURI string, name string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -161,7 +154,6 @@ func (client DiagnosticSettingsClient) DeletePreparer(ctx context.Context, resou
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
func (client DiagnosticSettingsClient) DeleteSender(req *http.Request) (*http.Response, error) {
@@ -169,7 +161,6 @@ func (client DiagnosticSettingsClient) DeleteSender(req *http.Request) (*http.Re
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// DeleteResponder handles the response to the Delete request. The method always
// closes the http.Response Body.
func (client DiagnosticSettingsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
@@ -182,10 +173,10 @@ func (client DiagnosticSettingsClient) DeleteResponder(resp *http.Response) (res
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Get gets the active diagnostic settings for the specified resource.
-//
-// resourceURI is the identifier of the resource. name is the name of the diagnostic setting.
+// Parameters:
+// resourceURI - the identifier of the resource.
+// name - the name of the diagnostic setting.
func (client DiagnosticSettingsClient) Get(ctx context.Context, resourceURI string, name string) (result DiagnosticSettingsResource, err error) {
req, err := client.GetPreparer(ctx, resourceURI, name)
if err != nil {
@@ -208,7 +199,6 @@ func (client DiagnosticSettingsClient) Get(ctx context.Context, resourceURI stri
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// GetPreparer prepares the Get request.
func (client DiagnosticSettingsClient) GetPreparer(ctx context.Context, resourceURI string, name string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -229,7 +219,6 @@ func (client DiagnosticSettingsClient) GetPreparer(ctx context.Context, resource
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client DiagnosticSettingsClient) GetSender(req *http.Request) (*http.Response, error) {
@@ -237,7 +226,6 @@ func (client DiagnosticSettingsClient) GetSender(req *http.Request) (*http.Respo
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client DiagnosticSettingsClient) GetResponder(resp *http.Response) (result DiagnosticSettingsResource, err error) {
@@ -251,10 +239,9 @@ func (client DiagnosticSettingsClient) GetResponder(resp *http.Response) (result
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// List gets the active diagnostic settings list for the specified resource.
-//
-// resourceURI is the identifier of the resource.
+// Parameters:
+// resourceURI - the identifier of the resource.
func (client DiagnosticSettingsClient) List(ctx context.Context, resourceURI string) (result DiagnosticSettingsResourceCollection, err error) {
req, err := client.ListPreparer(ctx, resourceURI)
if err != nil {
@@ -277,7 +264,6 @@ func (client DiagnosticSettingsClient) List(ctx context.Context, resourceURI str
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListPreparer prepares the List request.
func (client DiagnosticSettingsClient) ListPreparer(ctx context.Context, resourceURI string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -297,7 +283,6 @@ func (client DiagnosticSettingsClient) ListPreparer(ctx context.Context, resourc
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListSender sends the List request. The method will close the
// http.Response Body if it receives an error.
func (client DiagnosticSettingsClient) ListSender(req *http.Request) (*http.Response, error) {
@@ -305,7 +290,6 @@ func (client DiagnosticSettingsClient) ListSender(req *http.Request) (*http.Resp
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListResponder handles the response to the List request. The method always
// closes the http.Response Body.
func (client DiagnosticSettingsClient) ListResponder(resp *http.Response) (result DiagnosticSettingsResourceCollection, err error) {
diff --git a/services/monitor/mgmt/2018-03-01/insights/diagnosticsettingscategory.go b/services/monitor/mgmt/2018-03-01/insights/diagnosticsettingscategory.go
index c45ce4c2181e..ec64a3a83066 100644
--- a/services/monitor/mgmt/2018-03-01/insights/diagnosticsettingscategory.go
+++ b/services/monitor/mgmt/2018-03-01/insights/diagnosticsettingscategory.go
@@ -24,28 +24,25 @@ import (
"net/http"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// DiagnosticSettingsCategoryClient is the monitor Management Client
type DiagnosticSettingsCategoryClient struct {
BaseClient
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NewDiagnosticSettingsCategoryClient creates an instance of the DiagnosticSettingsCategoryClient client.
func NewDiagnosticSettingsCategoryClient(subscriptionID string) DiagnosticSettingsCategoryClient {
return NewDiagnosticSettingsCategoryClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NewDiagnosticSettingsCategoryClientWithBaseURI creates an instance of the DiagnosticSettingsCategoryClient client.
func NewDiagnosticSettingsCategoryClientWithBaseURI(baseURI string, subscriptionID string) DiagnosticSettingsCategoryClient {
return DiagnosticSettingsCategoryClient{NewWithBaseURI(baseURI, subscriptionID)}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Get gets the diagnostic settings category for the specified resource.
-//
-// resourceURI is the identifier of the resource. name is the name of the diagnostic setting.
+// Parameters:
+// resourceURI - the identifier of the resource.
+// name - the name of the diagnostic setting.
func (client DiagnosticSettingsCategoryClient) Get(ctx context.Context, resourceURI string, name string) (result DiagnosticSettingsCategoryResource, err error) {
req, err := client.GetPreparer(ctx, resourceURI, name)
if err != nil {
@@ -68,7 +65,6 @@ func (client DiagnosticSettingsCategoryClient) Get(ctx context.Context, resource
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// GetPreparer prepares the Get request.
func (client DiagnosticSettingsCategoryClient) GetPreparer(ctx context.Context, resourceURI string, name string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -89,7 +85,6 @@ func (client DiagnosticSettingsCategoryClient) GetPreparer(ctx context.Context,
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client DiagnosticSettingsCategoryClient) GetSender(req *http.Request) (*http.Response, error) {
@@ -97,7 +92,6 @@ func (client DiagnosticSettingsCategoryClient) GetSender(req *http.Request) (*ht
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client DiagnosticSettingsCategoryClient) GetResponder(resp *http.Response) (result DiagnosticSettingsCategoryResource, err error) {
@@ -111,10 +105,9 @@ func (client DiagnosticSettingsCategoryClient) GetResponder(resp *http.Response)
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// List lists the diagnostic settings categories for the specified resource.
-//
-// resourceURI is the identifier of the resource.
+// Parameters:
+// resourceURI - the identifier of the resource.
func (client DiagnosticSettingsCategoryClient) List(ctx context.Context, resourceURI string) (result DiagnosticSettingsCategoryResourceCollection, err error) {
req, err := client.ListPreparer(ctx, resourceURI)
if err != nil {
@@ -137,7 +130,6 @@ func (client DiagnosticSettingsCategoryClient) List(ctx context.Context, resourc
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListPreparer prepares the List request.
func (client DiagnosticSettingsCategoryClient) ListPreparer(ctx context.Context, resourceURI string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -157,7 +149,6 @@ func (client DiagnosticSettingsCategoryClient) ListPreparer(ctx context.Context,
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListSender sends the List request. The method will close the
// http.Response Body if it receives an error.
func (client DiagnosticSettingsCategoryClient) ListSender(req *http.Request) (*http.Response, error) {
@@ -165,7 +156,6 @@ func (client DiagnosticSettingsCategoryClient) ListSender(req *http.Request) (*h
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListResponder handles the response to the List request. The method always
// closes the http.Response Body.
func (client DiagnosticSettingsCategoryClient) ListResponder(resp *http.Response) (result DiagnosticSettingsCategoryResourceCollection, err error) {
diff --git a/services/monitor/mgmt/2018-03-01/insights/eventcategories.go b/services/monitor/mgmt/2018-03-01/insights/eventcategories.go
index 2fb56d4e3089..fe2200db92cf 100644
--- a/services/monitor/mgmt/2018-03-01/insights/eventcategories.go
+++ b/services/monitor/mgmt/2018-03-01/insights/eventcategories.go
@@ -24,25 +24,21 @@ import (
"net/http"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// EventCategoriesClient is the monitor Management Client
type EventCategoriesClient struct {
BaseClient
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NewEventCategoriesClient creates an instance of the EventCategoriesClient client.
func NewEventCategoriesClient(subscriptionID string) EventCategoriesClient {
return NewEventCategoriesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NewEventCategoriesClientWithBaseURI creates an instance of the EventCategoriesClient client.
func NewEventCategoriesClientWithBaseURI(baseURI string, subscriptionID string) EventCategoriesClient {
return EventCategoriesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// List get the list of available event categories supported in the Activity Logs Service.
The current list includes
// the following: Administrative, Security, ServiceHealth, Alert, Recommendation, Policy.
func (client EventCategoriesClient) List(ctx context.Context) (result EventCategoryCollection, err error) {
@@ -67,7 +63,6 @@ func (client EventCategoriesClient) List(ctx context.Context) (result EventCateg
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListPreparer prepares the List request.
func (client EventCategoriesClient) ListPreparer(ctx context.Context) (*http.Request, error) {
const APIVersion = "2015-04-01"
@@ -83,7 +78,6 @@ func (client EventCategoriesClient) ListPreparer(ctx context.Context) (*http.Req
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListSender sends the List request. The method will close the
// http.Response Body if it receives an error.
func (client EventCategoriesClient) ListSender(req *http.Request) (*http.Response, error) {
@@ -91,7 +85,6 @@ func (client EventCategoriesClient) ListSender(req *http.Request) (*http.Respons
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListResponder handles the response to the List request. The method always
// closes the http.Response Body.
func (client EventCategoriesClient) ListResponder(resp *http.Response) (result EventCategoryCollection, err error) {
diff --git a/services/monitor/mgmt/2018-03-01/insights/logprofiles.go b/services/monitor/mgmt/2018-03-01/insights/logprofiles.go
index a591b5b334c2..70f4ec53779e 100644
--- a/services/monitor/mgmt/2018-03-01/insights/logprofiles.go
+++ b/services/monitor/mgmt/2018-03-01/insights/logprofiles.go
@@ -25,28 +25,25 @@ import (
"net/http"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// LogProfilesClient is the monitor Management Client
type LogProfilesClient struct {
BaseClient
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NewLogProfilesClient creates an instance of the LogProfilesClient client.
func NewLogProfilesClient(subscriptionID string) LogProfilesClient {
return NewLogProfilesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NewLogProfilesClientWithBaseURI creates an instance of the LogProfilesClient client.
func NewLogProfilesClientWithBaseURI(baseURI string, subscriptionID string) LogProfilesClient {
return LogProfilesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// CreateOrUpdate create or update a log profile in Azure Monitoring REST API.
-//
-// logProfileName is the name of the log profile. parameters is parameters supplied to the operation.
+// Parameters:
+// logProfileName - the name of the log profile.
+// parameters - parameters supplied to the operation.
func (client LogProfilesClient) CreateOrUpdate(ctx context.Context, logProfileName string, parameters LogProfileResource) (result LogProfileResource, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: parameters,
@@ -83,7 +80,6 @@ func (client LogProfilesClient) CreateOrUpdate(ctx context.Context, logProfileNa
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client LogProfilesClient) CreateOrUpdatePreparer(ctx context.Context, logProfileName string, parameters LogProfileResource) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -106,7 +102,6 @@ func (client LogProfilesClient) CreateOrUpdatePreparer(ctx context.Context, logP
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
// http.Response Body if it receives an error.
func (client LogProfilesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
@@ -114,7 +109,6 @@ func (client LogProfilesClient) CreateOrUpdateSender(req *http.Request) (*http.R
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
// closes the http.Response Body.
func (client LogProfilesClient) CreateOrUpdateResponder(resp *http.Response) (result LogProfileResource, err error) {
@@ -128,10 +122,9 @@ func (client LogProfilesClient) CreateOrUpdateResponder(resp *http.Response) (re
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Delete deletes the log profile.
-//
-// logProfileName is the name of the log profile.
+// Parameters:
+// logProfileName - the name of the log profile.
func (client LogProfilesClient) Delete(ctx context.Context, logProfileName string) (result autorest.Response, err error) {
req, err := client.DeletePreparer(ctx, logProfileName)
if err != nil {
@@ -154,7 +147,6 @@ func (client LogProfilesClient) Delete(ctx context.Context, logProfileName strin
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// DeletePreparer prepares the Delete request.
func (client LogProfilesClient) DeletePreparer(ctx context.Context, logProfileName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -175,7 +167,6 @@ func (client LogProfilesClient) DeletePreparer(ctx context.Context, logProfileNa
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
func (client LogProfilesClient) DeleteSender(req *http.Request) (*http.Response, error) {
@@ -183,7 +174,6 @@ func (client LogProfilesClient) DeleteSender(req *http.Request) (*http.Response,
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// DeleteResponder handles the response to the Delete request. The method always
// closes the http.Response Body.
func (client LogProfilesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
@@ -196,10 +186,9 @@ func (client LogProfilesClient) DeleteResponder(resp *http.Response) (result aut
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Get gets the log profile.
-//
-// logProfileName is the name of the log profile.
+// Parameters:
+// logProfileName - the name of the log profile.
func (client LogProfilesClient) Get(ctx context.Context, logProfileName string) (result LogProfileResource, err error) {
req, err := client.GetPreparer(ctx, logProfileName)
if err != nil {
@@ -222,7 +211,6 @@ func (client LogProfilesClient) Get(ctx context.Context, logProfileName string)
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// GetPreparer prepares the Get request.
func (client LogProfilesClient) GetPreparer(ctx context.Context, logProfileName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -243,7 +231,6 @@ func (client LogProfilesClient) GetPreparer(ctx context.Context, logProfileName
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client LogProfilesClient) GetSender(req *http.Request) (*http.Response, error) {
@@ -251,7 +238,6 @@ func (client LogProfilesClient) GetSender(req *http.Request) (*http.Response, er
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client LogProfilesClient) GetResponder(resp *http.Response) (result LogProfileResource, err error) {
@@ -265,7 +251,6 @@ func (client LogProfilesClient) GetResponder(resp *http.Response) (result LogPro
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// List list the log profiles.
func (client LogProfilesClient) List(ctx context.Context) (result LogProfileCollection, err error) {
req, err := client.ListPreparer(ctx)
@@ -289,7 +274,6 @@ func (client LogProfilesClient) List(ctx context.Context) (result LogProfileColl
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListPreparer prepares the List request.
func (client LogProfilesClient) ListPreparer(ctx context.Context) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -309,7 +293,6 @@ func (client LogProfilesClient) ListPreparer(ctx context.Context) (*http.Request
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListSender sends the List request. The method will close the
// http.Response Body if it receives an error.
func (client LogProfilesClient) ListSender(req *http.Request) (*http.Response, error) {
@@ -317,7 +300,6 @@ func (client LogProfilesClient) ListSender(req *http.Request) (*http.Response, e
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListResponder handles the response to the List request. The method always
// closes the http.Response Body.
func (client LogProfilesClient) ListResponder(resp *http.Response) (result LogProfileCollection, err error) {
@@ -331,10 +313,10 @@ func (client LogProfilesClient) ListResponder(resp *http.Response) (result LogPr
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Update updates an existing LogProfilesResource. To update other fields use the CreateOrUpdate method.
-//
-// logProfileName is the name of the log profile. logProfilesResource is parameters supplied to the operation.
+// Parameters:
+// logProfileName - the name of the log profile.
+// logProfilesResource - parameters supplied to the operation.
func (client LogProfilesClient) Update(ctx context.Context, logProfileName string, logProfilesResource LogProfileResourcePatch) (result LogProfileResource, err error) {
req, err := client.UpdatePreparer(ctx, logProfileName, logProfilesResource)
if err != nil {
@@ -357,7 +339,6 @@ func (client LogProfilesClient) Update(ctx context.Context, logProfileName strin
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UpdatePreparer prepares the Update request.
func (client LogProfilesClient) UpdatePreparer(ctx context.Context, logProfileName string, logProfilesResource LogProfileResourcePatch) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -380,7 +361,6 @@ func (client LogProfilesClient) UpdatePreparer(ctx context.Context, logProfileNa
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UpdateSender sends the Update request. The method will close the
// http.Response Body if it receives an error.
func (client LogProfilesClient) UpdateSender(req *http.Request) (*http.Response, error) {
@@ -388,7 +368,6 @@ func (client LogProfilesClient) UpdateSender(req *http.Request) (*http.Response,
azure.DoRetryWithRegistration(client.Client))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UpdateResponder handles the response to the Update request. The method always
// closes the http.Response Body.
func (client LogProfilesClient) UpdateResponder(resp *http.Response) (result LogProfileResource, err error) {
diff --git a/services/monitor/mgmt/2018-03-01/insights/metricbaseline.go b/services/monitor/mgmt/2018-03-01/insights/metricbaseline.go
index ead5eb4c3375..02cb8cbaaf4b 100644
--- a/services/monitor/mgmt/2018-03-01/insights/metricbaseline.go
+++ b/services/monitor/mgmt/2018-03-01/insights/metricbaseline.go
@@ -25,32 +25,28 @@ import (
"net/http"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MetricBaselineClient is the monitor Management Client
type MetricBaselineClient struct {
BaseClient
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NewMetricBaselineClient creates an instance of the MetricBaselineClient client.
func NewMetricBaselineClient(subscriptionID string) MetricBaselineClient {
return NewMetricBaselineClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NewMetricBaselineClientWithBaseURI creates an instance of the MetricBaselineClient client.
func NewMetricBaselineClientWithBaseURI(baseURI string, subscriptionID string) MetricBaselineClient {
return MetricBaselineClient{NewWithBaseURI(baseURI, subscriptionID)}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// CalculateBaseline **Lists the baseline values for a resource**.
-//
-// resourceURI is the identifier of the resource. It has the following structure:
-// subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. For
-// example:
+// Parameters:
+// resourceURI - the identifier of the resource. It has the following structure:
+// subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}.
+// For example:
// subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1
-// timeSeriesInformation is information that need to be specified to calculate a baseline on a time series.
+// timeSeriesInformation - information that need to be specified to calculate a baseline on a time series.
func (client MetricBaselineClient) CalculateBaseline(ctx context.Context, resourceURI string, timeSeriesInformation TimeSeriesInformation) (result CalculateBaselineResponse, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: timeSeriesInformation,
@@ -80,7 +76,6 @@ func (client MetricBaselineClient) CalculateBaseline(ctx context.Context, resour
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// CalculateBaselinePreparer prepares the CalculateBaseline request.
func (client MetricBaselineClient) CalculateBaselinePreparer(ctx context.Context, resourceURI string, timeSeriesInformation TimeSeriesInformation) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -102,7 +97,6 @@ func (client MetricBaselineClient) CalculateBaselinePreparer(ctx context.Context
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// CalculateBaselineSender sends the CalculateBaseline request. The method will close the
// http.Response Body if it receives an error.
func (client MetricBaselineClient) CalculateBaselineSender(req *http.Request) (*http.Response, error) {
@@ -110,7 +104,6 @@ func (client MetricBaselineClient) CalculateBaselineSender(req *http.Request) (*
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// CalculateBaselineResponder handles the response to the CalculateBaseline request. The method always
// closes the http.Response Body.
func (client MetricBaselineClient) CalculateBaselineResponder(resp *http.Response) (result CalculateBaselineResponse, err error) {
@@ -124,18 +117,19 @@ func (client MetricBaselineClient) CalculateBaselineResponder(resp *http.Respons
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Get **Gets the baseline values for a specific metric**.
-//
-// resourceURI is the identifier of the resource. It has the following structure:
-// subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. For
-// example:
+// Parameters:
+// resourceURI - the identifier of the resource. It has the following structure:
+// subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}.
+// For example:
// subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1
-// metricName is the name of the metric to retrieve the baseline for. timespan is the timespan of the query. It is
-// a string with the following format 'startDateTime_ISO/endDateTime_ISO'. interval is the interval (i.e.
-// timegrain) of the query. aggregation is the aggregation type of the metric to retrieve the baseline for.
-// sensitivities is the list of sensitivities (comma separated) to retrieve. resultType is allows retrieving only
-// metadata of the baseline. On data request all information is retrieved.
+// metricName - the name of the metric to retrieve the baseline for.
+// timespan - the timespan of the query. It is a string with the following format
+// 'startDateTime_ISO/endDateTime_ISO'.
+// interval - the interval (i.e. timegrain) of the query.
+// aggregation - the aggregation type of the metric to retrieve the baseline for.
+// sensitivities - the list of sensitivities (comma separated) to retrieve.
+// resultType - allows retrieving only metadata of the baseline. On data request all information is retrieved.
func (client MetricBaselineClient) Get(ctx context.Context, resourceURI string, metricName string, timespan string, interval *string, aggregation string, sensitivities string, resultType ResultType) (result BaselineResponse, err error) {
req, err := client.GetPreparer(ctx, resourceURI, metricName, timespan, interval, aggregation, sensitivities, resultType)
if err != nil {
@@ -158,7 +152,6 @@ func (client MetricBaselineClient) Get(ctx context.Context, resourceURI string,
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// GetPreparer prepares the Get request.
func (client MetricBaselineClient) GetPreparer(ctx context.Context, resourceURI string, metricName string, timespan string, interval *string, aggregation string, sensitivities string, resultType ResultType) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -194,7 +187,6 @@ func (client MetricBaselineClient) GetPreparer(ctx context.Context, resourceURI
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client MetricBaselineClient) GetSender(req *http.Request) (*http.Response, error) {
@@ -202,7 +194,6 @@ func (client MetricBaselineClient) GetSender(req *http.Request) (*http.Response,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client MetricBaselineClient) GetResponder(resp *http.Response) (result BaselineResponse, err error) {
diff --git a/services/monitor/mgmt/2018-03-01/insights/metricdefinitions.go b/services/monitor/mgmt/2018-03-01/insights/metricdefinitions.go
index c825a5700f77..4cd9d37e81b8 100644
--- a/services/monitor/mgmt/2018-03-01/insights/metricdefinitions.go
+++ b/services/monitor/mgmt/2018-03-01/insights/metricdefinitions.go
@@ -24,28 +24,24 @@ import (
"net/http"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MetricDefinitionsClient is the monitor Management Client
type MetricDefinitionsClient struct {
BaseClient
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NewMetricDefinitionsClient creates an instance of the MetricDefinitionsClient client.
func NewMetricDefinitionsClient(subscriptionID string) MetricDefinitionsClient {
return NewMetricDefinitionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NewMetricDefinitionsClientWithBaseURI creates an instance of the MetricDefinitionsClient client.
func NewMetricDefinitionsClientWithBaseURI(baseURI string, subscriptionID string) MetricDefinitionsClient {
return MetricDefinitionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// List lists the metric definitions for the resource.
-//
-// resourceURI is the identifier of the resource.
+// Parameters:
+// resourceURI - the identifier of the resource.
func (client MetricDefinitionsClient) List(ctx context.Context, resourceURI string) (result MetricDefinitionCollection, err error) {
req, err := client.ListPreparer(ctx, resourceURI)
if err != nil {
@@ -68,7 +64,6 @@ func (client MetricDefinitionsClient) List(ctx context.Context, resourceURI stri
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListPreparer prepares the List request.
func (client MetricDefinitionsClient) ListPreparer(ctx context.Context, resourceURI string) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -88,7 +83,6 @@ func (client MetricDefinitionsClient) ListPreparer(ctx context.Context, resource
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListSender sends the List request. The method will close the
// http.Response Body if it receives an error.
func (client MetricDefinitionsClient) ListSender(req *http.Request) (*http.Response, error) {
@@ -96,7 +90,6 @@ func (client MetricDefinitionsClient) ListSender(req *http.Request) (*http.Respo
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListResponder handles the response to the List request. The method always
// closes the http.Response Body.
func (client MetricDefinitionsClient) ListResponder(resp *http.Response) (result MetricDefinitionCollection, err error) {
diff --git a/services/monitor/mgmt/2018-03-01/insights/metrics.go b/services/monitor/mgmt/2018-03-01/insights/metrics.go
index a5d100355bd6..ee7af73b1781 100644
--- a/services/monitor/mgmt/2018-03-01/insights/metrics.go
+++ b/services/monitor/mgmt/2018-03-01/insights/metrics.go
@@ -24,42 +24,44 @@ import (
"net/http"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MetricsClient is the monitor Management Client
type MetricsClient struct {
BaseClient
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NewMetricsClient creates an instance of the MetricsClient client.
func NewMetricsClient(subscriptionID string) MetricsClient {
return NewMetricsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NewMetricsClientWithBaseURI creates an instance of the MetricsClient client.
func NewMetricsClientWithBaseURI(baseURI string, subscriptionID string) MetricsClient {
return MetricsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// List **Lists the metric values for a resource**.
-//
-// resourceURI is the identifier of the resource. timespan is the timespan of the query. It is a string with the
-// following format 'startDateTime_ISO/endDateTime_ISO'. interval is the interval (i.e. timegrain) of the query.
-// metric is the name of the metric to retrieve. aggregation is the list of aggregation types (comma separated) to
-// retrieve. top is the maximum number of records to retrieve.
+// Parameters:
+// resourceURI - the identifier of the resource.
+// timespan - the timespan of the query. It is a string with the following format
+// 'startDateTime_ISO/endDateTime_ISO'.
+// interval - the interval (i.e. timegrain) of the query.
+// metric - the name of the metric to retrieve.
+// aggregation - the list of aggregation types (comma separated) to retrieve.
+// top - the maximum number of records to retrieve.
// Valid only if $filter is specified.
-// Defaults to 10. orderby is the aggregation to use for sorting results and the direction of the sort.
+// Defaults to 10.
+// orderby - the aggregation to use for sorting results and the direction of the sort.
// Only one order can be specified.
-// Examples: sum asc. filter is the **$filter** is used to reduce the set of metric data
-// returned.
Example:
Metric contains metadata A, B and C.
- Return all time series of C where A = a1 and
-// B = b1 or b2
**$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’**
- Invalid
-// variant:
**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = ‘b2’**
This is invalid because the logical
-// or operator cannot separate two different metadata names.
- Return all time series where A = a1, B = b1 and C
-// = c1:
**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**
- Return all time series where A =
-// a1
**$filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**. resultType is reduces the set of data collected. The
-// syntax allowed depends on the operation. See the operation's description for details.
+// Examples: sum asc.
+// filter - the **$filter** is used to reduce the set of metric data returned.
Example:
Metric contains
+// metadata A, B and C.
- Return all time series of C where A = a1 and B = b1 or b2
**$filter=A eq ‘a1’
+// and B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’**
- Invalid variant:
**$filter=A eq ‘a1’ and B eq ‘b1’ and C
+// eq ‘*’ or B = ‘b2’**
This is invalid because the logical or operator cannot separate two different
+// metadata names.
- Return all time series where A = a1, B = b1 and C = c1:
**$filter=A eq ‘a1’ and B eq
+// ‘b1’ and C eq ‘c1’**
- Return all time series where A = a1
**$filter=A eq ‘a1’ and B eq ‘*’ and C eq
+// ‘*’**.
+// resultType - reduces the set of data collected. The syntax allowed depends on the operation. See the
+// operation's description for details.
func (client MetricsClient) List(ctx context.Context, resourceURI string, timespan string, interval *string, metric string, aggregation string, top *float64, orderby string, filter string, resultType ResultType) (result Response, err error) {
req, err := client.ListPreparer(ctx, resourceURI, timespan, interval, metric, aggregation, top, orderby, filter, resultType)
if err != nil {
@@ -82,7 +84,6 @@ func (client MetricsClient) List(ctx context.Context, resourceURI string, timesp
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListPreparer prepares the List request.
func (client MetricsClient) ListPreparer(ctx context.Context, resourceURI string, timespan string, interval *string, metric string, aggregation string, top *float64, orderby string, filter string, resultType ResultType) (*http.Request, error) {
pathParameters := map[string]interface{}{
@@ -126,7 +127,6 @@ func (client MetricsClient) ListPreparer(ctx context.Context, resourceURI string
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListSender sends the List request. The method will close the
// http.Response Body if it receives an error.
func (client MetricsClient) ListSender(req *http.Request) (*http.Response, error) {
@@ -134,7 +134,6 @@ func (client MetricsClient) ListSender(req *http.Request) (*http.Response, error
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListResponder handles the response to the List request. The method always
// closes the http.Response Body.
func (client MetricsClient) ListResponder(resp *http.Response) (result Response, err error) {
diff --git a/services/monitor/mgmt/2018-03-01/insights/models.go b/services/monitor/mgmt/2018-03-01/insights/models.go
index 82401666820e..2fa1c3c0e6de 100644
--- a/services/monitor/mgmt/2018-03-01/insights/models.go
+++ b/services/monitor/mgmt/2018-03-01/insights/models.go
@@ -25,7 +25,6 @@ import (
"net/http"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AggregationType enumerates the values for aggregation type.
type AggregationType string
@@ -44,13 +43,11 @@ const (
Total AggregationType = "Total"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// PossibleAggregationTypeValues returns an array of possible values for the AggregationType const type.
func PossibleAggregationTypeValues() []AggregationType {
return []AggregationType{Average, Count, Maximum, Minimum, None, Total}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// CategoryType enumerates the values for category type.
type CategoryType string
@@ -61,13 +58,11 @@ const (
Metrics CategoryType = "Metrics"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// PossibleCategoryTypeValues returns an array of possible values for the CategoryType const type.
func PossibleCategoryTypeValues() []CategoryType {
return []CategoryType{Logs, Metrics}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ComparisonOperationType enumerates the values for comparison operation type.
type ComparisonOperationType string
@@ -86,13 +81,11 @@ const (
NotEquals ComparisonOperationType = "NotEquals"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// PossibleComparisonOperationTypeValues returns an array of possible values for the ComparisonOperationType const type.
func PossibleComparisonOperationTypeValues() []ComparisonOperationType {
return []ComparisonOperationType{Equals, GreaterThan, GreaterThanOrEqual, LessThan, LessThanOrEqual, NotEquals}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ConditionOperator enumerates the values for condition operator.
type ConditionOperator string
@@ -107,13 +100,11 @@ const (
ConditionOperatorLessThanOrEqual ConditionOperator = "LessThanOrEqual"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// PossibleConditionOperatorValues returns an array of possible values for the ConditionOperator const type.
func PossibleConditionOperatorValues() []ConditionOperator {
return []ConditionOperator{ConditionOperatorGreaterThan, ConditionOperatorGreaterThanOrEqual, ConditionOperatorLessThan, ConditionOperatorLessThanOrEqual}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// EventLevel enumerates the values for event level.
type EventLevel string
@@ -130,13 +121,11 @@ const (
Warning EventLevel = "Warning"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// PossibleEventLevelValues returns an array of possible values for the EventLevel const type.
func PossibleEventLevelValues() []EventLevel {
return []EventLevel{Critical, Error, Informational, Verbose, Warning}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MetricStatisticType enumerates the values for metric statistic type.
type MetricStatisticType string
@@ -151,13 +140,11 @@ const (
MetricStatisticTypeSum MetricStatisticType = "Sum"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// PossibleMetricStatisticTypeValues returns an array of possible values for the MetricStatisticType const type.
func PossibleMetricStatisticTypeValues() []MetricStatisticType {
return []MetricStatisticType{MetricStatisticTypeAverage, MetricStatisticTypeMax, MetricStatisticTypeMin, MetricStatisticTypeSum}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// OdataType enumerates the values for odata type.
type OdataType string
@@ -170,13 +157,11 @@ const (
OdataTypeRuleDataSource OdataType = "RuleDataSource"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// PossibleOdataTypeValues returns an array of possible values for the OdataType const type.
func PossibleOdataTypeValues() []OdataType {
return []OdataType{OdataTypeMicrosoftAzureManagementInsightsModelsRuleManagementEventDataSource, OdataTypeMicrosoftAzureManagementInsightsModelsRuleMetricDataSource, OdataTypeRuleDataSource}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// OdataTypeBasicRuleAction enumerates the values for odata type basic rule action.
type OdataTypeBasicRuleAction string
@@ -189,13 +174,11 @@ const (
OdataTypeRuleAction OdataTypeBasicRuleAction = "RuleAction"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// PossibleOdataTypeBasicRuleActionValues returns an array of possible values for the OdataTypeBasicRuleAction const type.
func PossibleOdataTypeBasicRuleActionValues() []OdataTypeBasicRuleAction {
return []OdataTypeBasicRuleAction{OdataTypeMicrosoftAzureManagementInsightsModelsRuleEmailAction, OdataTypeMicrosoftAzureManagementInsightsModelsRuleWebhookAction, OdataTypeRuleAction}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// OdataTypeBasicRuleCondition enumerates the values for odata type basic rule condition.
type OdataTypeBasicRuleCondition string
@@ -210,13 +193,11 @@ const (
OdataTypeRuleCondition OdataTypeBasicRuleCondition = "RuleCondition"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// PossibleOdataTypeBasicRuleConditionValues returns an array of possible values for the OdataTypeBasicRuleCondition const type.
func PossibleOdataTypeBasicRuleConditionValues() []OdataTypeBasicRuleCondition {
return []OdataTypeBasicRuleCondition{OdataTypeMicrosoftAzureManagementInsightsModelsLocationThresholdRuleCondition, OdataTypeMicrosoftAzureManagementInsightsModelsManagementEventRuleCondition, OdataTypeMicrosoftAzureManagementInsightsModelsThresholdRuleCondition, OdataTypeRuleCondition}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ReceiverStatus enumerates the values for receiver status.
type ReceiverStatus string
@@ -229,13 +210,11 @@ const (
NotSpecified ReceiverStatus = "NotSpecified"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// PossibleReceiverStatusValues returns an array of possible values for the ReceiverStatus const type.
func PossibleReceiverStatusValues() []ReceiverStatus {
return []ReceiverStatus{Disabled, Enabled, NotSpecified}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// RecurrenceFrequency enumerates the values for recurrence frequency.
type RecurrenceFrequency string
@@ -258,13 +237,11 @@ const (
RecurrenceFrequencyYear RecurrenceFrequency = "Year"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// PossibleRecurrenceFrequencyValues returns an array of possible values for the RecurrenceFrequency const type.
func PossibleRecurrenceFrequencyValues() []RecurrenceFrequency {
return []RecurrenceFrequency{RecurrenceFrequencyDay, RecurrenceFrequencyHour, RecurrenceFrequencyMinute, RecurrenceFrequencyMonth, RecurrenceFrequencyNone, RecurrenceFrequencySecond, RecurrenceFrequencyWeek, RecurrenceFrequencyYear}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ResultType enumerates the values for result type.
type ResultType string
@@ -275,13 +252,11 @@ const (
Metadata ResultType = "Metadata"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// PossibleResultTypeValues returns an array of possible values for the ResultType const type.
func PossibleResultTypeValues() []ResultType {
return []ResultType{Data, Metadata}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ScaleDirection enumerates the values for scale direction.
type ScaleDirection string
@@ -294,13 +269,11 @@ const (
ScaleDirectionNone ScaleDirection = "None"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// PossibleScaleDirectionValues returns an array of possible values for the ScaleDirection const type.
func PossibleScaleDirectionValues() []ScaleDirection {
return []ScaleDirection{ScaleDirectionDecrease, ScaleDirectionIncrease, ScaleDirectionNone}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ScaleType enumerates the values for scale type.
type ScaleType string
@@ -313,13 +286,11 @@ const (
PercentChangeCount ScaleType = "PercentChangeCount"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// PossibleScaleTypeValues returns an array of possible values for the ScaleType const type.
func PossibleScaleTypeValues() []ScaleType {
return []ScaleType{ChangeCount, ExactCount, PercentChangeCount}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Sensitivity enumerates the values for sensitivity.
type Sensitivity string
@@ -332,13 +303,11 @@ const (
Medium Sensitivity = "Medium"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// PossibleSensitivityValues returns an array of possible values for the Sensitivity const type.
func PossibleSensitivityValues() []Sensitivity {
return []Sensitivity{High, Low, Medium}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// TimeAggregationOperator enumerates the values for time aggregation operator.
type TimeAggregationOperator string
@@ -355,13 +324,11 @@ const (
TimeAggregationOperatorTotal TimeAggregationOperator = "Total"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// PossibleTimeAggregationOperatorValues returns an array of possible values for the TimeAggregationOperator const type.
func PossibleTimeAggregationOperatorValues() []TimeAggregationOperator {
return []TimeAggregationOperator{TimeAggregationOperatorAverage, TimeAggregationOperatorLast, TimeAggregationOperatorMaximum, TimeAggregationOperatorMinimum, TimeAggregationOperatorTotal}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// TimeAggregationType enumerates the values for time aggregation type.
type TimeAggregationType string
@@ -378,13 +345,11 @@ const (
TimeAggregationTypeTotal TimeAggregationType = "Total"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// PossibleTimeAggregationTypeValues returns an array of possible values for the TimeAggregationType const type.
func PossibleTimeAggregationTypeValues() []TimeAggregationType {
return []TimeAggregationType{TimeAggregationTypeAverage, TimeAggregationTypeCount, TimeAggregationTypeMaximum, TimeAggregationTypeMinimum, TimeAggregationTypeTotal}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Unit enumerates the values for unit.
type Unit string
@@ -409,13 +374,11 @@ const (
UnitUnspecified Unit = "Unspecified"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// PossibleUnitValues returns an array of possible values for the Unit const type.
func PossibleUnitValues() []Unit {
return []Unit{UnitBytes, UnitByteSeconds, UnitBytesPerSecond, UnitCount, UnitCountPerSecond, UnitMilliSeconds, UnitPercent, UnitSeconds, UnitUnspecified}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ActionGroup an Azure action group.
type ActionGroup struct {
// GroupShortName - The short name of the action group. This will be used in SMS messages.
@@ -442,7 +405,6 @@ type ActionGroup struct {
AzureFunctionReceivers *[]AzureFunctionReceiver `json:"azureFunctionReceivers,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ActionGroupList a list of action groups.
type ActionGroupList struct {
autorest.Response `json:"-"`
@@ -452,14 +414,12 @@ type ActionGroupList struct {
NextLink *string `json:"nextLink,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ActionGroupPatch an Azure action group for patch operations.
type ActionGroupPatch struct {
// Enabled - Indicates whether this action group is enabled. If an action group is not enabled, then none of its actions will be activated.
Enabled *bool `json:"enabled,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ActionGroupPatchBody an action group object for the body of patch operations.
type ActionGroupPatchBody struct {
// Tags - Resource tags
@@ -468,7 +428,6 @@ type ActionGroupPatchBody struct {
*ActionGroupPatch `json:"properties,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MarshalJSON is the custom marshaler for ActionGroupPatchBody.
func (agpb ActionGroupPatchBody) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -481,7 +440,6 @@ func (agpb ActionGroupPatchBody) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UnmarshalJSON is the custom unmarshaler for ActionGroupPatchBody struct.
func (agpb *ActionGroupPatchBody) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -515,7 +473,6 @@ func (agpb *ActionGroupPatchBody) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ActionGroupResource an action group resource.
type ActionGroupResource struct {
autorest.Response `json:"-"`
@@ -533,7 +490,6 @@ type ActionGroupResource struct {
Tags map[string]*string `json:"tags"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MarshalJSON is the custom marshaler for ActionGroupResource.
func (agr ActionGroupResource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -558,7 +514,6 @@ func (agr ActionGroupResource) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UnmarshalJSON is the custom unmarshaler for ActionGroupResource struct.
func (agr *ActionGroupResource) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -628,7 +583,6 @@ func (agr *ActionGroupResource) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ActivityLogAlert an Azure activity log alert.
type ActivityLogAlert struct {
// Scopes - A list of resourceIds that will be used as prefixes. The alert will only apply to activityLogs with resourceIds that fall under one of these prefixes. This list must include at least one item.
@@ -643,7 +597,6 @@ type ActivityLogAlert struct {
Description *string `json:"description,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ActivityLogAlertActionGroup a pointer to an Azure Action Group.
type ActivityLogAlertActionGroup struct {
// ActionGroupID - The resourceId of the action group. This cannot be null or empty.
@@ -652,7 +605,6 @@ type ActivityLogAlertActionGroup struct {
WebhookProperties map[string]*string `json:"webhookProperties"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MarshalJSON is the custom marshaler for ActivityLogAlertActionGroup.
func (alaag ActivityLogAlertActionGroup) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -665,14 +617,12 @@ func (alaag ActivityLogAlertActionGroup) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ActivityLogAlertActionList a list of activity log alert actions.
type ActivityLogAlertActionList struct {
// ActionGroups - The list of activity log alerts.
ActionGroups *[]ActivityLogAlertActionGroup `json:"actionGroups,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ActivityLogAlertAllOfCondition an Activity Log alert condition that is met when all its member conditions are
// met.
type ActivityLogAlertAllOfCondition struct {
@@ -680,7 +630,6 @@ type ActivityLogAlertAllOfCondition struct {
AllOf *[]ActivityLogAlertLeafCondition `json:"allOf,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ActivityLogAlertLeafCondition an Activity Log alert condition that is met by comparing an activity log field and
// value.
type ActivityLogAlertLeafCondition struct {
@@ -690,7 +639,6 @@ type ActivityLogAlertLeafCondition struct {
Equals *string `json:"equals,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ActivityLogAlertList a list of activity log alerts.
type ActivityLogAlertList struct {
autorest.Response `json:"-"`
@@ -700,14 +648,12 @@ type ActivityLogAlertList struct {
NextLink *string `json:"nextLink,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ActivityLogAlertPatch an Azure activity log alert for patch operations.
type ActivityLogAlertPatch struct {
// Enabled - Indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated.
Enabled *bool `json:"enabled,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ActivityLogAlertPatchBody an activity log alert object for the body of patch operations.
type ActivityLogAlertPatchBody struct {
// Tags - Resource tags
@@ -716,7 +662,6 @@ type ActivityLogAlertPatchBody struct {
*ActivityLogAlertPatch `json:"properties,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MarshalJSON is the custom marshaler for ActivityLogAlertPatchBody.
func (alapb ActivityLogAlertPatchBody) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -729,7 +674,6 @@ func (alapb ActivityLogAlertPatchBody) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UnmarshalJSON is the custom unmarshaler for ActivityLogAlertPatchBody struct.
func (alapb *ActivityLogAlertPatchBody) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -763,7 +707,6 @@ func (alapb *ActivityLogAlertPatchBody) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ActivityLogAlertResource an activity log alert resource.
type ActivityLogAlertResource struct {
autorest.Response `json:"-"`
@@ -781,7 +724,6 @@ type ActivityLogAlertResource struct {
Tags map[string]*string `json:"tags"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MarshalJSON is the custom marshaler for ActivityLogAlertResource.
func (alar ActivityLogAlertResource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -806,7 +748,6 @@ func (alar ActivityLogAlertResource) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UnmarshalJSON is the custom unmarshaler for ActivityLogAlertResource struct.
func (alar *ActivityLogAlertResource) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -876,7 +817,6 @@ func (alar *ActivityLogAlertResource) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AlertRule an alert rule.
type AlertRule struct {
// Name - the name of the alert rule.
@@ -893,7 +833,6 @@ type AlertRule struct {
LastUpdatedTime *date.Time `json:"lastUpdatedTime,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UnmarshalJSON is the custom unmarshaler for AlertRule struct.
func (ar *AlertRule) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -961,7 +900,6 @@ func (ar *AlertRule) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AlertRuleResource the alert rule resource.
type AlertRuleResource struct {
autorest.Response `json:"-"`
@@ -979,7 +917,6 @@ type AlertRuleResource struct {
Tags map[string]*string `json:"tags"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MarshalJSON is the custom marshaler for AlertRuleResource.
func (arr AlertRuleResource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -1004,7 +941,6 @@ func (arr AlertRuleResource) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UnmarshalJSON is the custom unmarshaler for AlertRuleResource struct.
func (arr *AlertRuleResource) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -1074,7 +1010,6 @@ func (arr *AlertRuleResource) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AlertRuleResourceCollection represents a collection of alert rule resources.
type AlertRuleResourceCollection struct {
autorest.Response `json:"-"`
@@ -1082,7 +1017,6 @@ type AlertRuleResourceCollection struct {
Value *[]AlertRuleResource `json:"value,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AlertRuleResourcePatch the alert rule object for patch operations.
type AlertRuleResourcePatch struct {
// Tags - Resource tags
@@ -1091,7 +1025,6 @@ type AlertRuleResourcePatch struct {
*AlertRule `json:"properties,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MarshalJSON is the custom marshaler for AlertRuleResourcePatch.
func (arrp AlertRuleResourcePatch) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -1104,7 +1037,6 @@ func (arrp AlertRuleResourcePatch) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UnmarshalJSON is the custom unmarshaler for AlertRuleResourcePatch struct.
func (arrp *AlertRuleResourcePatch) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -1138,7 +1070,6 @@ func (arrp *AlertRuleResourcePatch) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AutomationRunbookReceiver the Azure Automation Runbook notification receiver.
type AutomationRunbookReceiver struct {
// AutomationAccountID - The Azure automation account Id which holds this runbook and authenticate to Azure resource.
@@ -1155,7 +1086,6 @@ type AutomationRunbookReceiver struct {
ServiceURI *string `json:"serviceUri,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AutoscaleNotification autoscale notification.
type AutoscaleNotification struct {
// Operation - the operation associated with the notification and its value must be "scale"
@@ -1166,7 +1096,6 @@ type AutoscaleNotification struct {
Webhooks *[]WebhookNotification `json:"webhooks,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AutoscaleProfile autoscale profile.
type AutoscaleProfile struct {
// Name - the name of the profile.
@@ -1181,7 +1110,6 @@ type AutoscaleProfile struct {
Recurrence *Recurrence `json:"recurrence,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AutoscaleSetting a setting that contains all of the configuration for the automatic scaling of a resource.
type AutoscaleSetting struct {
// Profiles - the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified.
@@ -1196,7 +1124,6 @@ type AutoscaleSetting struct {
TargetResourceURI *string `json:"targetResourceUri,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AutoscaleSettingResource the autoscale setting resource.
type AutoscaleSettingResource struct {
autorest.Response `json:"-"`
@@ -1214,7 +1141,6 @@ type AutoscaleSettingResource struct {
Tags map[string]*string `json:"tags"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MarshalJSON is the custom marshaler for AutoscaleSettingResource.
func (asr AutoscaleSettingResource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -1239,7 +1165,6 @@ func (asr AutoscaleSettingResource) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UnmarshalJSON is the custom unmarshaler for AutoscaleSettingResource struct.
func (asr *AutoscaleSettingResource) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -1309,7 +1234,6 @@ func (asr *AutoscaleSettingResource) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AutoscaleSettingResourceCollection represents a collection of autoscale setting resources.
type AutoscaleSettingResourceCollection struct {
autorest.Response `json:"-"`
@@ -1319,7 +1243,6 @@ type AutoscaleSettingResourceCollection struct {
NextLink *string `json:"nextLink,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AutoscaleSettingResourceCollectionIterator provides access to a complete listing of AutoscaleSettingResource
// values.
type AutoscaleSettingResourceCollectionIterator struct {
@@ -1327,7 +1250,6 @@ type AutoscaleSettingResourceCollectionIterator struct {
page AutoscaleSettingResourceCollectionPage
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Next advances to the next value. If there was an error making
// the request the iterator does not advance and the error is returned.
func (iter *AutoscaleSettingResourceCollectionIterator) Next() error {
@@ -1344,19 +1266,16 @@ func (iter *AutoscaleSettingResourceCollectionIterator) Next() error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NotDone returns true if the enumeration should be started or is not yet complete.
func (iter AutoscaleSettingResourceCollectionIterator) NotDone() bool {
return iter.page.NotDone() && iter.i < len(iter.page.Values())
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Response returns the raw server response from the last page request.
func (iter AutoscaleSettingResourceCollectionIterator) Response() AutoscaleSettingResourceCollection {
return iter.page.Response()
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Value returns the current value or a zero-initialized value if the
// iterator has advanced beyond the end of the collection.
func (iter AutoscaleSettingResourceCollectionIterator) Value() AutoscaleSettingResource {
@@ -1366,7 +1285,6 @@ func (iter AutoscaleSettingResourceCollectionIterator) Value() AutoscaleSettingR
return iter.page.Values()[iter.i]
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// IsEmpty returns true if the ListResult contains no values.
func (asrc AutoscaleSettingResourceCollection) IsEmpty() bool {
return asrc.Value == nil || len(*asrc.Value) == 0
@@ -1384,14 +1302,12 @@ func (asrc AutoscaleSettingResourceCollection) autoscaleSettingResourceCollectio
autorest.WithBaseURL(to.String(asrc.NextLink)))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AutoscaleSettingResourceCollectionPage contains a page of AutoscaleSettingResource values.
type AutoscaleSettingResourceCollectionPage struct {
fn func(AutoscaleSettingResourceCollection) (AutoscaleSettingResourceCollection, error)
asrc AutoscaleSettingResourceCollection
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Next advances to the next page of values. If there was an error making
// the request the page does not advance and the error is returned.
func (page *AutoscaleSettingResourceCollectionPage) Next() error {
@@ -1403,19 +1319,16 @@ func (page *AutoscaleSettingResourceCollectionPage) Next() error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NotDone returns true if the page enumeration should be started or is not yet complete.
func (page AutoscaleSettingResourceCollectionPage) NotDone() bool {
return !page.asrc.IsEmpty()
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Response returns the raw server response from the last page request.
func (page AutoscaleSettingResourceCollectionPage) Response() AutoscaleSettingResourceCollection {
return page.asrc
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Values returns the slice of values for the current page or nil if there are no values.
func (page AutoscaleSettingResourceCollectionPage) Values() []AutoscaleSettingResource {
if page.asrc.IsEmpty() {
@@ -1424,7 +1337,6 @@ func (page AutoscaleSettingResourceCollectionPage) Values() []AutoscaleSettingRe
return *page.asrc.Value
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AutoscaleSettingResourcePatch the autoscale setting object for patch operations.
type AutoscaleSettingResourcePatch struct {
// Tags - Resource tags
@@ -1433,7 +1345,6 @@ type AutoscaleSettingResourcePatch struct {
*AutoscaleSetting `json:"properties,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MarshalJSON is the custom marshaler for AutoscaleSettingResourcePatch.
func (asrp AutoscaleSettingResourcePatch) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -1446,7 +1357,6 @@ func (asrp AutoscaleSettingResourcePatch) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UnmarshalJSON is the custom unmarshaler for AutoscaleSettingResourcePatch struct.
func (asrp *AutoscaleSettingResourcePatch) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -1480,7 +1390,6 @@ func (asrp *AutoscaleSettingResourcePatch) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AzureAppPushReceiver the Azure mobile App push notification receiver.
type AzureAppPushReceiver struct {
// Name - The name of the Azure mobile app push receiver. Names must be unique across all receivers within an action group.
@@ -1489,7 +1398,6 @@ type AzureAppPushReceiver struct {
EmailAddress *string `json:"emailAddress,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AzureFunctionReceiver an azure function receiver.
type AzureFunctionReceiver struct {
// Name - The name of the azure function receiver. Names must be unique across all receivers within an action group.
@@ -1502,7 +1410,6 @@ type AzureFunctionReceiver struct {
HTTPTriggerURL *string `json:"httpTriggerUrl,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Baseline the baseline values for a single sensitivity value.
type Baseline struct {
// Sensitivity - the sensitivity of the baseline. Possible values include: 'Low', 'Medium', 'High'
@@ -1513,7 +1420,6 @@ type Baseline struct {
HighThresholds *[]float64 `json:"highThresholds,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// BaselineMetadataValue represents a baseline metadata value.
type BaselineMetadataValue struct {
// Name - the name of the metadata.
@@ -1522,7 +1428,6 @@ type BaselineMetadataValue struct {
Value *string `json:"value,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// BaselineProperties the baseline properties class.
type BaselineProperties struct {
// Timespan - The timespan for which the data was retrieved. Its value consists of two datatimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested.
@@ -1539,7 +1444,6 @@ type BaselineProperties struct {
Metadata *[]BaselineMetadataValue `json:"metadata,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// BaselineResponse the response to a baseline query.
type BaselineResponse struct {
autorest.Response `json:"-"`
@@ -1553,7 +1457,6 @@ type BaselineResponse struct {
*BaselineProperties `json:"properties,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MarshalJSON is the custom marshaler for BaselineResponse.
func (br BaselineResponse) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -1572,7 +1475,6 @@ func (br BaselineResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UnmarshalJSON is the custom unmarshaler for BaselineResponse struct.
func (br *BaselineResponse) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -1624,7 +1526,6 @@ func (br *BaselineResponse) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// CalculateBaselineResponse the response to a calcualte baseline call.
type CalculateBaselineResponse struct {
autorest.Response `json:"-"`
@@ -1636,7 +1537,6 @@ type CalculateBaselineResponse struct {
Baseline *[]Baseline `json:"baseline,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// DiagnosticSettings the diagnostic settings.
type DiagnosticSettings struct {
// StorageAccountID - The resource ID of the storage account to which you would like to send Diagnostic Logs.
@@ -1653,14 +1553,12 @@ type DiagnosticSettings struct {
WorkspaceID *string `json:"workspaceId,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// DiagnosticSettingsCategory the diagnostic settings Category.
type DiagnosticSettingsCategory struct {
// CategoryType - The type of the diagnostic settings category. Possible values include: 'Metrics', 'Logs'
CategoryType CategoryType `json:"categoryType,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// DiagnosticSettingsCategoryResource the diagnostic settings category resource.
type DiagnosticSettingsCategoryResource struct {
autorest.Response `json:"-"`
@@ -1673,7 +1571,6 @@ type DiagnosticSettingsCategoryResource struct {
Type *string `json:"type,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MarshalJSON is the custom marshaler for DiagnosticSettingsCategoryResource.
func (dscr DiagnosticSettingsCategoryResource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -1692,7 +1589,6 @@ func (dscr DiagnosticSettingsCategoryResource) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UnmarshalJSON is the custom unmarshaler for DiagnosticSettingsCategoryResource struct.
func (dscr *DiagnosticSettingsCategoryResource) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -1744,7 +1640,6 @@ func (dscr *DiagnosticSettingsCategoryResource) UnmarshalJSON(body []byte) error
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// DiagnosticSettingsCategoryResourceCollection represents a collection of diagnostic setting category resources.
type DiagnosticSettingsCategoryResourceCollection struct {
autorest.Response `json:"-"`
@@ -1752,7 +1647,6 @@ type DiagnosticSettingsCategoryResourceCollection struct {
Value *[]DiagnosticSettingsCategoryResource `json:"value,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// DiagnosticSettingsResource the diagnostic setting resource.
type DiagnosticSettingsResource struct {
autorest.Response `json:"-"`
@@ -1765,7 +1659,6 @@ type DiagnosticSettingsResource struct {
Type *string `json:"type,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MarshalJSON is the custom marshaler for DiagnosticSettingsResource.
func (dsr DiagnosticSettingsResource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -1784,7 +1677,6 @@ func (dsr DiagnosticSettingsResource) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UnmarshalJSON is the custom unmarshaler for DiagnosticSettingsResource struct.
func (dsr *DiagnosticSettingsResource) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -1836,7 +1728,6 @@ func (dsr *DiagnosticSettingsResource) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// DiagnosticSettingsResourceCollection represents a collection of alert rule resources.
type DiagnosticSettingsResourceCollection struct {
autorest.Response `json:"-"`
@@ -1844,7 +1735,6 @@ type DiagnosticSettingsResourceCollection struct {
Value *[]DiagnosticSettingsResource `json:"value,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// EmailNotification email notification of an autoscale event.
type EmailNotification struct {
// SendToSubscriptionAdministrator - a value indicating whether to send email to subscription administrator.
@@ -1855,7 +1745,6 @@ type EmailNotification struct {
CustomEmails *[]string `json:"customEmails,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// EmailReceiver an email receiver.
type EmailReceiver struct {
// Name - The name of the email receiver. Names must be unique across all receivers within an action group.
@@ -1866,14 +1755,12 @@ type EmailReceiver struct {
Status ReceiverStatus `json:"status,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// EnableRequest describes a receiver that should be resubscribed.
type EnableRequest struct {
// ReceiverName - The name of the receiver to resubscribe.
ReceiverName *string `json:"receiverName,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ErrorResponse describes the format of Error response.
type ErrorResponse struct {
// Code - Error code
@@ -1882,7 +1769,6 @@ type ErrorResponse struct {
Message *string `json:"message,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// EventCategoryCollection a collection of event categories. Currently possible values are: Administrative,
// Security, ServiceHealth, Alert, Recommendation, Policy.
type EventCategoryCollection struct {
@@ -1891,7 +1777,6 @@ type EventCategoryCollection struct {
Value *[]LocalizableString `json:"value,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// EventData the Azure event log entries are of type EventData
type EventData struct {
Authorization *SenderAuthorization `json:"authorization,omitempty"`
@@ -1943,7 +1828,6 @@ type EventData struct {
TenantID *string `json:"tenantId,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MarshalJSON is the custom marshaler for EventData.
func (ed EventData) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -2022,7 +1906,6 @@ func (ed EventData) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// EventDataCollection represents collection of events.
type EventDataCollection struct {
autorest.Response `json:"-"`
@@ -2032,14 +1915,12 @@ type EventDataCollection struct {
NextLink *string `json:"nextLink,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// EventDataCollectionIterator provides access to a complete listing of EventData values.
type EventDataCollectionIterator struct {
i int
page EventDataCollectionPage
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Next advances to the next value. If there was an error making
// the request the iterator does not advance and the error is returned.
func (iter *EventDataCollectionIterator) Next() error {
@@ -2056,19 +1937,16 @@ func (iter *EventDataCollectionIterator) Next() error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NotDone returns true if the enumeration should be started or is not yet complete.
func (iter EventDataCollectionIterator) NotDone() bool {
return iter.page.NotDone() && iter.i < len(iter.page.Values())
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Response returns the raw server response from the last page request.
func (iter EventDataCollectionIterator) Response() EventDataCollection {
return iter.page.Response()
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Value returns the current value or a zero-initialized value if the
// iterator has advanced beyond the end of the collection.
func (iter EventDataCollectionIterator) Value() EventData {
@@ -2078,7 +1956,6 @@ func (iter EventDataCollectionIterator) Value() EventData {
return iter.page.Values()[iter.i]
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// IsEmpty returns true if the ListResult contains no values.
func (edc EventDataCollection) IsEmpty() bool {
return edc.Value == nil || len(*edc.Value) == 0
@@ -2096,14 +1973,12 @@ func (edc EventDataCollection) eventDataCollectionPreparer() (*http.Request, err
autorest.WithBaseURL(to.String(edc.NextLink)))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// EventDataCollectionPage contains a page of EventData values.
type EventDataCollectionPage struct {
fn func(EventDataCollection) (EventDataCollection, error)
edc EventDataCollection
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Next advances to the next page of values. If there was an error making
// the request the page does not advance and the error is returned.
func (page *EventDataCollectionPage) Next() error {
@@ -2115,19 +1990,16 @@ func (page *EventDataCollectionPage) Next() error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NotDone returns true if the page enumeration should be started or is not yet complete.
func (page EventDataCollectionPage) NotDone() bool {
return !page.edc.IsEmpty()
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Response returns the raw server response from the last page request.
func (page EventDataCollectionPage) Response() EventDataCollection {
return page.edc
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Values returns the slice of values for the current page or nil if there are no values.
func (page EventDataCollectionPage) Values() []EventData {
if page.edc.IsEmpty() {
@@ -2136,7 +2008,6 @@ func (page EventDataCollectionPage) Values() []EventData {
return *page.edc.Value
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// HTTPRequestInfo the Http request info.
type HTTPRequestInfo struct {
// ClientRequestID - the client request id.
@@ -2149,7 +2020,6 @@ type HTTPRequestInfo struct {
URI *string `json:"uri,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Incident an alert incident indicates the activation status of an alert rule.
type Incident struct {
autorest.Response `json:"-"`
@@ -2165,7 +2035,6 @@ type Incident struct {
ResolvedTime *date.Time `json:"resolvedTime,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// IncidentListResult the List incidents operation response.
type IncidentListResult struct {
autorest.Response `json:"-"`
@@ -2173,7 +2042,6 @@ type IncidentListResult struct {
Value *[]Incident `json:"value,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ItsmReceiver an Itsm receiver.
type ItsmReceiver struct {
// Name - The name of the Itsm receiver. Names must be unique across all receivers within an action group.
@@ -2188,7 +2056,6 @@ type ItsmReceiver struct {
Region *string `json:"region,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// LocalizableString the localizable string class.
type LocalizableString struct {
// Value - the invariant value.
@@ -2197,7 +2064,6 @@ type LocalizableString struct {
LocalizedValue *string `json:"localizedValue,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// LocationThresholdRuleCondition a rule condition based on a certain number of locations failing.
type LocationThresholdRuleCondition struct {
// WindowSize - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
@@ -2210,7 +2076,6 @@ type LocationThresholdRuleCondition struct {
OdataType OdataTypeBasicRuleCondition `json:"odata.type,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MarshalJSON is the custom marshaler for LocationThresholdRuleCondition.
func (ltrc LocationThresholdRuleCondition) MarshalJSON() ([]byte, error) {
ltrc.OdataType = OdataTypeMicrosoftAzureManagementInsightsModelsLocationThresholdRuleCondition
@@ -2228,37 +2093,31 @@ func (ltrc LocationThresholdRuleCondition) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsThresholdRuleCondition is the BasicRuleCondition implementation for LocationThresholdRuleCondition.
func (ltrc LocationThresholdRuleCondition) AsThresholdRuleCondition() (*ThresholdRuleCondition, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsLocationThresholdRuleCondition is the BasicRuleCondition implementation for LocationThresholdRuleCondition.
func (ltrc LocationThresholdRuleCondition) AsLocationThresholdRuleCondition() (*LocationThresholdRuleCondition, bool) {
return <rc, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsManagementEventRuleCondition is the BasicRuleCondition implementation for LocationThresholdRuleCondition.
func (ltrc LocationThresholdRuleCondition) AsManagementEventRuleCondition() (*ManagementEventRuleCondition, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsRuleCondition is the BasicRuleCondition implementation for LocationThresholdRuleCondition.
func (ltrc LocationThresholdRuleCondition) AsRuleCondition() (*RuleCondition, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsBasicRuleCondition is the BasicRuleCondition implementation for LocationThresholdRuleCondition.
func (ltrc LocationThresholdRuleCondition) AsBasicRuleCondition() (BasicRuleCondition, bool) {
return <rc, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UnmarshalJSON is the custom unmarshaler for LocationThresholdRuleCondition struct.
func (ltrc *LocationThresholdRuleCondition) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -2309,7 +2168,6 @@ func (ltrc *LocationThresholdRuleCondition) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// LogicAppReceiver a logic app receiver.
type LogicAppReceiver struct {
// Name - The name of the logic app receiver. Names must be unique across all receivers within an action group.
@@ -2320,7 +2178,6 @@ type LogicAppReceiver struct {
CallbackURL *string `json:"callbackUrl,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// LogProfileCollection represents a collection of log profiles.
type LogProfileCollection struct {
autorest.Response `json:"-"`
@@ -2328,7 +2185,6 @@ type LogProfileCollection struct {
Value *[]LogProfileResource `json:"value,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// LogProfileProperties the log profile properties.
type LogProfileProperties struct {
// StorageAccountID - the resource id of the storage account to which you would like to send the Activity Log.
@@ -2343,7 +2199,6 @@ type LogProfileProperties struct {
RetentionPolicy *RetentionPolicy `json:"retentionPolicy,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// LogProfileResource the log profile resource.
type LogProfileResource struct {
autorest.Response `json:"-"`
@@ -2361,7 +2216,6 @@ type LogProfileResource struct {
Tags map[string]*string `json:"tags"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MarshalJSON is the custom marshaler for LogProfileResource.
func (lpr LogProfileResource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -2386,7 +2240,6 @@ func (lpr LogProfileResource) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UnmarshalJSON is the custom unmarshaler for LogProfileResource struct.
func (lpr *LogProfileResource) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -2456,7 +2309,6 @@ func (lpr *LogProfileResource) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// LogProfileResourcePatch the log profile resource for patch operations.
type LogProfileResourcePatch struct {
// Tags - Resource tags
@@ -2465,7 +2317,6 @@ type LogProfileResourcePatch struct {
*LogProfileProperties `json:"properties,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MarshalJSON is the custom marshaler for LogProfileResourcePatch.
func (lprp LogProfileResourcePatch) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -2478,7 +2329,6 @@ func (lprp LogProfileResourcePatch) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UnmarshalJSON is the custom unmarshaler for LogProfileResourcePatch struct.
func (lprp *LogProfileResourcePatch) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -2512,7 +2362,6 @@ func (lprp *LogProfileResourcePatch) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// LogSettings part of MultiTenantDiagnosticSettings. Specifies the settings for a particular log.
type LogSettings struct {
// Category - Name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation.
@@ -2523,7 +2372,6 @@ type LogSettings struct {
RetentionPolicy *RetentionPolicy `json:"retentionPolicy,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ManagementEventAggregationCondition how the data that is collected should be combined over time.
type ManagementEventAggregationCondition struct {
// Operator - the condition operator. Possible values include: 'ConditionOperatorGreaterThan', 'ConditionOperatorGreaterThanOrEqual', 'ConditionOperatorLessThan', 'ConditionOperatorLessThanOrEqual'
@@ -2534,7 +2382,6 @@ type ManagementEventAggregationCondition struct {
WindowSize *string `json:"windowSize,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ManagementEventRuleCondition a management event rule condition.
type ManagementEventRuleCondition struct {
// Aggregation - How the data that is collected should be combined over time and when the alert is activated. Note that for management event alerts aggregation is optional – if it is not provided then any event will cause the alert to activate.
@@ -2545,7 +2392,6 @@ type ManagementEventRuleCondition struct {
OdataType OdataTypeBasicRuleCondition `json:"odata.type,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MarshalJSON is the custom marshaler for ManagementEventRuleCondition.
func (merc ManagementEventRuleCondition) MarshalJSON() ([]byte, error) {
merc.OdataType = OdataTypeMicrosoftAzureManagementInsightsModelsManagementEventRuleCondition
@@ -2560,37 +2406,31 @@ func (merc ManagementEventRuleCondition) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsThresholdRuleCondition is the BasicRuleCondition implementation for ManagementEventRuleCondition.
func (merc ManagementEventRuleCondition) AsThresholdRuleCondition() (*ThresholdRuleCondition, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsLocationThresholdRuleCondition is the BasicRuleCondition implementation for ManagementEventRuleCondition.
func (merc ManagementEventRuleCondition) AsLocationThresholdRuleCondition() (*LocationThresholdRuleCondition, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsManagementEventRuleCondition is the BasicRuleCondition implementation for ManagementEventRuleCondition.
func (merc ManagementEventRuleCondition) AsManagementEventRuleCondition() (*ManagementEventRuleCondition, bool) {
return &merc, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsRuleCondition is the BasicRuleCondition implementation for ManagementEventRuleCondition.
func (merc ManagementEventRuleCondition) AsRuleCondition() (*RuleCondition, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsBasicRuleCondition is the BasicRuleCondition implementation for ManagementEventRuleCondition.
func (merc ManagementEventRuleCondition) AsBasicRuleCondition() (BasicRuleCondition, bool) {
return &merc, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UnmarshalJSON is the custom unmarshaler for ManagementEventRuleCondition struct.
func (merc *ManagementEventRuleCondition) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -2632,7 +2472,6 @@ func (merc *ManagementEventRuleCondition) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MetadataValue represents a metric metadata value.
type MetadataValue struct {
// Name - the name of the metadata.
@@ -2641,7 +2480,6 @@ type MetadataValue struct {
Value *string `json:"value,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Metric the result data of a query.
type Metric struct {
// ID - the metric Id.
@@ -2656,7 +2494,6 @@ type Metric struct {
Timeseries *[]TimeSeriesElement `json:"timeseries,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MetricAvailability metric availability specifies the time grain (aggregation interval or frequency) and the
// retention period for that time grain.
type MetricAvailability struct {
@@ -2666,7 +2503,6 @@ type MetricAvailability struct {
Retention *string `json:"retention,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MetricDefinition metric definition class specifies the metadata for a metric.
type MetricDefinition struct {
// IsDimensionRequired - Flag to indicate whether the dimension is required.
@@ -2687,7 +2523,6 @@ type MetricDefinition struct {
Dimensions *[]LocalizableString `json:"dimensions,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MetricDefinitionCollection represents collection of metric definitions.
type MetricDefinitionCollection struct {
autorest.Response `json:"-"`
@@ -2695,7 +2530,6 @@ type MetricDefinitionCollection struct {
Value *[]MetricDefinition `json:"value,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MetricSettings part of MultiTenantDiagnosticSettings. Specifies the settings for a particular metric.
type MetricSettings struct {
// TimeGrain - the timegrain of the metric in ISO8601 format.
@@ -2708,7 +2542,6 @@ type MetricSettings struct {
RetentionPolicy *RetentionPolicy `json:"retentionPolicy,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MetricTrigger the trigger that results in a scaling action.
type MetricTrigger struct {
// MetricName - the name of the metric that defines what the rule monitors.
@@ -2729,7 +2562,6 @@ type MetricTrigger struct {
Threshold *float64 `json:"threshold,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MetricValue represents a metric value.
type MetricValue struct {
// TimeStamp - the timestamp for the metric value in ISO 8601 format.
@@ -2746,7 +2578,6 @@ type MetricValue struct {
Count *int64 `json:"count,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Operation microsoft Insights API operation definition.
type Operation struct {
// Name - Operation name: {provider}/{resource}/{operation}
@@ -2755,7 +2586,6 @@ type Operation struct {
Display *OperationDisplay `json:"display,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// OperationDisplay display metadata associated with the operation.
type OperationDisplay struct {
// Provider - Service provider: Microsoft.Insights
@@ -2766,7 +2596,6 @@ type OperationDisplay struct {
Operation *string `json:"operation,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// OperationListResult result of the request to list Microsoft.Insights operations. It contains a list of
// operations and a URL link to get the next set of results.
type OperationListResult struct {
@@ -2777,7 +2606,6 @@ type OperationListResult struct {
NextLink *string `json:"nextLink,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ProxyOnlyResource a proxy only azure resource object
type ProxyOnlyResource struct {
// ID - Azure resource Id
@@ -2788,7 +2616,6 @@ type ProxyOnlyResource struct {
Type *string `json:"type,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Recurrence the repeating times at which this profile begins. This element is not used if the FixedDate element
// is used.
type Recurrence struct {
@@ -2798,7 +2625,6 @@ type Recurrence struct {
Schedule *RecurrentSchedule `json:"schedule,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// RecurrentSchedule the scheduling constraints for when the profile begins.
type RecurrentSchedule struct {
// TimeZone - the timezone for the hours of the profile. Some examples of valid timezones are: Dateline Standard Time, UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain Standard Time (Mexico), Mountain Standard Time, Central America Standard Time, Central Standard Time, Central Standard Time (Mexico), Canada Central Standard Time, SA Pacific Standard Time, Eastern Standard Time, US Eastern Standard Time, Venezuela Standard Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian Standard Time, SA Western Standard Time, Pacific SA Standard Time, Newfoundland Standard Time, E. South America Standard Time, Argentina Standard Time, SA Eastern Standard Time, Greenland Standard Time, Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W. Europe Standard Time, Central Europe Standard Time, Romance Standard Time, Central European Standard Time, W. Central Africa Standard Time, Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe Standard Time, South Africa Standard Time, FLE Standard Time, Turkey Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya Standard Time, Arabic Standard Time, Arab Standard Time, Belarus Standard Time, Russian Standard Time, E. Africa Standard Time, Iran Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus Standard Time, Afghanistan Standard Time, West Asia Standard Time, Ekaterinburg Standard Time, Pakistan Standard Time, India Standard Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time, Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time, China Standard Time, North Asia East Standard Time, Singapore Standard Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk Standard Time, Cen. Australia Standard Time, AUS Central Standard Time, E. Australia Standard Time, AUS Eastern Standard Time, West Pacific Standard Time, Tasmania Standard Time, Magadan Standard Time, Vladivostok Standard Time, Russia Time Zone 10, Central Pacific Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12, Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa Standard Time, Line Islands Standard Time
@@ -2811,7 +2637,6 @@ type RecurrentSchedule struct {
Minutes *[]int32 `json:"minutes,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Resource an azure resource object
type Resource struct {
// ID - Azure resource Id
@@ -2826,7 +2651,6 @@ type Resource struct {
Tags map[string]*string `json:"tags"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MarshalJSON is the custom marshaler for Resource.
func (r Resource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -2848,7 +2672,6 @@ func (r Resource) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Response the response to a metrics query.
type Response struct {
autorest.Response `json:"-"`
@@ -2862,7 +2685,6 @@ type Response struct {
Value *[]Metric `json:"value,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// RetentionPolicy specifies the retention policy for the log.
type RetentionPolicy struct {
// Enabled - a value indicating whether the retention policy is enabled.
@@ -2871,7 +2693,6 @@ type RetentionPolicy struct {
Days *int32 `json:"days,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// BasicRuleAction the action that is performed when the alert rule becomes active, and when an alert condition is
// resolved.
type BasicRuleAction interface {
@@ -2880,7 +2701,6 @@ type BasicRuleAction interface {
AsRuleAction() (*RuleAction, bool)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// RuleAction the action that is performed when the alert rule becomes active, and when an alert condition is
// resolved.
type RuleAction struct {
@@ -2929,7 +2749,6 @@ func unmarshalBasicRuleActionArray(body []byte) ([]BasicRuleAction, error) {
return raArray, nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MarshalJSON is the custom marshaler for RuleAction.
func (ra RuleAction) MarshalJSON() ([]byte, error) {
ra.OdataType = OdataTypeRuleAction
@@ -2940,31 +2759,26 @@ func (ra RuleAction) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsRuleEmailAction is the BasicRuleAction implementation for RuleAction.
func (ra RuleAction) AsRuleEmailAction() (*RuleEmailAction, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsRuleWebhookAction is the BasicRuleAction implementation for RuleAction.
func (ra RuleAction) AsRuleWebhookAction() (*RuleWebhookAction, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsRuleAction is the BasicRuleAction implementation for RuleAction.
func (ra RuleAction) AsRuleAction() (*RuleAction, bool) {
return &ra, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsBasicRuleAction is the BasicRuleAction implementation for RuleAction.
func (ra RuleAction) AsBasicRuleAction() (BasicRuleAction, bool) {
return &ra, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// BasicRuleCondition the condition that results in the alert rule being activated.
type BasicRuleCondition interface {
AsThresholdRuleCondition() (*ThresholdRuleCondition, bool)
@@ -2973,7 +2787,6 @@ type BasicRuleCondition interface {
AsRuleCondition() (*RuleCondition, bool)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// RuleCondition the condition that results in the alert rule being activated.
type RuleCondition struct {
// DataSource - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
@@ -3027,7 +2840,6 @@ func unmarshalBasicRuleConditionArray(body []byte) ([]BasicRuleCondition, error)
return rcArray, nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MarshalJSON is the custom marshaler for RuleCondition.
func (rc RuleCondition) MarshalJSON() ([]byte, error) {
rc.OdataType = OdataTypeRuleCondition
@@ -3039,37 +2851,31 @@ func (rc RuleCondition) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsThresholdRuleCondition is the BasicRuleCondition implementation for RuleCondition.
func (rc RuleCondition) AsThresholdRuleCondition() (*ThresholdRuleCondition, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsLocationThresholdRuleCondition is the BasicRuleCondition implementation for RuleCondition.
func (rc RuleCondition) AsLocationThresholdRuleCondition() (*LocationThresholdRuleCondition, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsManagementEventRuleCondition is the BasicRuleCondition implementation for RuleCondition.
func (rc RuleCondition) AsManagementEventRuleCondition() (*ManagementEventRuleCondition, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsRuleCondition is the BasicRuleCondition implementation for RuleCondition.
func (rc RuleCondition) AsRuleCondition() (*RuleCondition, bool) {
return &rc, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsBasicRuleCondition is the BasicRuleCondition implementation for RuleCondition.
func (rc RuleCondition) AsBasicRuleCondition() (BasicRuleCondition, bool) {
return &rc, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UnmarshalJSON is the custom unmarshaler for RuleCondition struct.
func (rc *RuleCondition) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -3102,7 +2908,6 @@ func (rc *RuleCondition) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// BasicRuleDataSource the resource from which the rule collects its data.
type BasicRuleDataSource interface {
AsRuleMetricDataSource() (*RuleMetricDataSource, bool)
@@ -3110,7 +2915,6 @@ type BasicRuleDataSource interface {
AsRuleDataSource() (*RuleDataSource, bool)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// RuleDataSource the resource from which the rule collects its data.
type RuleDataSource struct {
// ResourceURI - the resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule.
@@ -3160,7 +2964,6 @@ func unmarshalBasicRuleDataSourceArray(body []byte) ([]BasicRuleDataSource, erro
return rdsArray, nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MarshalJSON is the custom marshaler for RuleDataSource.
func (rds RuleDataSource) MarshalJSON() ([]byte, error) {
rds.OdataType = OdataTypeRuleDataSource
@@ -3174,31 +2977,26 @@ func (rds RuleDataSource) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsRuleMetricDataSource is the BasicRuleDataSource implementation for RuleDataSource.
func (rds RuleDataSource) AsRuleMetricDataSource() (*RuleMetricDataSource, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsRuleManagementEventDataSource is the BasicRuleDataSource implementation for RuleDataSource.
func (rds RuleDataSource) AsRuleManagementEventDataSource() (*RuleManagementEventDataSource, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsRuleDataSource is the BasicRuleDataSource implementation for RuleDataSource.
func (rds RuleDataSource) AsRuleDataSource() (*RuleDataSource, bool) {
return &rds, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsBasicRuleDataSource is the BasicRuleDataSource implementation for RuleDataSource.
func (rds RuleDataSource) AsBasicRuleDataSource() (BasicRuleDataSource, bool) {
return &rds, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// RuleEmailAction specifies the action to send email when the rule condition is evaluated. The discriminator is
// always RuleEmailAction in this case.
type RuleEmailAction struct {
@@ -3210,7 +3008,6 @@ type RuleEmailAction struct {
OdataType OdataTypeBasicRuleAction `json:"odata.type,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MarshalJSON is the custom marshaler for RuleEmailAction.
func (rea RuleEmailAction) MarshalJSON() ([]byte, error) {
rea.OdataType = OdataTypeMicrosoftAzureManagementInsightsModelsRuleEmailAction
@@ -3227,38 +3024,32 @@ func (rea RuleEmailAction) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsRuleEmailAction is the BasicRuleAction implementation for RuleEmailAction.
func (rea RuleEmailAction) AsRuleEmailAction() (*RuleEmailAction, bool) {
return &rea, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsRuleWebhookAction is the BasicRuleAction implementation for RuleEmailAction.
func (rea RuleEmailAction) AsRuleWebhookAction() (*RuleWebhookAction, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsRuleAction is the BasicRuleAction implementation for RuleEmailAction.
func (rea RuleEmailAction) AsRuleAction() (*RuleAction, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsBasicRuleAction is the BasicRuleAction implementation for RuleEmailAction.
func (rea RuleEmailAction) AsBasicRuleAction() (BasicRuleAction, bool) {
return &rea, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// RuleManagementEventClaimsDataSource the claims for a rule management event data source.
type RuleManagementEventClaimsDataSource struct {
// EmailAddress - the email address.
EmailAddress *string `json:"emailAddress,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// RuleManagementEventDataSource a rule management event data source. The discriminator fields is always
// RuleManagementEventDataSource in this case.
type RuleManagementEventDataSource struct {
@@ -3286,7 +3077,6 @@ type RuleManagementEventDataSource struct {
OdataType OdataType `json:"odata.type,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MarshalJSON is the custom marshaler for RuleManagementEventDataSource.
func (rmeds RuleManagementEventDataSource) MarshalJSON() ([]byte, error) {
rmeds.OdataType = OdataTypeMicrosoftAzureManagementInsightsModelsRuleManagementEventDataSource
@@ -3327,31 +3117,26 @@ func (rmeds RuleManagementEventDataSource) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsRuleMetricDataSource is the BasicRuleDataSource implementation for RuleManagementEventDataSource.
func (rmeds RuleManagementEventDataSource) AsRuleMetricDataSource() (*RuleMetricDataSource, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsRuleManagementEventDataSource is the BasicRuleDataSource implementation for RuleManagementEventDataSource.
func (rmeds RuleManagementEventDataSource) AsRuleManagementEventDataSource() (*RuleManagementEventDataSource, bool) {
return &rmeds, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsRuleDataSource is the BasicRuleDataSource implementation for RuleManagementEventDataSource.
func (rmeds RuleManagementEventDataSource) AsRuleDataSource() (*RuleDataSource, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsBasicRuleDataSource is the BasicRuleDataSource implementation for RuleManagementEventDataSource.
func (rmeds RuleManagementEventDataSource) AsBasicRuleDataSource() (BasicRuleDataSource, bool) {
return &rmeds, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// RuleMetricDataSource a rule metric data source. The discriminator value is always RuleMetricDataSource in this
// case.
type RuleMetricDataSource struct {
@@ -3363,7 +3148,6 @@ type RuleMetricDataSource struct {
OdataType OdataType `json:"odata.type,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MarshalJSON is the custom marshaler for RuleMetricDataSource.
func (rmds RuleMetricDataSource) MarshalJSON() ([]byte, error) {
rmds.OdataType = OdataTypeMicrosoftAzureManagementInsightsModelsRuleMetricDataSource
@@ -3380,31 +3164,26 @@ func (rmds RuleMetricDataSource) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsRuleMetricDataSource is the BasicRuleDataSource implementation for RuleMetricDataSource.
func (rmds RuleMetricDataSource) AsRuleMetricDataSource() (*RuleMetricDataSource, bool) {
return &rmds, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsRuleManagementEventDataSource is the BasicRuleDataSource implementation for RuleMetricDataSource.
func (rmds RuleMetricDataSource) AsRuleManagementEventDataSource() (*RuleManagementEventDataSource, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsRuleDataSource is the BasicRuleDataSource implementation for RuleMetricDataSource.
func (rmds RuleMetricDataSource) AsRuleDataSource() (*RuleDataSource, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsBasicRuleDataSource is the BasicRuleDataSource implementation for RuleMetricDataSource.
func (rmds RuleMetricDataSource) AsBasicRuleDataSource() (BasicRuleDataSource, bool) {
return &rmds, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// RuleWebhookAction specifies the action to post to service when the rule condition is evaluated. The
// discriminator is always RuleWebhookAction in this case.
type RuleWebhookAction struct {
@@ -3416,7 +3195,6 @@ type RuleWebhookAction struct {
OdataType OdataTypeBasicRuleAction `json:"odata.type,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MarshalJSON is the custom marshaler for RuleWebhookAction.
func (rwa RuleWebhookAction) MarshalJSON() ([]byte, error) {
rwa.OdataType = OdataTypeMicrosoftAzureManagementInsightsModelsRuleWebhookAction
@@ -3433,31 +3211,26 @@ func (rwa RuleWebhookAction) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsRuleEmailAction is the BasicRuleAction implementation for RuleWebhookAction.
func (rwa RuleWebhookAction) AsRuleEmailAction() (*RuleEmailAction, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsRuleWebhookAction is the BasicRuleAction implementation for RuleWebhookAction.
func (rwa RuleWebhookAction) AsRuleWebhookAction() (*RuleWebhookAction, bool) {
return &rwa, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsRuleAction is the BasicRuleAction implementation for RuleWebhookAction.
func (rwa RuleWebhookAction) AsRuleAction() (*RuleAction, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsBasicRuleAction is the BasicRuleAction implementation for RuleWebhookAction.
func (rwa RuleWebhookAction) AsBasicRuleAction() (BasicRuleAction, bool) {
return &rwa, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ScaleAction the parameters for the scaling action.
type ScaleAction struct {
// Direction - the scale direction. Whether the scaling action increases or decreases the number of instances. Possible values include: 'ScaleDirectionNone', 'ScaleDirectionIncrease', 'ScaleDirectionDecrease'
@@ -3470,7 +3243,6 @@ type ScaleAction struct {
Cooldown *string `json:"cooldown,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ScaleCapacity the number of instances that can be used during this profile.
type ScaleCapacity struct {
// Minimum - the minimum number of instances for the resource.
@@ -3481,7 +3253,6 @@ type ScaleCapacity struct {
Default *string `json:"default,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ScaleRule a rule that provide the triggers and parameters for the scaling action.
type ScaleRule struct {
// MetricTrigger - the trigger that results in a scaling action.
@@ -3490,7 +3261,6 @@ type ScaleRule struct {
ScaleAction *ScaleAction `json:"scaleAction,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// SenderAuthorization the authorization used by the user who has performed the operation that led to this event.
// This captures the RBAC properties of the event. These usually include the 'action', 'role' and the 'scope'
type SenderAuthorization struct {
@@ -3502,7 +3272,6 @@ type SenderAuthorization struct {
Scope *string `json:"scope,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// SmsReceiver an SMS receiver.
type SmsReceiver struct {
// Name - The name of the SMS receiver. Names must be unique across all receivers within an action group.
@@ -3515,7 +3284,6 @@ type SmsReceiver struct {
Status ReceiverStatus `json:"status,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ThresholdRuleCondition a rule condition based on a metric crossing a threshold.
type ThresholdRuleCondition struct {
// Operator - the operator used to compare the data and the threshold. Possible values include: 'ConditionOperatorGreaterThan', 'ConditionOperatorGreaterThanOrEqual', 'ConditionOperatorLessThan', 'ConditionOperatorLessThanOrEqual'
@@ -3532,7 +3300,6 @@ type ThresholdRuleCondition struct {
OdataType OdataTypeBasicRuleCondition `json:"odata.type,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MarshalJSON is the custom marshaler for ThresholdRuleCondition.
func (trc ThresholdRuleCondition) MarshalJSON() ([]byte, error) {
trc.OdataType = OdataTypeMicrosoftAzureManagementInsightsModelsThresholdRuleCondition
@@ -3556,37 +3323,31 @@ func (trc ThresholdRuleCondition) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsThresholdRuleCondition is the BasicRuleCondition implementation for ThresholdRuleCondition.
func (trc ThresholdRuleCondition) AsThresholdRuleCondition() (*ThresholdRuleCondition, bool) {
return &trc, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsLocationThresholdRuleCondition is the BasicRuleCondition implementation for ThresholdRuleCondition.
func (trc ThresholdRuleCondition) AsLocationThresholdRuleCondition() (*LocationThresholdRuleCondition, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsManagementEventRuleCondition is the BasicRuleCondition implementation for ThresholdRuleCondition.
func (trc ThresholdRuleCondition) AsManagementEventRuleCondition() (*ManagementEventRuleCondition, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsRuleCondition is the BasicRuleCondition implementation for ThresholdRuleCondition.
func (trc ThresholdRuleCondition) AsRuleCondition() (*RuleCondition, bool) {
return nil, false
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// AsBasicRuleCondition is the BasicRuleCondition implementation for ThresholdRuleCondition.
func (trc ThresholdRuleCondition) AsBasicRuleCondition() (BasicRuleCondition, bool) {
return &trc, true
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// UnmarshalJSON is the custom unmarshaler for ThresholdRuleCondition struct.
func (trc *ThresholdRuleCondition) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
@@ -3655,7 +3416,6 @@ func (trc *ThresholdRuleCondition) UnmarshalJSON(body []byte) error {
return nil
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// TimeSeriesElement a time series result type. The discriminator value is always TimeSeries in this case.
type TimeSeriesElement struct {
// Metadatavalues - the metadata values returned if $filter was specified in the call.
@@ -3664,7 +3424,6 @@ type TimeSeriesElement struct {
Data *[]MetricValue `json:"data,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// TimeSeriesInformation the time series info needed for calculating the baseline.
type TimeSeriesInformation struct {
// Sensitivities - the list of sensitivities for calculating the baseline.
@@ -3675,7 +3434,6 @@ type TimeSeriesInformation struct {
Timestamps *[]date.Time `json:"timestamps,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// TimeWindow a specific date-time for the profile.
type TimeWindow struct {
// TimeZone - the timezone of the start and end times for the profile. Some examples of valid timezones are: Dateline Standard Time, UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain Standard Time (Mexico), Mountain Standard Time, Central America Standard Time, Central Standard Time, Central Standard Time (Mexico), Canada Central Standard Time, SA Pacific Standard Time, Eastern Standard Time, US Eastern Standard Time, Venezuela Standard Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian Standard Time, SA Western Standard Time, Pacific SA Standard Time, Newfoundland Standard Time, E. South America Standard Time, Argentina Standard Time, SA Eastern Standard Time, Greenland Standard Time, Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W. Europe Standard Time, Central Europe Standard Time, Romance Standard Time, Central European Standard Time, W. Central Africa Standard Time, Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe Standard Time, South Africa Standard Time, FLE Standard Time, Turkey Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya Standard Time, Arabic Standard Time, Arab Standard Time, Belarus Standard Time, Russian Standard Time, E. Africa Standard Time, Iran Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus Standard Time, Afghanistan Standard Time, West Asia Standard Time, Ekaterinburg Standard Time, Pakistan Standard Time, India Standard Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time, Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time, China Standard Time, North Asia East Standard Time, Singapore Standard Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk Standard Time, Cen. Australia Standard Time, AUS Central Standard Time, E. Australia Standard Time, AUS Eastern Standard Time, West Pacific Standard Time, Tasmania Standard Time, Magadan Standard Time, Vladivostok Standard Time, Russia Time Zone 10, Central Pacific Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12, Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa Standard Time, Line Islands Standard Time
@@ -3686,7 +3444,6 @@ type TimeWindow struct {
End *date.Time `json:"end,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// VoiceReceiver a voice receiver.
type VoiceReceiver struct {
// Name - The name of the voice receiver. Names must be unique across all receivers within an action group.
@@ -3697,7 +3454,6 @@ type VoiceReceiver struct {
PhoneNumber *string `json:"phoneNumber,omitempty"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// WebhookNotification webhook notification of an autoscale event.
type WebhookNotification struct {
// ServiceURI - the service address to receive the notification.
@@ -3706,7 +3462,6 @@ type WebhookNotification struct {
Properties map[string]*string `json:"properties"`
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// MarshalJSON is the custom marshaler for WebhookNotification.
func (wn WebhookNotification) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
@@ -3719,7 +3474,6 @@ func (wn WebhookNotification) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// WebhookReceiver a webhook receiver.
type WebhookReceiver struct {
// Name - The name of the webhook receiver. Names must be unique across all receivers within an action group.
diff --git a/services/monitor/mgmt/2018-03-01/insights/operations.go b/services/monitor/mgmt/2018-03-01/insights/operations.go
index beb2e31aa8ed..bcfbfcf93b3d 100644
--- a/services/monitor/mgmt/2018-03-01/insights/operations.go
+++ b/services/monitor/mgmt/2018-03-01/insights/operations.go
@@ -24,25 +24,21 @@ import (
"net/http"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// OperationsClient is the monitor Management Client
type OperationsClient struct {
BaseClient
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NewOperationsClient creates an instance of the OperationsClient client.
func NewOperationsClient(subscriptionID string) OperationsClient {
return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// List lists all of the available operations from Microsoft.Insights provider.
func (client OperationsClient) List(ctx context.Context) (result OperationListResult, err error) {
req, err := client.ListPreparer(ctx)
@@ -66,7 +62,6 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListPreparer prepares the List request.
func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) {
const APIVersion = "2015-04-01"
@@ -82,7 +77,6 @@ func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request,
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListSender sends the List request. The method will close the
// http.Response Body if it receives an error.
func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error) {
@@ -90,7 +84,6 @@ func (client OperationsClient) ListSender(req *http.Request) (*http.Response, er
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListResponder handles the response to the List request. The method always
// closes the http.Response Body.
func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error) {
diff --git a/services/monitor/mgmt/2018-03-01/insights/tenantactivitylogs.go b/services/monitor/mgmt/2018-03-01/insights/tenantactivitylogs.go
index 474a715d9327..78a629f7152c 100644
--- a/services/monitor/mgmt/2018-03-01/insights/tenantactivitylogs.go
+++ b/services/monitor/mgmt/2018-03-01/insights/tenantactivitylogs.go
@@ -24,43 +24,40 @@ import (
"net/http"
)
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// TenantActivityLogsClient is the monitor Management Client
type TenantActivityLogsClient struct {
BaseClient
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NewTenantActivityLogsClient creates an instance of the TenantActivityLogsClient client.
func NewTenantActivityLogsClient(subscriptionID string) TenantActivityLogsClient {
return NewTenantActivityLogsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// NewTenantActivityLogsClientWithBaseURI creates an instance of the TenantActivityLogsClient client.
func NewTenantActivityLogsClientWithBaseURI(baseURI string, subscriptionID string) TenantActivityLogsClient {
return TenantActivityLogsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// List gets the Activity Logs for the Tenant.
Everything that is applicable to the API to get the Activity Logs for
// the subscription is applicable to this API (the parameters, $filter, etc.).
One thing to point out here is that
// this API does *not* retrieve the logs at the individual subscription of the tenant but only surfaces the logs that
// were generated at the tenant level.
-//
-// filter is reduces the set of data collected.
The **$filter** is very restricted and allows only the
+// Parameters:
+// filter - reduces the set of data collected.
The **$filter** is very restricted and allows only the
// following patterns.
- List events for a resource group: $filter=eventTimestamp ge '' and
// eventTimestamp le '' and eventChannels eq 'Admin, Operation' and resourceGroupName eq
// ''.
- List events for resource: $filter=eventTimestamp ge '' and
-// eventTimestamp le '' and eventChannels eq 'Admin, Operation' and resourceUri eq ''.
-
-// List events for a subscription: $filter=eventTimestamp ge '' and eventTimestamp le '' and
-// eventChannels eq 'Admin, Operation'.
- List events for a resource provider: $filter=eventTimestamp ge '' and eventTimestamp le '' and eventChannels eq 'Admin, Operation' and resourceProvider eq
-// ''.
- List events for a correlation Id: api-version=2014-04-01&$filter=eventTimestamp
-// ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and eventChannels eq
-// 'Admin, Operation' and correlationId eq ''.
**NOTE**: No other syntax is allowed.
-// selectParameter is used to fetch events with only the given properties.
The **$select** argument is a comma
-// separated list of property names to be returned. Possible values are: *authorization*, *claims*,
+// eventTimestamp le '' and eventChannels eq 'Admin, Operation' and resourceUri eq
+// ''.
- List events for a subscription: $filter=eventTimestamp ge '' and
+// eventTimestamp le '' and eventChannels eq 'Admin, Operation'.
- List events for a resource
+// provider: $filter=eventTimestamp ge '' and eventTimestamp le '' and eventChannels eq
+// 'Admin, Operation' and resourceProvider eq ''.
- List events for a correlation Id:
+// api-version=2014-04-01&$filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le
+// '2014-07-20T04:36:37.6407898Z' and eventChannels eq 'Admin, Operation' and correlationId eq
+// ''.
**NOTE**: No other syntax is allowed.
+// selectParameter - used to fetch events with only the given properties.
The **$select** argument is a
+// comma separated list of property names to be returned. Possible values are: *authorization*, *claims*,
// *correlationId*, *description*, *eventDataId*, *eventName*, *eventTimestamp*, *httpRequest*, *level*,
// *operationId*, *operationName*, *properties*, *resourceGroupName*, *resourceProviderName*, *resourceId*,
// *status*, *submissionTimestamp*, *subStatus*, *subscriptionId*
@@ -87,7 +84,6 @@ func (client TenantActivityLogsClient) List(ctx context.Context, filter string,
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListPreparer prepares the List request.
func (client TenantActivityLogsClient) ListPreparer(ctx context.Context, filter string, selectParameter string) (*http.Request, error) {
const APIVersion = "2015-04-01"
@@ -109,7 +105,6 @@ func (client TenantActivityLogsClient) ListPreparer(ctx context.Context, filter
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListSender sends the List request. The method will close the
// http.Response Body if it receives an error.
func (client TenantActivityLogsClient) ListSender(req *http.Request) (*http.Response, error) {
@@ -117,7 +112,6 @@ func (client TenantActivityLogsClient) ListSender(req *http.Request) (*http.Resp
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListResponder handles the response to the List request. The method always
// closes the http.Response Body.
func (client TenantActivityLogsClient) ListResponder(resp *http.Response) (result EventDataCollection, err error) {
@@ -152,7 +146,6 @@ func (client TenantActivityLogsClient) listNextResults(lastResults EventDataColl
return
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client TenantActivityLogsClient) ListComplete(ctx context.Context, filter string, selectParameter string) (result EventDataCollectionIterator, err error) {
result.page, err = client.List(ctx, filter, selectParameter)
diff --git a/services/monitor/mgmt/2018-03-01/insights/version.go b/services/monitor/mgmt/2018-03-01/insights/version.go
index c37c069c8367..81363798d247 100644
--- a/services/monitor/mgmt/2018-03-01/insights/version.go
+++ b/services/monitor/mgmt/2018-03-01/insights/version.go
@@ -18,13 +18,12 @@ import "github.com/Azure/azure-sdk-for-go/version"
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
+
// UserAgent returns the UserAgent string to use when sending http.Requests.
func UserAgent() string {
return "Azure-SDK-For-Go/" + version.Number + " insights/2018-03-01"
}
-// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights instead.
// Version returns the semantic version (see http://semver.org) of the client.
func Version() string {
return version.Number
diff --git a/services/preview/monitor/mgmt/2018-03-01/insights/models.go b/services/preview/monitor/mgmt/2018-03-01/insights/models.go
index 29289669c915..51c17001eb7b 100644
--- a/services/preview/monitor/mgmt/2018-03-01/insights/models.go
+++ b/services/preview/monitor/mgmt/2018-03-01/insights/models.go
@@ -1034,9 +1034,9 @@ func (alar *ActivityLogAlertResource) UnmarshalJSON(body []byte) error {
type AlertingAction struct {
// Severity - Severity of the alert. Possible values include: 'Zero', 'One', 'Two', 'Three', 'Four'
Severity AlertSeverity `json:"severity,omitempty"`
- // AznsAction - azns notification group reference.
+ // AznsAction - Azure action group reference.
AznsAction *AzNsActionGroup `json:"aznsAction,omitempty"`
- // ThrottlingInMin - time (in minutes) for which Alerts should be throttled
+ // ThrottlingInMin - time (in minutes) for which Alerts should be throttled or suppressed.
ThrottlingInMin *int32 `json:"throttlingInMin,omitempty"`
// Trigger - The trigger condition that results in the alert rule being.
Trigger *TriggerCondition `json:"trigger,omitempty"`
@@ -1663,13 +1663,13 @@ func (asrp *AutoscaleSettingResourcePatch) UnmarshalJSON(body []byte) error {
return nil
}
-// AzNsActionGroup azns notification group
+// AzNsActionGroup azure action group
type AzNsActionGroup struct {
- // ActionGroup - Azure Group reference.
+ // ActionGroup - Azure Action Group reference.
ActionGroup *[]string `json:"actionGroup,omitempty"`
- // EmailSubject - Custom subject for Azns email
+ // EmailSubject - Custom subject override for all email ids in Azure action group
EmailSubject *string `json:"emailSubject,omitempty"`
- // CustomWebhookPayload - Custom webhook payload to be send to azns action group
+ // CustomWebhookPayload - Custom payload to be sent for all webook URI in Azure action group
CustomWebhookPayload *string `json:"customWebhookPayload,omitempty"`
}
@@ -4285,8 +4285,8 @@ type Source struct {
Query *string `json:"query,omitempty"`
// AuthorizedResources - List of Resource referred into query
AuthorizedResources *[]string `json:"authorizedResources,omitempty"`
- // DatasourceID - The resource uri over which log search query is to be run.
- DatasourceID *string `json:"datasourceId,omitempty"`
+ // DataSourceID - The resource uri over which log search query is to be run.
+ DataSourceID *string `json:"dataSourceId,omitempty"`
// QueryType - Set value to ResultCount if query should be returning search result count. Set it to Number if its a metric query. Possible values include: 'ResultCount'
QueryType QueryType `json:"queryType,omitempty"`
}
diff --git a/services/preview/monitor/mgmt/2018-03-01/insights/scheduledqueryrules.go b/services/preview/monitor/mgmt/2018-03-01/insights/scheduledqueryrules.go
index 7ab4e1cb2391..99d77ba3bbeb 100644
--- a/services/preview/monitor/mgmt/2018-03-01/insights/scheduledqueryrules.go
+++ b/services/preview/monitor/mgmt/2018-03-01/insights/scheduledqueryrules.go
@@ -51,7 +51,7 @@ func (client ScheduledQueryRulesClient) CreateOrUpdate(ctx context.Context, reso
Constraints: []validation.Constraint{{Target: "parameters.LogSearchRule", Name: validation.Null, Rule: true,
Chain: []validation.Constraint{{Target: "parameters.LogSearchRule.Source", Name: validation.Null, Rule: true,
Chain: []validation.Constraint{{Target: "parameters.LogSearchRule.Source.Query", Name: validation.Null, Rule: true, Chain: nil},
- {Target: "parameters.LogSearchRule.Source.DatasourceID", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "parameters.LogSearchRule.Source.DataSourceID", Name: validation.Null, Rule: true, Chain: nil},
}},
{Target: "parameters.LogSearchRule.Schedule", Name: validation.Null, Rule: true,
Chain: []validation.Constraint{{Target: "parameters.LogSearchRule.Schedule.FrequencyInMinutes", Name: validation.Null, Rule: true, Chain: nil},