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 243742a3e5ed6..75b93bff0fa25 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 @@ -33,6 +33,30 @@ public class WebhookReceiver { @JsonProperty(value = "useCommonAlertSchema", required = true) private boolean useCommonAlertSchema; + /** + * Indicates whether or not use AAD authentication. + */ + @JsonProperty(value = "useAadAuth") + private Boolean useAadAuth; + + /** + * Indicates the webhook app object Id for aad auth. + */ + @JsonProperty(value = "objectId") + private String objectId; + + /** + * Indicates the identifier uri for aad auth. + */ + @JsonProperty(value = "identifierUri") + private String identifierUri; + + /** + * Indicates the tenant id for aad auth. + */ + @JsonProperty(value = "tenantId") + private String tenantId; + /** * Get the name of the webhook receiver. Names must be unique across all receivers within an action group. * @@ -93,4 +117,84 @@ public WebhookReceiver withUseCommonAlertSchema(boolean useCommonAlertSchema) { return this; } + /** + * Get indicates whether or not use AAD authentication. + * + * @return the useAadAuth value + */ + public Boolean useAadAuth() { + return this.useAadAuth; + } + + /** + * Set indicates whether or not use AAD authentication. + * + * @param useAadAuth the useAadAuth value to set + * @return the WebhookReceiver object itself. + */ + public WebhookReceiver withUseAadAuth(Boolean useAadAuth) { + this.useAadAuth = useAadAuth; + return this; + } + + /** + * Get indicates the webhook app object Id for aad auth. + * + * @return the objectId value + */ + public String objectId() { + return this.objectId; + } + + /** + * Set indicates the webhook app object Id for aad auth. + * + * @param objectId the objectId value to set + * @return the WebhookReceiver object itself. + */ + public WebhookReceiver withObjectId(String objectId) { + this.objectId = objectId; + return this; + } + + /** + * Get indicates the identifier uri for aad auth. + * + * @return the identifierUri value + */ + public String identifierUri() { + return this.identifierUri; + } + + /** + * Set indicates the identifier uri for aad auth. + * + * @param identifierUri the identifierUri value to set + * @return the WebhookReceiver object itself. + */ + public WebhookReceiver withIdentifierUri(String identifierUri) { + this.identifierUri = identifierUri; + return this; + } + + /** + * Get indicates the tenant id for aad auth. + * + * @return the tenantId value + */ + public String tenantId() { + return this.tenantId; + } + + /** + * Set indicates the tenant id for aad auth. + * + * @param tenantId the tenantId value to set + * @return the WebhookReceiver object itself. + */ + public WebhookReceiver withTenantId(String tenantId) { + this.tenantId = tenantId; + 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 a7b43c9092ce8..8eeb8cddb8822 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 = "2019-03-01"; + final String apiVersion = "2019-06-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 = "2019-03-01"; + final String apiVersion = "2019-06-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 = "2019-03-01"; + final String apiVersion = "2019-06-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 = "2019-03-01"; + final String apiVersion = "2019-06-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 = "2019-03-01"; + final String apiVersion = "2019-06-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 = "2019-03-01"; + final String apiVersion = "2019-06-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 = "2019-03-01"; + final String apiVersion = "2019-06-01"; EnableRequest enableRequest = new EnableRequest(); enableRequest.withReceiverName(receiverName); return service.enableReceiver(resourceGroupName, actionGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), enableRequest, this.client.userAgent())