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 managementgroups/resource-manager] Remove EntityViewParameter from Entities Call #253

Merged
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,69 @@
/**
* 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.managementgroups;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The details of the error.
*/
public class ErrorDetails {
/**
* One of a server-defined set of error codes.
*/
@JsonProperty(value = "code")
private String code;

/**
* A human-readable representation of the error.
*/
@JsonProperty(value = "message")
private String message;

/**
* Get the code value.
*
* @return the code value
*/
public String code() {
return this.code;
}

/**
* Set the code value.
*
* @param code the code value to set
* @return the ErrorDetails object itself.
*/
public ErrorDetails withCode(String code) {
this.code = code;
return this;
}

/**
* Get the message value.
*
* @return the message value
*/
public String message() {
return this.message;
}

/**
* Set the message value.
*
* @param message the message value to set
* @return the ErrorDetails object itself.
*/
public ErrorDetails withMessage(String message) {
this.message = message;
return this;
}

}
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.managementgroups;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The error object.
*/
public class ErrorResponse {
/**
* Error.
*/
@JsonProperty(value = "error")
private ErrorDetails error;

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

/**
* Set the error value.
*
* @param error the error value to set
* @return the ErrorResponse object itself.
*/
public ErrorResponse withError(ErrorDetails error) {
this.error = error;
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.managementgroups;

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

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

/**
* Initializes a new instance of the ErrorResponseException 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 ErrorResponseException(final String message, final Response<ResponseBody> response, final ErrorResponse body) {
super(message, response, body);
}

@Override
public ErrorResponse body() {
return (ErrorResponse) super.body();
}
}
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.managementgroups;

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

/**
* The child information of a management group.
*/
public class ManagementGroupChildInfo {
/**
* The type of child resource.
* Possible values include: 'ManagementGroup', 'Subscription'.
*/
@JsonProperty(value = "childType")
private String childType;

/**
* The fully qualified ID for the child resource (management group or
* subscription). For example,
* /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000.
*/
@JsonProperty(value = "childId")
private String childId;

/**
* The friendly name of the child resource.
*/
@JsonProperty(value = "displayName")
private String displayName;

/**
* The list of children.
*/
@JsonProperty(value = "children")
private List<ManagementGroupChildInfo> children;

/**
* Get the childType value.
*
* @return the childType value
*/
public String childType() {
return this.childType;
}

/**
* Set the childType value.
*
* @param childType the childType value to set
* @return the ManagementGroupChildInfo object itself.
*/
public ManagementGroupChildInfo withChildType(String childType) {
this.childType = childType;
return this;
}

/**
* Get the childId value.
*
* @return the childId value
*/
public String childId() {
return this.childId;
}

/**
* Set the childId value.
*
* @param childId the childId value to set
* @return the ManagementGroupChildInfo object itself.
*/
public ManagementGroupChildInfo withChildId(String childId) {
this.childId = childId;
return this;
}

/**
* Get the displayName value.
*
* @return the displayName value
*/
public String displayName() {
return this.displayName;
}

/**
* Set the displayName value.
*
* @param displayName the displayName value to set
* @return the ManagementGroupChildInfo object itself.
*/
public ManagementGroupChildInfo withDisplayName(String displayName) {
this.displayName = displayName;
return this;
}

/**
* Get the children value.
*
* @return the children value
*/
public List<ManagementGroupChildInfo> children() {
return this.children;
}

/**
* Set the children value.
*
* @param children the children value to set
* @return the ManagementGroupChildInfo object itself.
*/
public ManagementGroupChildInfo withChildren(List<ManagementGroupChildInfo> children) {
this.children = children;
return this;
}

}
Loading