Skip to content

Commit ba222bd

Browse files
author
Caitlin Bales (MSFT)
committed
Add delete and patch methods to withReferenceRequest generated requests
1 parent 562c7ed commit ba222bd

26 files changed

+325
-0
lines changed

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,23 @@ public AdministrativeUnit get() throws ClientException {
5555
return send(HttpMethod.GET, null);
5656
}
5757

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

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,23 @@ public DirectoryObject get() throws ClientException {
5555
return send(HttpMethod.GET, null);
5656
}
5757

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

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,23 @@ public EducationClass get() throws ClientException {
5555
return send(HttpMethod.GET, null);
5656
}
5757

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

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,23 @@ public EducationSchool get() throws ClientException {
5555
return send(HttpMethod.GET, null);
5656
}
5757

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

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,23 @@ public EducationUser get() throws ClientException {
5555
return send(HttpMethod.GET, null);
5656
}
5757

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

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,23 @@ public Group get() throws ClientException {
5555
return send(HttpMethod.GET, null);
5656
}
5757

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

src/main/java/com/microsoft/graph/requests/generated/BaseManagedAppRegistrationWithReferenceRequest.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,23 @@ public ManagedAppRegistration get() throws ClientException {
5555
return send(HttpMethod.GET, null);
5656
}
5757

58+
public void delete(final ICallback<ManagedAppRegistration> callback) {
59+
send(HttpMethod.DELETE, callback, null);
60+
}
61+
62+
public void delete() throws ClientException {
63+
send(HttpMethod.DELETE, null);
64+
}
65+
66+
public void patch(final ManagedAppRegistration sourceManagedAppRegistration, final ICallback<ManagedAppRegistration> callback) {
67+
send(HttpMethod.PATCH, callback, sourceManagedAppRegistration);
68+
}
69+
70+
public ManagedAppRegistration patch(final ManagedAppRegistration sourceManagedAppRegistration) throws ClientException {
71+
return send(HttpMethod.PATCH, sourceManagedAppRegistration);
72+
}
73+
74+
5875
/**
5976
* Sets the select clause for the request
6077
*

src/main/java/com/microsoft/graph/requests/generated/BaseManagedDeviceOverviewWithReferenceRequest.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,23 @@ public ManagedDeviceOverview get() throws ClientException {
5555
return send(HttpMethod.GET, null);
5656
}
5757

58+
public void delete(final ICallback<ManagedDeviceOverview> callback) {
59+
send(HttpMethod.DELETE, callback, null);
60+
}
61+
62+
public void delete() throws ClientException {
63+
send(HttpMethod.DELETE, null);
64+
}
65+
66+
public void patch(final ManagedDeviceOverview sourceManagedDeviceOverview, final ICallback<ManagedDeviceOverview> callback) {
67+
send(HttpMethod.PATCH, callback, sourceManagedDeviceOverview);
68+
}
69+
70+
public ManagedDeviceOverview patch(final ManagedDeviceOverview sourceManagedDeviceOverview) throws ClientException {
71+
return send(HttpMethod.PATCH, sourceManagedDeviceOverview);
72+
}
73+
74+
5875
/**
5976
* Sets the select clause for the request
6077
*

src/main/java/com/microsoft/graph/requests/generated/BaseManagedDeviceWithReferenceRequest.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,23 @@ public ManagedDevice get() throws ClientException {
5555
return send(HttpMethod.GET, null);
5656
}
5757

58+
public void delete(final ICallback<ManagedDevice> callback) {
59+
send(HttpMethod.DELETE, callback, null);
60+
}
61+
62+
public void delete() throws ClientException {
63+
send(HttpMethod.DELETE, null);
64+
}
65+
66+
public void patch(final ManagedDevice sourceManagedDevice, final ICallback<ManagedDevice> callback) {
67+
send(HttpMethod.PATCH, callback, sourceManagedDevice);
68+
}
69+
70+
public ManagedDevice patch(final ManagedDevice sourceManagedDevice) throws ClientException {
71+
return send(HttpMethod.PATCH, sourceManagedDevice);
72+
}
73+
74+
5875
/**
5976
* Sets the select clause for the request
6077
*

src/main/java/com/microsoft/graph/requests/generated/BaseRoleDefinitionWithReferenceRequest.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,23 @@ public RoleDefinition get() throws ClientException {
5555
return send(HttpMethod.GET, null);
5656
}
5757

58+
public void delete(final ICallback<RoleDefinition> callback) {
59+
send(HttpMethod.DELETE, callback, null);
60+
}
61+
62+
public void delete() throws ClientException {
63+
send(HttpMethod.DELETE, null);
64+
}
65+
66+
public void patch(final RoleDefinition sourceRoleDefinition, final ICallback<RoleDefinition> callback) {
67+
send(HttpMethod.PATCH, callback, sourceRoleDefinition);
68+
}
69+
70+
public RoleDefinition patch(final RoleDefinition sourceRoleDefinition) throws ClientException {
71+
return send(HttpMethod.PATCH, sourceRoleDefinition);
72+
}
73+
74+
5875
/**
5976
* Sets the select clause for the request
6077
*

0 commit comments

Comments
 (0)