Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

Commit 8aa4e30

Browse files
Merge pull request #81 from microsoftgraph/withReferenceRequest-methods
Add delete and patch on withReferenceRequest generated requests
2 parents a9575c2 + d9f61ee commit 8aa4e30

14 files changed

+168
-0
lines changed

graphsdk/src/main/java/com/microsoft/graph/generated/BaseAdministrativeUnitWithReferenceRequest.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,22 @@ public AdministrativeUnit get() throws ClientException {
5353
return send(HttpMethod.GET, null);
5454
}
5555

56+
public void delete(final ICallback<AdministrativeUnit> callback) {
57+
send(HttpMethod.DELETE, callback, null);
58+
}
59+
60+
public void delete() throws ClientException {
61+
send(HttpMethod.DELETE, null);
62+
}
63+
64+
public void patch(final AdministrativeUnit sourceAdministrativeUnit, final ICallback<AdministrativeUnit> callback) {
65+
send(HttpMethod.PATCH, callback, sourceAdministrativeUnit);
66+
}
67+
68+
public AdministrativeUnit patch(final AdministrativeUnit sourceAdministrativeUnit) throws ClientException {
69+
return send(HttpMethod.PATCH, sourceAdministrativeUnit);
70+
}
71+
5672
/**
5773
* Sets the select clause for the request
5874
*

graphsdk/src/main/java/com/microsoft/graph/generated/BaseDirectoryObjectWithReferenceRequest.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,22 @@ public DirectoryObject get() throws ClientException {
5353
return send(HttpMethod.GET, null);
5454
}
5555

56+
public void delete(final ICallback<DirectoryObject> callback) {
57+
send(HttpMethod.DELETE, callback, null);
58+
}
59+
60+
public void delete() throws ClientException {
61+
send(HttpMethod.DELETE, null);
62+
}
63+
64+
public void patch(final DirectoryObject sourceDirectoryObject, final ICallback<DirectoryObject> callback) {
65+
send(HttpMethod.PATCH, callback, sourceDirectoryObject);
66+
}
67+
68+
public DirectoryObject patch(final DirectoryObject sourceDirectoryObject) throws ClientException {
69+
return send(HttpMethod.PATCH, sourceDirectoryObject);
70+
}
71+
5672
/**
5773
* Sets the select clause for the request
5874
*

graphsdk/src/main/java/com/microsoft/graph/generated/BaseEducationClassWithReferenceRequest.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,22 @@ public EducationClass get() throws ClientException {
5353
return send(HttpMethod.GET, null);
5454
}
5555

56+
public void delete(final ICallback<EducationClass> callback) {
57+
send(HttpMethod.DELETE, callback, null);
58+
}
59+
60+
public void delete() throws ClientException {
61+
send(HttpMethod.DELETE, null);
62+
}
63+
64+
public void patch(final EducationClass sourceEducationClass, final ICallback<EducationClass> callback) {
65+
send(HttpMethod.PATCH, callback, sourceEducationClass);
66+
}
67+
68+
public EducationClass patch(final EducationClass sourceEducationClass) throws ClientException {
69+
return send(HttpMethod.PATCH, sourceEducationClass);
70+
}
71+
5672
/**
5773
* Sets the select clause for the request
5874
*

graphsdk/src/main/java/com/microsoft/graph/generated/BaseEducationSchoolWithReferenceRequest.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,22 @@ public EducationSchool get() throws ClientException {
5353
return send(HttpMethod.GET, null);
5454
}
5555

56+
public void delete(final ICallback<EducationSchool> callback) {
57+
send(HttpMethod.DELETE, callback, null);
58+
}
59+
60+
public void delete() throws ClientException {
61+
send(HttpMethod.DELETE, null);
62+
}
63+
64+
public void patch(final EducationSchool sourceEducationSchool, final ICallback<EducationSchool> callback) {
65+
send(HttpMethod.PATCH, callback, sourceEducationSchool);
66+
}
67+
68+
public EducationSchool patch(final EducationSchool sourceEducationSchool) throws ClientException {
69+
return send(HttpMethod.PATCH, sourceEducationSchool);
70+
}
71+
5672
/**
5773
* Sets the select clause for the request
5874
*

graphsdk/src/main/java/com/microsoft/graph/generated/BaseEducationUserWithReferenceRequest.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,22 @@ public EducationUser get() throws ClientException {
5353
return send(HttpMethod.GET, null);
5454
}
5555

56+
public void delete(final ICallback<EducationUser> callback) {
57+
send(HttpMethod.DELETE, callback, null);
58+
}
59+
60+
public void delete() throws ClientException {
61+
send(HttpMethod.DELETE, null);
62+
}
63+
64+
public void patch(final EducationUser sourceEducationUser, final ICallback<EducationUser> callback) {
65+
send(HttpMethod.PATCH, callback, sourceEducationUser);
66+
}
67+
68+
public EducationUser patch(final EducationUser sourceEducationUser) throws ClientException {
69+
return send(HttpMethod.PATCH, sourceEducationUser);
70+
}
71+
5672
/**
5773
* Sets the select clause for the request
5874
*

graphsdk/src/main/java/com/microsoft/graph/generated/BaseGroupWithReferenceRequest.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,22 @@ public Group get() throws ClientException {
5353
return send(HttpMethod.GET, null);
5454
}
5555

56+
public void delete(final ICallback<Group> callback) {
57+
send(HttpMethod.DELETE, callback, null);
58+
}
59+
60+
public void delete() throws ClientException {
61+
send(HttpMethod.DELETE, null);
62+
}
63+
64+
public void patch(final Group sourceGroup, final ICallback<Group> callback) {
65+
send(HttpMethod.PATCH, callback, sourceGroup);
66+
}
67+
68+
public Group patch(final Group sourceGroup) throws ClientException {
69+
return send(HttpMethod.PATCH, sourceGroup);
70+
}
71+
5672
/**
5773
* Sets the select clause for the request
5874
*

graphsdk/src/main/java/com/microsoft/graph/generated/BaseUserWithReferenceRequest.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,22 @@ public User get() throws ClientException {
5353
return send(HttpMethod.GET, null);
5454
}
5555

56+
public void delete(final ICallback<User> callback) {
57+
send(HttpMethod.DELETE, callback, null);
58+
}
59+
60+
public void delete() throws ClientException {
61+
send(HttpMethod.DELETE, null);
62+
}
63+
64+
public void patch(final User sourceUser, final ICallback<User> callback) {
65+
send(HttpMethod.PATCH, callback, sourceUser);
66+
}
67+
68+
public User patch(final User sourceUser) throws ClientException {
69+
return send(HttpMethod.PATCH, sourceUser);
70+
}
71+
5672
/**
5773
* Sets the select clause for the request
5874
*

graphsdk/src/main/java/com/microsoft/graph/generated/IBaseAdministrativeUnitWithReferenceRequest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ public interface IBaseAdministrativeUnitWithReferenceRequest extends IHttpReques
3030

3131
AdministrativeUnit get() throws ClientException;
3232

33+
void delete(final ICallback<AdministrativeUnit> callback);
34+
35+
void delete() throws ClientException;
36+
37+
void patch(final AdministrativeUnit sourceAdministrativeUnit, final ICallback<AdministrativeUnit> callback);
38+
39+
AdministrativeUnit patch(final AdministrativeUnit sourceAdministrativeUnit) throws ClientException;
40+
3341
IBaseAdministrativeUnitWithReferenceRequest select(final String value);
3442

3543
IBaseAdministrativeUnitWithReferenceRequest expand(final String value);

graphsdk/src/main/java/com/microsoft/graph/generated/IBaseDirectoryObjectWithReferenceRequest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ public interface IBaseDirectoryObjectWithReferenceRequest extends IHttpRequest {
3030

3131
DirectoryObject get() throws ClientException;
3232

33+
void delete(final ICallback<DirectoryObject> callback);
34+
35+
void delete() throws ClientException;
36+
37+
void patch(final DirectoryObject sourceDirectoryObject, final ICallback<DirectoryObject> callback);
38+
39+
DirectoryObject patch(final DirectoryObject sourceDirectoryObject) throws ClientException;
40+
3341
IBaseDirectoryObjectWithReferenceRequest select(final String value);
3442

3543
IBaseDirectoryObjectWithReferenceRequest expand(final String value);

graphsdk/src/main/java/com/microsoft/graph/generated/IBaseEducationClassWithReferenceRequest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ public interface IBaseEducationClassWithReferenceRequest extends IHttpRequest {
3030

3131
EducationClass get() throws ClientException;
3232

33+
void delete(final ICallback<EducationClass> callback);
34+
35+
void delete() throws ClientException;
36+
37+
void patch(final EducationClass sourceEducationClass, final ICallback<EducationClass> callback);
38+
39+
EducationClass patch(final EducationClass sourceEducationClass) throws ClientException;
40+
3341
IBaseEducationClassWithReferenceRequest select(final String value);
3442

3543
IBaseEducationClassWithReferenceRequest expand(final String value);

0 commit comments

Comments
 (0)