Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR monitor/resource-manager] fix package tag for new API version #3103

Merged
merged 1 commit into from
Mar 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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'.
Expand Down Expand Up @@ -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'.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public Observable<ServiceResponse<ActionGroupResourceInner>> 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<Response<ResponseBody>, Observable<ServiceResponse<ActionGroupResourceInner>>>() {
@Override
Expand Down Expand Up @@ -250,7 +250,7 @@ public Observable<ServiceResponse<ActionGroupResourceInner>> 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<Response<ResponseBody>, Observable<ServiceResponse<ActionGroupResourceInner>>>() {
@Override
Expand Down Expand Up @@ -333,7 +333,7 @@ public Observable<ServiceResponse<Void>> 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<Response<ResponseBody>, Observable<ServiceResponse<Void>>>() {
@Override
Expand Down Expand Up @@ -426,7 +426,7 @@ public Observable<ServiceResponse<ActionGroupResourceInner>> 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<Response<ResponseBody>, Observable<ServiceResponse<ActionGroupResourceInner>>>() {
@Override
Expand Down Expand Up @@ -500,7 +500,7 @@ public Observable<ServiceResponse<List<ActionGroupResourceInner>>> 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<Response<ResponseBody>, Observable<ServiceResponse<List<ActionGroupResourceInner>>>>() {
@Override
Expand Down Expand Up @@ -586,7 +586,7 @@ public Observable<ServiceResponse<List<ActionGroupResourceInner>>> 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<Response<ResponseBody>, Observable<ServiceResponse<List<ActionGroupResourceInner>>>>() {
@Override
Expand Down Expand Up @@ -681,7 +681,7 @@ public Observable<ServiceResponse<Void>> 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())
Expand Down