diff --git a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/ArmRoleReceiver.java b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/ArmRoleReceiver.java index 49ab9ab2fd260..1b2414bbbd433 100644 --- a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/ArmRoleReceiver.java +++ b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/ArmRoleReceiver.java @@ -27,6 +27,12 @@ public class ArmRoleReceiver { @JsonProperty(value = "roleId", required = true) private String roleId; + /** + * Indicates whether to use common alert schema. + */ + @JsonProperty(value = "useCommonAlertSchema", required = true) + private boolean useCommonAlertSchema; + /** * Get the name of the arm role receiver. Names must be unique across all receivers within an action group. * @@ -67,4 +73,24 @@ public ArmRoleReceiver withRoleId(String roleId) { return this; } + /** + * Get indicates whether to use common alert schema. + * + * @return the useCommonAlertSchema value + */ + public boolean useCommonAlertSchema() { + return this.useCommonAlertSchema; + } + + /** + * Set indicates whether to use common alert schema. + * + * @param useCommonAlertSchema the useCommonAlertSchema value to set + * @return the ArmRoleReceiver object itself. + */ + public ArmRoleReceiver withUseCommonAlertSchema(boolean useCommonAlertSchema) { + this.useCommonAlertSchema = useCommonAlertSchema; + return this; + } + } diff --git a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/AutomationRunbookReceiver.java b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/AutomationRunbookReceiver.java index 39a22ba1d9444..04b700aeff5f1 100644 --- a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/AutomationRunbookReceiver.java +++ b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/AutomationRunbookReceiver.java @@ -51,6 +51,12 @@ public class AutomationRunbookReceiver { @JsonProperty(value = "serviceUri") private String serviceUri; + /** + * Indicates whether to use common alert schema. + */ + @JsonProperty(value = "useCommonAlertSchema", required = true) + private boolean useCommonAlertSchema; + /** * Get the Azure automation account Id which holds this runbook and authenticate to Azure resource. * @@ -171,4 +177,24 @@ public AutomationRunbookReceiver withServiceUri(String serviceUri) { return this; } + /** + * Get indicates whether to use common alert schema. + * + * @return the useCommonAlertSchema value + */ + public boolean useCommonAlertSchema() { + return this.useCommonAlertSchema; + } + + /** + * Set indicates whether to use common alert schema. + * + * @param useCommonAlertSchema the useCommonAlertSchema value to set + * @return the AutomationRunbookReceiver object itself. + */ + public AutomationRunbookReceiver withUseCommonAlertSchema(boolean useCommonAlertSchema) { + this.useCommonAlertSchema = useCommonAlertSchema; + return this; + } + } diff --git a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/AzureFunctionReceiver.java b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/AzureFunctionReceiver.java index 3abb6c1528301..574bb1d90435d 100644 --- a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/AzureFunctionReceiver.java +++ b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/AzureFunctionReceiver.java @@ -39,6 +39,12 @@ public class AzureFunctionReceiver { @JsonProperty(value = "httpTriggerUrl", required = true) private String httpTriggerUrl; + /** + * Indicates whether to use common alert schema. + */ + @JsonProperty(value = "useCommonAlertSchema", required = true) + private boolean useCommonAlertSchema; + /** * Get the name of the azure function receiver. Names must be unique across all receivers within an action group. * @@ -119,4 +125,24 @@ public AzureFunctionReceiver withHttpTriggerUrl(String httpTriggerUrl) { return this; } + /** + * Get indicates whether to use common alert schema. + * + * @return the useCommonAlertSchema value + */ + public boolean useCommonAlertSchema() { + return this.useCommonAlertSchema; + } + + /** + * Set indicates whether to use common alert schema. + * + * @param useCommonAlertSchema the useCommonAlertSchema value to set + * @return the AzureFunctionReceiver object itself. + */ + public AzureFunctionReceiver withUseCommonAlertSchema(boolean useCommonAlertSchema) { + this.useCommonAlertSchema = useCommonAlertSchema; + return this; + } + } diff --git a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/EmailReceiver.java b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/EmailReceiver.java index 8a6ea4c12590a..4ffd10e021cd6 100644 --- a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/EmailReceiver.java +++ b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/EmailReceiver.java @@ -27,6 +27,12 @@ public class EmailReceiver { @JsonProperty(value = "emailAddress", required = true) private String emailAddress; + /** + * Indicates whether to use common alert schema. + */ + @JsonProperty(value = "useCommonAlertSchema", required = true) + private boolean useCommonAlertSchema; + /** * The receiver status of the e-mail. Possible values include: * 'NotSpecified', 'Enabled', 'Disabled'. @@ -74,6 +80,26 @@ public EmailReceiver withEmailAddress(String emailAddress) { return this; } + /** + * Get indicates whether to use common alert schema. + * + * @return the useCommonAlertSchema value + */ + public boolean useCommonAlertSchema() { + return this.useCommonAlertSchema; + } + + /** + * Set indicates whether to use common alert schema. + * + * @param useCommonAlertSchema the useCommonAlertSchema value to set + * @return the EmailReceiver object itself. + */ + public EmailReceiver withUseCommonAlertSchema(boolean useCommonAlertSchema) { + this.useCommonAlertSchema = useCommonAlertSchema; + return this; + } + /** * Get the receiver status of the e-mail. Possible values include: 'NotSpecified', 'Enabled', 'Disabled'. * diff --git a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/LogicAppReceiver.java b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/LogicAppReceiver.java index ca0328c7e00c6..55cc4b0e46d1f 100644 --- a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/LogicAppReceiver.java +++ b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/LogicAppReceiver.java @@ -33,6 +33,12 @@ public class LogicAppReceiver { @JsonProperty(value = "callbackUrl", required = true) private String callbackUrl; + /** + * Indicates whether to use common alert schema. + */ + @JsonProperty(value = "useCommonAlertSchema", required = true) + private boolean useCommonAlertSchema; + /** * Get the name of the logic app receiver. Names must be unique across all receivers within an action group. * @@ -93,4 +99,24 @@ public LogicAppReceiver withCallbackUrl(String callbackUrl) { return this; } + /** + * Get indicates whether to use common alert schema. + * + * @return the useCommonAlertSchema value + */ + public boolean useCommonAlertSchema() { + return this.useCommonAlertSchema; + } + + /** + * Set indicates whether to use common alert schema. + * + * @param useCommonAlertSchema the useCommonAlertSchema value to set + * @return the LogicAppReceiver object itself. + */ + public LogicAppReceiver withUseCommonAlertSchema(boolean useCommonAlertSchema) { + this.useCommonAlertSchema = useCommonAlertSchema; + return this; + } + } diff --git a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/WebhookReceiver.java b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/WebhookReceiver.java index 82d530c45ce8e..243742a3e5ed6 100644 --- a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/WebhookReceiver.java +++ b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/WebhookReceiver.java @@ -27,6 +27,12 @@ public class WebhookReceiver { @JsonProperty(value = "serviceUri", required = true) private String serviceUri; + /** + * Indicates whether to use common alert schema. + */ + @JsonProperty(value = "useCommonAlertSchema", required = true) + private boolean useCommonAlertSchema; + /** * Get the name of the webhook receiver. Names must be unique across all receivers within an action group. * @@ -67,4 +73,24 @@ public WebhookReceiver withServiceUri(String serviceUri) { return this; } + /** + * Get indicates whether to use common alert schema. + * + * @return the useCommonAlertSchema value + */ + public boolean useCommonAlertSchema() { + return this.useCommonAlertSchema; + } + + /** + * Set indicates whether to use common alert schema. + * + * @param useCommonAlertSchema the useCommonAlertSchema value to set + * @return the WebhookReceiver object itself. + */ + public WebhookReceiver withUseCommonAlertSchema(boolean useCommonAlertSchema) { + this.useCommonAlertSchema = useCommonAlertSchema; + return this; + } + } diff --git a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/ActionGroupsInner.java b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/ActionGroupsInner.java index a3118ffea7fb3..a7b43c9092ce8 100644 --- a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/ActionGroupsInner.java +++ b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/ActionGroupsInner.java @@ -165,7 +165,7 @@ public Observable> createOrUpdateWithS throw new IllegalArgumentException("Parameter actionGroup is required and cannot be null."); } Validator.validate(actionGroup); - final String apiVersion = "2018-09-01"; + final String apiVersion = "2019-03-01"; return service.createOrUpdate(resourceGroupName, actionGroupName, this.client.subscriptionId(), actionGroup, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -250,7 +250,7 @@ public Observable> getByResourceGroupW if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-09-01"; + final String apiVersion = "2019-03-01"; return service.getByResourceGroup(resourceGroupName, actionGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -333,7 +333,7 @@ public Observable> deleteWithServiceResponseAsync(String r if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-09-01"; + final String apiVersion = "2019-03-01"; return service.delete(resourceGroupName, actionGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -426,7 +426,7 @@ public Observable> updateWithServiceRe throw new IllegalArgumentException("Parameter actionGroupPatch is required and cannot be null."); } Validator.validate(actionGroupPatch); - final String apiVersion = "2018-09-01"; + final String apiVersion = "2019-03-01"; return service.update(this.client.subscriptionId(), resourceGroupName, actionGroupName, apiVersion, actionGroupPatch, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override @@ -500,7 +500,7 @@ public Observable>> listWithServi if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-09-01"; + final String apiVersion = "2019-03-01"; return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -586,7 +586,7 @@ public Observable>> listByResourc if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-09-01"; + final String apiVersion = "2019-03-01"; return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override @@ -681,7 +681,7 @@ public Observable> enableReceiverWithServiceResponseAsync( if (receiverName == null) { throw new IllegalArgumentException("Parameter receiverName is required and cannot be null."); } - final String apiVersion = "2018-09-01"; + final String apiVersion = "2019-03-01"; EnableRequest enableRequest = new EnableRequest(); enableRequest.withReceiverName(receiverName); return service.enableReceiver(resourceGroupName, actionGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), enableRequest, this.client.userAgent())