Skip to content
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
@@ -0,0 +1,53 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.logic.v2016_06_01;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.logic.v2016_06_01.implementation.RequestHistoryInner;
import com.microsoft.azure.arm.model.Indexable;
import com.microsoft.azure.arm.model.Refreshable;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.logic.v2016_06_01.implementation.LogicManager;
import java.util.Map;

/**
* Type representing ActionRunWorkflowRequestHistory.
*/
public interface ActionRunWorkflowRequestHistory extends HasInner<RequestHistoryInner>, Indexable, Refreshable<ActionRunWorkflowRequestHistory>, HasManager<LogicManager> {
/**
* @return the id value.
*/
String id();

/**
* @return the location value.
*/
String location();

/**
* @return the name value.
*/
String name();

/**
* @return the properties value.
*/
RequestHistoryProperties properties();

/**
* @return the tags value.
*/
Map<String, String> tags();

/**
* @return the type value.
*/
String type();

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.logic.v2016_06_01;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* An error response from the Logic App service.
*/
public class ApiError {
/**
* The error property.
*/
@JsonProperty(value = "error")
private ApiErrorBody error;

/**
* Get the error value.
*
* @return the error value
*/
public ApiErrorBody error() {
return this.error;
}

/**
* Set the error value.
*
* @param error the error value to set
* @return the ApiError object itself.
*/
public ApiError withError(ApiErrorBody error) {
this.error = error;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.logic.v2016_06_01;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* An error response from the Logic App service.
*/
public class ApiErrorBody {
/**
* An identifier for the error. Codes are invariant and are intended to be
* consumed programmatically.
*/
@JsonProperty(value = "code")
private String code;

/**
* A message describing the error, intended to be suitable for display in a
* user interface.
*/
@JsonProperty(value = "message")
private String message;

/**
* The target of the particular error. For example, the name of the
* property in error.
*/
@JsonProperty(value = "target")
private String target;

/**
* A list of additional details about the error.
*/
@JsonProperty(value = "details")
private List<ApiErrorBody> details;

/**
* Get an identifier for the error. Codes are invariant and are intended to be consumed programmatically.
*
* @return the code value
*/
public String code() {
return this.code;
}

/**
* Set an identifier for the error. Codes are invariant and are intended to be consumed programmatically.
*
* @param code the code value to set
* @return the ApiErrorBody object itself.
*/
public ApiErrorBody withCode(String code) {
this.code = code;
return this;
}

/**
* Get a message describing the error, intended to be suitable for display in a user interface.
*
* @return the message value
*/
public String message() {
return this.message;
}

/**
* Set a message describing the error, intended to be suitable for display in a user interface.
*
* @param message the message value to set
* @return the ApiErrorBody object itself.
*/
public ApiErrorBody withMessage(String message) {
this.message = message;
return this;
}

/**
* Get the target of the particular error. For example, the name of the property in error.
*
* @return the target value
*/
public String target() {
return this.target;
}

/**
* Set the target of the particular error. For example, the name of the property in error.
*
* @param target the target value to set
* @return the ApiErrorBody object itself.
*/
public ApiErrorBody withTarget(String target) {
this.target = target;
return this;
}

/**
* Get a list of additional details about the error.
*
* @return the details value
*/
public List<ApiErrorBody> details() {
return this.details;
}

/**
* Set a list of additional details about the error.
*
* @param details the details value to set
* @return the ApiErrorBody object itself.
*/
public ApiErrorBody withDetails(List<ApiErrorBody> details) {
this.details = details;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.logic.v2016_06_01;

import com.microsoft.rest.RestException;
import okhttp3.ResponseBody;
import retrofit2.Response;

/**
* Exception thrown for an invalid response with ApiError information.
*/
public class ApiErrorException extends RestException {
/**
* Initializes a new instance of the ApiErrorException class.
*
* @param message the exception message or the response content if a message is not available
* @param response the HTTP response
*/
public ApiErrorException(final String message, final Response<ResponseBody> response) {
super(message, response);
}

/**
* Initializes a new instance of the ApiErrorException class.
*
* @param message the exception message or the response content if a message is not available
* @param response the HTTP response
* @param body the deserialized response body
*/
public ApiErrorException(final String message, final Response<ResponseBody> response, final ApiError body) {
super(message, response, body);
}

@Override
public ApiError body() {
return (ApiError) super.body();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.logic.v2016_06_01;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.logic.v2016_06_01.implementation.RequestHistoryInner;
import com.microsoft.azure.arm.model.Indexable;
import com.microsoft.azure.arm.model.Refreshable;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.logic.v2016_06_01.implementation.LogicManager;
import java.util.Map;

/**
* Type representing RepetitionActionRunWorkflowRequestHistory.
*/
public interface RepetitionActionRunWorkflowRequestHistory extends HasInner<RequestHistoryInner>, Indexable, Refreshable<RepetitionActionRunWorkflowRequestHistory>, HasManager<LogicManager> {
/**
* @return the id value.
*/
String id();

/**
* @return the location value.
*/
String location();

/**
* @return the name value.
*/
String name();

/**
* @return the properties value.
*/
RequestHistoryProperties properties();

/**
* @return the tags value.
*/
Map<String, String> tags();

/**
* @return the type value.
*/
String type();

}
Loading