Skip to content
Closed
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,71 @@
/**
* 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.graphrbac;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;

/**
* Active Directory error information.
*/
@JsonFlatten
public class GraphError {
/**
* Error code.
*/
@JsonProperty(value = "odata\\.error.code")
private String code;

/**
* Error message value.
*/
@JsonProperty(value = "odata\\.error.message.value")
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 GraphError object itself.
*/
public GraphError 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 GraphError object itself.
*/
public GraphError withMessage(String message) {
this.message = message;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
/**
* 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.graphrbac;

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

/**
* Exception thrown for an invalid response with GraphError information.
*/
public class GraphErrorException extends RestException {
/**
* Information about the associated HTTP response.
*/
private Response response;
/**
* The actual response body.
*/
private GraphError body;
/**
* Initializes a new instance of the GraphErrorException class.
*/
public GraphErrorException() { }
/**
* Initializes a new instance of the GraphErrorException class.
*
* @param message The exception message.
*/
public GraphErrorException(final String message) {
super(message);
}
/**
* Initializes a new instance of the GraphErrorException class.
*
* @param message the exception message
* @param cause exception that caused this exception to occur
*/
public GraphErrorException(final String message, final Throwable cause) {
super(message, cause);
}
/**
* Initializes a new instance of the GraphErrorException class.
*
* @param cause exception that caused this exception to occur
*/
public GraphErrorException(final Throwable cause) {
super(cause);
}
/**
* Gets information about the associated HTTP response.
*
* @return the HTTP response
*/
public Response getResponse() {
return response;
}
/**
* Gets the HTTP response body.
*
* @return the response body
*/
public GraphError getBody() {
return body;
}
/**
* Sets the HTTP response.
*
* @param response the HTTP response
*/
public void setResponse(Response response) {
this.response = response;
}
/**
* Sets the HTTP response body.
*
* @param body the response body
*/
public void setBody(GraphError body) {
this.body = body;
}
}
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.graphrbac;

import java.util.List;
import com.microsoft.azure.management.graphrbac.implementation.KeyCredentialInner;

/**
* Request parameters for KeyCredentials update operation.
*/
public class KeyCredentialsUpdateParameters {
/**
* KeyCredential list.
*/
private List<KeyCredentialInner> value;

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

/**
* Set the value value.
*
* @param value the value value to set
* @return the KeyCredentialsUpdateParameters object itself.
*/
public KeyCredentialsUpdateParameters withValue(List<KeyCredentialInner> value) {
this.value = value;
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.graphrbac;

import java.util.List;
import com.microsoft.azure.management.graphrbac.implementation.PasswordCredentialInner;

/**
* Request paramters for PasswordCredentials update operation.
*/
public class PasswordCredentialsUpdateParameters {
/**
* PasswordCredential list.
*/
private List<PasswordCredentialInner> value;

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

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

}
Original file line number Diff line number Diff line change
Expand Up @@ -15,52 +15,52 @@
*/
public class AADObjectInner {
/**
* Gets or sets object Id.
* object Id.
*/
private String objectId;

/**
* Gets or sets object type.
* object type.
*/
private String objectType;

/**
* Gets or sets object display name.
* object display name.
*/
private String displayName;

/**
* Gets or sets principal name.
* principal name.
*/
private String userPrincipalName;

/**
* Gets or sets mail.
* mail.
*/
private String mail;

/**
* Gets or sets MailEnabled field.
* MailEnabled field.
*/
private Boolean mailEnabled;

/**
* Gets or sets SecurityEnabled field.
* SecurityEnabled field.
*/
private Boolean securityEnabled;

/**
* Gets or sets signIn name.
* signIn name.
*/
private String signInName;

/**
* Gets or sets the list of service principal names.
* the list of service principal names.
*/
private List<String> servicePrincipalNames;

/**
* Gets or sets the user type.
* the user type.
*/
private String userType;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,27 @@
*/
public class ADGroupInner {
/**
* Gets or sets object Id.
* object Id.
*/
private String objectId;

/**
* Gets or sets object type.
* object type.
*/
private String objectType;

/**
* Gets or sets group display name.
* group display name.
*/
private String displayName;

/**
* Gets or sets security enabled field.
* security enabled field.
*/
private Boolean securityEnabled;

/**
* Gets or sets mail field.
* mail field.
*/
private String mail;

Expand Down
Loading